blob: 7bd545e8100f68fccc4f8179d4be03e6084e37da [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000787LIBOBJS
788LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000789ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000790 ac_precious_vars='build_alias
791host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000828# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000848
849ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000850ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000855 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000856 ac_prev=
857 continue
858 fi
859
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
John Criswell451f67f2003-10-16 01:45:35 +0000864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000891 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000892 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000894 datadir=$ac_optarg ;;
895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
John Criswell451f67f2003-10-16 01:45:35 +0000903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000910 eval enable_$ac_feature=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000921
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000929 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
John Criswell451f67f2003-10-16 01:45:35 +0000962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
John Criswell451f67f2003-10-16 01:45:35 +0000991 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000992 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
John Criswell451f67f2003-10-16 01:45:35 +00001070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001125 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001126 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001127
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001134 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001135 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001166 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1184fi
1185
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001186# Be sure to have absolute directory names.
1187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001191do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001192 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001193 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1233
1234
John Criswell451f67f2003-10-16 01:45:35 +00001235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001244echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001262 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001263 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=..
1265 fi
1266else
1267 ac_srcdir_defaulted=no
1268fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001269if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001272 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001273fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001277 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
John Criswell451f67f2003-10-16 01:45:35 +00001295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
John Criswell451f67f2003-10-16 01:45:35 +00001323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001325 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001356_ACEOF
1357
1358 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001359
1360System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370 esac
1371 cat <<\_ACEOF
1372
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001373Optional Features:
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001377 --enable-libcpp Use libc++ if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellarda93c8a82012-07-16 14:17:16 +00001405 xcore, msp430, nvptx, cbe, r600, and cpp
1406 (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001407 --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" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003650 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003651 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" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003685 *-*-gnu*)
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="GNU"
3689 llvm_cv_platform_type="Unix" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003690 *-*-solaris*)
3691 llvm_cv_link_all_option="-Wl,-z,allextract"
3692 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3693 llvm_cv_os_type="SunOS"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-auroraux*)
3696 llvm_cv_link_all_option="-Wl,-z,allextract"
3697 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3698 llvm_cv_os_type="AuroraUX"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-win32*)
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="Win32"
3704 llvm_cv_platform_type="Win32" ;;
3705 *-*-mingw*)
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="MingW"
3709 llvm_cv_platform_type="Win32" ;;
3710 *-*-haiku*)
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="Haiku"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-unknown-eabi*)
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 *-unknown-elf*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Freestanding"
3724 llvm_cv_platform_type="Unix" ;;
3725 *)
3726 llvm_cv_link_all_option=""
3727 llvm_cv_no_link_all_option=""
3728 llvm_cv_os_type="Unknown"
3729 llvm_cv_platform_type="Unknown" ;;
3730esac
3731fi
3732{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3733echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3734
3735{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3736echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3737if test "${llvm_cv_target_os_type+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 case $target in
3741 *-*-aix*)
3742 llvm_cv_target_os_type="AIX" ;;
3743 *-*-irix*)
3744 llvm_cv_target_os_type="IRIX" ;;
3745 *-*-cygwin*)
3746 llvm_cv_target_os_type="Cygwin" ;;
3747 *-*-darwin*)
3748 llvm_cv_target_os_type="Darwin" ;;
3749 *-*-minix*)
3750 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003751 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003752 llvm_cv_target_os_type="FreeBSD" ;;
3753 *-*-openbsd*)
3754 llvm_cv_target_os_type="OpenBSD" ;;
3755 *-*-netbsd*)
3756 llvm_cv_target_os_type="NetBSD" ;;
3757 *-*-dragonfly*)
3758 llvm_cv_target_os_type="DragonFly" ;;
3759 *-*-hpux*)
3760 llvm_cv_target_os_type="HP-UX" ;;
3761 *-*-interix*)
3762 llvm_cv_target_os_type="Interix" ;;
3763 *-*-linux*)
3764 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003765 *-*-gnu*)
3766 llvm_cv_target_os_type="GNU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003767 *-*-solaris*)
3768 llvm_cv_target_os_type="SunOS" ;;
3769 *-*-auroraux*)
3770 llvm_cv_target_os_type="AuroraUX" ;;
3771 *-*-win32*)
3772 llvm_cv_target_os_type="Win32" ;;
3773 *-*-mingw*)
3774 llvm_cv_target_os_type="MingW" ;;
3775 *-*-haiku*)
3776 llvm_cv_target_os_type="Haiku" ;;
3777 *-*-rtems*)
3778 llvm_cv_target_os_type="RTEMS" ;;
3779 *-*-nacl*)
3780 llvm_cv_target_os_type="NativeClient" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_target_os_type="Freestanding" ;;
3783 *)
3784 llvm_cv_target_os_type="Unknown" ;;
3785esac
3786fi
3787{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
3796OS=$llvm_cv_os_type
3797
3798HOST_OS=$llvm_cv_os_type
3799
3800TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803LINKALL=$llvm_cv_link_all_option
3804
3805NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808case $llvm_cv_platform_type in
3809 Unix)
3810
3811cat >>confdefs.h <<\_ACEOF
3812#define LLVM_ON_UNIX 1
3813_ACEOF
3814
3815 LLVM_ON_UNIX=1
3816
3817 LLVM_ON_WIN32=0
3818
3819 ;;
3820 Win32)
3821
3822cat >>confdefs.h <<\_ACEOF
3823#define LLVM_ON_WIN32 1
3824_ACEOF
3825
3826 LLVM_ON_UNIX=0
3827
3828 LLVM_ON_WIN32=1
3829
3830 ;;
3831esac
3832
3833{ echo "$as_me:$LINENO: checking target architecture" >&5
3834echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 case $target in
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003843 arm*-*) llvm_cv_target_arch="ARM" ;;
3844 mips-*) llvm_cv_target_arch="Mips" ;;
Simon Atanasyan0fad48f2012-06-18 19:06:25 +00003845 mipsel-*) llvm_cv_target_arch="Mips" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003846 xcore-*) llvm_cv_target_arch="XCore" ;;
3847 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003848 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003849 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003850 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003851 *) llvm_cv_target_arch="Unknown" ;;
3852esac
3853fi
3854{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856
3857if test "$llvm_cv_target_arch" = "Unknown" ; then
3858 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860fi
3861
3862# Determine the LLVM native architecture for the target
3863case "$llvm_cv_target_arch" in
3864 x86) LLVM_NATIVE_ARCH="X86" ;;
3865 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3866 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867esac
3868
3869ARCH=$llvm_cv_target_arch
3870
3871
3872
3873
3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876if test "${ac_cv_path_GREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Extract the first word of "grep ggrep" to use in msg output
3880if test -z "$GREP"; then
3881set dummy grep ggrep; ac_prog_name=$2
3882if test "${ac_cv_path_GREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885 ac_path_GREP_found=false
3886# Loop through the user's path and test for each of PROGNAME-LIST
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896 # Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898case `"$ac_path_GREP" --version 2>&1` in
3899*GNU*)
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901*)
3902 ac_count=0
3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904 while :
3905 do
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 ac_count=`expr $ac_count + 1`
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3917 fi
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3920 done
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922esac
3923
3924
3925 $ac_path_GREP_found && break 3
3926 done
3927done
3928
3929done
3930IFS=$as_save_IFS
3931
3932
3933fi
3934
3935GREP="$ac_cv_path_GREP"
3936if test -z "$GREP"; then
3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939 { (exit 1); exit 1; }; }
3940fi
3941
3942else
3943 ac_cv_path_GREP=$GREP
3944fi
3945
3946
3947fi
3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950 GREP="$ac_cv_path_GREP"
3951
3952
3953{ echo "$as_me:$LINENO: checking for egrep" >&5
3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959 then ac_cv_path_EGREP="$GREP -E"
3960 else
3961 # Extract the first word of "egrep" to use in msg output
3962if test -z "$EGREP"; then
3963set dummy egrep; ac_prog_name=$2
3964if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966else
3967 ac_path_EGREP_found=false
3968# Loop through the user's path and test for each of PROGNAME-LIST
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978 # Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980case `"$ac_path_EGREP" --version 2>&1` in
3981*GNU*)
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983*)
3984 ac_count=0
3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986 while :
3987 do
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 ac_count=`expr $ac_count + 1`
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
3999 fi
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4002 done
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004esac
4005
4006
4007 $ac_path_EGREP_found && break 3
4008 done
4009done
4010
4011done
4012IFS=$as_save_IFS
4013
4014
4015fi
4016
4017EGREP="$ac_cv_path_EGREP"
4018if test -z "$EGREP"; then
4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4022fi
4023
4024else
4025 ac_cv_path_EGREP=$EGREP
4026fi
4027
4028
4029 fi
4030fi
4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4034
4035
4036{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038if test "${ac_cv_header_stdc+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047#include <stdlib.h>
4048#include <stdarg.h>
4049#include <string.h>
4050#include <float.h>
4051
4052int
4053main ()
4054{
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (ac_try="$ac_compile"
4062case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_try") 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_header_stdc=yes
4095else
4096 echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_cv_header_stdc=no
4100fi
4101
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103
4104if test $ac_cv_header_stdc = yes; then
4105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106 cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
4112#include <string.h>
4113
4114_ACEOF
4115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then
4117 :
4118else
4119 ac_cv_header_stdc=no
4120fi
4121rm -f conftest*
4122
4123fi
4124
4125if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat >conftest.$ac_ext <<_ACEOF
4128/* confdefs.h. */
4129_ACEOF
4130cat confdefs.h >>conftest.$ac_ext
4131cat >>conftest.$ac_ext <<_ACEOF
4132/* end confdefs.h. */
4133#include <stdlib.h>
4134
4135_ACEOF
4136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "free" >/dev/null 2>&1; then
4138 :
4139else
4140 ac_cv_header_stdc=no
4141fi
4142rm -f conftest*
4143
4144fi
4145
4146if test $ac_cv_header_stdc = yes; then
4147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148 if test "$cross_compiling" = yes; then
4149 :
4150else
4151 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <ctype.h>
4158#include <stdlib.h>
4159#if ((' ' & 0x0FF) == 0x020)
4160# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162#else
4163# define ISLOWER(c) \
4164 (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168#endif
4169
4170#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171int
4172main ()
4173{
4174 int i;
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4178 return 2;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest$ac_exeext
4183if { (ac_try="$ac_link"
4184case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_link") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 :
4203else
4204 echo "$as_me: program exited with status $ac_status" >&5
4205echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208( exit $ac_status )
4209ac_cv_header_stdc=no
4210fi
4211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212fi
4213
4214
4215fi
4216fi
4217{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219if test $ac_cv_header_stdc = yes; then
4220
4221cat >>confdefs.h <<\_ACEOF
4222#define STDC_HEADERS 1
4223_ACEOF
4224
4225fi
4226
4227# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4239do
4240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252$ac_includes_default
4253
4254#include <$ac_header>
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (ac_try="$ac_compile"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 eval "$as_ac_Header=yes"
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 eval "$as_ac_Header=no"
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299fi
4300ac_res=`eval echo '${'$as_ac_Header'}'`
4301 { echo "$as_me:$LINENO: result: $ac_res" >&5
4302echo "${ECHO_T}$ac_res" >&6; }
4303if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304 cat >>confdefs.h <<_ACEOF
4305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306_ACEOF
4307
4308fi
4309
4310done
4311
4312
4313{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315if test "${ac_cv_c_bigendian+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317else
4318 # See if sys/param.h defines the BYTE_ORDER macro.
4319cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#include <sys/types.h>
4326#include <sys/param.h>
4327
4328int
4329main ()
4330{
4331#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332 bogus endian macros
4333#endif
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380#include <sys/types.h>
4381#include <sys/param.h>
4382
4383int
4384main ()
4385{
4386#if BYTE_ORDER != BIG_ENDIAN
4387 not big endian
4388#endif
4389
4390 ;
4391 return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (ac_try="$ac_compile"
4396case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_c_bigendian=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_c_bigendian=no
4434fi
4435
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 # It does not; compile a test program.
4442if test "$cross_compiling" = yes; then
4443 # try to guess the endianness by grepping values into an object file
4444 ac_cv_c_bigendian=unknown
4445 cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457int
4458main ()
4459{
4460 _ascii (); _ebcdic ();
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext
4466if { (ac_try="$ac_compile"
4467case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470esac
4471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493esac
4494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_try") 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500 ac_cv_c_bigendian=yes
4501fi
4502if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503 if test "$ac_cv_c_bigendian" = unknown; then
4504 ac_cv_c_bigendian=no
4505 else
4506 # finding both strings is unlikely to happen, but who knows?
4507 ac_cv_c_bigendian=unknown
4508 fi
4509fi
4510else
4511 echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514
4515fi
4516
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526int
4527main ()
4528{
4529
4530 /* Are we little or big endian? From Harbison&Steele. */
4531 union
4532 {
4533 long int l;
4534 char c[sizeof (long int)];
4535 } u;
4536 u.l = 1;
4537 return u.c[sizeof (long int) - 1] == 1;
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest$ac_exeext
4544if { (ac_try="$ac_link"
4545case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_link") 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_c_bigendian=no
4564else
4565 echo "$as_me: program exited with status $ac_status" >&5
4566echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569( exit $ac_status )
4570ac_cv_c_bigendian=yes
4571fi
4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573fi
4574
4575
4576fi
4577
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582case $ac_cv_c_bigendian in
4583 yes)
4584 ENDIAN=big
4585 ;;
4586 no)
4587 ENDIAN=little
4588 ;;
4589 *)
4590 { { echo "$as_me:$LINENO: error: unknown endianness
4591presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592echo "$as_me: error: unknown endianness
4593presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594 { (exit 1); exit 1; }; } ;;
4595esac
4596
4597
4598if test "$cross_compiling" = yes; then
4599 LLVM_CROSS_COMPILING=1
4600
4601
4602{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604if test "${ac_cv_build_exeext+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608 ac_cv_build_exeext=.exe
4609else
4610 ac_build_prefix=${build_alias}-
4611
4612 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613set dummy ${ac_build_prefix}gcc; ac_word=$2
4614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619 if test -n "$BUILD_CC"; then
4620 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633done
4634done
4635IFS=$as_save_IFS
4636
4637fi
4638fi
4639BUILD_CC=$ac_cv_prog_BUILD_CC
4640if test -n "$BUILD_CC"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642echo "${ECHO_T}$BUILD_CC" >&6; }
4643else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6; }
4646fi
4647
4648
4649 if test -z "$BUILD_CC"; then
4650 # Extract the first word of "gcc", so it can be a program name with args.
4651set dummy gcc; ac_word=$2
4652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_BUILD_CC="gcc"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677BUILD_CC=$ac_cv_prog_BUILD_CC
4678if test -n "$BUILD_CC"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680echo "${ECHO_T}$BUILD_CC" >&6; }
4681else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6; }
4684fi
4685
4686
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "cc", so it can be a program name with args.
4689set dummy cc; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697else
4698 ac_prog_rejected=no
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707 ac_prog_rejected=yes
4708 continue
4709 fi
4710 ac_cv_prog_BUILD_CC="cc"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718if test $ac_prog_rejected = yes; then
4719 # We found a bogon in the path, so make sure we never use it.
4720 set dummy $ac_cv_prog_BUILD_CC
4721 shift
4722 if test $# != 0; then
4723 # We chose a different compiler from the bogus one.
4724 # However, it has the same basename, so the bogon will be chosen
4725 # first if we set BUILD_CC to just the basename; use the full file name.
4726 shift
4727 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4728 fi
4729fi
4730fi
4731fi
4732BUILD_CC=$ac_cv_prog_BUILD_CC
4733if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735echo "${ECHO_T}$BUILD_CC" >&6; }
4736else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; }
4739fi
4740
4741
4742 fi
4743 fi
4744 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746 { (exit 1); exit 1; }; }
4747 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748 rm -f conftest*
4749 echo 'int main () { return 0; }' > conftest.$ac_ext
4750 ac_cv_build_exeext=
4751 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752 (eval $ac_build_link) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; then
4756 for file in conftest.*; do
4757 case $file in
4758 *.c | *.o | *.obj | *.dSYM) ;;
4759 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4760 esac
4761 done
4762 else
4763 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765 { (exit 1); exit 1; }; }
4766 fi
4767 rm -f conftest*
4768 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4769fi
4770fi
4771
4772BUILD_EXEEXT=""
4773test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776ac_build_exeext=$BUILD_EXEEXT
4777
4778 ac_build_prefix=${build_alias}-
4779 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780set dummy ${ac_build_prefix}g++; ac_word=$2
4781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 if test -n "$BUILD_CXX"; then
4787 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807if test -n "$BUILD_CXX"; then
4808 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809echo "${ECHO_T}$BUILD_CXX" >&6; }
4810else
4811 { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
4813fi
4814
4815
4816 if test -z "$BUILD_CXX"; then
4817 # Extract the first word of "g++", so it can be a program name with args.
4818set dummy g++; ac_word=$2
4819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CXX="g++"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838done
4839done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845if test -n "$BUILD_CXX"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847echo "${ECHO_T}$BUILD_CXX" >&6; }
4848else
4849 { echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6; }
4851fi
4852
4853
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "c++", so it can be a program name with args.
4856set dummy c++; ac_word=$2
4857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864else
4865 ac_prog_rejected=no
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874 ac_prog_rejected=yes
4875 continue
4876 fi
4877 ac_cv_prog_BUILD_CXX="c++"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883IFS=$as_save_IFS
4884
4885if test $ac_prog_rejected = yes; then
4886 # We found a bogon in the path, so make sure we never use it.
4887 set dummy $ac_cv_prog_BUILD_CXX
4888 shift
4889 if test $# != 0; then
4890 # We chose a different compiler from the bogus one.
4891 # However, it has the same basename, so the bogon will be chosen
4892 # first if we set BUILD_CXX to just the basename; use the full file name.
4893 shift
4894 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4895 fi
4896fi
4897fi
4898fi
4899BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902echo "${ECHO_T}$BUILD_CXX" >&6; }
4903else
4904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
4906fi
4907
4908
4909 fi
4910 fi
4911else
4912 LLVM_CROSS_COMPILING=0
4913
4914fi
4915
4916if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4917 cvsbuild="yes"
4918 optimize="no"
4919 CVSBUILD=CVSBUILD=1
4920
4921else
4922 cvsbuild="no"
4923 optimize="yes"
4924fi
4925
4926
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004927# Check whether --enable-libcpp was given.
4928if test "${enable_libcpp+set}" = set; then
4929 enableval=$enable_libcpp;
4930else
4931 enableval=default
4932fi
4933
4934case "$enableval" in
4935 yes) ENABLE_LIBCPP=1
4936 ;;
4937 no) ENABLE_LIBCPP=0
4938 ;;
4939 default) ENABLE_LIBCPP=0
4940;;
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4942echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4944esac
4945
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004946# Check whether --enable-optimized was given.
4947if test "${enable_optimized+set}" = set; then
4948 enableval=$enable_optimized;
4949else
4950 enableval=$optimize
4951fi
4952
4953if test ${enableval} = "no" ; then
4954 ENABLE_OPTIMIZED=
4955
4956else
4957 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4958
4959fi
4960
4961# Check whether --enable-profiling was given.
4962if test "${enable_profiling+set}" = set; then
4963 enableval=$enable_profiling;
4964else
4965 enableval="no"
4966fi
4967
4968if test ${enableval} = "no" ; then
4969 ENABLE_PROFILING=
4970
4971else
4972 ENABLE_PROFILING=ENABLE_PROFILING=1
4973
4974fi
4975
4976# Check whether --enable-assertions was given.
4977if test "${enable_assertions+set}" = set; then
4978 enableval=$enable_assertions;
4979else
4980 enableval="yes"
4981fi
4982
4983if test ${enableval} = "yes" ; then
4984 DISABLE_ASSERTIONS=
4985
4986else
4987 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4988
4989fi
4990
4991# Check whether --enable-expensive-checks was given.
4992if test "${enable_expensive_checks+set}" = set; then
4993 enableval=$enable_expensive_checks;
4994else
4995 enableval="no"
4996fi
4997
4998if test ${enableval} = "yes" ; then
4999 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5000
5001 EXPENSIVE_CHECKS=yes
5002
5003else
5004 ENABLE_EXPENSIVE_CHECKS=
5005
5006 EXPENSIVE_CHECKS=no
5007
5008fi
5009
5010# Check whether --enable-debug-runtime was given.
5011if test "${enable_debug_runtime+set}" = set; then
5012 enableval=$enable_debug_runtime;
5013else
5014 enableval=no
5015fi
5016
5017if test ${enableval} = "no" ; then
5018 DEBUG_RUNTIME=
5019
5020else
5021 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5022
5023fi
5024
5025# Check whether --enable-debug-symbols was given.
5026if test "${enable_debug_symbols+set}" = set; then
5027 enableval=$enable_debug_symbols;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 DEBUG_SYMBOLS=
5034
5035else
5036 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5037
5038fi
5039
5040# Check whether --enable-jit was given.
5041if test "${enable_jit+set}" = set; then
5042 enableval=$enable_jit;
5043else
5044 enableval=default
5045fi
5046
5047if test ${enableval} = "no"
5048then
5049 JIT=
5050
5051else
5052 case "$llvm_cv_target_arch" in
5053 x86) TARGET_HAS_JIT=1
5054 ;;
5055 Sparc) TARGET_HAS_JIT=0
5056 ;;
5057 PowerPC) TARGET_HAS_JIT=1
5058 ;;
5059 x86_64) TARGET_HAS_JIT=1
5060 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005061 ARM) TARGET_HAS_JIT=1
5062 ;;
5063 Mips) TARGET_HAS_JIT=1
5064 ;;
5065 XCore) TARGET_HAS_JIT=0
5066 ;;
5067 MSP430) TARGET_HAS_JIT=0
5068 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005069 Hexagon) TARGET_HAS_JIT=0
5070 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005071 MBlaze) TARGET_HAS_JIT=0
5072 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005073 NVPTX) TARGET_HAS_JIT=0
5074 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005075 *) TARGET_HAS_JIT=0
5076 ;;
5077 esac
5078fi
5079
5080# Check whether --enable-docs was given.
5081if test "${enable_docs+set}" = set; then
5082 enableval=$enable_docs;
5083else
5084 enableval=default
5085fi
5086
5087case "$enableval" in
5088 yes) ENABLE_DOCS=1
5089 ;;
5090 no) ENABLE_DOCS=0
5091 ;;
5092 default) ENABLE_DOCS=1
5093 ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5095echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097esac
5098
5099# Check whether --enable-doxygen was given.
5100if test "${enable_doxygen+set}" = set; then
5101 enableval=$enable_doxygen;
5102else
5103 enableval=default
5104fi
5105
5106case "$enableval" in
5107 yes) ENABLE_DOXYGEN=1
5108 ;;
5109 no) ENABLE_DOXYGEN=0
5110 ;;
5111 default) ENABLE_DOXYGEN=0
5112 ;;
5113 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5114echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5116esac
5117
5118# Check whether --enable-threads was given.
5119if test "${enable_threads+set}" = set; then
5120 enableval=$enable_threads;
5121else
5122 enableval=default
5123fi
5124
5125case "$enableval" in
5126 yes) ENABLE_THREADS=1
5127 ;;
5128 no) ENABLE_THREADS=0
5129 ;;
5130 default) ENABLE_THREADS=1
5131 ;;
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5133echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5135esac
5136
5137cat >>confdefs.h <<_ACEOF
5138#define ENABLE_THREADS $ENABLE_THREADS
5139_ACEOF
5140
5141
5142# Check whether --enable-pthreads was given.
5143if test "${enable_pthreads+set}" = set; then
5144 enableval=$enable_pthreads;
5145else
5146 enableval=default
5147fi
5148
5149case "$enableval" in
5150 yes) ENABLE_PTHREADS=1
5151 ;;
5152 no) ENABLE_PTHREADS=0
5153 ;;
5154 default) ENABLE_PTHREADS=1
5155 ;;
5156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5157echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5159esac
5160
5161# Check whether --enable-pic was given.
5162if test "${enable_pic+set}" = set; then
5163 enableval=$enable_pic;
5164else
5165 enableval=default
5166fi
5167
5168case "$enableval" in
5169 yes) ENABLE_PIC=1
5170 ;;
5171 no) ENABLE_PIC=0
5172 ;;
5173 default) ENABLE_PIC=1
5174 ;;
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5178esac
5179
5180cat >>confdefs.h <<_ACEOF
5181#define ENABLE_PIC $ENABLE_PIC
5182_ACEOF
5183
5184
5185# Check whether --enable-shared was given.
5186if test "${enable_shared+set}" = set; then
5187 enableval=$enable_shared;
5188else
5189 enableval=default
5190fi
5191
5192case "$enableval" in
5193 yes) ENABLE_SHARED=1
5194 ;;
5195 no) ENABLE_SHARED=0
5196 ;;
5197 default) ENABLE_SHARED=0
5198 ;;
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5200echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5202esac
5203
5204# Check whether --enable-embed-stdcxx was given.
5205if test "${enable_embed_stdcxx+set}" = set; then
5206 enableval=$enable_embed_stdcxx;
5207else
5208 enableval=default
5209fi
5210
5211case "$enableval" in
5212 yes) ENABLE_EMBED_STDCXX=1
5213 ;;
5214 no) ENABLE_EMBED_STDCXX=0
5215 ;;
5216 default) ENABLE_EMBED_STDCXX=1
5217 ;;
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5219echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5221esac
5222
5223# Check whether --enable-timestamps was given.
5224if test "${enable_timestamps+set}" = set; then
5225 enableval=$enable_timestamps;
5226else
5227 enableval=default
5228fi
5229
5230case "$enableval" in
5231 yes) ENABLE_TIMESTAMPS=1
5232 ;;
5233 no) ENABLE_TIMESTAMPS=0
5234 ;;
5235 default) ENABLE_TIMESTAMPS=1
5236 ;;
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5238echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5240esac
5241
5242cat >>confdefs.h <<_ACEOF
5243#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5244_ACEOF
5245
5246
5247TARGETS_TO_BUILD=""
5248# Check whether --enable-targets was given.
5249if test "${enable_targets+set}" = set; then
5250 enableval=$enable_targets;
5251else
5252 enableval=all
5253fi
5254
5255if test "$enableval" = host-only ; then
5256 enableval=host
5257fi
5258case "$enableval" in
Tom Stellarda93c8a82012-07-16 14:17:16 +00005259 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX AMDGPU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005260 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5261 case "$a_target" in
5262 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5264 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5265 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005266 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5267 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5268 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5269 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5270 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005271 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005272 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5273 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005274 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Tom Stellarda93c8a82012-07-16 14:17:16 +00005275 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005276 host) case "$llvm_cv_target_arch" in
5277 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005281 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5282 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5284 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005287 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005288 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005289 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5290echo "$as_me: error: Can not set target to build" >&2;}
5291 { (exit 1); exit 1; }; } ;;
5292 esac ;;
5293 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5294echo "$as_me: error: Unrecognized target $a_target" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5296 esac
5297 done
5298 ;;
5299esac
5300TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5301
5302
5303# Determine whether we are building LLVM support for the native architecture.
5304# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5305for a_target in $TARGETS_TO_BUILD; do
5306 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5307
5308cat >>confdefs.h <<_ACEOF
5309#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5310_ACEOF
5311
5312 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5313 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5314 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5315 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5316 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5317 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5318 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005319 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5320 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5321 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005322
5323cat >>confdefs.h <<_ACEOF
5324#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5325_ACEOF
5326
5327
5328cat >>confdefs.h <<_ACEOF
5329#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5330_ACEOF
5331
5332
5333cat >>confdefs.h <<_ACEOF
5334#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5335_ACEOF
5336
5337
5338cat >>confdefs.h <<_ACEOF
5339#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5340_ACEOF
5341
5342 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5343
5344cat >>confdefs.h <<_ACEOF
5345#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5346_ACEOF
5347
5348 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005349 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5350
5351cat >>confdefs.h <<_ACEOF
5352#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5353_ACEOF
5354
5355 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005356 fi
5357done
5358
5359# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5360# target feature def files.
5361LLVM_ENUM_TARGETS=""
5362LLVM_ENUM_ASM_PRINTERS=""
5363LLVM_ENUM_ASM_PARSERS=""
5364LLVM_ENUM_DISASSEMBLERS=""
5365for target_to_build in $TARGETS_TO_BUILD; do
5366 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5367 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5368 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5369 fi
5370 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5371 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5372 fi
5373 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5374 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5375 fi
5376done
5377
5378
5379
5380
5381
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005382
5383# Check whether --with-optimize-option was given.
5384if test "${with_optimize_option+set}" = set; then
5385 withval=$with_optimize_option;
5386else
5387 withval=default
5388fi
5389
5390{ echo "$as_me:$LINENO: checking optimization flags" >&5
5391echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5392case "$withval" in
5393 default)
5394 case "$llvm_cv_os_type" in
5395 FreeBSD) optimize_option=-O2 ;;
5396 MingW) optimize_option=-O2 ;;
5397 *) optimize_option=-O3 ;;
5398 esac ;;
5399 *) optimize_option="$withval" ;;
5400esac
5401OPTIMIZE_OPTION=$optimize_option
5402
5403{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5404echo "${ECHO_T}$optimize_option" >&6; }
5405
5406
5407# Check whether --with-extra-options was given.
5408if test "${with_extra_options+set}" = set; then
5409 withval=$with_extra_options;
5410else
5411 withval=default
5412fi
5413
5414case "$withval" in
5415 default) EXTRA_OPTIONS= ;;
5416 *) EXTRA_OPTIONS=$withval ;;
5417esac
5418EXTRA_OPTIONS=$EXTRA_OPTIONS
5419
5420
5421
5422# Check whether --with-extra-ld-options was given.
5423if test "${with_extra_ld_options+set}" = set; then
5424 withval=$with_extra_ld_options;
5425else
5426 withval=default
5427fi
5428
5429case "$withval" in
5430 default) EXTRA_LD_OPTIONS= ;;
5431 *) EXTRA_LD_OPTIONS=$withval ;;
5432esac
5433EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5434
5435
5436# Check whether --enable-bindings was given.
5437if test "${enable_bindings+set}" = set; then
5438 enableval=$enable_bindings;
5439else
5440 enableval=default
5441fi
5442
5443BINDINGS_TO_BUILD=""
5444case "$enableval" in
5445 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5446 all ) BINDINGS_TO_BUILD="ocaml" ;;
5447 none | no) BINDINGS_TO_BUILD="" ;;
5448 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5449 case "$a_binding" in
5450 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5451 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5452echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5454 esac
5455 done
5456 ;;
5457esac
5458
5459
5460# Check whether --with-ocaml-libdir was given.
5461if test "${with_ocaml_libdir+set}" = set; then
5462 withval=$with_ocaml_libdir;
5463else
5464 withval=auto
5465fi
5466
5467case "$withval" in
5468 auto) with_ocaml_libdir="$withval" ;;
5469 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5470 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5471echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5472 { (exit 1); exit 1; }; } ;;
5473esac
5474
5475
5476# Check whether --with-clang-resource-dir was given.
5477if test "${with_clang_resource_dir+set}" = set; then
5478 withval=$with_clang_resource_dir;
5479else
5480 withval=""
5481fi
5482
5483
5484cat >>confdefs.h <<_ACEOF
5485#define CLANG_RESOURCE_DIR "$withval"
5486_ACEOF
5487
5488
5489
5490# Check whether --with-c-include-dirs was given.
5491if test "${with_c_include_dirs+set}" = set; then
5492 withval=$with_c_include_dirs;
5493else
5494 withval=""
5495fi
5496
5497
5498cat >>confdefs.h <<_ACEOF
5499#define C_INCLUDE_DIRS "$withval"
5500_ACEOF
5501
5502
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005503# Clang normally uses the system c++ headers and libraries. With this option,
5504# clang will use the ones provided by a gcc installation instead. This option should
5505# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005506
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005507# Check whether --with-gcc-toolchain was given.
5508if test "${with_gcc_toolchain+set}" = set; then
5509 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005510else
5511 withval=""
5512fi
5513
5514
5515cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005516#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005517_ACEOF
5518
5519
5520
5521# Check whether --with-binutils-include was given.
5522if test "${with_binutils_include+set}" = set; then
5523 withval=$with_binutils_include;
5524else
5525 withval=default
5526fi
5527
5528case "$withval" in
5529 default) WITH_BINUTILS_INCDIR=default ;;
5530 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5531 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5532echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5534esac
5535if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5536 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5537
5538 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5539 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5540 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5541echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5542 { (exit 1); exit 1; }; };
5543 fi
5544fi
5545
5546
5547# Check whether --with-bug-report-url was given.
5548if test "${with_bug_report_url+set}" = set; then
5549 withval=$with_bug_report_url;
5550else
5551 withval="http://llvm.org/bugs/"
5552fi
5553
5554
5555cat >>confdefs.h <<_ACEOF
5556#define BUG_REPORT_URL "$withval"
5557_ACEOF
5558
5559
5560# Check whether --enable-libffi was given.
5561if test "${enable_libffi+set}" = set; then
5562 enableval=$enable_libffi; case "$enableval" in
5563 yes) llvm_cv_enable_libffi="yes" ;;
5564 no) llvm_cv_enable_libffi="no" ;;
5565 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5566echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5567 { (exit 1); exit 1; }; } ;;
5568 esac
5569else
5570 llvm_cv_enable_libffi=no
5571fi
5572
5573
5574
5575{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5576echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5577if test "${lt_cv_path_NM+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580 if test -n "$NM"; then
5581 # Let the user override the test.
5582 lt_cv_path_NM="$NM"
5583else
5584 lt_nm_to_check="${ac_tool_prefix}nm"
5585 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5586 lt_nm_to_check="$lt_nm_to_check nm"
5587 fi
5588 for lt_tmp_nm in $lt_nm_to_check; do
5589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5590 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5591 IFS="$lt_save_ifs"
5592 test -z "$ac_dir" && ac_dir=.
5593 tmp_nm="$ac_dir/$lt_tmp_nm"
5594 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5595 # Check to see if the nm accepts a BSD-compat flag.
5596 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5597 # nm: unknown option "B" ignored
5598 # Tru64's nm complains that /dev/null is an invalid object file
5599 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5600 */dev/null* | *'Invalid file or object type'*)
5601 lt_cv_path_NM="$tmp_nm -B"
5602 break
5603 ;;
5604 *)
5605 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5606 */dev/null*)
5607 lt_cv_path_NM="$tmp_nm -p"
5608 break
5609 ;;
5610 *)
5611 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5612 continue # so that we can try to find one that supports BSD flags
5613 ;;
5614 esac
5615 ;;
5616 esac
5617 fi
5618 done
5619 IFS="$lt_save_ifs"
5620 done
5621 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5622fi
5623fi
5624{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5625echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5626NM="$lt_cv_path_NM"
5627
5628
5629
5630{ echo "$as_me:$LINENO: checking for GNU make" >&5
5631echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5632if test "${llvm_cv_gnu_make_command+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635 llvm_cv_gnu_make_command=''
5636 for a in "$MAKE" make gmake gnumake ; do
5637 if test -z "$a" ; then continue ; fi ;
5638 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5639 then
5640 llvm_cv_gnu_make_command=$a ;
5641 break;
5642 fi
5643 done
5644fi
5645{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5646echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5647 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5648 ifGNUmake='' ;
5649 else
5650 ifGNUmake='#' ;
5651 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5652echo "${ECHO_T}\"Not found\"" >&6; };
5653 fi
5654
5655
5656{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5657echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5658LN_S=$as_ln_s
5659if test "$LN_S" = "ln -s"; then
5660 { echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6; }
5662else
5663 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5664echo "${ECHO_T}no, using $LN_S" >&6; }
5665fi
5666
5667# Extract the first word of "cmp", so it can be a program name with args.
5668set dummy cmp; ac_word=$2
5669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671if test "${ac_cv_path_CMP+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 case $CMP in
5675 [\\/]* | ?:[\\/]*)
5676 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5677 ;;
5678 *)
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691done
5692IFS=$as_save_IFS
5693
5694 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5695 ;;
5696esac
5697fi
5698CMP=$ac_cv_path_CMP
5699if test -n "$CMP"; then
5700 { echo "$as_me:$LINENO: result: $CMP" >&5
5701echo "${ECHO_T}$CMP" >&6; }
5702else
5703 { echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6; }
5705fi
5706
5707
5708# Extract the first word of "cp", so it can be a program name with args.
5709set dummy cp; ac_word=$2
5710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712if test "${ac_cv_path_CP+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715 case $CP in
5716 [\\/]* | ?:[\\/]*)
5717 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5718 ;;
5719 *)
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732done
5733IFS=$as_save_IFS
5734
5735 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5736 ;;
5737esac
5738fi
5739CP=$ac_cv_path_CP
5740if test -n "$CP"; then
5741 { echo "$as_me:$LINENO: result: $CP" >&5
5742echo "${ECHO_T}$CP" >&6; }
5743else
5744 { echo "$as_me:$LINENO: result: no" >&5
5745echo "${ECHO_T}no" >&6; }
5746fi
5747
5748
5749# Extract the first word of "date", so it can be a program name with args.
5750set dummy date; ac_word=$2
5751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753if test "${ac_cv_path_DATE+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 case $DATE in
5757 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5759 ;;
5760 *)
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772done
5773done
5774IFS=$as_save_IFS
5775
5776 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5777 ;;
5778esac
5779fi
5780DATE=$ac_cv_path_DATE
5781if test -n "$DATE"; then
5782 { echo "$as_me:$LINENO: result: $DATE" >&5
5783echo "${ECHO_T}$DATE" >&6; }
5784else
5785 { echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6; }
5787fi
5788
5789
5790# Extract the first word of "find", so it can be a program name with args.
5791set dummy find; ac_word=$2
5792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794if test "${ac_cv_path_FIND+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 case $FIND in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5800 ;;
5801 *)
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
5815IFS=$as_save_IFS
5816
5817 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5818 ;;
5819esac
5820fi
5821FIND=$ac_cv_path_FIND
5822if test -n "$FIND"; then
5823 { echo "$as_me:$LINENO: result: $FIND" >&5
5824echo "${ECHO_T}$FIND" >&6; }
5825else
5826 { echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6; }
5828fi
5829
5830
5831# Extract the first word of "grep", so it can be a program name with args.
5832set dummy grep; ac_word=$2
5833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835if test "${ac_cv_path_GREP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838 case $GREP in
5839 [\\/]* | ?:[\\/]*)
5840 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5841 ;;
5842 *)
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855done
5856IFS=$as_save_IFS
5857
5858 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5859 ;;
5860esac
5861fi
5862GREP=$ac_cv_path_GREP
5863if test -n "$GREP"; then
5864 { echo "$as_me:$LINENO: result: $GREP" >&5
5865echo "${ECHO_T}$GREP" >&6; }
5866else
5867 { echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6; }
5869fi
5870
5871
5872# Extract the first word of "mkdir", so it can be a program name with args.
5873set dummy mkdir; ac_word=$2
5874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876if test "${ac_cv_path_MKDIR+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 case $MKDIR in
5880 [\\/]* | ?:[\\/]*)
5881 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5882 ;;
5883 *)
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896done
5897IFS=$as_save_IFS
5898
5899 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5900 ;;
5901esac
5902fi
5903MKDIR=$ac_cv_path_MKDIR
5904if test -n "$MKDIR"; then
5905 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5906echo "${ECHO_T}$MKDIR" >&6; }
5907else
5908 { echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6; }
5910fi
5911
5912
5913# Extract the first word of "mv", so it can be a program name with args.
5914set dummy mv; ac_word=$2
5915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917if test "${ac_cv_path_MV+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920 case $MV in
5921 [\\/]* | ?:[\\/]*)
5922 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5923 ;;
5924 *)
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937done
5938IFS=$as_save_IFS
5939
5940 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5941 ;;
5942esac
5943fi
5944MV=$ac_cv_path_MV
5945if test -n "$MV"; then
5946 { echo "$as_me:$LINENO: result: $MV" >&5
5947echo "${ECHO_T}$MV" >&6; }
5948else
5949 { echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6; }
5951fi
5952
5953
5954if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959if test "${ac_cv_prog_RANLIB+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 if test -n "$RANLIB"; then
5963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982RANLIB=$ac_cv_prog_RANLIB
5983if test -n "$RANLIB"; then
5984 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5985echo "${ECHO_T}$RANLIB" >&6; }
5986else
5987 { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
5989fi
5990
5991
5992fi
5993if test -z "$ac_cv_prog_RANLIB"; then
5994 ac_ct_RANLIB=$RANLIB
5995 # Extract the first word of "ranlib", so it can be a program name with args.
5996set dummy ranlib; ac_word=$2
5997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 if test -n "$ac_ct_RANLIB"; then
6003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_RANLIB="ranlib"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016done
6017done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6023if test -n "$ac_ct_RANLIB"; then
6024 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6025echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6026else
6027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
6029fi
6030
6031 if test "x$ac_ct_RANLIB" = x; then
6032 RANLIB=":"
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037whose name does not start with the host triplet. If you think this
6038configuration is useful to you, please write to autoconf@gnu.org." >&5
6039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 RANLIB=$ac_ct_RANLIB
6045 fi
6046else
6047 RANLIB="$ac_cv_prog_RANLIB"
6048fi
6049
6050if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}ar; ac_word=$2
6053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055if test "${ac_cv_prog_AR+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078AR=$ac_cv_prog_AR
6079if test -n "$AR"; then
6080 { echo "$as_me:$LINENO: result: $AR" >&5
6081echo "${ECHO_T}$AR" >&6; }
6082else
6083 { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
6085fi
6086
6087
6088fi
6089if test -z "$ac_cv_prog_AR"; then
6090 ac_ct_AR=$AR
6091 # Extract the first word of "ar", so it can be a program name with args.
6092set dummy ar; ac_word=$2
6093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_AR="ar"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112done
6113done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119if test -n "$ac_ct_AR"; then
6120 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121echo "${ECHO_T}$ac_ct_AR" >&6; }
6122else
6123 { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
6125fi
6126
6127 if test "x$ac_ct_AR" = x; then
6128 AR="false"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133whose name does not start with the host triplet. If you think this
6134configuration is useful to you, please write to autoconf@gnu.org." >&5
6135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140 AR=$ac_ct_AR
6141 fi
6142else
6143 AR="$ac_cv_prog_AR"
6144fi
6145
6146# Extract the first word of "rm", so it can be a program name with args.
6147set dummy rm; ac_word=$2
6148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150if test "${ac_cv_path_RM+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153 case $RM in
6154 [\\/]* | ?:[\\/]*)
6155 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6156 ;;
6157 *)
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170done
6171IFS=$as_save_IFS
6172
6173 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6174 ;;
6175esac
6176fi
6177RM=$ac_cv_path_RM
6178if test -n "$RM"; then
6179 { echo "$as_me:$LINENO: result: $RM" >&5
6180echo "${ECHO_T}$RM" >&6; }
6181else
6182 { echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6; }
6184fi
6185
6186
6187# Extract the first word of "sed", so it can be a program name with args.
6188set dummy sed; ac_word=$2
6189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_path_SED+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 case $SED in
6195 [\\/]* | ?:[\\/]*)
6196 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6197 ;;
6198 *)
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210done
6211done
6212IFS=$as_save_IFS
6213
6214 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6215 ;;
6216esac
6217fi
6218SED=$ac_cv_path_SED
6219if test -n "$SED"; then
6220 { echo "$as_me:$LINENO: result: $SED" >&5
6221echo "${ECHO_T}$SED" >&6; }
6222else
6223 { echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6; }
6225fi
6226
6227
6228# Extract the first word of "tar", so it can be a program name with args.
6229set dummy tar; ac_word=$2
6230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232if test "${ac_cv_path_TAR+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235 case $TAR in
6236 [\\/]* | ?:[\\/]*)
6237 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6238 ;;
6239 *)
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251done
6252done
6253IFS=$as_save_IFS
6254
6255 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6256 ;;
6257esac
6258fi
6259TAR=$ac_cv_path_TAR
6260if test -n "$TAR"; then
6261 { echo "$as_me:$LINENO: result: $TAR" >&5
6262echo "${ECHO_T}$TAR" >&6; }
6263else
6264 { echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6; }
6266fi
6267
6268
6269# Extract the first word of "pwd", so it can be a program name with args.
6270set dummy pwd; ac_word=$2
6271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273if test "${ac_cv_path_BINPWD+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276 case $BINPWD in
6277 [\\/]* | ?:[\\/]*)
6278 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6279 ;;
6280 *)
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293done
6294IFS=$as_save_IFS
6295
6296 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6297 ;;
6298esac
6299fi
6300BINPWD=$ac_cv_path_BINPWD
6301if test -n "$BINPWD"; then
6302 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6303echo "${ECHO_T}$BINPWD" >&6; }
6304else
6305 { echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6; }
6307fi
6308
6309
6310
6311# Extract the first word of "Graphviz", so it can be a program name with args.
6312set dummy Graphviz; ac_word=$2
6313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318 case $GRAPHVIZ in
6319 [\\/]* | ?:[\\/]*)
6320 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6321 ;;
6322 *)
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334done
6335done
6336IFS=$as_save_IFS
6337
6338 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6339 ;;
6340esac
6341fi
6342GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6343if test -n "$GRAPHVIZ"; then
6344 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6345echo "${ECHO_T}$GRAPHVIZ" >&6; }
6346else
6347 { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
6349fi
6350
6351
6352if test "$GRAPHVIZ" != "echo Graphviz" ; then
6353
6354cat >>confdefs.h <<\_ACEOF
6355#define HAVE_GRAPHVIZ 1
6356_ACEOF
6357
6358 if test "$llvm_cv_os_type" = "MingW" ; then
6359 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6360 fi
6361
6362cat >>confdefs.h <<_ACEOF
6363#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6364_ACEOF
6365
6366fi
6367# Extract the first word of "dot", so it can be a program name with args.
6368set dummy dot; ac_word=$2
6369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_path_DOT+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374 case $DOT in
6375 [\\/]* | ?:[\\/]*)
6376 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6377 ;;
6378 *)
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391done
6392IFS=$as_save_IFS
6393
6394 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6395 ;;
6396esac
6397fi
6398DOT=$ac_cv_path_DOT
6399if test -n "$DOT"; then
6400 { echo "$as_me:$LINENO: result: $DOT" >&5
6401echo "${ECHO_T}$DOT" >&6; }
6402else
6403 { echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6; }
6405fi
6406
6407
6408if test "$DOT" != "echo dot" ; then
6409
6410cat >>confdefs.h <<\_ACEOF
6411#define HAVE_DOT 1
6412_ACEOF
6413
6414 if test "$llvm_cv_os_type" = "MingW" ; then
6415 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6416 fi
6417
6418cat >>confdefs.h <<_ACEOF
6419#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6420_ACEOF
6421
6422fi
6423# Extract the first word of "fdp", so it can be a program name with args.
6424set dummy fdp; ac_word=$2
6425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427if test "${ac_cv_path_FDP+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430 case $FDP in
6431 [\\/]* | ?:[\\/]*)
6432 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6433 ;;
6434 *)
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446done
6447done
6448IFS=$as_save_IFS
6449
6450 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6451 ;;
6452esac
6453fi
6454FDP=$ac_cv_path_FDP
6455if test -n "$FDP"; then
6456 { echo "$as_me:$LINENO: result: $FDP" >&5
6457echo "${ECHO_T}$FDP" >&6; }
6458else
6459 { echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6; }
6461fi
6462
6463
6464if test "$FDP" != "echo fdp" ; then
6465
6466cat >>confdefs.h <<\_ACEOF
6467#define HAVE_FDP 1
6468_ACEOF
6469
6470 if test "$llvm_cv_os_type" = "MingW" ; then
6471 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472 fi
6473
6474cat >>confdefs.h <<_ACEOF
6475#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6476_ACEOF
6477
6478fi
6479# Extract the first word of "neato", so it can be a program name with args.
6480set dummy neato; ac_word=$2
6481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483if test "${ac_cv_path_NEATO+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486 case $NEATO in
6487 [\\/]* | ?:[\\/]*)
6488 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6489 ;;
6490 *)
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502done
6503done
6504IFS=$as_save_IFS
6505
6506 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6507 ;;
6508esac
6509fi
6510NEATO=$ac_cv_path_NEATO
6511if test -n "$NEATO"; then
6512 { echo "$as_me:$LINENO: result: $NEATO" >&5
6513echo "${ECHO_T}$NEATO" >&6; }
6514else
6515 { echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6; }
6517fi
6518
6519
6520if test "$NEATO" != "echo neato" ; then
6521
6522cat >>confdefs.h <<\_ACEOF
6523#define HAVE_NEATO 1
6524_ACEOF
6525
6526 if test "$llvm_cv_os_type" = "MingW" ; then
6527 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528 fi
6529
6530cat >>confdefs.h <<_ACEOF
6531#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6532_ACEOF
6533
6534fi
6535# Extract the first word of "twopi", so it can be a program name with args.
6536set dummy twopi; ac_word=$2
6537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539if test "${ac_cv_path_TWOPI+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542 case $TWOPI in
6543 [\\/]* | ?:[\\/]*)
6544 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6545 ;;
6546 *)
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558done
6559done
6560IFS=$as_save_IFS
6561
6562 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6563 ;;
6564esac
6565fi
6566TWOPI=$ac_cv_path_TWOPI
6567if test -n "$TWOPI"; then
6568 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6569echo "${ECHO_T}$TWOPI" >&6; }
6570else
6571 { echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6; }
6573fi
6574
6575
6576if test "$TWOPI" != "echo twopi" ; then
6577
6578cat >>confdefs.h <<\_ACEOF
6579#define HAVE_TWOPI 1
6580_ACEOF
6581
6582 if test "$llvm_cv_os_type" = "MingW" ; then
6583 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584 fi
6585
6586cat >>confdefs.h <<_ACEOF
6587#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6588_ACEOF
6589
6590fi
6591# Extract the first word of "circo", so it can be a program name with args.
6592set dummy circo; ac_word=$2
6593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595if test "${ac_cv_path_CIRCO+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598 case $CIRCO in
6599 [\\/]* | ?:[\\/]*)
6600 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6601 ;;
6602 *)
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614done
6615done
6616IFS=$as_save_IFS
6617
6618 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6619 ;;
6620esac
6621fi
6622CIRCO=$ac_cv_path_CIRCO
6623if test -n "$CIRCO"; then
6624 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6625echo "${ECHO_T}$CIRCO" >&6; }
6626else
6627 { echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6; }
6629fi
6630
6631
6632if test "$CIRCO" != "echo circo" ; then
6633
6634cat >>confdefs.h <<\_ACEOF
6635#define HAVE_CIRCO 1
6636_ACEOF
6637
6638 if test "$llvm_cv_os_type" = "MingW" ; then
6639 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640 fi
6641
6642cat >>confdefs.h <<_ACEOF
6643#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6644_ACEOF
6645
6646fi
6647for ac_prog in gv gsview32
6648do
6649 # Extract the first word of "$ac_prog", so it can be a program name with args.
6650set dummy $ac_prog; ac_word=$2
6651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653if test "${ac_cv_path_GV+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656 case $GV in
6657 [\\/]* | ?:[\\/]*)
6658 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6659 ;;
6660 *)
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672done
6673done
6674IFS=$as_save_IFS
6675
6676 ;;
6677esac
6678fi
6679GV=$ac_cv_path_GV
6680if test -n "$GV"; then
6681 { echo "$as_me:$LINENO: result: $GV" >&5
6682echo "${ECHO_T}$GV" >&6; }
6683else
6684 { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
6686fi
6687
6688
6689 test -n "$GV" && break
6690done
6691test -n "$GV" || GV="echo gv"
6692
6693if test "$GV" != "echo gv" ; then
6694
6695cat >>confdefs.h <<\_ACEOF
6696#define HAVE_GV 1
6697_ACEOF
6698
6699 if test "$llvm_cv_os_type" = "MingW" ; then
6700 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6701 fi
6702
6703cat >>confdefs.h <<_ACEOF
6704#define LLVM_PATH_GV "$GV${EXEEXT}"
6705_ACEOF
6706
6707fi
6708# Extract the first word of "dotty", so it can be a program name with args.
6709set dummy dotty; ac_word=$2
6710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712if test "${ac_cv_path_DOTTY+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715 case $DOTTY in
6716 [\\/]* | ?:[\\/]*)
6717 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6718 ;;
6719 *)
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732done
6733IFS=$as_save_IFS
6734
6735 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6736 ;;
6737esac
6738fi
6739DOTTY=$ac_cv_path_DOTTY
6740if test -n "$DOTTY"; then
6741 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6742echo "${ECHO_T}$DOTTY" >&6; }
6743else
6744 { echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6; }
6746fi
6747
6748
6749if test "$DOTTY" != "echo dotty" ; then
6750
6751cat >>confdefs.h <<\_ACEOF
6752#define HAVE_DOTTY 1
6753_ACEOF
6754
6755 if test "$llvm_cv_os_type" = "MingW" ; then
6756 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6757 fi
6758
6759cat >>confdefs.h <<_ACEOF
6760#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6761_ACEOF
6762
6763fi
6764# Extract the first word of "xdot.py", so it can be a program name with args.
6765set dummy xdot.py; ac_word=$2
6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768if test "${ac_cv_path_XDOT_PY+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 case $XDOT_PY in
6772 [\\/]* | ?:[\\/]*)
6773 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6774 ;;
6775 *)
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788done
6789IFS=$as_save_IFS
6790
6791 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6792 ;;
6793esac
6794fi
6795XDOT_PY=$ac_cv_path_XDOT_PY
6796if test -n "$XDOT_PY"; then
6797 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6798echo "${ECHO_T}$XDOT_PY" >&6; }
6799else
6800 { echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6; }
6802fi
6803
6804
6805if test "$XDOT_PY" != "echo xdot.py" ; then
6806
6807cat >>confdefs.h <<\_ACEOF
6808#define HAVE_XDOT_PY 1
6809_ACEOF
6810
6811 if test "$llvm_cv_os_type" = "MingW" ; then
6812 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813 fi
6814
6815cat >>confdefs.h <<_ACEOF
6816#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6817_ACEOF
6818
6819fi
6820
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006821# Find a good install program. We prefer a C program (faster),
6822# so one script is as good as another. But avoid the broken or
6823# incompatible versions:
6824# SysV /etc/install, /usr/sbin/install
6825# SunOS /usr/etc/install
6826# IRIX /sbin/install
6827# AIX /bin/install
6828# AmigaOS /C/install, which installs bootblocks on floppy discs
6829# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6830# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6831# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6832# OS/2's system install, which has a completely different semantic
6833# ./install, which can be erroneously created by make from ./install.sh.
6834{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6835echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6836if test -z "$INSTALL"; then
6837if test "${ac_cv_path_install+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 # Account for people who put trailing slashes in PATH elements.
6846case $as_dir/ in
6847 ./ | .// | /cC/* | \
6848 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6849 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6850 /usr/ucb/* ) ;;
6851 *)
6852 # OSF1 and SCO ODT 3.0 have their own names for install.
6853 # Don't use installbsd from OSF since it installs stuff as root
6854 # by default.
6855 for ac_prog in ginstall scoinst install; do
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6858 if test $ac_prog = install &&
6859 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6860 # AIX install. It has an incompatible calling convention.
6861 :
6862 elif test $ac_prog = install &&
6863 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6864 # program-specific install script used by HP pwplus--don't use.
6865 :
6866 else
6867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6868 break 3
6869 fi
6870 fi
6871 done
6872 done
6873 ;;
6874esac
6875done
6876IFS=$as_save_IFS
6877
6878
6879fi
6880 if test "${ac_cv_path_install+set}" = set; then
6881 INSTALL=$ac_cv_path_install
6882 else
6883 # As a last resort, use the slow shell script. Don't cache a
6884 # value for INSTALL within a source directory, because that will
6885 # break other packages using the cache if that directory is
6886 # removed, or if the value is a relative name.
6887 INSTALL=$ac_install_sh
6888 fi
6889fi
6890{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6891echo "${ECHO_T}$INSTALL" >&6; }
6892
6893# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6894# It thinks the first close brace ends the variable substitution.
6895test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6896
6897test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6898
6899test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6900
6901case "$INSTALL" in
6902 [\\/$]* | ?:[\\/]* ) ;;
6903 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6904esac
6905
6906# Extract the first word of "bzip2", so it can be a program name with args.
6907set dummy bzip2; ac_word=$2
6908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910if test "${ac_cv_path_BZIP2+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912else
6913 case $BZIP2 in
6914 [\\/]* | ?:[\\/]*)
6915 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6916 ;;
6917 *)
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929done
6930done
6931IFS=$as_save_IFS
6932
6933 ;;
6934esac
6935fi
6936BZIP2=$ac_cv_path_BZIP2
6937if test -n "$BZIP2"; then
6938 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6939echo "${ECHO_T}$BZIP2" >&6; }
6940else
6941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
6943fi
6944
6945
6946# Extract the first word of "cat", so it can be a program name with args.
6947set dummy cat; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_CAT+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 case $CAT in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973 ;;
6974esac
6975fi
6976CAT=$ac_cv_path_CAT
6977if test -n "$CAT"; then
6978 { echo "$as_me:$LINENO: result: $CAT" >&5
6979echo "${ECHO_T}$CAT" >&6; }
6980else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
6983fi
6984
6985
6986# Extract the first word of "doxygen", so it can be a program name with args.
6987set dummy doxygen; ac_word=$2
6988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_path_DOXYGEN+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 case $DOXYGEN in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6996 ;;
6997 *)
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010done
7011IFS=$as_save_IFS
7012
7013 ;;
7014esac
7015fi
7016DOXYGEN=$ac_cv_path_DOXYGEN
7017if test -n "$DOXYGEN"; then
7018 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7019echo "${ECHO_T}$DOXYGEN" >&6; }
7020else
7021 { echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6; }
7023fi
7024
7025
7026# Extract the first word of "groff", so it can be a program name with args.
7027set dummy groff; ac_word=$2
7028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030if test "${ac_cv_path_GROFF+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033 case $GROFF in
7034 [\\/]* | ?:[\\/]*)
7035 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7036 ;;
7037 *)
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049done
7050done
7051IFS=$as_save_IFS
7052
7053 ;;
7054esac
7055fi
7056GROFF=$ac_cv_path_GROFF
7057if test -n "$GROFF"; then
7058 { echo "$as_me:$LINENO: result: $GROFF" >&5
7059echo "${ECHO_T}$GROFF" >&6; }
7060else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
7063fi
7064
7065
7066# Extract the first word of "gzip", so it can be a program name with args.
7067set dummy gzip; ac_word=$2
7068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070if test "${ac_cv_path_GZIPBIN+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073 case $GZIPBIN in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7076 ;;
7077 *)
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090done
7091IFS=$as_save_IFS
7092
7093 ;;
7094esac
7095fi
7096GZIPBIN=$ac_cv_path_GZIPBIN
7097if test -n "$GZIPBIN"; then
7098 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7099echo "${ECHO_T}$GZIPBIN" >&6; }
7100else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
7103fi
7104
7105
7106# Extract the first word of "pod2html", so it can be a program name with args.
7107set dummy pod2html; ac_word=$2
7108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110if test "${ac_cv_path_POD2HTML+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 case $POD2HTML in
7114 [\\/]* | ?:[\\/]*)
7115 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7116 ;;
7117 *)
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129done
7130done
7131IFS=$as_save_IFS
7132
7133 ;;
7134esac
7135fi
7136POD2HTML=$ac_cv_path_POD2HTML
7137if test -n "$POD2HTML"; then
7138 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7139echo "${ECHO_T}$POD2HTML" >&6; }
7140else
7141 { echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6; }
7143fi
7144
7145
7146# Extract the first word of "pod2man", so it can be a program name with args.
7147set dummy pod2man; ac_word=$2
7148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150if test "${ac_cv_path_POD2MAN+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 case $POD2MAN in
7154 [\\/]* | ?:[\\/]*)
7155 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7156 ;;
7157 *)
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171IFS=$as_save_IFS
7172
7173 ;;
7174esac
7175fi
7176POD2MAN=$ac_cv_path_POD2MAN
7177if test -n "$POD2MAN"; then
7178 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7179echo "${ECHO_T}$POD2MAN" >&6; }
7180else
7181 { echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6; }
7183fi
7184
7185
7186# Extract the first word of "pdfroff", so it can be a program name with args.
7187set dummy pdfroff; ac_word=$2
7188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190if test "${ac_cv_path_PDFROFF+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 case $PDFROFF in
7194 [\\/]* | ?:[\\/]*)
7195 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7196 ;;
7197 *)
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209done
7210done
7211IFS=$as_save_IFS
7212
7213 ;;
7214esac
7215fi
7216PDFROFF=$ac_cv_path_PDFROFF
7217if test -n "$PDFROFF"; then
7218 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7219echo "${ECHO_T}$PDFROFF" >&6; }
7220else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6; }
7223fi
7224
7225
7226# Extract the first word of "runtest", so it can be a program name with args.
7227set dummy runtest; ac_word=$2
7228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230if test "${ac_cv_path_RUNTEST+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 case $RUNTEST in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7236 ;;
7237 *)
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250done
7251IFS=$as_save_IFS
7252
7253 ;;
7254esac
7255fi
7256RUNTEST=$ac_cv_path_RUNTEST
7257if test -n "$RUNTEST"; then
7258 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7259echo "${ECHO_T}$RUNTEST" >&6; }
7260else
7261 { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
7263fi
7264
7265
7266
7267no_itcl=true
7268{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7269echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7270
7271# Check whether --with-tclinclude was given.
7272if test "${with_tclinclude+set}" = set; then
7273 withval=$with_tclinclude; with_tclinclude=${withval}
7274else
7275 with_tclinclude=''
7276fi
7277
7278if test "${ac_cv_path_tclsh+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281
7282if test x"${with_tclinclude}" != x ; then
7283 if test -f ${with_tclinclude}/tclsh ; then
7284 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7285 elif test -f ${with_tclinclude}/src/tclsh ; then
7286 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7287 else
7288 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7289echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7290 { (exit 1); exit 1; }; }
7291 fi
7292fi
7293fi
7294
7295
7296if test x"${ac_cv_path_tclsh}" = x ; then
7297 { echo "$as_me:$LINENO: result: none" >&5
7298echo "${ECHO_T}none" >&6; }
7299 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
7300do
7301 # Extract the first word of "$ac_prog", so it can be a program name with args.
7302set dummy $ac_prog; ac_word=$2
7303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305if test "${ac_cv_path_TCLSH+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308 case $TCLSH in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7311 ;;
7312 *)
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324done
7325done
7326IFS=$as_save_IFS
7327
7328 ;;
7329esac
7330fi
7331TCLSH=$ac_cv_path_TCLSH
7332if test -n "$TCLSH"; then
7333 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7334echo "${ECHO_T}$TCLSH" >&6; }
7335else
7336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
7338fi
7339
7340
7341 test -n "$TCLSH" && break
7342done
7343
7344 if test x"${TCLSH}" = x ; then
7345 ac_cv_path_tclsh='';
7346 else
7347 ac_cv_path_tclsh="${TCLSH}";
7348 fi
7349else
7350 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7351echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7352 TCLSH="${ac_cv_path_tclsh}"
7353
7354fi
7355
7356# Extract the first word of "zip", so it can be a program name with args.
7357set dummy zip; ac_word=$2
7358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360if test "${ac_cv_path_ZIP+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363 case $ZIP in
7364 [\\/]* | ?:[\\/]*)
7365 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7366 ;;
7367 *)
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381IFS=$as_save_IFS
7382
7383 ;;
7384esac
7385fi
7386ZIP=$ac_cv_path_ZIP
7387if test -n "$ZIP"; then
7388 { echo "$as_me:$LINENO: result: $ZIP" >&5
7389echo "${ECHO_T}$ZIP" >&6; }
7390else
7391 { echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6; }
7393fi
7394
7395
7396for ac_prog in ocamlc
7397do
7398 # Extract the first word of "$ac_prog", so it can be a program name with args.
7399set dummy $ac_prog; ac_word=$2
7400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402if test "${ac_cv_path_OCAMLC+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405 case $OCAMLC in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7408 ;;
7409 *)
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423IFS=$as_save_IFS
7424
7425 ;;
7426esac
7427fi
7428OCAMLC=$ac_cv_path_OCAMLC
7429if test -n "$OCAMLC"; then
7430 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7431echo "${ECHO_T}$OCAMLC" >&6; }
7432else
7433 { echo "$as_me:$LINENO: result: no" >&5
7434echo "${ECHO_T}no" >&6; }
7435fi
7436
7437
7438 test -n "$OCAMLC" && break
7439done
7440
7441for ac_prog in ocamlopt
7442do
7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
7444set dummy $ac_prog; ac_word=$2
7445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450 case $OCAMLOPT in
7451 [\\/]* | ?:[\\/]*)
7452 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7453 ;;
7454 *)
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467done
7468IFS=$as_save_IFS
7469
7470 ;;
7471esac
7472fi
7473OCAMLOPT=$ac_cv_path_OCAMLOPT
7474if test -n "$OCAMLOPT"; then
7475 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7476echo "${ECHO_T}$OCAMLOPT" >&6; }
7477else
7478 { echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6; }
7480fi
7481
7482
7483 test -n "$OCAMLOPT" && break
7484done
7485
7486for ac_prog in ocamldep
7487do
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489set dummy $ac_prog; ac_word=$2
7490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495 case $OCAMLDEP in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511done
7512done
7513IFS=$as_save_IFS
7514
7515 ;;
7516esac
7517fi
7518OCAMLDEP=$ac_cv_path_OCAMLDEP
7519if test -n "$OCAMLDEP"; then
7520 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7521echo "${ECHO_T}$OCAMLDEP" >&6; }
7522else
7523 { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; }
7525fi
7526
7527
7528 test -n "$OCAMLDEP" && break
7529done
7530
7531for ac_prog in ocamldoc
7532do
7533 # Extract the first word of "$ac_prog", so it can be a program name with args.
7534set dummy $ac_prog; ac_word=$2
7535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540 case $OCAMLDOC in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7543 ;;
7544 *)
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556done
7557done
7558IFS=$as_save_IFS
7559
7560 ;;
7561esac
7562fi
7563OCAMLDOC=$ac_cv_path_OCAMLDOC
7564if test -n "$OCAMLDOC"; then
7565 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7566echo "${ECHO_T}$OCAMLDOC" >&6; }
7567else
7568 { echo "$as_me:$LINENO: result: no" >&5
7569echo "${ECHO_T}no" >&6; }
7570fi
7571
7572
7573 test -n "$OCAMLDOC" && break
7574done
7575
7576for ac_prog in gas as
7577do
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579set dummy $ac_prog; ac_word=$2
7580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582if test "${ac_cv_path_GAS+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 case $GAS in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7588 ;;
7589 *)
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601done
7602done
7603IFS=$as_save_IFS
7604
7605 ;;
7606esac
7607fi
7608GAS=$ac_cv_path_GAS
7609if test -n "$GAS"; then
7610 { echo "$as_me:$LINENO: result: $GAS" >&5
7611echo "${ECHO_T}$GAS" >&6; }
7612else
7613 { echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6; }
7615fi
7616
7617
7618 test -n "$GAS" && break
7619done
7620
7621
7622{ echo "$as_me:$LINENO: checking for linker version" >&5
7623echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7624if test "${llvm_cv_link_version+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627
7628 version_string="$(ld -v 2>&1 | head -1)"
7629
7630 # Check for ld64.
7631 if (echo "$version_string" | grep -q "ld64"); then
Benjamin Kramer00171802012-05-05 15:02:39 +00007632 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarbf79f912011-10-18 23:10:58 +00007633 else
7634 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7635 fi
7636
7637fi
7638{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7639echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7640
7641cat >>confdefs.h <<_ACEOF
7642#define HOST_LINK_VERSION "$llvm_cv_link_version"
7643_ACEOF
7644
7645
7646
7647{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649if test "${llvm_cv_link_use_r+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 ac_ext=c
7653ac_cpp='$CPP $CPPFLAGS'
7654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658 oldcflags="$CFLAGS"
7659 CFLAGS="$CFLAGS -Wl,-R."
7660 cat >conftest.$ac_ext <<_ACEOF
7661/* confdefs.h. */
7662_ACEOF
7663cat confdefs.h >>conftest.$ac_ext
7664cat >>conftest.$ac_ext <<_ACEOF
7665/* end confdefs.h. */
7666
7667int
7668main ()
7669{
7670
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext conftest$ac_exeext
7676if { (ac_try="$ac_link"
7677case "(($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_link") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7690 { (case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693esac
7694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_try") 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703esac
7704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_try") 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 llvm_cv_link_use_r=yes
7710else
7711 echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 llvm_cv_link_use_r=no
7715fi
7716
7717rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719 CFLAGS="$oldcflags"
7720 ac_ext=c
7721ac_cpp='$CPP $CPPFLAGS'
7722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725
7726
7727fi
7728{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7729echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7730if test "$llvm_cv_link_use_r" = yes ; then
7731
7732cat >>confdefs.h <<\_ACEOF
7733#define HAVE_LINK_R 1
7734_ACEOF
7735
7736 fi
7737
7738
7739{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7740echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7741if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 ac_ext=c
7745ac_cpp='$CPP $CPPFLAGS'
7746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750 oldcflags="$CFLAGS"
7751 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7752 cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h. */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h. */
7758
7759int
7760main ()
7761{
7762
7763 ;
7764 return 0;
7765}
7766_ACEOF
7767rm -f conftest.$ac_objext conftest$ac_exeext
7768if { (ac_try="$ac_link"
7769case "(($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_link") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795esac
7796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_try") 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 llvm_cv_link_use_export_dynamic=yes
7802else
7803 echo "$as_me: failed program was:" >&5
7804sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 llvm_cv_link_use_export_dynamic=no
7807fi
7808
7809rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 CFLAGS="$oldcflags"
7812 ac_ext=c
7813ac_cpp='$CPP $CPPFLAGS'
7814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819fi
7820{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7821echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7822if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7823
7824cat >>confdefs.h <<\_ACEOF
7825#define HAVE_LINK_EXPORT_DYNAMIC 1
7826_ACEOF
7827
7828 fi
7829
7830
7831{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7832echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7833if test "${llvm_cv_link_use_version_script+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836 ac_ext=c
7837ac_cpp='$CPP $CPPFLAGS'
7838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842 oldcflags="$CFLAGS"
7843
7844 # The following code is from the autoconf manual,
7845 # "11.13: Limitations of Usual Tools".
7846 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7847 # Use mktemp if possible; otherwise fall back on mkdir,
7848 # with $RANDOM to make collisions less likely.
7849 : ${TMPDIR=/tmp}
7850 {
7851 tmp=`
7852 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7853 ` &&
7854 test -n "$tmp" && test -d "$tmp"
7855 } || {
7856 tmp=$TMPDIR/foo$$-$RANDOM
7857 (umask 077 && mkdir "$tmp")
7858 } || exit $?
7859
7860 echo "{" > "$tmp/export.map"
7861 echo " global: main;" >> "$tmp/export.map"
7862 echo " local: *;" >> "$tmp/export.map"
7863 echo "};" >> "$tmp/export.map"
7864
7865 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7866 cat >conftest.$ac_ext <<_ACEOF
7867/* confdefs.h. */
7868_ACEOF
7869cat confdefs.h >>conftest.$ac_ext
7870cat >>conftest.$ac_ext <<_ACEOF
7871/* end confdefs.h. */
7872
7873int
7874main ()
7875{
7876
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881rm -f conftest.$ac_objext conftest$ac_exeext
7882if { (ac_try="$ac_link"
7883case "(($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_link") 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7896 { (case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_try") 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 llvm_cv_link_use_version_script=yes
7916else
7917 echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 llvm_cv_link_use_version_script=no
7921fi
7922
7923rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 rm "$tmp/export.map"
7926 rmdir "$tmp"
7927 CFLAGS="$oldcflags"
7928 ac_ext=c
7929ac_cpp='$CPP $CPPFLAGS'
7930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934
7935fi
7936{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7937echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7938if test "$llvm_cv_link_use_version_script" = yes ; then
7939 HAVE_LINK_VERSION_SCRIPT=1
7940
7941 fi
7942
7943
7944
7945
7946{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7947echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7948if test "${ac_cv_c_const+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951 cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957
7958int
7959main ()
7960{
7961/* FIXME: Include the comments suggested by Paul. */
7962#ifndef __cplusplus
7963 /* Ultrix mips cc rejects this. */
7964 typedef int charset[2];
7965 const charset x;
7966 /* SunOS 4.1.1 cc rejects this. */
7967 char const *const *ccp;
7968 char **p;
7969 /* NEC SVR4.0.2 mips cc rejects this. */
7970 struct point {int x, y;};
7971 static struct point const zero = {0,0};
7972 /* AIX XL C 1.02.0.0 rejects this.
7973 It does not let you subtract one const X* pointer from another in
7974 an arm of an if-expression whose if-part is not a constant
7975 expression */
7976 const char *g = "string";
7977 ccp = &g + (g ? g-g : 0);
7978 /* HPUX 7.0 cc rejects these. */
7979 ++ccp;
7980 p = (char**) ccp;
7981 ccp = (char const *const *) p;
7982 { /* SCO 3.2v4 cc rejects this. */
7983 char *t;
7984 char const *s = 0 ? (char *) 0 : (char const *) 0;
7985
7986 *t++ = 0;
7987 if (s) return 0;
7988 }
7989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7990 int x[] = {25, 17};
7991 const int *foo = &x[0];
7992 ++foo;
7993 }
7994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7995 typedef const int *iptr;
7996 iptr p = 0;
7997 ++p;
7998 }
7999 { /* AIX XL C 1.02.0.0 rejects this saying
8000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8001 struct s { int j; const int *ap[3]; };
8002 struct s *b; b->j = 5;
8003 }
8004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8005 const int foo = 10;
8006 if (!foo) return 0;
8007 }
8008 return !x[0] && !zero.x;
8009#endif
8010
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext
8016if { (ac_try="$ac_compile"
8017case "(($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_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8030 { (case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_try") 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest.$ac_objext'
8040 { (case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
8044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_try") 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_cv_c_const=yes
8050else
8051 echo "$as_me: failed program was:" >&5
8052sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 ac_cv_c_const=no
8055fi
8056
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058fi
8059{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8060echo "${ECHO_T}$ac_cv_c_const" >&6; }
8061if test $ac_cv_c_const = no; then
8062
8063cat >>confdefs.h <<\_ACEOF
8064#define const
8065_ACEOF
8066
8067fi
8068
8069
8070
8071
8072
8073
8074ac_header_dirent=no
8075for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8076 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8077{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8078echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082 cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088#include <sys/types.h>
8089#include <$ac_hdr>
8090
8091int
8092main ()
8093{
8094if ((DIR *) 0)
8095return 0;
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext
8101if { (ac_try="$ac_compile"
8102case "(($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_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 eval "$as_ac_Header=yes"
8135else
8136 echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 eval "$as_ac_Header=no"
8140fi
8141
8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143fi
8144ac_res=`eval echo '${'$as_ac_Header'}'`
8145 { echo "$as_me:$LINENO: result: $ac_res" >&5
8146echo "${ECHO_T}$ac_res" >&6; }
8147if test `eval echo '${'$as_ac_Header'}'` = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8150_ACEOF
8151
8152ac_header_dirent=$ac_hdr; break
8153fi
8154
8155done
8156# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8157if test $ac_header_dirent = dirent.h; then
8158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160if test "${ac_cv_search_opendir+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163 ac_func_search_save_LIBS=$LIBS
8164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170
8171/* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174#ifdef __cplusplus
8175extern "C"
8176#endif
8177char opendir ();
8178int
8179main ()
8180{
8181return opendir ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186for ac_lib in '' dir; do
8187 if test -z "$ac_lib"; then
8188 ac_res="none required"
8189 else
8190 ac_res=-l$ac_lib
8191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8192 fi
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194if { (ac_try="$ac_link"
8195case "(($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_link") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_search_opendir=$ac_res
8228else
8229 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232
8233fi
8234
8235rm -f core conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext
8237 if test "${ac_cv_search_opendir+set}" = set; then
8238 break
8239fi
8240done
8241if test "${ac_cv_search_opendir+set}" = set; then
8242 :
8243else
8244 ac_cv_search_opendir=no
8245fi
8246rm conftest.$ac_ext
8247LIBS=$ac_func_search_save_LIBS
8248fi
8249{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251ac_res=$ac_cv_search_opendir
8252if test "$ac_res" != no; then
8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255fi
8256
8257else
8258 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8259echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8260if test "${ac_cv_search_opendir+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262else
8263 ac_func_search_save_LIBS=$LIBS
8264cat >conftest.$ac_ext <<_ACEOF
8265/* confdefs.h. */
8266_ACEOF
8267cat confdefs.h >>conftest.$ac_ext
8268cat >>conftest.$ac_ext <<_ACEOF
8269/* end confdefs.h. */
8270
8271/* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8274#ifdef __cplusplus
8275extern "C"
8276#endif
8277char opendir ();
8278int
8279main ()
8280{
8281return opendir ();
8282 ;
8283 return 0;
8284}
8285_ACEOF
8286for ac_lib in '' x; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8289 else
8290 ac_res=-l$ac_lib
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8292 fi
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294if { (ac_try="$ac_link"
8295case "(($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_link") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311esac
8312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 ac_cv_search_opendir=$ac_res
8328else
8329 echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
8332
8333fi
8334
8335rm -f core conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext
8337 if test "${ac_cv_search_opendir+set}" = set; then
8338 break
8339fi
8340done
8341if test "${ac_cv_search_opendir+set}" = set; then
8342 :
8343else
8344 ac_cv_search_opendir=no
8345fi
8346rm conftest.$ac_ext
8347LIBS=$ac_func_search_save_LIBS
8348fi
8349{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8350echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8351ac_res=$ac_cv_search_opendir
8352if test "$ac_res" != no; then
8353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8354
8355fi
8356
8357fi
8358
8359
8360for ac_header in dlfcn.h
8361do
8362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368fi
8369ac_res=`eval echo '${'$as_ac_Header'}'`
8370 { echo "$as_me:$LINENO: result: $ac_res" >&5
8371echo "${ECHO_T}$ac_res" >&6; }
8372else
8373 # Is the header compilable?
8374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382$ac_includes_default
8383#include <$ac_header>
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (ac_try="$ac_compile"
8387case "(($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_compile") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 ac_header_compiler=no
8425fi
8426
8427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8429echo "${ECHO_T}$ac_header_compiler" >&6; }
8430
8431# Is the header present?
8432{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8434cat >conftest.$ac_ext <<_ACEOF
8435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
8440#include <$ac_header>
8441_ACEOF
8442if { (ac_try="$ac_cpp conftest.$ac_ext"
8443case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } >/dev/null; then
8455 if test -s conftest.err; then
8456 ac_cpp_err=$ac_c_preproc_warn_flag
8457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8458 else
8459 ac_cpp_err=
8460 fi
8461else
8462 ac_cpp_err=yes
8463fi
8464if test -z "$ac_cpp_err"; then
8465 ac_header_preproc=yes
8466else
8467 echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 ac_header_preproc=no
8471fi
8472
8473rm -f conftest.err conftest.$ac_ext
8474{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8475echo "${ECHO_T}$ac_header_preproc" >&6; }
8476
8477# So? What about this header?
8478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8479 yes:no: )
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8484 ac_header_preproc=yes
8485 ;;
8486 no:yes:* )
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8499 ( cat <<\_ASBOX
8500## ------------------------------ ##
8501## Report this to bugs@yourdomain ##
8502## ------------------------------ ##
8503_ASBOX
8504 ) | sed "s/^/$as_me: WARNING: /" >&2
8505 ;;
8506esac
8507{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512 eval "$as_ac_Header=\$ac_header_preproc"
8513fi
8514ac_res=`eval echo '${'$as_ac_Header'}'`
8515 { echo "$as_me:$LINENO: result: $ac_res" >&5
8516echo "${ECHO_T}$ac_res" >&6; }
8517
8518fi
8519if test `eval echo '${'$as_ac_Header'}'` = yes; then
8520 cat >>confdefs.h <<_ACEOF
8521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8522_ACEOF
8523
8524fi
8525
8526done
8527
8528# Check whether --enable-ltdl-install was given.
8529if test "${enable_ltdl_install+set}" = set; then
8530 enableval=$enable_ltdl_install;
8531fi
8532
8533
8534
8535
8536if test x"${enable_ltdl_install-no}" != xno; then
8537 INSTALL_LTDL_TRUE=
8538 INSTALL_LTDL_FALSE='#'
8539else
8540 INSTALL_LTDL_TRUE='#'
8541 INSTALL_LTDL_FALSE=
8542fi
8543
8544
8545
8546if test x"${enable_ltdl_convenience-no}" != xno; then
8547 CONVENIENCE_LTDL_TRUE=
8548 CONVENIENCE_LTDL_FALSE='#'
8549else
8550 CONVENIENCE_LTDL_TRUE='#'
8551 CONVENIENCE_LTDL_FALSE=
8552fi
8553
8554
8555{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8556echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8557library_names_spec=
8558libname_spec='lib$name'
8559soname_spec=
8560shrext_cmds=".so"
8561postinstall_cmds=
8562postuninstall_cmds=
8563finish_cmds=
8564finish_eval=
8565shlibpath_var=
8566shlibpath_overrides_runpath=unknown
8567version_type=none
8568dynamic_linker="$host_os ld.so"
8569sys_lib_dlsearch_path_spec="/lib /usr/lib"
8570if test "$GCC" = yes; then
8571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8572 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8573 # if the path contains ";" then we assume it to be the separator
8574 # otherwise default to the standard path separator (i.e. ":") - it is
8575 # assumed that no part of a normal pathname contains ";" but that should
8576 # okay in the real world where ";" in dirpaths is itself problematic.
8577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8578 else
8579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8580 fi
8581else
8582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8583fi
8584need_lib_prefix=unknown
8585hardcode_into_libs=no
8586
8587# when you set need_version to no, make sure it does not cause -set_version
8588# flags to be left without arguments
8589need_version=unknown
8590
8591case $host_os in
8592aix3*)
8593 version_type=linux
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8595 shlibpath_var=LIBPATH
8596
8597 # AIX 3 has no versioning support, so we append a major version to the name.
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 ;;
8600
8601aix4* | aix5*)
8602 version_type=linux
8603 need_lib_prefix=no
8604 need_version=no
8605 hardcode_into_libs=yes
8606 if test "$host_cpu" = ia64; then
8607 # AIX 5 supports IA64
8608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8609 shlibpath_var=LD_LIBRARY_PATH
8610 else
8611 # With GCC up to 2.95.x, collect2 would create an import file
8612 # for dependence libraries. The import file would start with
8613 # the line `#! .'. This would cause the generated library to
8614 # depend on `.', always an invalid library. This was fixed in
8615 # development snapshots of GCC prior to 3.0.
8616 case $host_os in
8617 aix4 | aix4.[01] | aix4.[01].*)
8618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8619 echo ' yes '
8620 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8621 :
8622 else
8623 can_build_shared=no
8624 fi
8625 ;;
8626 esac
8627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8628 # soname into executable. Probably we can add versioning support to
8629 # collect2, so additional links can be useful in future.
8630 if test "$aix_use_runtimelinking" = yes; then
8631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8632 # instead of lib<name>.a to let people know that these are not
8633 # typical AIX shared libraries.
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 else
8636 # We preserve .a as extension for shared libraries through AIX4.2
8637 # and later when we are not doing run time linking.
8638 library_names_spec='${libname}${release}.a $libname.a'
8639 soname_spec='${libname}${release}${shared_ext}$major'
8640 fi
8641 shlibpath_var=LIBPATH
8642 fi
8643 ;;
8644
8645amigaos*)
8646 library_names_spec='$libname.ixlibrary $libname.a'
8647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8648 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'
8649 ;;
8650
8651beos*)
8652 library_names_spec='${libname}${shared_ext}'
8653 dynamic_linker="$host_os ld.so"
8654 shlibpath_var=LIBRARY_PATH
8655 ;;
8656
8657bsdi[45]*)
8658 version_type=linux
8659 need_version=no
8660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8661 soname_spec='${libname}${release}${shared_ext}$major'
8662 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8665 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8666 # the default ld.so.conf also contains /usr/contrib/lib and
8667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8668 # libtool to hard-code these into programs
8669 ;;
8670
8671cygwin* | mingw* | pw32*)
8672 version_type=windows
8673 shrext_cmds=".dll"
8674 need_version=no
8675 need_lib_prefix=no
8676
8677 case $GCC,$host_os in
8678 yes,cygwin* | yes,mingw* | yes,pw32*)
8679 library_names_spec='$libname.dll.a'
8680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8681 postinstall_cmds='base_file=`basename \${file}`~
8682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8683 dldir=$destdir/`dirname \$dlpath`~
8684 test -d \$dldir || mkdir -p \$dldir~
8685 $install_prog $dir/$dlname \$dldir/$dlname~
8686 chmod a+x \$dldir/$dlname'
8687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8688 dlpath=$dir/\$dldll~
8689 $rm \$dlpath'
8690 shlibpath_overrides_runpath=yes
8691
8692 case $host_os in
8693 cygwin*)
8694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8697 ;;
8698 mingw*)
8699 # MinGW DLLs use traditional 'lib' prefix
8700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8703 # It is most probably a Windows format PATH printed by
8704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8705 # path with ; separators, and with drive letters. We can handle the
8706 # drive letters (cygwin fileutils understands them), so leave them,
8707 # especially as we might pass files found there to a mingw objdump,
8708 # which wouldn't understand a cygwinified path. Ahh.
8709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8710 else
8711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8712 fi
8713 ;;
8714 pw32*)
8715 # pw32 DLLs use 'pw' prefix rather than 'lib'
8716 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717 ;;
8718 esac
8719 ;;
8720
8721 *)
8722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8723 ;;
8724 esac
8725 dynamic_linker='Win32 ld.exe'
8726 # FIXME: first we should search . and the directory the executable is in
8727 shlibpath_var=PATH
8728 ;;
8729
8730darwin* | rhapsody*)
8731 dynamic_linker="$host_os dyld"
8732 version_type=darwin
8733 need_lib_prefix=no
8734 need_version=no
8735 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8736 soname_spec='${libname}${release}${major}$shared_ext'
8737 shlibpath_overrides_runpath=yes
8738 shlibpath_var=DYLD_LIBRARY_PATH
8739 shrext_cmds='.dylib'
8740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8741 if test "$GCC" = yes; then
8742 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"`
8743 else
8744 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8745 fi
8746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8747 ;;
8748
8749dgux*)
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 ;;
8757
Rafael Espindola48381e52012-01-31 17:18:47 +00008758freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008759 dynamic_linker=no
8760 ;;
8761
8762kfreebsd*-gnu)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath=no
8770 hardcode_into_libs=yes
8771 dynamic_linker='GNU ld.so'
8772 ;;
8773
8774freebsd* | dragonfly*)
8775 # DragonFly does not have aout. When/if they implement a new
8776 # versioning mechanism, adjust this.
8777 if test -x /usr/bin/objformat; then
8778 objformat=`/usr/bin/objformat`
8779 else
8780 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008781 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008782 *) objformat=elf ;;
8783 esac
8784 fi
8785 version_type=freebsd-$objformat
8786 case $version_type in
8787 freebsd-elf*)
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8789 need_version=no
8790 need_lib_prefix=no
8791 ;;
8792 freebsd-*)
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8794 need_version=yes
8795 ;;
8796 esac
8797 shlibpath_var=LD_LIBRARY_PATH
8798 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008799 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008800 shlibpath_overrides_runpath=yes
8801 ;;
8802 freebsd3.[01]* | freebsdelf3.[01]*)
8803 shlibpath_overrides_runpath=yes
8804 hardcode_into_libs=yes
8805 ;;
8806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8808 shlibpath_overrides_runpath=no
8809 hardcode_into_libs=yes
8810 ;;
8811 freebsd*) # from 4.6 on
8812 shlibpath_overrides_runpath=yes
8813 hardcode_into_libs=yes
8814 ;;
8815 esac
8816 ;;
8817
8818gnu*)
8819 version_type=linux
8820 need_lib_prefix=no
8821 need_version=no
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 hardcode_into_libs=yes
8826 ;;
8827
8828hpux9* | hpux10* | hpux11*)
8829 # Give a soname corresponding to the major version so that dld.sl refuses to
8830 # link against other versions.
8831 version_type=sunos
8832 need_lib_prefix=no
8833 need_version=no
8834 case $host_cpu in
8835 ia64*)
8836 shrext_cmds='.so'
8837 hardcode_into_libs=yes
8838 dynamic_linker="$host_os dld.so"
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 if test "X$HPUX_IA64_MODE" = X32; then
8844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8845 else
8846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8847 fi
8848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849 ;;
8850 hppa*64*)
8851 shrext_cmds='.sl'
8852 hardcode_into_libs=yes
8853 dynamic_linker="$host_os dld.sl"
8854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8860 ;;
8861 *)
8862 shrext_cmds='.sl'
8863 dynamic_linker="$host_os dld.sl"
8864 shlibpath_var=SHLIB_PATH
8865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 ;;
8869 esac
8870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8871 postinstall_cmds='chmod 555 $lib'
8872 ;;
8873
8874interix3*)
8875 version_type=linux
8876 need_lib_prefix=no
8877 need_version=no
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 shlibpath_overrides_runpath=no
8883 hardcode_into_libs=yes
8884 ;;
8885
8886irix5* | irix6* | nonstopux*)
8887 case $host_os in
8888 nonstopux*) version_type=nonstopux ;;
8889 *)
8890 if test "$lt_cv_prog_gnu_ld" = yes; then
8891 version_type=linux
8892 else
8893 version_type=irix
8894 fi ;;
8895 esac
8896 need_lib_prefix=no
8897 need_version=no
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8900 case $host_os in
8901 irix5* | nonstopux*)
8902 libsuff= shlibsuff=
8903 ;;
8904 *)
8905 case $LD in # libtool.m4 will add one of these switches to LD
8906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8907 libsuff= shlibsuff= libmagic=32-bit;;
8908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8909 libsuff=32 shlibsuff=N32 libmagic=N32;;
8910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8912 *) libsuff= shlibsuff= libmagic=never-match;;
8913 esac
8914 ;;
8915 esac
8916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8917 shlibpath_overrides_runpath=no
8918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8920 hardcode_into_libs=yes
8921 ;;
8922
8923# No shared lib support for Linux oldld, aout, or coff.
8924linux*oldld* | linux*aout* | linux*coff*)
8925 dynamic_linker=no
8926 ;;
8927
8928# This must be Linux ELF.
8929linux*)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=no
8938 # This implies no fast_install, which is unacceptable.
8939 # Some rework will be needed to allow for fast_install
8940 # before this can be enabled.
8941 hardcode_into_libs=yes
8942
8943 # Append ld.so.conf contents to the search path
8944 if test -f /etc/ld.so.conf; then
8945 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' ' '`
8946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8947 fi
8948
8949 # We used to test for /lib/ld.so.1 and disable shared libraries on
8950 # powerpc, because MkLinux only supported shared libraries with the
8951 # GNU dynamic linker. Since this was broken with cross compilers,
8952 # most powerpc-linux boxes support dynamic linking these days and
8953 # people can always --disable-shared, the test was removed, and we
8954 # assume the GNU/Linux dynamic linker is in use.
8955 dynamic_linker='GNU/Linux ld.so'
8956 ;;
8957
8958knetbsd*-gnu)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=no
8966 hardcode_into_libs=yes
8967 dynamic_linker='GNU ld.so'
8968 ;;
8969
8970netbsd*)
8971 version_type=sunos
8972 need_lib_prefix=no
8973 need_version=no
8974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8977 dynamic_linker='NetBSD (a.out) ld.so'
8978 else
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 dynamic_linker='NetBSD ld.elf_so'
8982 fi
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8986 ;;
8987
8988newsos6)
8989 version_type=linux
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8993 ;;
8994
8995nto-qnx*)
8996 version_type=linux
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=yes
9003 ;;
9004
9005openbsd*)
9006 version_type=sunos
9007 sys_lib_dlsearch_path_spec="/usr/lib"
9008 need_lib_prefix=no
9009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9010 case $host_os in
9011 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9012 *) need_version=no ;;
9013 esac
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9018 case $host_os in
9019 openbsd2.[89] | openbsd2.[89].*)
9020 shlibpath_overrides_runpath=no
9021 ;;
9022 *)
9023 shlibpath_overrides_runpath=yes
9024 ;;
9025 esac
9026 else
9027 shlibpath_overrides_runpath=yes
9028 fi
9029 ;;
9030
9031os2*)
9032 libname_spec='$name'
9033 shrext_cmds=".dll"
9034 need_lib_prefix=no
9035 library_names_spec='$libname${shared_ext} $libname.a'
9036 dynamic_linker='OS/2 ld.exe'
9037 shlibpath_var=LIBPATH
9038 ;;
9039
9040osf3* | osf4* | osf5*)
9041 version_type=osf
9042 need_lib_prefix=no
9043 need_version=no
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9049 ;;
9050
9051solaris*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 hardcode_into_libs=yes
9060 # ldd complains unless libraries are executable
9061 postinstall_cmds='chmod +x $lib'
9062 ;;
9063
9064sunos4*)
9065 version_type=sunos
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 if test "$with_gnu_ld" = yes; then
9071 need_lib_prefix=no
9072 fi
9073 need_version=yes
9074 ;;
9075
9076sysv4 | sysv4.3*)
9077 version_type=linux
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 case $host_vendor in
9082 sni)
9083 shlibpath_overrides_runpath=no
9084 need_lib_prefix=no
9085 export_dynamic_flag_spec='${wl}-Blargedynsym'
9086 runpath_var=LD_RUN_PATH
9087 ;;
9088 siemens)
9089 need_lib_prefix=no
9090 ;;
9091 motorola)
9092 need_lib_prefix=no
9093 need_version=no
9094 shlibpath_overrides_runpath=no
9095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9096 ;;
9097 esac
9098 ;;
9099
9100sysv4*MP*)
9101 if test -d /usr/nec ;then
9102 version_type=linux
9103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9104 soname_spec='$libname${shared_ext}.$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 fi
9107 ;;
9108
9109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9110 version_type=freebsd-elf
9111 need_lib_prefix=no
9112 need_version=no
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 hardcode_into_libs=yes
9117 if test "$with_gnu_ld" = yes; then
9118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9119 shlibpath_overrides_runpath=no
9120 else
9121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9122 shlibpath_overrides_runpath=yes
9123 case $host_os in
9124 sco3.2v5*)
9125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9126 ;;
9127 esac
9128 fi
9129 sys_lib_dlsearch_path_spec='/usr/lib'
9130 ;;
9131
9132uts4*)
9133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 ;;
9138
9139*)
9140 dynamic_linker=no
9141 ;;
9142esac
9143{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9144echo "${ECHO_T}$dynamic_linker" >&6; }
9145test "$dynamic_linker" = no && can_build_shared=no
9146
9147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9148if test "$GCC" = yes; then
9149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9150fi
9151
9152
9153{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9154echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9155if test "${libltdl_cv_shlibext+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157else
9158
9159module=yes
9160eval libltdl_cv_shlibext=$shrext_cmds
9161
9162fi
9163{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9164echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9165if test -n "$libltdl_cv_shlibext"; then
9166
9167cat >>confdefs.h <<_ACEOF
9168#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9169_ACEOF
9170
9171fi
9172
9173
9174{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9175echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9176if test "${libltdl_cv_shlibpath_var+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178else
9179 libltdl_cv_shlibpath_var="$shlibpath_var"
9180fi
9181{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9182echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9183if test -n "$libltdl_cv_shlibpath_var"; then
9184
9185cat >>confdefs.h <<_ACEOF
9186#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9187_ACEOF
9188
9189fi
9190
9191
9192{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9193echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9194if test "${libltdl_cv_sys_search_path+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196else
9197 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9198fi
9199{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9200echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9201if test -n "$libltdl_cv_sys_search_path"; then
9202 sys_search_path=
9203 for dir in $libltdl_cv_sys_search_path; do
9204 if test -z "$sys_search_path"; then
9205 sys_search_path="$dir"
9206 else
9207 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9208 fi
9209 done
9210
9211cat >>confdefs.h <<_ACEOF
9212#define LTDL_SYSSEARCHPATH "$sys_search_path"
9213_ACEOF
9214
9215fi
9216
9217{ echo "$as_me:$LINENO: checking for objdir" >&5
9218echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9219if test "${libltdl_cv_objdir+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221else
9222 libltdl_cv_objdir="$objdir"
9223 if test -n "$objdir"; then
9224 :
9225 else
9226 rm -f .libs 2>/dev/null
9227 mkdir .libs 2>/dev/null
9228 if test -d .libs; then
9229 libltdl_cv_objdir=.libs
9230 else
9231 # MS-DOS does not allow filenames that begin with a dot.
9232 libltdl_cv_objdir=_libs
9233 fi
9234 rmdir .libs 2>/dev/null
9235 fi
9236
9237fi
9238{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9239echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9240
9241cat >>confdefs.h <<_ACEOF
9242#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9243_ACEOF
9244
9245
9246
9247
9248
9249
9250# Check for command to grab the raw symbol name followed by C symbol from nm.
9251{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9252echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9253if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255else
9256
9257# These are sane defaults that work on at least a few old systems.
9258# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9259
9260# Character class describing NM global symbol codes.
9261symcode='[BCDEGRST]'
9262
9263# Regexp to match symbols that can be accessed directly from C.
9264sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9265
9266# Transform an extracted symbol line into a proper C declaration
9267lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9268
9269# Transform an extracted symbol line into symbol name and symbol address
9270lt_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'"
9271
9272# Define system-specific variables.
9273case $host_os in
9274aix*)
9275 symcode='[BCDT]'
9276 ;;
9277cygwin* | mingw* | pw32*)
9278 symcode='[ABCDGISTW]'
9279 ;;
9280hpux*) # Its linker distinguishes data from code symbols
9281 if test "$host_cpu" = ia64; then
9282 symcode='[ABCDEGRST]'
9283 fi
9284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9285 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'"
9286 ;;
9287linux*)
9288 if test "$host_cpu" = ia64; then
9289 symcode='[ABCDGIRSTW]'
9290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9291 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'"
9292 fi
9293 ;;
9294irix* | nonstopux*)
9295 symcode='[BCDEGRST]'
9296 ;;
9297osf*)
9298 symcode='[BCDEGQRST]'
9299 ;;
9300solaris*)
9301 symcode='[BDRT]'
9302 ;;
9303sco3.2v5*)
9304 symcode='[DT]'
9305 ;;
9306sysv4.2uw2*)
9307 symcode='[DT]'
9308 ;;
9309sysv5* | sco5v6* | unixware* | OpenUNIX*)
9310 symcode='[ABDT]'
9311 ;;
9312sysv4)
9313 symcode='[DFNSTU]'
9314 ;;
9315esac
9316
9317# Handle CRLF in mingw tool chain
9318opt_cr=
9319case $build_os in
9320mingw*)
9321 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9322 ;;
9323esac
9324
9325# If we're using GNU nm, then use its standard symbol codes.
9326case `$NM -V 2>&1` in
9327*GNU* | *'with BFD'*)
9328 symcode='[ABCDGIRSTW]' ;;
9329esac
9330
9331# Try without a prefix undercore, then with it.
9332for ac_symprfx in "" "_"; do
9333
9334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9335 symxfrm="\\1 $ac_symprfx\\2 \\2"
9336
9337 # Write the raw and C identifiers.
9338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9339
9340 # Check to see that the pipe works correctly.
9341 pipe_works=no
9342
9343 rm -f conftest*
9344 cat > conftest.$ac_ext <<EOF
9345#ifdef __cplusplus
9346extern "C" {
9347#endif
9348char nm_test_var;
9349void nm_test_func(){}
9350#ifdef __cplusplus
9351}
9352#endif
9353int main(){nm_test_var='a';nm_test_func();return(0);}
9354EOF
9355
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; then
9361 # Now try to grab the symbols.
9362 nlist=conftest.nm
9363 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } && test -s "$nlist"; then
9368 # Try sorting and uniquifying the output.
9369 if sort "$nlist" | uniq > "$nlist"T; then
9370 mv -f "$nlist"T "$nlist"
9371 else
9372 rm -f "$nlist"T
9373 fi
9374
9375 # Make sure that we snagged all the symbols we need.
9376 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9377 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9378 cat <<EOF > conftest.$ac_ext
9379#ifdef __cplusplus
9380extern "C" {
9381#endif
9382
9383EOF
9384 # Now generate the symbol file.
9385 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9386
9387 cat <<EOF >> conftest.$ac_ext
9388#if defined (__STDC__) && __STDC__
9389# define lt_ptr_t void *
9390#else
9391# define lt_ptr_t char *
9392# define const
9393#endif
9394
9395/* The mapping between symbol names and symbols. */
9396const struct {
9397 const char *name;
9398 lt_ptr_t address;
9399}
9400lt_preloaded_symbols[] =
9401{
9402EOF
9403 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9404 cat <<\EOF >> conftest.$ac_ext
9405 {0, (lt_ptr_t) 0}
9406};
9407
9408#ifdef __cplusplus
9409}
9410#endif
9411EOF
9412 # Now try linking the two files.
9413 mv conftest.$ac_objext conftstm.$ac_objext
9414 lt_save_LIBS="$LIBS"
9415 lt_save_CFLAGS="$CFLAGS"
9416 LIBS="conftstm.$ac_objext"
9417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9423 pipe_works=yes
9424 fi
9425 LIBS="$lt_save_LIBS"
9426 CFLAGS="$lt_save_CFLAGS"
9427 else
9428 echo "cannot find nm_test_func in $nlist" >&5
9429 fi
9430 else
9431 echo "cannot find nm_test_var in $nlist" >&5
9432 fi
9433 else
9434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9435 fi
9436 else
9437 echo "$progname: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 fi
9440 rm -f conftest* conftst*
9441
9442 # Do not use the global_symbol_pipe unless it works.
9443 if test "$pipe_works" = yes; then
9444 break
9445 else
9446 lt_cv_sys_global_symbol_pipe=
9447 fi
9448done
9449
9450fi
9451
9452if test -z "$lt_cv_sys_global_symbol_pipe"; then
9453 lt_cv_sys_global_symbol_to_cdecl=
9454fi
9455if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9456 { echo "$as_me:$LINENO: result: failed" >&5
9457echo "${ECHO_T}failed" >&6; }
9458else
9459 { echo "$as_me:$LINENO: result: ok" >&5
9460echo "${ECHO_T}ok" >&6; }
9461fi
9462
9463
9464{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9465echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9466if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468else
9469 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9470 libltdl_cv_preloaded_symbols=yes
9471 else
9472 libltdl_cv_preloaded_symbols=no
9473 fi
9474
9475fi
9476{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9477echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9478if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9479
9480cat >>confdefs.h <<\_ACEOF
9481#define HAVE_PRELOADED_SYMBOLS 1
9482_ACEOF
9483
9484fi
9485
9486LIBADD_DL=
9487
9488ac_ext=c
9489ac_cpp='$CPP $CPPFLAGS'
9490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492ac_compiler_gnu=$ac_cv_c_compiler_gnu
9493
9494
9495{ echo "$as_me:$LINENO: checking for shl_load" >&5
9496echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9497if test "${ac_cv_func_shl_load+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500 cat >conftest.$ac_ext <<_ACEOF
9501/* confdefs.h. */
9502_ACEOF
9503cat confdefs.h >>conftest.$ac_ext
9504cat >>conftest.$ac_ext <<_ACEOF
9505/* end confdefs.h. */
9506/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9508#define shl_load innocuous_shl_load
9509
9510/* System header to define __stub macros and hopefully few prototypes,
9511 which can conflict with char shl_load (); below.
9512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9513 <limits.h> exists even on freestanding compilers. */
9514
9515#ifdef __STDC__
9516# include <limits.h>
9517#else
9518# include <assert.h>
9519#endif
9520
9521#undef shl_load
9522
9523/* Override any GCC internal prototype to avoid an error.
9524 Use char because int might match the return type of a GCC
9525 builtin and then its argument prototype would still apply. */
9526#ifdef __cplusplus
9527extern "C"
9528#endif
9529char shl_load ();
9530/* The GNU C library defines this for functions which it implements
9531 to always fail with ENOSYS. Some functions are actually named
9532 something starting with __ and the normal name is an alias. */
9533#if defined __stub_shl_load || defined __stub___shl_load
9534choke me
9535#endif
9536
9537int
9538main ()
9539{
9540return shl_load ();
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext conftest$ac_exeext
9546if { (ac_try="$ac_link"
9547case "(($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_link") 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9560 { (case "(($ac_try" in
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9563esac
9564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_try") 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_try") 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_func_shl_load=yes
9580else
9581 echo "$as_me: failed program was:" >&5
9582sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ac_cv_func_shl_load=no
9585fi
9586
9587rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589fi
9590{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9591echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9592if test $ac_cv_func_shl_load = yes; then
9593
9594cat >>confdefs.h <<\_ACEOF
9595#define HAVE_SHL_LOAD 1
9596_ACEOF
9597
9598else
9599 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9600echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9601if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604 ac_check_lib_save_LIBS=$LIBS
9605LIBS="-ldld $LIBS"
9606cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h. */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h. */
9612
9613/* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9616#ifdef __cplusplus
9617extern "C"
9618#endif
9619char shl_load ();
9620int
9621main ()
9622{
9623return shl_load ();
9624 ;
9625 return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (ac_try="$ac_link"
9630case "(($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_link") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_try") 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_lib_dld_shl_load=yes
9663else
9664 echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 ac_cv_lib_dld_shl_load=no
9668fi
9669
9670rm -f core conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672LIBS=$ac_check_lib_save_LIBS
9673fi
9674{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9675echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9676if test $ac_cv_lib_dld_shl_load = yes; then
9677
9678cat >>confdefs.h <<\_ACEOF
9679#define HAVE_SHL_LOAD 1
9680_ACEOF
9681
9682 LIBADD_DL="$LIBADD_DL -ldld"
9683else
9684 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9685echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9686if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 ac_check_lib_save_LIBS=$LIBS
9690LIBS="-ldl $LIBS"
9691cat >conftest.$ac_ext <<_ACEOF
9692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h. */
9697
9698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701#ifdef __cplusplus
9702extern "C"
9703#endif
9704char dlopen ();
9705int
9706main ()
9707{
9708return dlopen ();
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext conftest$ac_exeext
9714if { (ac_try="$ac_link"
9715case "(($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_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_try") 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_lib_dl_dlopen=yes
9748else
9749 echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_lib_dl_dlopen=no
9753fi
9754
9755rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757LIBS=$ac_check_lib_save_LIBS
9758fi
9759{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9760echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9761if test $ac_cv_lib_dl_dlopen = yes; then
9762
9763cat >>confdefs.h <<\_ACEOF
9764#define HAVE_LIBDL 1
9765_ACEOF
9766
9767 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9768else
9769 cat >conftest.$ac_ext <<_ACEOF
9770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>conftest.$ac_ext <<_ACEOF
9774/* end confdefs.h. */
9775#if HAVE_DLFCN_H
9776# include <dlfcn.h>
9777#endif
9778
9779int
9780main ()
9781{
9782dlopen(0, 0);
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (ac_try="$ac_link"
9789case "(($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_link") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805esac
9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; } &&
9811 { ac_try='test -s conftest$ac_exeext'
9812 { (case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815esac
9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_try") 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821
9822cat >>confdefs.h <<\_ACEOF
9823#define HAVE_LIBDL 1
9824_ACEOF
9825 libltdl_cv_func_dlopen="yes"
9826else
9827 echo "$as_me: failed program was:" >&5
9828sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9831echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9832if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835 ac_check_lib_save_LIBS=$LIBS
9836LIBS="-lsvld $LIBS"
9837cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
9843
9844/* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9847#ifdef __cplusplus
9848extern "C"
9849#endif
9850char dlopen ();
9851int
9852main ()
9853{
9854return dlopen ();
9855 ;
9856 return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext conftest$ac_exeext
9860if { (ac_try="$ac_link"
9861case "(($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_link") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_lib_svld_dlopen=yes
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_lib_svld_dlopen=no
9899fi
9900
9901rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903LIBS=$ac_check_lib_save_LIBS
9904fi
9905{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9906echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9907if test $ac_cv_lib_svld_dlopen = yes; then
9908
9909cat >>confdefs.h <<\_ACEOF
9910#define HAVE_LIBDL 1
9911_ACEOF
9912
9913 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9914else
9915 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9916echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9917if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920 ac_check_lib_save_LIBS=$LIBS
9921LIBS="-ldld $LIBS"
9922cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h. */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h. */
9928
9929/* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9932#ifdef __cplusplus
9933extern "C"
9934#endif
9935char dld_link ();
9936int
9937main ()
9938{
9939return dld_link ();
9940 ;
9941 return 0;
9942}
9943_ACEOF
9944rm -f conftest.$ac_objext conftest$ac_exeext
9945if { (ac_try="$ac_link"
9946case "(($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_link") 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_lib_dld_dld_link=yes
9979else
9980 echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 ac_cv_lib_dld_dld_link=no
9984fi
9985
9986rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988LIBS=$ac_check_lib_save_LIBS
9989fi
9990{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9991echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9992if test $ac_cv_lib_dld_dld_link = yes; then
9993
9994cat >>confdefs.h <<\_ACEOF
9995#define HAVE_DLD 1
9996_ACEOF
9997
9998 LIBADD_DL="$LIBADD_DL -ldld"
9999else
10000 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10001echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10002if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005 cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013#define _dyld_func_lookup innocuous__dyld_func_lookup
10014
10015/* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char _dyld_func_lookup (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10019
10020#ifdef __STDC__
10021# include <limits.h>
10022#else
10023# include <assert.h>
10024#endif
10025
10026#undef _dyld_func_lookup
10027
10028/* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031#ifdef __cplusplus
10032extern "C"
10033#endif
10034char _dyld_func_lookup ();
10035/* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10039choke me
10040#endif
10041
10042int
10043main ()
10044{
10045return _dyld_func_lookup ();
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
10051if { (ac_try="$ac_link"
10052case "(($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_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10078esac
10079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_func__dyld_func_lookup=yes
10085else
10086 echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_cv_func__dyld_func_lookup=no
10090fi
10091
10092rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094fi
10095{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10096echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10097if test $ac_cv_func__dyld_func_lookup = yes; then
10098
10099cat >>confdefs.h <<\_ACEOF
10100#define HAVE_DYLD 1
10101_ACEOF
10102
10103fi
10104
10105
10106fi
10107
10108
10109fi
10110
10111
10112fi
10113
10114rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116
10117fi
10118
10119
10120fi
10121
10122
10123fi
10124
10125
10126if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10127then
10128 lt_save_LIBS="$LIBS"
10129 LIBS="$LIBS $LIBADD_DL"
10130
10131for ac_func in dlerror
10132do
10133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10134{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10136if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 cat >conftest.$ac_ext <<_ACEOF
10140/* confdefs.h. */
10141_ACEOF
10142cat confdefs.h >>conftest.$ac_ext
10143cat >>conftest.$ac_ext <<_ACEOF
10144/* end confdefs.h. */
10145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10147#define $ac_func innocuous_$ac_func
10148
10149/* System header to define __stub macros and hopefully few prototypes,
10150 which can conflict with char $ac_func (); below.
10151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10152 <limits.h> exists even on freestanding compilers. */
10153
10154#ifdef __STDC__
10155# include <limits.h>
10156#else
10157# include <assert.h>
10158#endif
10159
10160#undef $ac_func
10161
10162/* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10165#ifdef __cplusplus
10166extern "C"
10167#endif
10168char $ac_func ();
10169/* The GNU C library defines this for functions which it implements
10170 to always fail with ENOSYS. Some functions are actually named
10171 something starting with __ and the normal name is an alias. */
10172#if defined __stub_$ac_func || defined __stub___$ac_func
10173choke me
10174#endif
10175
10176int
10177main ()
10178{
10179return $ac_func ();
10180 ;
10181 return 0;
10182}
10183_ACEOF
10184rm -f conftest.$ac_objext conftest$ac_exeext
10185if { (ac_try="$ac_link"
10186case "(($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_link") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10199 { (case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10202esac
10203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_try") 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest$ac_exeext'
10209 { (case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_try") 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 eval "$as_ac_var=yes"
10219else
10220 echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 eval "$as_ac_var=no"
10224fi
10225
10226rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228fi
10229ac_res=`eval echo '${'$as_ac_var'}'`
10230 { echo "$as_me:$LINENO: result: $ac_res" >&5
10231echo "${ECHO_T}$ac_res" >&6; }
10232if test `eval echo '${'$as_ac_var'}'` = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10235_ACEOF
10236
10237fi
10238done
10239
10240 LIBS="$lt_save_LIBS"
10241fi
10242ac_ext=c
10243ac_cpp='$CPP $CPPFLAGS'
10244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246ac_compiler_gnu=$ac_cv_c_compiler_gnu
10247
10248
10249
10250{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10251echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10252if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 ac_cv_sys_symbol_underscore=no
10256 cat > conftest.$ac_ext <<EOF
10257void nm_test_func(){}
10258int main(){nm_test_func;return 0;}
10259EOF
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; then
10265 # Now try to grab the symbols.
10266 ac_nlist=conftest.nm
10267 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10268 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && test -s "$ac_nlist"; then
10272 # See whether the symbols have a leading underscore.
10273 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10274 ac_cv_sys_symbol_underscore=yes
10275 else
10276 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10277 :
10278 else
10279 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10280 fi
10281 fi
10282 else
10283 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10284 fi
10285 else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.c >&5
10288 fi
10289 rm -rf conftest*
10290
10291fi
10292{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10293echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10294
10295
10296if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10297 if test x"$libltdl_cv_func_dlopen" = xyes ||
10298 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10299 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10300echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10301if test "${libltdl_cv_need_uscore+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
10304 libltdl_cv_need_uscore=unknown
10305 save_LIBS="$LIBS"
10306 LIBS="$LIBS $LIBADD_DL"
10307 if test "$cross_compiling" = yes; then :
10308 libltdl_cv_need_uscore=cross
10309else
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
Tom Stellarda93c8a82012-07-16 14:17:16 +000010313#line 10312 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010314#include "confdefs.h"
10315
10316#if HAVE_DLFCN_H
10317#include <dlfcn.h>
10318#endif
10319
10320#include <stdio.h>
10321
10322#ifdef RTLD_GLOBAL
10323# define LT_DLGLOBAL RTLD_GLOBAL
10324#else
10325# ifdef DL_GLOBAL
10326# define LT_DLGLOBAL DL_GLOBAL
10327# else
10328# define LT_DLGLOBAL 0
10329# endif
10330#endif
10331
10332/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334#ifndef LT_DLLAZY_OR_NOW
10335# ifdef RTLD_LAZY
10336# define LT_DLLAZY_OR_NOW RTLD_LAZY
10337# else
10338# ifdef DL_LAZY
10339# define LT_DLLAZY_OR_NOW DL_LAZY
10340# else
10341# ifdef RTLD_NOW
10342# define LT_DLLAZY_OR_NOW RTLD_NOW
10343# else
10344# ifdef DL_NOW
10345# define LT_DLLAZY_OR_NOW DL_NOW
10346# else
10347# define LT_DLLAZY_OR_NOW 0
10348# endif
10349# endif
10350# endif
10351# endif
10352#endif
10353
10354#ifdef __cplusplus
10355extern "C" void exit (int);
10356#endif
10357
10358void fnord() { int i=42;}
10359int main ()
10360{
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10363
10364 if (self)
10365 {
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10369 }
10370 else
10371 puts (dlerror ());
10372
10373 exit (status);
10374}
10375EOF
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10382 lt_status=$?
10383 case x$lt_status in
10384 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10385 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10386 x$lt_dlunknown|x*) ;;
10387 esac
10388 else :
10389 # compilation failed
10390
10391 fi
10392fi
10393rm -fr conftest*
10394
10395 LIBS="$save_LIBS"
10396
10397fi
10398{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10399echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10400 fi
10401fi
10402
10403if test x"$libltdl_cv_need_uscore" = xyes; then
10404
10405cat >>confdefs.h <<\_ACEOF
10406#define NEED_USCORE 1
10407_ACEOF
10408
10409fi
10410
10411
10412{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10413echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10414if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else
10417 # PORTME does your system automatically load deplibs for dlopen?
10418 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10419 # For now, we just catch OSes we know something about -- in the
10420 # future, we'll try test this programmatically.
10421 libltdl_cv_sys_dlopen_deplibs=unknown
10422 case "$host_os" in
10423 aix3*|aix4.1.*|aix4.2.*)
10424 # Unknown whether this is true for these versions of AIX, but
10425 # we want this `case' here to explicitly catch those versions.
10426 libltdl_cv_sys_dlopen_deplibs=unknown
10427 ;;
10428 aix[45]*)
10429 libltdl_cv_sys_dlopen_deplibs=yes
10430 ;;
10431 darwin*)
10432 # Assuming the user has installed a libdl from somewhere, this is true
10433 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10434 libltdl_cv_sys_dlopen_deplibs=yes
10435 ;;
10436 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10437 # GNU and its variants, using gnu ld.so (Glibc)
10438 libltdl_cv_sys_dlopen_deplibs=yes
10439 ;;
10440 hpux10*|hpux11*)
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 interix*)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 irix[12345]*|irix6.[01]*)
10447 # Catch all versions of IRIX before 6.2, and indicate that we don't
10448 # know how it worked for any of those versions.
10449 libltdl_cv_sys_dlopen_deplibs=unknown
10450 ;;
10451 irix*)
10452 # The case above catches anything before 6.2, and it's known that
10453 # at 6.2 and later dlopen does load deplibs.
10454 libltdl_cv_sys_dlopen_deplibs=yes
10455 ;;
10456 netbsd*)
10457 libltdl_cv_sys_dlopen_deplibs=yes
10458 ;;
10459 openbsd*)
10460 libltdl_cv_sys_dlopen_deplibs=yes
10461 ;;
10462 osf[1234]*)
10463 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10464 # it did *not* use an RPATH in a shared library to find objects the
10465 # library depends on, so we explicitly say `no'.
10466 libltdl_cv_sys_dlopen_deplibs=no
10467 ;;
10468 osf5.0|osf5.0a|osf5.1)
10469 # dlopen *does* load deplibs and with the right loader patch applied
10470 # it even uses RPATH in a shared library to search for shared objects
10471 # that the library depends on, but there's no easy way to know if that
10472 # patch is installed. Since this is the case, all we can really
10473 # say is unknown -- it depends on the patch being installed. If
10474 # it is, this changes to `yes'. Without it, it would be `no'.
10475 libltdl_cv_sys_dlopen_deplibs=unknown
10476 ;;
10477 osf*)
10478 # the two cases above should catch all versions of osf <= 5.1. Read
10479 # the comments above for what we know about them.
10480 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10481 # is used to find them so we can finally say `yes'.
10482 libltdl_cv_sys_dlopen_deplibs=yes
10483 ;;
10484 solaris*)
10485 libltdl_cv_sys_dlopen_deplibs=yes
10486 ;;
10487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10488 libltdl_cv_sys_dlopen_deplibs=yes
10489 ;;
10490 esac
10491
10492fi
10493{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10494echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10495if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define LTDL_DLOPEN_DEPLIBS 1
10499_ACEOF
10500
10501fi
10502
10503
10504for ac_header in argz.h
10505do
10506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512fi
10513ac_res=`eval echo '${'$as_ac_Header'}'`
10514 { echo "$as_me:$LINENO: result: $ac_res" >&5
10515echo "${ECHO_T}$ac_res" >&6; }
10516else
10517 # Is the header compilable?
10518{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10520cat >conftest.$ac_ext <<_ACEOF
10521/* confdefs.h. */
10522_ACEOF
10523cat confdefs.h >>conftest.$ac_ext
10524cat >>conftest.$ac_ext <<_ACEOF
10525/* end confdefs.h. */
10526$ac_includes_default
10527#include <$ac_header>
10528_ACEOF
10529rm -f conftest.$ac_objext
10530if { (ac_try="$ac_compile"
10531case "(($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_compile") 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547esac
10548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557esac
10558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_header_compiler=yes
10564else
10565 echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_header_compiler=no
10569fi
10570
10571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10573echo "${ECHO_T}$ac_header_compiler" >&6; }
10574
10575# Is the header present?
10576{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10578cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584#include <$ac_header>
10585_ACEOF
10586if { (ac_try="$ac_cpp conftest.$ac_ext"
10587case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } >/dev/null; then
10599 if test -s conftest.err; then
10600 ac_cpp_err=$ac_c_preproc_warn_flag
10601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10602 else
10603 ac_cpp_err=
10604 fi
10605else
10606 ac_cpp_err=yes
10607fi
10608if test -z "$ac_cpp_err"; then
10609 ac_header_preproc=yes
10610else
10611 echo "$as_me: failed program was:" >&5
10612sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ac_header_preproc=no
10615fi
10616
10617rm -f conftest.err conftest.$ac_ext
10618{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619echo "${ECHO_T}$ac_header_preproc" >&6; }
10620
10621# So? What about this header?
10622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623 yes:no: )
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628 ac_header_preproc=yes
10629 ;;
10630 no:yes:* )
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10643 ( cat <<\_ASBOX
10644## ------------------------------ ##
10645## Report this to bugs@yourdomain ##
10646## ------------------------------ ##
10647_ASBOX
10648 ) | sed "s/^/$as_me: WARNING: /" >&2
10649 ;;
10650esac
10651{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656 eval "$as_ac_Header=\$ac_header_preproc"
10657fi
10658ac_res=`eval echo '${'$as_ac_Header'}'`
10659 { echo "$as_me:$LINENO: result: $ac_res" >&5
10660echo "${ECHO_T}$ac_res" >&6; }
10661
10662fi
10663if test `eval echo '${'$as_ac_Header'}'` = yes; then
10664 cat >>confdefs.h <<_ACEOF
10665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10666_ACEOF
10667
10668fi
10669
10670done
10671
10672
10673{ echo "$as_me:$LINENO: checking for error_t" >&5
10674echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10675if test "${ac_cv_type_error_t+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677else
10678 cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h. */
10684#if HAVE_ARGZ_H
10685# include <argz.h>
10686#endif
10687
10688typedef error_t ac__type_new_;
10689int
10690main ()
10691{
10692if ((ac__type_new_ *) 0)
10693 return 0;
10694if (sizeof (ac__type_new_))
10695 return 0;
10696 ;
10697 return 0;
10698}
10699_ACEOF
10700rm -f conftest.$ac_objext
10701if { (ac_try="$ac_compile"
10702case "(($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_compile") 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728esac
10729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_try") 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_cv_type_error_t=yes
10735else
10736 echo "$as_me: failed program was:" >&5
10737sed 's/^/| /' conftest.$ac_ext >&5
10738
10739 ac_cv_type_error_t=no
10740fi
10741
10742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743fi
10744{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10745echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10746if test $ac_cv_type_error_t = yes; then
10747
10748cat >>confdefs.h <<_ACEOF
10749#define HAVE_ERROR_T 1
10750_ACEOF
10751
10752
10753else
10754
10755cat >>confdefs.h <<\_ACEOF
10756#define error_t int
10757_ACEOF
10758
10759fi
10760
10761
10762
10763
10764
10765
10766
10767for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10768do
10769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10770{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10772if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774else
10775 cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10783#define $ac_func innocuous_$ac_func
10784
10785/* System header to define __stub macros and hopefully few prototypes,
10786 which can conflict with char $ac_func (); below.
10787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10788 <limits.h> exists even on freestanding compilers. */
10789
10790#ifdef __STDC__
10791# include <limits.h>
10792#else
10793# include <assert.h>
10794#endif
10795
10796#undef $ac_func
10797
10798/* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10801#ifdef __cplusplus
10802extern "C"
10803#endif
10804char $ac_func ();
10805/* The GNU C library defines this for functions which it implements
10806 to always fail with ENOSYS. Some functions are actually named
10807 something starting with __ and the normal name is an alias. */
10808#if defined __stub_$ac_func || defined __stub___$ac_func
10809choke me
10810#endif
10811
10812int
10813main ()
10814{
10815return $ac_func ();
10816 ;
10817 return 0;
10818}
10819_ACEOF
10820rm -f conftest.$ac_objext conftest$ac_exeext
10821if { (ac_try="$ac_link"
10822case "(($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_link") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10838esac
10839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848esac
10849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_try") 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; }; then
10854 eval "$as_ac_var=yes"
10855else
10856 echo "$as_me: failed program was:" >&5
10857sed 's/^/| /' conftest.$ac_ext >&5
10858
10859 eval "$as_ac_var=no"
10860fi
10861
10862rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864fi
10865ac_res=`eval echo '${'$as_ac_var'}'`
10866 { echo "$as_me:$LINENO: result: $ac_res" >&5
10867echo "${ECHO_T}$ac_res" >&6; }
10868if test `eval echo '${'$as_ac_var'}'` = yes; then
10869 cat >>confdefs.h <<_ACEOF
10870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10871_ACEOF
10872
10873fi
10874done
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10904 stdio.h unistd.h
10905do
10906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912fi
10913ac_res=`eval echo '${'$as_ac_Header'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915echo "${ECHO_T}$ac_res" >&6; }
10916else
10917 # Is the header compilable?
10918{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10920cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
10926$ac_includes_default
10927#include <$ac_header>
10928_ACEOF
10929rm -f conftest.$ac_objext
10930if { (ac_try="$ac_compile"
10931case "(($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_compile") 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947esac
10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957esac
10958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_try") 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_header_compiler=yes
10964else
10965 echo "$as_me: failed program was:" >&5
10966sed 's/^/| /' conftest.$ac_ext >&5
10967
10968 ac_header_compiler=no
10969fi
10970
10971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973echo "${ECHO_T}$ac_header_compiler" >&6; }
10974
10975# Is the header present?
10976{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978cat >conftest.$ac_ext <<_ACEOF
10979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
10983/* end confdefs.h. */
10984#include <$ac_header>
10985_ACEOF
10986if { (ac_try="$ac_cpp conftest.$ac_ext"
10987case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11002 else
11003 ac_cpp_err=
11004 fi
11005else
11006 ac_cpp_err=yes
11007fi
11008if test -z "$ac_cpp_err"; then
11009 ac_header_preproc=yes
11010else
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 ac_header_preproc=no
11015fi
11016
11017rm -f conftest.err conftest.$ac_ext
11018{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11019echo "${ECHO_T}$ac_header_preproc" >&6; }
11020
11021# So? What about this header?
11022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11023 yes:no: )
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11028 ac_header_preproc=yes
11029 ;;
11030 no:yes:* )
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11043 ( cat <<\_ASBOX
11044## ------------------------------ ##
11045## Report this to bugs@yourdomain ##
11046## ------------------------------ ##
11047_ASBOX
11048 ) | sed "s/^/$as_me: WARNING: /" >&2
11049 ;;
11050esac
11051{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055else
11056 eval "$as_ac_Header=\$ac_header_preproc"
11057fi
11058ac_res=`eval echo '${'$as_ac_Header'}'`
11059 { echo "$as_me:$LINENO: result: $ac_res" >&5
11060echo "${ECHO_T}$ac_res" >&6; }
11061
11062fi
11063if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11066_ACEOF
11067
11068fi
11069
11070done
11071
11072
11073
11074
11075
11076for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11077do
11078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084fi
11085ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087echo "${ECHO_T}$ac_res" >&6; }
11088else
11089 # Is the header compilable?
11090{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11092cat >conftest.$ac_ext <<_ACEOF
11093/* confdefs.h. */
11094_ACEOF
11095cat confdefs.h >>conftest.$ac_ext
11096cat >>conftest.$ac_ext <<_ACEOF
11097/* end confdefs.h. */
11098$ac_includes_default
11099#include <$ac_header>
11100_ACEOF
11101rm -f conftest.$ac_objext
11102if { (ac_try="$ac_compile"
11103case "(($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_compile") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_try") 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_header_compiler=yes
11136else
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_compiler=no
11141fi
11142
11143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11145echo "${ECHO_T}$ac_header_compiler" >&6; }
11146
11147# Is the header present?
11148{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11150cat >conftest.$ac_ext <<_ACEOF
11151/* confdefs.h. */
11152_ACEOF
11153cat confdefs.h >>conftest.$ac_ext
11154cat >>conftest.$ac_ext <<_ACEOF
11155/* end confdefs.h. */
11156#include <$ac_header>
11157_ACEOF
11158if { (ac_try="$ac_cpp conftest.$ac_ext"
11159case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } >/dev/null; then
11171 if test -s conftest.err; then
11172 ac_cpp_err=$ac_c_preproc_warn_flag
11173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11174 else
11175 ac_cpp_err=
11176 fi
11177else
11178 ac_cpp_err=yes
11179fi
11180if test -z "$ac_cpp_err"; then
11181 ac_header_preproc=yes
11182else
11183 echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_header_preproc=no
11187fi
11188
11189rm -f conftest.err conftest.$ac_ext
11190{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11191echo "${ECHO_T}$ac_header_preproc" >&6; }
11192
11193# So? What about this header?
11194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11195 yes:no: )
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11200 ac_header_preproc=yes
11201 ;;
11202 no:yes:* )
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11210echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11215 ( cat <<\_ASBOX
11216## ------------------------------ ##
11217## Report this to bugs@yourdomain ##
11218## ------------------------------ ##
11219_ASBOX
11220 ) | sed "s/^/$as_me: WARNING: /" >&2
11221 ;;
11222esac
11223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227else
11228 eval "$as_ac_Header=\$ac_header_preproc"
11229fi
11230ac_res=`eval echo '${'$as_ac_Header'}'`
11231 { echo "$as_me:$LINENO: result: $ac_res" >&5
11232echo "${ECHO_T}$ac_res" >&6; }
11233
11234fi
11235if test `eval echo '${'$as_ac_Header'}'` = yes; then
11236 cat >>confdefs.h <<_ACEOF
11237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11238_ACEOF
11239
11240fi
11241
11242done
11243
11244
11245
11246for ac_header in string.h strings.h
11247do
11248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254fi
11255ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257echo "${ECHO_T}$ac_res" >&6; }
11258else
11259 # Is the header compilable?
11260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11262cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268$ac_includes_default
11269#include <$ac_header>
11270_ACEOF
11271rm -f conftest.$ac_objext
11272if { (ac_try="$ac_compile"
11273case "(($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_compile") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_header_compiler=yes
11306else
11307 echo "$as_me: failed program was:" >&5
11308sed 's/^/| /' conftest.$ac_ext >&5
11309
11310 ac_header_compiler=no
11311fi
11312
11313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315echo "${ECHO_T}$ac_header_compiler" >&6; }
11316
11317# Is the header present?
11318{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h. */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h. */
11326#include <$ac_header>
11327_ACEOF
11328if { (ac_try="$ac_cpp conftest.$ac_ext"
11329case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } >/dev/null; then
11341 if test -s conftest.err; then
11342 ac_cpp_err=$ac_c_preproc_warn_flag
11343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344 else
11345 ac_cpp_err=
11346 fi
11347else
11348 ac_cpp_err=yes
11349fi
11350if test -z "$ac_cpp_err"; then
11351 ac_header_preproc=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_header_preproc=no
11357fi
11358
11359rm -f conftest.err conftest.$ac_ext
11360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361echo "${ECHO_T}$ac_header_preproc" >&6; }
11362
11363# So? What about this header?
11364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365 yes:no: )
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc=yes
11371 ;;
11372 no:yes:* )
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385 ( cat <<\_ASBOX
11386## ------------------------------ ##
11387## Report this to bugs@yourdomain ##
11388## ------------------------------ ##
11389_ASBOX
11390 ) | sed "s/^/$as_me: WARNING: /" >&2
11391 ;;
11392esac
11393{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397else
11398 eval "$as_ac_Header=\$ac_header_preproc"
11399fi
11400ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402echo "${ECHO_T}$ac_res" >&6; }
11403
11404fi
11405if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408_ACEOF
11409 break
11410fi
11411
11412done
11413
11414
11415
11416
11417for ac_func in strchr index
11418do
11419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425 cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11433#define $ac_func innocuous_$ac_func
11434
11435/* System header to define __stub macros and hopefully few prototypes,
11436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11439
11440#ifdef __STDC__
11441# include <limits.h>
11442#else
11443# include <assert.h>
11444#endif
11445
11446#undef $ac_func
11447
11448/* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451#ifdef __cplusplus
11452extern "C"
11453#endif
11454char $ac_func ();
11455/* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458#if defined __stub_$ac_func || defined __stub___$ac_func
11459choke me
11460#endif
11461
11462int
11463main ()
11464{
11465return $ac_func ();
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext conftest$ac_exeext
11471if { (ac_try="$ac_link"
11472case "(($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_link") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11505else
11506 echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 eval "$as_ac_var=no"
11510fi
11511
11512rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514fi
11515ac_res=`eval echo '${'$as_ac_var'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517echo "${ECHO_T}$ac_res" >&6; }
11518if test `eval echo '${'$as_ac_var'}'` = yes; then
11519 cat >>confdefs.h <<_ACEOF
11520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11521_ACEOF
11522 break
11523fi
11524done
11525
11526
11527
11528for ac_func in strrchr rindex
11529do
11530as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11533if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535else
11536 cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11544#define $ac_func innocuous_$ac_func
11545
11546/* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func (); below.
11548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11549 <limits.h> exists even on freestanding compilers. */
11550
11551#ifdef __STDC__
11552# include <limits.h>
11553#else
11554# include <assert.h>
11555#endif
11556
11557#undef $ac_func
11558
11559/* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562#ifdef __cplusplus
11563extern "C"
11564#endif
11565char $ac_func ();
11566/* The GNU C library defines this for functions which it implements
11567 to always fail with ENOSYS. Some functions are actually named
11568 something starting with __ and the normal name is an alias. */
11569#if defined __stub_$ac_func || defined __stub___$ac_func
11570choke me
11571#endif
11572
11573int
11574main ()
11575{
11576return $ac_func ();
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext conftest$ac_exeext
11582if { (ac_try="$ac_link"
11583case "(($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_link") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11596 { (case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_try") 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 eval "$as_ac_var=yes"
11616else
11617 echo "$as_me: failed program was:" >&5
11618sed 's/^/| /' conftest.$ac_ext >&5
11619
11620 eval "$as_ac_var=no"
11621fi
11622
11623rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625fi
11626ac_res=`eval echo '${'$as_ac_var'}'`
11627 { echo "$as_me:$LINENO: result: $ac_res" >&5
11628echo "${ECHO_T}$ac_res" >&6; }
11629if test `eval echo '${'$as_ac_var'}'` = yes; then
11630 cat >>confdefs.h <<_ACEOF
11631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11632_ACEOF
11633 break
11634fi
11635done
11636
11637
11638
11639for ac_func in memcpy bcopy
11640do
11641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646else
11647 cat >conftest.$ac_ext <<_ACEOF
11648/* confdefs.h. */
11649_ACEOF
11650cat confdefs.h >>conftest.$ac_ext
11651cat >>conftest.$ac_ext <<_ACEOF
11652/* end confdefs.h. */
11653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655#define $ac_func innocuous_$ac_func
11656
11657/* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11661
11662#ifdef __STDC__
11663# include <limits.h>
11664#else
11665# include <assert.h>
11666#endif
11667
11668#undef $ac_func
11669
11670/* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673#ifdef __cplusplus
11674extern "C"
11675#endif
11676char $ac_func ();
11677/* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680#if defined __stub_$ac_func || defined __stub___$ac_func
11681choke me
11682#endif
11683
11684int
11685main ()
11686{
11687return $ac_func ();
11688 ;
11689 return 0;
11690}
11691_ACEOF
11692rm -f conftest.$ac_objext conftest$ac_exeext
11693if { (ac_try="$ac_link"
11694case "(($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_link") 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710esac
11711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720esac
11721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 eval "$as_ac_var=yes"
11727else
11728 echo "$as_me: failed program was:" >&5
11729sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 eval "$as_ac_var=no"
11732fi
11733
11734rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736fi
11737ac_res=`eval echo '${'$as_ac_var'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739echo "${ECHO_T}$ac_res" >&6; }
11740if test `eval echo '${'$as_ac_var'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11743_ACEOF
11744 break
11745fi
11746done
11747
11748
11749
11750for ac_func in memmove strcmp
11751do
11752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
11758 cat >conftest.$ac_ext <<_ACEOF
11759/* confdefs.h. */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
11764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11766#define $ac_func innocuous_$ac_func
11767
11768/* System header to define __stub macros and hopefully few prototypes,
11769 which can conflict with char $ac_func (); below.
11770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771 <limits.h> exists even on freestanding compilers. */
11772
11773#ifdef __STDC__
11774# include <limits.h>
11775#else
11776# include <assert.h>
11777#endif
11778
11779#undef $ac_func
11780
11781/* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11784#ifdef __cplusplus
11785extern "C"
11786#endif
11787char $ac_func ();
11788/* The GNU C library defines this for functions which it implements
11789 to always fail with ENOSYS. Some functions are actually named
11790 something starting with __ and the normal name is an alias. */
11791#if defined __stub_$ac_func || defined __stub___$ac_func
11792choke me
11793#endif
11794
11795int
11796main ()
11797{
11798return $ac_func ();
11799 ;
11800 return 0;
11801}
11802_ACEOF
11803rm -f conftest.$ac_objext conftest$ac_exeext
11804if { (ac_try="$ac_link"
11805case "(($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_link") 2>conftest.er1
11811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest$ac_exeext'
11828 { (case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_try") 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 eval "$as_ac_var=yes"
11838else
11839 echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 eval "$as_ac_var=no"
11843fi
11844
11845rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11847fi
11848ac_res=`eval echo '${'$as_ac_var'}'`
11849 { echo "$as_me:$LINENO: result: $ac_res" >&5
11850echo "${ECHO_T}$ac_res" >&6; }
11851if test `eval echo '${'$as_ac_var'}'` = yes; then
11852 cat >>confdefs.h <<_ACEOF
11853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11854_ACEOF
11855
11856fi
11857done
11858
11859
11860
11861
11862for ac_func in closedir opendir readdir
11863do
11864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11867if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869else
11870 cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h. */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h. */
11876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11878#define $ac_func innocuous_$ac_func
11879
11880/* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char $ac_func (); below.
11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 <limits.h> exists even on freestanding compilers. */
11884
11885#ifdef __STDC__
11886# include <limits.h>
11887#else
11888# include <assert.h>
11889#endif
11890
11891#undef $ac_func
11892
11893/* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896#ifdef __cplusplus
11897extern "C"
11898#endif
11899char $ac_func ();
11900/* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903#if defined __stub_$ac_func || defined __stub___$ac_func
11904choke me
11905#endif
11906
11907int
11908main ()
11909{
11910return $ac_func ();
11911 ;
11912 return 0;
11913}
11914_ACEOF
11915rm -f conftest.$ac_objext conftest$ac_exeext
11916if { (ac_try="$ac_link"
11917case "(($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_link") 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933esac
11934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943esac
11944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_try") 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 eval "$as_ac_var=yes"
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 eval "$as_ac_var=no"
11955fi
11956
11957rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959fi
11960ac_res=`eval echo '${'$as_ac_var'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962echo "${ECHO_T}$ac_res" >&6; }
11963if test `eval echo '${'$as_ac_var'}'` = yes; then
11964 cat >>confdefs.h <<_ACEOF
11965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11966_ACEOF
11967
11968fi
11969done
11970
11971
11972
11973{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11974echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11975
11976ICC=no
11977IXX=no
11978case $CC in
11979 icc*|icpc*)
11980 ICC=yes
11981 IXX=yes
11982 ;;
11983 *)
11984 ;;
11985esac
11986
11987if test "$GCC" != "yes" && test "$ICC" != "yes"
11988then
11989 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11990echo "$as_me: error: gcc|icc required but not found" >&2;}
11991 { (exit 1); exit 1; }; }
11992fi
11993
11994if test "$GXX" != "yes" && test "$IXX" != "yes"
11995then
11996 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11997echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11998 { (exit 1); exit 1; }; }
11999fi
12000
12001if test "$GCC" = "yes"
12002then
12003 cat >conftest.$ac_ext <<_ACEOF
12004#if !defined(__GNUC__) || __GNUC__ < 3
12005#error Unsupported GCC version
12006#endif
12007
12008_ACEOF
12009rm -f conftest.$ac_objext
12010if { (ac_try="$ac_compile"
12011case "(($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_compile") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024 { (case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_try") 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 :
12044else
12045 echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12049echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12050 { (exit 1); exit 1; }; }
12051fi
12052
12053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054fi
12055
12056if test -z "$llvm_cv_gnu_make_command"
12057then
12058 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12059echo "$as_me: error: GNU Make required but not found" >&2;}
12060 { (exit 1); exit 1; }; }
12061fi
12062
12063{ echo "$as_me:$LINENO: result: ok" >&5
12064echo "${ECHO_T}ok" >&6; }
12065
12066{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12067echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012068NO_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 +000012069
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012070NO_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 +000012071
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012072COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12073
12074{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12075echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012076
12077
12078
12079{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12080echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12081if test "${ac_cv_lib_m_sin+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084 ac_check_lib_save_LIBS=$LIBS
12085LIBS="-lm $LIBS"
12086cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092
12093/* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096#ifdef __cplusplus
12097extern "C"
12098#endif
12099char sin ();
12100int
12101main ()
12102{
12103return sin ();
12104 ;
12105 return 0;
12106}
12107_ACEOF
12108rm -f conftest.$ac_objext conftest$ac_exeext
12109if { (ac_try="$ac_link"
12110case "(($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_link") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest$ac_exeext'
12133 { (case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_try") 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_cv_lib_m_sin=yes
12143else
12144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
12147 ac_cv_lib_m_sin=no
12148fi
12149
12150rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152LIBS=$ac_check_lib_save_LIBS
12153fi
12154{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12155echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12156if test $ac_cv_lib_m_sin = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158#define HAVE_LIBM 1
12159_ACEOF
12160
12161 LIBS="-lm $LIBS"
12162
12163fi
12164
12165if test "$llvm_cv_os_type" = "MingW" ; then
12166
12167{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12168echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12169if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171else
12172 ac_check_lib_save_LIBS=$LIBS
12173LIBS="-limagehlp $LIBS"
12174cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h. */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h. */
12180
12181
12182int
12183main ()
12184{
12185return main ();
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190rm -f conftest.$ac_objext conftest$ac_exeext
12191if { (ac_try="$ac_link"
12192case "(($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_link") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest$ac_exeext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_lib_imagehlp_main=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_cv_lib_imagehlp_main=no
12230fi
12231
12232rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234LIBS=$ac_check_lib_save_LIBS
12235fi
12236{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12237echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12238if test $ac_cv_lib_imagehlp_main = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240#define HAVE_LIBIMAGEHLP 1
12241_ACEOF
12242
12243 LIBS="-limagehlp $LIBS"
12244
12245fi
12246
12247
12248{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12249echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12250if test "${ac_cv_lib_psapi_main+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252else
12253 ac_check_lib_save_LIBS=$LIBS
12254LIBS="-lpsapi $LIBS"
12255cat >conftest.$ac_ext <<_ACEOF
12256/* confdefs.h. */
12257_ACEOF
12258cat confdefs.h >>conftest.$ac_ext
12259cat >>conftest.$ac_ext <<_ACEOF
12260/* end confdefs.h. */
12261
12262
12263int
12264main ()
12265{
12266return main ();
12267 ;
12268 return 0;
12269}
12270_ACEOF
12271rm -f conftest.$ac_objext conftest$ac_exeext
12272if { (ac_try="$ac_link"
12273case "(($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_link") 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12286 { (case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289esac
12290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_try") 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_cv_lib_psapi_main=yes
12306else
12307 echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_cv_lib_psapi_main=no
12311fi
12312
12313rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315LIBS=$ac_check_lib_save_LIBS
12316fi
12317{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12318echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12319if test $ac_cv_lib_psapi_main = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321#define HAVE_LIBPSAPI 1
12322_ACEOF
12323
12324 LIBS="-lpsapi $LIBS"
12325
12326fi
12327
12328fi
12329
12330{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12331echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12332if test "${ac_cv_search_dlopen+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335 ac_func_search_save_LIBS=$LIBS
12336cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
12342
12343/* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12346#ifdef __cplusplus
12347extern "C"
12348#endif
12349char dlopen ();
12350int
12351main ()
12352{
12353return dlopen ();
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358for ac_lib in '' dl; do
12359 if test -z "$ac_lib"; then
12360 ac_res="none required"
12361 else
12362 ac_res=-l$ac_lib
12363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12364 fi
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366if { (ac_try="$ac_link"
12367case "(($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_link") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12393esac
12394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_try") 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_search_dlopen=$ac_res
12400else
12401 echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404
12405fi
12406
12407rm -f core conftest.err conftest.$ac_objext \
12408 conftest$ac_exeext
12409 if test "${ac_cv_search_dlopen+set}" = set; then
12410 break
12411fi
12412done
12413if test "${ac_cv_search_dlopen+set}" = set; then
12414 :
12415else
12416 ac_cv_search_dlopen=no
12417fi
12418rm conftest.$ac_ext
12419LIBS=$ac_func_search_save_LIBS
12420fi
12421{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12422echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12423ac_res=$ac_cv_search_dlopen
12424if test "$ac_res" != no; then
12425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define HAVE_DLOPEN 1
12429_ACEOF
12430
12431else
12432 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12433echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12434fi
12435
12436
12437if test "$llvm_cv_enable_libffi" = "yes" ; then
12438 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12439echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12440if test "${ac_cv_search_ffi_call+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443 ac_func_search_save_LIBS=$LIBS
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450
12451/* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454#ifdef __cplusplus
12455extern "C"
12456#endif
12457char ffi_call ();
12458int
12459main ()
12460{
12461return ffi_call ();
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466for ac_lib in '' ffi; do
12467 if test -z "$ac_lib"; then
12468 ac_res="none required"
12469 else
12470 ac_res=-l$ac_lib
12471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12472 fi
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474if { (ac_try="$ac_link"
12475case "(($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_link") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12488 { (case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491esac
12492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_try") 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_search_ffi_call=$ac_res
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512
12513fi
12514
12515rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext
12517 if test "${ac_cv_search_ffi_call+set}" = set; then
12518 break
12519fi
12520done
12521if test "${ac_cv_search_ffi_call+set}" = set; then
12522 :
12523else
12524 ac_cv_search_ffi_call=no
12525fi
12526rm conftest.$ac_ext
12527LIBS=$ac_func_search_save_LIBS
12528fi
12529{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12530echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12531ac_res=$ac_cv_search_ffi_call
12532if test "$ac_res" != no; then
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12534
12535cat >>confdefs.h <<\_ACEOF
12536#define HAVE_FFI_CALL 1
12537_ACEOF
12538
12539else
12540 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12541echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12542 { (exit 1); exit 1; }; }
12543fi
12544
12545fi
12546
12547{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12548echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12549if test "${ac_cv_search_mallinfo+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551else
12552 ac_func_search_save_LIBS=$LIBS
12553cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559
12560/* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563#ifdef __cplusplus
12564extern "C"
12565#endif
12566char mallinfo ();
12567int
12568main ()
12569{
12570return mallinfo ();
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575for ac_lib in '' malloc; do
12576 if test -z "$ac_lib"; then
12577 ac_res="none required"
12578 else
12579 ac_res=-l$ac_lib
12580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12581 fi
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (ac_try="$ac_link"
12584case "(($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_link") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597 { (case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600esac
12601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_try") 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610esac
12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_try") 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_search_mallinfo=$ac_res
12617else
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621
12622fi
12623
12624rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext
12626 if test "${ac_cv_search_mallinfo+set}" = set; then
12627 break
12628fi
12629done
12630if test "${ac_cv_search_mallinfo+set}" = set; then
12631 :
12632else
12633 ac_cv_search_mallinfo=no
12634fi
12635rm conftest.$ac_ext
12636LIBS=$ac_func_search_save_LIBS
12637fi
12638{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12639echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12640ac_res=$ac_cv_search_mallinfo
12641if test "$ac_res" != no; then
12642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12643
12644cat >>confdefs.h <<\_ACEOF
12645#define HAVE_MALLINFO 1
12646_ACEOF
12647
12648fi
12649
12650
12651if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12652
12653{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12654echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12655if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657else
12658 ac_check_lib_save_LIBS=$LIBS
12659LIBS="-lpthread $LIBS"
12660cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666
12667/* Override any GCC internal prototype to avoid an error.
12668 Use char because int might match the return type of a GCC
12669 builtin and then its argument prototype would still apply. */
12670#ifdef __cplusplus
12671extern "C"
12672#endif
12673char pthread_mutex_init ();
12674int
12675main ()
12676{
12677return pthread_mutex_init ();
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext conftest$ac_exeext
12683if { (ac_try="$ac_link"
12684case "(($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_link") 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12697 { (case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700esac
12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_try") 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710esac
12711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_lib_pthread_pthread_mutex_init=yes
12717else
12718 echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ac_cv_lib_pthread_pthread_mutex_init=no
12722fi
12723
12724rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726LIBS=$ac_check_lib_save_LIBS
12727fi
12728{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12729echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12730if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12731 cat >>confdefs.h <<_ACEOF
12732#define HAVE_LIBPTHREAD 1
12733_ACEOF
12734
12735 LIBS="-lpthread $LIBS"
12736
12737fi
12738
12739 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12740echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12741if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743else
12744 ac_func_search_save_LIBS=$LIBS
12745cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751
12752/* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12755#ifdef __cplusplus
12756extern "C"
12757#endif
12758char pthread_mutex_lock ();
12759int
12760main ()
12761{
12762return pthread_mutex_lock ();
12763 ;
12764 return 0;
12765}
12766_ACEOF
12767for ac_lib in '' pthread; do
12768 if test -z "$ac_lib"; then
12769 ac_res="none required"
12770 else
12771 ac_res=-l$ac_lib
12772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12773 fi
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775if { (ac_try="$ac_link"
12776case "(($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_link") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792esac
12793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_search_pthread_mutex_lock=$ac_res
12809else
12810 echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
12813
12814fi
12815
12816rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext
12818 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12819 break
12820fi
12821done
12822if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12823 :
12824else
12825 ac_cv_search_pthread_mutex_lock=no
12826fi
12827rm conftest.$ac_ext
12828LIBS=$ac_func_search_save_LIBS
12829fi
12830{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12831echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12832ac_res=$ac_cv_search_pthread_mutex_lock
12833if test "$ac_res" != no; then
12834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12835
12836cat >>confdefs.h <<\_ACEOF
12837#define HAVE_PTHREAD_MUTEX_LOCK 1
12838_ACEOF
12839
12840fi
12841
12842 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12843echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12844if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847 ac_func_search_save_LIBS=$LIBS
12848cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h. */
12854
12855/* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858#ifdef __cplusplus
12859extern "C"
12860#endif
12861char pthread_rwlock_init ();
12862int
12863main ()
12864{
12865return pthread_rwlock_init ();
12866 ;
12867 return 0;
12868}
12869_ACEOF
12870for ac_lib in '' pthread; do
12871 if test -z "$ac_lib"; then
12872 ac_res="none required"
12873 else
12874 ac_res=-l$ac_lib
12875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12876 fi
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878if { (ac_try="$ac_link"
12879case "(($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_link") 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905esac
12906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_search_pthread_rwlock_init=$ac_res
12912else
12913 echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916
12917fi
12918
12919rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext
12921 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12922 break
12923fi
12924done
12925if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12926 :
12927else
12928 ac_cv_search_pthread_rwlock_init=no
12929fi
12930rm conftest.$ac_ext
12931LIBS=$ac_func_search_save_LIBS
12932fi
12933{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12934echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12935ac_res=$ac_cv_search_pthread_rwlock_init
12936if test "$ac_res" != no; then
12937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938
12939cat >>confdefs.h <<\_ACEOF
12940#define HAVE_PTHREAD_RWLOCK_INIT 1
12941_ACEOF
12942
12943fi
12944
12945 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12946echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12947if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 ac_func_search_save_LIBS=$LIBS
12951cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957
12958/* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961#ifdef __cplusplus
12962extern "C"
12963#endif
12964char pthread_getspecific ();
12965int
12966main ()
12967{
12968return pthread_getspecific ();
12969 ;
12970 return 0;
12971}
12972_ACEOF
12973for ac_lib in '' pthread; do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12976 else
12977 ac_res=-l$ac_lib
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12979 fi
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981if { (ac_try="$ac_link"
12982case "(($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_link") 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998esac
12999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_search_pthread_getspecific=$ac_res
13015else
13016 echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
13019
13020fi
13021
13022rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext
13024 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13025 break
13026fi
13027done
13028if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13029 :
13030else
13031 ac_cv_search_pthread_getspecific=no
13032fi
13033rm conftest.$ac_ext
13034LIBS=$ac_func_search_save_LIBS
13035fi
13036{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13037echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13038ac_res=$ac_cv_search_pthread_getspecific
13039if test "$ac_res" != no; then
13040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13041
13042cat >>confdefs.h <<\_ACEOF
13043#define HAVE_PTHREAD_GETSPECIFIC 1
13044_ACEOF
13045
13046fi
13047
13048fi
13049
13050
13051# Check whether --with-udis86 was given.
13052if test "${with_udis86+set}" = set; then
13053 withval=$with_udis86;
13054 USE_UDIS86=1
13055
13056 case "$withval" in
13057 /usr/lib|yes) ;;
13058 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13059 esac
13060
13061{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13062echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13063if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066 ac_check_lib_save_LIBS=$LIBS
13067LIBS="-ludis86 $LIBS"
13068cat >conftest.$ac_ext <<_ACEOF
13069/* confdefs.h. */
13070_ACEOF
13071cat confdefs.h >>conftest.$ac_ext
13072cat >>conftest.$ac_ext <<_ACEOF
13073/* end confdefs.h. */
13074
13075/* Override any GCC internal prototype to avoid an error.
13076 Use char because int might match the return type of a GCC
13077 builtin and then its argument prototype would still apply. */
13078#ifdef __cplusplus
13079extern "C"
13080#endif
13081char ud_init ();
13082int
13083main ()
13084{
13085return ud_init ();
13086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest.$ac_objext conftest$ac_exeext
13091if { (ac_try="$ac_link"
13092case "(($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_link") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_try") 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118esac
13119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_try") 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_lib_udis86_ud_init=yes
13125else
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 ac_cv_lib_udis86_ud_init=no
13130fi
13131
13132rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134LIBS=$ac_check_lib_save_LIBS
13135fi
13136{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13137echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13138if test $ac_cv_lib_udis86_ud_init = yes; then
13139 cat >>confdefs.h <<_ACEOF
13140#define HAVE_LIBUDIS86 1
13141_ACEOF
13142
13143 LIBS="-ludis86 $LIBS"
13144
13145else
13146
13147 echo "Error! You need to have libudis86 around."
13148 exit -1
13149
13150fi
13151
13152
13153else
13154 USE_UDIS86=0
13155
13156fi
13157
13158
13159cat >>confdefs.h <<_ACEOF
13160#define USE_UDIS86 $USE_UDIS86
13161_ACEOF
13162
13163
13164
13165# Check whether --with-oprofile was given.
13166if test "${with_oprofile+set}" = set; then
13167 withval=$with_oprofile;
13168 USE_OPROFILE=1
13169
13170 case "$withval" in
13171 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13172 no) llvm_cv_oppath=
13173 USE_OPROFILE=0
13174 ;;
13175 *) llvm_cv_oppath="${withval}/lib/oprofile"
13176 CPPFLAGS="-I${withval}/include";;
13177 esac
13178 if test -n "$llvm_cv_oppath" ; then
13179 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13180 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13181echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13182if test "${ac_cv_search_bfd_init+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185 ac_func_search_save_LIBS=$LIBS
13186cat >conftest.$ac_ext <<_ACEOF
13187/* confdefs.h. */
13188_ACEOF
13189cat confdefs.h >>conftest.$ac_ext
13190cat >>conftest.$ac_ext <<_ACEOF
13191/* end confdefs.h. */
13192
13193/* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196#ifdef __cplusplus
13197extern "C"
13198#endif
13199char bfd_init ();
13200int
13201main ()
13202{
13203return bfd_init ();
13204 ;
13205 return 0;
13206}
13207_ACEOF
13208for ac_lib in '' bfd; do
13209 if test -z "$ac_lib"; then
13210 ac_res="none required"
13211 else
13212 ac_res=-l$ac_lib
13213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13214 fi
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216if { (ac_try="$ac_link"
13217case "(($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_link") 2>conftest.er1
13223 ac_status=$?
13224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233esac
13234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest$ac_exeext'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_search_bfd_init=$ac_res
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254
13255fi
13256
13257rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext
13259 if test "${ac_cv_search_bfd_init+set}" = set; then
13260 break
13261fi
13262done
13263if test "${ac_cv_search_bfd_init+set}" = set; then
13264 :
13265else
13266 ac_cv_search_bfd_init=no
13267fi
13268rm conftest.$ac_ext
13269LIBS=$ac_func_search_save_LIBS
13270fi
13271{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13272echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13273ac_res=$ac_cv_search_bfd_init
13274if test "$ac_res" != no; then
13275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13276
13277fi
13278
13279 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13280echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13281if test "${ac_cv_search_op_open_agent+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283else
13284 ac_func_search_save_LIBS=$LIBS
13285cat >conftest.$ac_ext <<_ACEOF
13286/* confdefs.h. */
13287_ACEOF
13288cat confdefs.h >>conftest.$ac_ext
13289cat >>conftest.$ac_ext <<_ACEOF
13290/* end confdefs.h. */
13291
13292/* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295#ifdef __cplusplus
13296extern "C"
13297#endif
13298char op_open_agent ();
13299int
13300main ()
13301{
13302return op_open_agent ();
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307for ac_lib in '' opagent; do
13308 if test -z "$ac_lib"; then
13309 ac_res="none required"
13310 else
13311 ac_res=-l$ac_lib
13312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13313 fi
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315if { (ac_try="$ac_link"
13316case "(($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_link") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_search_op_open_agent=$ac_res
13349else
13350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353
13354fi
13355
13356rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext
13358 if test "${ac_cv_search_op_open_agent+set}" = set; then
13359 break
13360fi
13361done
13362if test "${ac_cv_search_op_open_agent+set}" = set; then
13363 :
13364else
13365 ac_cv_search_op_open_agent=no
13366fi
13367rm conftest.$ac_ext
13368LIBS=$ac_func_search_save_LIBS
13369fi
13370{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13371echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13372ac_res=$ac_cv_search_op_open_agent
13373if test "$ac_res" != no; then
13374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13375
13376else
13377
13378 echo "Error! You need to have libopagent around."
13379 exit -1
13380
13381fi
13382
13383 if test "${ac_cv_header_opagent_h+set}" = set; then
13384 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13385echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13386if test "${ac_cv_header_opagent_h+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388fi
13389{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13390echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13391else
13392 # Is the header compilable?
13393{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13394echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13395cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401$ac_includes_default
13402#include <opagent.h>
13403_ACEOF
13404rm -f conftest.$ac_objext
13405if { (ac_try="$ac_compile"
13406case "(($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_compile") 2>conftest.er1
13412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_header_compiler=yes
13439else
13440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 ac_header_compiler=no
13444fi
13445
13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13448echo "${ECHO_T}$ac_header_compiler" >&6; }
13449
13450# Is the header present?
13451{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13452echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13453cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459#include <opagent.h>
13460_ACEOF
13461if { (ac_try="$ac_cpp conftest.$ac_ext"
13462case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null; then
13474 if test -s conftest.err; then
13475 ac_cpp_err=$ac_c_preproc_warn_flag
13476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13477 else
13478 ac_cpp_err=
13479 fi
13480else
13481 ac_cpp_err=yes
13482fi
13483if test -z "$ac_cpp_err"; then
13484 ac_header_preproc=yes
13485else
13486 echo "$as_me: failed program was:" >&5
13487sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_header_preproc=no
13490fi
13491
13492rm -f conftest.err conftest.$ac_ext
13493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13494echo "${ECHO_T}$ac_header_preproc" >&6; }
13495
13496# So? What about this header?
13497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13498 yes:no: )
13499 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13500echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13502echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13503 ac_header_preproc=yes
13504 ;;
13505 no:yes:* )
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13507echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13509echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13511echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13513echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13515echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13517echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13518 ( cat <<\_ASBOX
13519## ------------------------------ ##
13520## Report this to bugs@yourdomain ##
13521## ------------------------------ ##
13522_ASBOX
13523 ) | sed "s/^/$as_me: WARNING: /" >&2
13524 ;;
13525esac
13526{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13527echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13528if test "${ac_cv_header_opagent_h+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530else
13531 ac_cv_header_opagent_h=$ac_header_preproc
13532fi
13533{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13534echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13535
13536fi
13537if test $ac_cv_header_opagent_h = yes; then
13538 :
13539else
13540
13541 echo "Error! You need to have opagent.h around."
13542 exit -1
13543
13544fi
13545
13546
13547 fi
13548
13549else
13550
13551 USE_OPROFILE=0
13552
13553
13554fi
13555
13556
13557cat >>confdefs.h <<_ACEOF
13558#define USE_OPROFILE $USE_OPROFILE
13559_ACEOF
13560
13561
13562
13563
13564
13565
13566
13567
13568ac_header_dirent=no
13569for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13570 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13571{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13572echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575else
13576 cat >conftest.$ac_ext <<_ACEOF
13577/* confdefs.h. */
13578_ACEOF
13579cat confdefs.h >>conftest.$ac_ext
13580cat >>conftest.$ac_ext <<_ACEOF
13581/* end confdefs.h. */
13582#include <sys/types.h>
13583#include <$ac_hdr>
13584
13585int
13586main ()
13587{
13588if ((DIR *) 0)
13589return 0;
13590 ;
13591 return 0;
13592}
13593_ACEOF
13594rm -f conftest.$ac_objext
13595if { (ac_try="$ac_compile"
13596case "(($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_compile") 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_try") 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 eval "$as_ac_Header=yes"
13629else
13630 echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
13632
13633 eval "$as_ac_Header=no"
13634fi
13635
13636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637fi
13638ac_res=`eval echo '${'$as_ac_Header'}'`
13639 { echo "$as_me:$LINENO: result: $ac_res" >&5
13640echo "${ECHO_T}$ac_res" >&6; }
13641if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13644_ACEOF
13645
13646ac_header_dirent=$ac_hdr; break
13647fi
13648
13649done
13650# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13651if test $ac_header_dirent = dirent.h; then
13652 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13653echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13654if test "${ac_cv_search_opendir+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656else
13657 ac_func_search_save_LIBS=$LIBS
13658cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664
13665/* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13668#ifdef __cplusplus
13669extern "C"
13670#endif
13671char opendir ();
13672int
13673main ()
13674{
13675return opendir ();
13676 ;
13677 return 0;
13678}
13679_ACEOF
13680for ac_lib in '' dir; do
13681 if test -z "$ac_lib"; then
13682 ac_res="none required"
13683 else
13684 ac_res=-l$ac_lib
13685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13686 fi
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688if { (ac_try="$ac_link"
13689case "(($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_link") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705esac
13706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_search_opendir=$ac_res
13722else
13723 echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
13726
13727fi
13728
13729rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext
13731 if test "${ac_cv_search_opendir+set}" = set; then
13732 break
13733fi
13734done
13735if test "${ac_cv_search_opendir+set}" = set; then
13736 :
13737else
13738 ac_cv_search_opendir=no
13739fi
13740rm conftest.$ac_ext
13741LIBS=$ac_func_search_save_LIBS
13742fi
13743{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13744echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13745ac_res=$ac_cv_search_opendir
13746if test "$ac_res" != no; then
13747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13748
13749fi
13750
13751else
13752 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13753echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13754if test "${ac_cv_search_opendir+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
13757 ac_func_search_save_LIBS=$LIBS
13758cat >conftest.$ac_ext <<_ACEOF
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764
13765/* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13768#ifdef __cplusplus
13769extern "C"
13770#endif
13771char opendir ();
13772int
13773main ()
13774{
13775return opendir ();
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780for ac_lib in '' x; do
13781 if test -z "$ac_lib"; then
13782 ac_res="none required"
13783 else
13784 ac_res=-l$ac_lib
13785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13786 fi
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788if { (ac_try="$ac_link"
13789case "(($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_link") 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest$ac_exeext'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_search_opendir=$ac_res
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826
13827fi
13828
13829rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext
13831 if test "${ac_cv_search_opendir+set}" = set; then
13832 break
13833fi
13834done
13835if test "${ac_cv_search_opendir+set}" = set; then
13836 :
13837else
13838 ac_cv_search_opendir=no
13839fi
13840rm conftest.$ac_ext
13841LIBS=$ac_func_search_save_LIBS
13842fi
13843{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13844echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13845ac_res=$ac_cv_search_opendir
13846if test "$ac_res" != no; then
13847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13848
13849fi
13850
13851fi
13852
13853{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13854echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13855if test "${ac_cv_header_mmap_anon+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857else
13858 ac_ext=c
13859ac_cpp='$CPP $CPPFLAGS'
13860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862ac_compiler_gnu=$ac_cv_c_compiler_gnu
13863
13864 cat >conftest.$ac_ext <<_ACEOF
13865/* confdefs.h. */
13866_ACEOF
13867cat confdefs.h >>conftest.$ac_ext
13868cat >>conftest.$ac_ext <<_ACEOF
13869/* end confdefs.h. */
13870#include <sys/mman.h>
13871#include <unistd.h>
13872#include <fcntl.h>
13873int
13874main ()
13875{
13876mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13877 ;
13878 return 0;
13879}
13880_ACEOF
13881rm -f conftest.$ac_objext
13882if { (ac_try="$ac_compile"
13883case "(($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_compile") 2>conftest.er1
13889 ac_status=$?
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899esac
13900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909esac
13910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_header_mmap_anon=yes
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920 ac_cv_header_mmap_anon=no
13921fi
13922
13923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 ac_ext=c
13925ac_cpp='$CPP $CPPFLAGS'
13926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928ac_compiler_gnu=$ac_cv_c_compiler_gnu
13929
13930
13931fi
13932{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13933echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13934if test "$ac_cv_header_mmap_anon" = yes; then
13935
13936cat >>confdefs.h <<\_ACEOF
13937#define HAVE_MMAP_ANONYMOUS 1
13938_ACEOF
13939
13940fi
13941
13942{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13943echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13944if test "${ac_cv_header_stat_broken+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946else
13947 cat >conftest.$ac_ext <<_ACEOF
13948/* confdefs.h. */
13949_ACEOF
13950cat confdefs.h >>conftest.$ac_ext
13951cat >>conftest.$ac_ext <<_ACEOF
13952/* end confdefs.h. */
13953#include <sys/types.h>
13954#include <sys/stat.h>
13955
13956#if defined S_ISBLK && defined S_IFDIR
13957# if S_ISBLK (S_IFDIR)
13958You lose.
13959# endif
13960#endif
13961
13962#if defined S_ISBLK && defined S_IFCHR
13963# if S_ISBLK (S_IFCHR)
13964You lose.
13965# endif
13966#endif
13967
13968#if defined S_ISLNK && defined S_IFREG
13969# if S_ISLNK (S_IFREG)
13970You lose.
13971# endif
13972#endif
13973
13974#if defined S_ISSOCK && defined S_IFREG
13975# if S_ISSOCK (S_IFREG)
13976You lose.
13977# endif
13978#endif
13979
13980_ACEOF
13981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13982 $EGREP "You lose" >/dev/null 2>&1; then
13983 ac_cv_header_stat_broken=yes
13984else
13985 ac_cv_header_stat_broken=no
13986fi
13987rm -f conftest*
13988
13989fi
13990{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13991echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13992if test $ac_cv_header_stat_broken = yes; then
13993
13994cat >>confdefs.h <<\_ACEOF
13995#define STAT_MACROS_BROKEN 1
13996_ACEOF
13997
13998fi
13999
14000{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14001echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14002if test "${ac_cv_header_sys_wait_h+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004else
14005 cat >conftest.$ac_ext <<_ACEOF
14006/* confdefs.h. */
14007_ACEOF
14008cat confdefs.h >>conftest.$ac_ext
14009cat >>conftest.$ac_ext <<_ACEOF
14010/* end confdefs.h. */
14011#include <sys/types.h>
14012#include <sys/wait.h>
14013#ifndef WEXITSTATUS
14014# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14015#endif
14016#ifndef WIFEXITED
14017# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14018#endif
14019
14020int
14021main ()
14022{
14023 int s;
14024 wait (&s);
14025 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14026 ;
14027 return 0;
14028}
14029_ACEOF
14030rm -f conftest.$ac_objext
14031if { (ac_try="$ac_compile"
14032case "(($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_compile") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048esac
14049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058esac
14059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_header_sys_wait_h=yes
14065else
14066 echo "$as_me: failed program was:" >&5
14067sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_cv_header_sys_wait_h=no
14070fi
14071
14072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073fi
14074{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14075echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14076if test $ac_cv_header_sys_wait_h = yes; then
14077
14078cat >>confdefs.h <<\_ACEOF
14079#define HAVE_SYS_WAIT_H 1
14080_ACEOF
14081
14082fi
14083
14084{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14085echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14086if test "${ac_cv_header_time+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088else
14089 cat >conftest.$ac_ext <<_ACEOF
14090/* confdefs.h. */
14091_ACEOF
14092cat confdefs.h >>conftest.$ac_ext
14093cat >>conftest.$ac_ext <<_ACEOF
14094/* end confdefs.h. */
14095#include <sys/types.h>
14096#include <sys/time.h>
14097#include <time.h>
14098
14099int
14100main ()
14101{
14102if ((struct tm *) 0)
14103return 0;
14104 ;
14105 return 0;
14106}
14107_ACEOF
14108rm -f conftest.$ac_objext
14109if { (ac_try="$ac_compile"
14110case "(($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_compile") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136esac
14137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_header_time=yes
14143else
14144 echo "$as_me: failed program was:" >&5
14145sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ac_cv_header_time=no
14148fi
14149
14150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151fi
14152{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14153echo "${ECHO_T}$ac_cv_header_time" >&6; }
14154if test $ac_cv_header_time = yes; then
14155
14156cat >>confdefs.h <<\_ACEOF
14157#define TIME_WITH_SYS_TIME 1
14158_ACEOF
14159
14160fi
14161
14162
14163
14164
14165
14166
14167
14168
14169for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14170do
14171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14177fi
14178ac_res=`eval echo '${'$as_ac_Header'}'`
14179 { echo "$as_me:$LINENO: result: $ac_res" >&5
14180echo "${ECHO_T}$ac_res" >&6; }
14181else
14182 # Is the header compilable?
14183{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14185cat >conftest.$ac_ext <<_ACEOF
14186/* confdefs.h. */
14187_ACEOF
14188cat confdefs.h >>conftest.$ac_ext
14189cat >>conftest.$ac_ext <<_ACEOF
14190/* end confdefs.h. */
14191$ac_includes_default
14192#include <$ac_header>
14193_ACEOF
14194rm -f conftest.$ac_objext
14195if { (ac_try="$ac_compile"
14196case "(($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_compile") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_header_compiler=yes
14229else
14230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233 ac_header_compiler=no
14234fi
14235
14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14238echo "${ECHO_T}$ac_header_compiler" >&6; }
14239
14240# Is the header present?
14241{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
14249#include <$ac_header>
14250_ACEOF
14251if { (ac_try="$ac_cpp conftest.$ac_ext"
14252case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } >/dev/null; then
14264 if test -s conftest.err; then
14265 ac_cpp_err=$ac_c_preproc_warn_flag
14266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14267 else
14268 ac_cpp_err=
14269 fi
14270else
14271 ac_cpp_err=yes
14272fi
14273if test -z "$ac_cpp_err"; then
14274 ac_header_preproc=yes
14275else
14276 echo "$as_me: failed program was:" >&5
14277sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 ac_header_preproc=no
14280fi
14281
14282rm -f conftest.err conftest.$ac_ext
14283{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284echo "${ECHO_T}$ac_header_preproc" >&6; }
14285
14286# So? What about this header?
14287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14288 yes:no: )
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293 ac_header_preproc=yes
14294 ;;
14295 no:yes:* )
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14303echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14308 ( cat <<\_ASBOX
14309## ------------------------------ ##
14310## Report this to bugs@yourdomain ##
14311## ------------------------------ ##
14312_ASBOX
14313 ) | sed "s/^/$as_me: WARNING: /" >&2
14314 ;;
14315esac
14316{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 eval "$as_ac_Header=\$ac_header_preproc"
14322fi
14323ac_res=`eval echo '${'$as_ac_Header'}'`
14324 { echo "$as_me:$LINENO: result: $ac_res" >&5
14325echo "${ECHO_T}$ac_res" >&6; }
14326
14327fi
14328if test `eval echo '${'$as_ac_Header'}'` = yes; then
14329 cat >>confdefs.h <<_ACEOF
14330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14331_ACEOF
14332
14333fi
14334
14335done
14336
14337
14338
14339
14340
14341
14342
14343for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14344do
14345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351fi
14352ac_res=`eval echo '${'$as_ac_Header'}'`
14353 { echo "$as_me:$LINENO: result: $ac_res" >&5
14354echo "${ECHO_T}$ac_res" >&6; }
14355else
14356 # Is the header compilable?
14357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14359cat >conftest.$ac_ext <<_ACEOF
14360/* confdefs.h. */
14361_ACEOF
14362cat confdefs.h >>conftest.$ac_ext
14363cat >>conftest.$ac_ext <<_ACEOF
14364/* end confdefs.h. */
14365$ac_includes_default
14366#include <$ac_header>
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (ac_try="$ac_compile"
14370case "(($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_compile") 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386esac
14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396esac
14397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_header_compiler=yes
14403else
14404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ac_header_compiler=no
14408fi
14409
14410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412echo "${ECHO_T}$ac_header_compiler" >&6; }
14413
14414# Is the header present?
14415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14417cat >conftest.$ac_ext <<_ACEOF
14418/* confdefs.h. */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h. */
14423#include <$ac_header>
14424_ACEOF
14425if { (ac_try="$ac_cpp conftest.$ac_ext"
14426case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } >/dev/null; then
14438 if test -s conftest.err; then
14439 ac_cpp_err=$ac_c_preproc_warn_flag
14440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14441 else
14442 ac_cpp_err=
14443 fi
14444else
14445 ac_cpp_err=yes
14446fi
14447if test -z "$ac_cpp_err"; then
14448 ac_header_preproc=yes
14449else
14450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_header_preproc=no
14454fi
14455
14456rm -f conftest.err conftest.$ac_ext
14457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458echo "${ECHO_T}$ac_header_preproc" >&6; }
14459
14460# So? What about this header?
14461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14462 yes:no: )
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14467 ac_header_preproc=yes
14468 ;;
14469 no:yes:* )
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14482 ( cat <<\_ASBOX
14483## ------------------------------ ##
14484## Report this to bugs@yourdomain ##
14485## ------------------------------ ##
14486_ASBOX
14487 ) | sed "s/^/$as_me: WARNING: /" >&2
14488 ;;
14489esac
14490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 eval "$as_ac_Header=\$ac_header_preproc"
14496fi
14497ac_res=`eval echo '${'$as_ac_Header'}'`
14498 { echo "$as_me:$LINENO: result: $ac_res" >&5
14499echo "${ECHO_T}$ac_res" >&6; }
14500
14501fi
14502if test `eval echo '${'$as_ac_Header'}'` = yes; then
14503 cat >>confdefs.h <<_ACEOF
14504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14505_ACEOF
14506
14507fi
14508
14509done
14510
14511
14512
14513for ac_header in utime.h windows.h
14514do
14515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521fi
14522ac_res=`eval echo '${'$as_ac_Header'}'`
14523 { echo "$as_me:$LINENO: result: $ac_res" >&5
14524echo "${ECHO_T}$ac_res" >&6; }
14525else
14526 # Is the header compilable?
14527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14529cat >conftest.$ac_ext <<_ACEOF
14530/* confdefs.h. */
14531_ACEOF
14532cat confdefs.h >>conftest.$ac_ext
14533cat >>conftest.$ac_ext <<_ACEOF
14534/* end confdefs.h. */
14535$ac_includes_default
14536#include <$ac_header>
14537_ACEOF
14538rm -f conftest.$ac_objext
14539if { (ac_try="$ac_compile"
14540case "(($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_compile") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_header_compiler=yes
14573else
14574 echo "$as_me: failed program was:" >&5
14575sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_header_compiler=no
14578fi
14579
14580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582echo "${ECHO_T}$ac_header_compiler" >&6; }
14583
14584# Is the header present?
14585{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14587cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593#include <$ac_header>
14594_ACEOF
14595if { (ac_try="$ac_cpp conftest.$ac_ext"
14596case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599esac
14600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } >/dev/null; then
14608 if test -s conftest.err; then
14609 ac_cpp_err=$ac_c_preproc_warn_flag
14610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14611 else
14612 ac_cpp_err=
14613 fi
14614else
14615 ac_cpp_err=yes
14616fi
14617if test -z "$ac_cpp_err"; then
14618 ac_header_preproc=yes
14619else
14620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_header_preproc=no
14624fi
14625
14626rm -f conftest.err conftest.$ac_ext
14627{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14628echo "${ECHO_T}$ac_header_preproc" >&6; }
14629
14630# So? What about this header?
14631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14632 yes:no: )
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14637 ac_header_preproc=yes
14638 ;;
14639 no:yes:* )
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14652 ( cat <<\_ASBOX
14653## ------------------------------ ##
14654## Report this to bugs@yourdomain ##
14655## ------------------------------ ##
14656_ASBOX
14657 ) | sed "s/^/$as_me: WARNING: /" >&2
14658 ;;
14659esac
14660{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 eval "$as_ac_Header=\$ac_header_preproc"
14666fi
14667ac_res=`eval echo '${'$as_ac_Header'}'`
14668 { echo "$as_me:$LINENO: result: $ac_res" >&5
14669echo "${ECHO_T}$ac_res" >&6; }
14670
14671fi
14672if test `eval echo '${'$as_ac_Header'}'` = yes; then
14673 cat >>confdefs.h <<_ACEOF
14674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14675_ACEOF
14676
14677fi
14678
14679done
14680
14681
14682
14683
14684
14685
14686for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14687do
14688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694fi
14695ac_res=`eval echo '${'$as_ac_Header'}'`
14696 { echo "$as_me:$LINENO: result: $ac_res" >&5
14697echo "${ECHO_T}$ac_res" >&6; }
14698else
14699 # Is the header compilable?
14700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14702cat >conftest.$ac_ext <<_ACEOF
14703/* confdefs.h. */
14704_ACEOF
14705cat confdefs.h >>conftest.$ac_ext
14706cat >>conftest.$ac_ext <<_ACEOF
14707/* end confdefs.h. */
14708$ac_includes_default
14709#include <$ac_header>
14710_ACEOF
14711rm -f conftest.$ac_objext
14712if { (ac_try="$ac_compile"
14713case "(($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_compile") 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729esac
14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739esac
14740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_header_compiler=yes
14746else
14747 echo "$as_me: failed program was:" >&5
14748sed 's/^/| /' conftest.$ac_ext >&5
14749
14750 ac_header_compiler=no
14751fi
14752
14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14755echo "${ECHO_T}$ac_header_compiler" >&6; }
14756
14757# Is the header present?
14758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14760cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h. */
14766#include <$ac_header>
14767_ACEOF
14768if { (ac_try="$ac_cpp conftest.$ac_ext"
14769case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } >/dev/null; then
14781 if test -s conftest.err; then
14782 ac_cpp_err=$ac_c_preproc_warn_flag
14783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14784 else
14785 ac_cpp_err=
14786 fi
14787else
14788 ac_cpp_err=yes
14789fi
14790if test -z "$ac_cpp_err"; then
14791 ac_header_preproc=yes
14792else
14793 echo "$as_me: failed program was:" >&5
14794sed 's/^/| /' conftest.$ac_ext >&5
14795
14796 ac_header_preproc=no
14797fi
14798
14799rm -f conftest.err conftest.$ac_ext
14800{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14801echo "${ECHO_T}$ac_header_preproc" >&6; }
14802
14803# So? What about this header?
14804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14805 yes:no: )
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14809echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14810 ac_header_preproc=yes
14811 ;;
14812 no:yes:* )
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14814echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14816echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14818echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14820echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14824echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14825 ( cat <<\_ASBOX
14826## ------------------------------ ##
14827## Report this to bugs@yourdomain ##
14828## ------------------------------ ##
14829_ASBOX
14830 ) | sed "s/^/$as_me: WARNING: /" >&2
14831 ;;
14832esac
14833{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837else
14838 eval "$as_ac_Header=\$ac_header_preproc"
14839fi
14840ac_res=`eval echo '${'$as_ac_Header'}'`
14841 { echo "$as_me:$LINENO: result: $ac_res" >&5
14842echo "${ECHO_T}$ac_res" >&6; }
14843
14844fi
14845if test `eval echo '${'$as_ac_Header'}'` = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14848_ACEOF
14849
14850fi
14851
14852done
14853
14854
14855
14856
14857
14858for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14859do
14860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866fi
14867ac_res=`eval echo '${'$as_ac_Header'}'`
14868 { echo "$as_me:$LINENO: result: $ac_res" >&5
14869echo "${ECHO_T}$ac_res" >&6; }
14870else
14871 # Is the header compilable?
14872{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14873echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14874cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880$ac_includes_default
14881#include <$ac_header>
14882_ACEOF
14883rm -f conftest.$ac_objext
14884if { (ac_try="$ac_compile"
14885case "(($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_compile") 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901esac
14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; } &&
14907 { ac_try='test -s conftest.$ac_objext'
14908 { (case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911esac
14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_try") 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_header_compiler=yes
14918else
14919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_header_compiler=no
14923fi
14924
14925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14927echo "${ECHO_T}$ac_header_compiler" >&6; }
14928
14929# Is the header present?
14930{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14932cat >conftest.$ac_ext <<_ACEOF
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
14938#include <$ac_header>
14939_ACEOF
14940if { (ac_try="$ac_cpp conftest.$ac_ext"
14941case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14944esac
14945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14947 ac_status=$?
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev/null; then
14953 if test -s conftest.err; then
14954 ac_cpp_err=$ac_c_preproc_warn_flag
14955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14956 else
14957 ac_cpp_err=
14958 fi
14959else
14960 ac_cpp_err=yes
14961fi
14962if test -z "$ac_cpp_err"; then
14963 ac_header_preproc=yes
14964else
14965 echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_header_preproc=no
14969fi
14970
14971rm -f conftest.err conftest.$ac_ext
14972{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973echo "${ECHO_T}$ac_header_preproc" >&6; }
14974
14975# So? What about this header?
14976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
14983 ;;
14984 no:yes:* )
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14997 ( cat <<\_ASBOX
14998## ------------------------------ ##
14999## Report this to bugs@yourdomain ##
15000## ------------------------------ ##
15001_ASBOX
15002 ) | sed "s/^/$as_me: WARNING: /" >&2
15003 ;;
15004esac
15005{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009else
15010 eval "$as_ac_Header=\$ac_header_preproc"
15011fi
15012ac_res=`eval echo '${'$as_ac_Header'}'`
15013 { echo "$as_me:$LINENO: result: $ac_res" >&5
15014echo "${ECHO_T}$ac_res" >&6; }
15015
15016fi
15017if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018 cat >>confdefs.h <<_ACEOF
15019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15020_ACEOF
15021
15022fi
15023
15024done
15025
15026
15027for ac_header in valgrind/valgrind.h
15028do
15029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035fi
15036ac_res=`eval echo '${'$as_ac_Header'}'`
15037 { echo "$as_me:$LINENO: result: $ac_res" >&5
15038echo "${ECHO_T}$ac_res" >&6; }
15039else
15040 # Is the header compilable?
15041{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15043cat >conftest.$ac_ext <<_ACEOF
15044/* confdefs.h. */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h. */
15049$ac_includes_default
15050#include <$ac_header>
15051_ACEOF
15052rm -f conftest.$ac_objext
15053if { (ac_try="$ac_compile"
15054case "(($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_compile") 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070esac
15071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080esac
15081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_try") 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_header_compiler=yes
15087else
15088 echo "$as_me: failed program was:" >&5
15089sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 ac_header_compiler=no
15092fi
15093
15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096echo "${ECHO_T}$ac_header_compiler" >&6; }
15097
15098# Is the header present?
15099{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15101cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */
15103_ACEOF
15104cat confdefs.h >>conftest.$ac_ext
15105cat >>conftest.$ac_ext <<_ACEOF
15106/* end confdefs.h. */
15107#include <$ac_header>
15108_ACEOF
15109if { (ac_try="$ac_cpp conftest.$ac_ext"
15110case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113esac
15114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } >/dev/null; then
15122 if test -s conftest.err; then
15123 ac_cpp_err=$ac_c_preproc_warn_flag
15124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15125 else
15126 ac_cpp_err=
15127 fi
15128else
15129 ac_cpp_err=yes
15130fi
15131if test -z "$ac_cpp_err"; then
15132 ac_header_preproc=yes
15133else
15134 echo "$as_me: failed program was:" >&5
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_header_preproc=no
15138fi
15139
15140rm -f conftest.err conftest.$ac_ext
15141{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15142echo "${ECHO_T}$ac_header_preproc" >&6; }
15143
15144# So? What about this header?
15145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15146 yes:no: )
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15151 ac_header_preproc=yes
15152 ;;
15153 no:yes:* )
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15166 ( cat <<\_ASBOX
15167## ------------------------------ ##
15168## Report this to bugs@yourdomain ##
15169## ------------------------------ ##
15170_ASBOX
15171 ) | sed "s/^/$as_me: WARNING: /" >&2
15172 ;;
15173esac
15174{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178else
15179 eval "$as_ac_Header=\$ac_header_preproc"
15180fi
15181ac_res=`eval echo '${'$as_ac_Header'}'`
15182 { echo "$as_me:$LINENO: result: $ac_res" >&5
15183echo "${ECHO_T}$ac_res" >&6; }
15184
15185fi
15186if test `eval echo '${'$as_ac_Header'}'` = yes; then
15187 cat >>confdefs.h <<_ACEOF
15188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15189_ACEOF
15190
15191fi
15192
15193done
15194
15195
15196for ac_header in fenv.h
15197do
15198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204fi
15205ac_res=`eval echo '${'$as_ac_Header'}'`
15206 { echo "$as_me:$LINENO: result: $ac_res" >&5
15207echo "${ECHO_T}$ac_res" >&6; }
15208else
15209 # Is the header compilable?
15210{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219#include <$ac_header>
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (ac_try="$ac_compile"
15223case "(($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_compile") 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239esac
15240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; } &&
15245 { ac_try='test -s conftest.$ac_objext'
15246 { (case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249esac
15250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_try") 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_header_compiler=yes
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_header_compiler=no
15261fi
15262
15263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15265echo "${ECHO_T}$ac_header_compiler" >&6; }
15266
15267# Is the header present?
15268{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15270cat >conftest.$ac_ext <<_ACEOF
15271/* confdefs.h. */
15272_ACEOF
15273cat confdefs.h >>conftest.$ac_ext
15274cat >>conftest.$ac_ext <<_ACEOF
15275/* end confdefs.h. */
15276#include <$ac_header>
15277_ACEOF
15278if { (ac_try="$ac_cpp conftest.$ac_ext"
15279case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282esac
15283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15285 ac_status=$?
15286 grep -v '^ *+' conftest.er1 >conftest.err
15287 rm -f conftest.er1
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } >/dev/null; then
15291 if test -s conftest.err; then
15292 ac_cpp_err=$ac_c_preproc_warn_flag
15293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15294 else
15295 ac_cpp_err=
15296 fi
15297else
15298 ac_cpp_err=yes
15299fi
15300if test -z "$ac_cpp_err"; then
15301 ac_header_preproc=yes
15302else
15303 echo "$as_me: failed program was:" >&5
15304sed 's/^/| /' conftest.$ac_ext >&5
15305
15306 ac_header_preproc=no
15307fi
15308
15309rm -f conftest.err conftest.$ac_ext
15310{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15311echo "${ECHO_T}$ac_header_preproc" >&6; }
15312
15313# So? What about this header?
15314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15315 yes:no: )
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15320 ac_header_preproc=yes
15321 ;;
15322 no:yes:* )
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15335 ( cat <<\_ASBOX
15336## ------------------------------ ##
15337## Report this to bugs@yourdomain ##
15338## ------------------------------ ##
15339_ASBOX
15340 ) | sed "s/^/$as_me: WARNING: /" >&2
15341 ;;
15342esac
15343{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 eval "$as_ac_Header=\$ac_header_preproc"
15349fi
15350ac_res=`eval echo '${'$as_ac_Header'}'`
15351 { echo "$as_me:$LINENO: result: $ac_res" >&5
15352echo "${ECHO_T}$ac_res" >&6; }
15353
15354fi
15355if test `eval echo '${'$as_ac_Header'}'` = yes; then
15356 cat >>confdefs.h <<_ACEOF
15357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15358_ACEOF
15359
15360fi
15361
15362done
15363
15364if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15365
15366for ac_header in pthread.h
15367do
15368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374fi
15375ac_res=`eval echo '${'$as_ac_Header'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377echo "${ECHO_T}$ac_res" >&6; }
15378else
15379 # Is the header compilable?
15380{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15382cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
15388$ac_includes_default
15389#include <$ac_header>
15390_ACEOF
15391rm -f conftest.$ac_objext
15392if { (ac_try="$ac_compile"
15393case "(($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_compile") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409esac
15410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_header_compiler=yes
15426else
15427 echo "$as_me: failed program was:" >&5
15428sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_header_compiler=no
15431fi
15432
15433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15435echo "${ECHO_T}$ac_header_compiler" >&6; }
15436
15437# Is the header present?
15438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15440cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446#include <$ac_header>
15447_ACEOF
15448if { (ac_try="$ac_cpp conftest.$ac_ext"
15449case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15464 else
15465 ac_cpp_err=
15466 fi
15467else
15468 ac_cpp_err=yes
15469fi
15470if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
15472else
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 ac_header_preproc=no
15477fi
15478
15479rm -f conftest.err conftest.$ac_ext
15480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15481echo "${ECHO_T}$ac_header_preproc" >&6; }
15482
15483# So? What about this header?
15484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15485 yes:no: )
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15490 ac_header_preproc=yes
15491 ;;
15492 no:yes:* )
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15505 ( cat <<\_ASBOX
15506## ------------------------------ ##
15507## Report this to bugs@yourdomain ##
15508## ------------------------------ ##
15509_ASBOX
15510 ) | sed "s/^/$as_me: WARNING: /" >&2
15511 ;;
15512esac
15513{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517else
15518 eval "$as_ac_Header=\$ac_header_preproc"
15519fi
15520ac_res=`eval echo '${'$as_ac_Header'}'`
15521 { echo "$as_me:$LINENO: result: $ac_res" >&5
15522echo "${ECHO_T}$ac_res" >&6; }
15523
15524fi
15525if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15528_ACEOF
15529 HAVE_PTHREAD=1
15530
15531else
15532 HAVE_PTHREAD=0
15533
15534fi
15535
15536done
15537
15538else
15539 HAVE_PTHREAD=0
15540
15541fi
15542
15543if test "$llvm_cv_enable_libffi" = "yes" ; then
15544
15545
15546for ac_header in ffi.h ffi/ffi.h
15547do
15548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554fi
15555ac_res=`eval echo '${'$as_ac_Header'}'`
15556 { echo "$as_me:$LINENO: result: $ac_res" >&5
15557echo "${ECHO_T}$ac_res" >&6; }
15558else
15559 # Is the header compilable?
15560{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15562cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569#include <$ac_header>
15570_ACEOF
15571rm -f conftest.$ac_objext
15572if { (ac_try="$ac_compile"
15573case "(($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_compile") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest.$ac_objext'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ac_header_compiler=yes
15606else
15607 echo "$as_me: failed program was:" >&5
15608sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_header_compiler=no
15611fi
15612
15613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15615echo "${ECHO_T}$ac_header_compiler" >&6; }
15616
15617# Is the header present?
15618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15620cat >conftest.$ac_ext <<_ACEOF
15621/* confdefs.h. */
15622_ACEOF
15623cat confdefs.h >>conftest.$ac_ext
15624cat >>conftest.$ac_ext <<_ACEOF
15625/* end confdefs.h. */
15626#include <$ac_header>
15627_ACEOF
15628if { (ac_try="$ac_cpp conftest.$ac_ext"
15629case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632esac
15633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } >/dev/null; then
15641 if test -s conftest.err; then
15642 ac_cpp_err=$ac_c_preproc_warn_flag
15643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15644 else
15645 ac_cpp_err=
15646 fi
15647else
15648 ac_cpp_err=yes
15649fi
15650if test -z "$ac_cpp_err"; then
15651 ac_header_preproc=yes
15652else
15653 echo "$as_me: failed program was:" >&5
15654sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 ac_header_preproc=no
15657fi
15658
15659rm -f conftest.err conftest.$ac_ext
15660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15661echo "${ECHO_T}$ac_header_preproc" >&6; }
15662
15663# So? What about this header?
15664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15665 yes:no: )
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15670 ac_header_preproc=yes
15671 ;;
15672 no:yes:* )
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15685 ( cat <<\_ASBOX
15686## ------------------------------ ##
15687## Report this to bugs@yourdomain ##
15688## ------------------------------ ##
15689_ASBOX
15690 ) | sed "s/^/$as_me: WARNING: /" >&2
15691 ;;
15692esac
15693{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697else
15698 eval "$as_ac_Header=\$ac_header_preproc"
15699fi
15700ac_res=`eval echo '${'$as_ac_Header'}'`
15701 { echo "$as_me:$LINENO: result: $ac_res" >&5
15702echo "${ECHO_T}$ac_res" >&6; }
15703
15704fi
15705if test `eval echo '${'$as_ac_Header'}'` = yes; then
15706 cat >>confdefs.h <<_ACEOF
15707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15708_ACEOF
15709
15710fi
15711
15712done
15713
15714fi
15715
15716
15717for ac_header in CrashReporterClient.h
15718do
15719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725fi
15726ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728echo "${ECHO_T}$ac_res" >&6; }
15729else
15730 # Is the header compilable?
15731{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15733cat >conftest.$ac_ext <<_ACEOF
15734/* confdefs.h. */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h. */
15739$ac_includes_default
15740#include <$ac_header>
15741_ACEOF
15742rm -f conftest.$ac_objext
15743if { (ac_try="$ac_compile"
15744case "(($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_compile") 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760esac
15761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770esac
15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler=yes
15777else
15778 echo "$as_me: failed program was:" >&5
15779sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_header_compiler=no
15782fi
15783
15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786echo "${ECHO_T}$ac_header_compiler" >&6; }
15787
15788# Is the header present?
15789{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15791cat >conftest.$ac_ext <<_ACEOF
15792/* confdefs.h. */
15793_ACEOF
15794cat confdefs.h >>conftest.$ac_ext
15795cat >>conftest.$ac_ext <<_ACEOF
15796/* end confdefs.h. */
15797#include <$ac_header>
15798_ACEOF
15799if { (ac_try="$ac_cpp conftest.$ac_ext"
15800case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803esac
15804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev/null; then
15812 if test -s conftest.err; then
15813 ac_cpp_err=$ac_c_preproc_warn_flag
15814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15815 else
15816 ac_cpp_err=
15817 fi
15818else
15819 ac_cpp_err=yes
15820fi
15821if test -z "$ac_cpp_err"; then
15822 ac_header_preproc=yes
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827 ac_header_preproc=no
15828fi
15829
15830rm -f conftest.err conftest.$ac_ext
15831{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15832echo "${ECHO_T}$ac_header_preproc" >&6; }
15833
15834# So? What about this header?
15835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15836 yes:no: )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15841 ac_header_preproc=yes
15842 ;;
15843 no:yes:* )
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15856 ( cat <<\_ASBOX
15857## ------------------------------ ##
15858## Report this to bugs@yourdomain ##
15859## ------------------------------ ##
15860_ASBOX
15861 ) | sed "s/^/$as_me: WARNING: /" >&2
15862 ;;
15863esac
15864{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868else
15869 eval "$as_ac_Header=\$ac_header_preproc"
15870fi
15871ac_res=`eval echo '${'$as_ac_Header'}'`
15872 { echo "$as_me:$LINENO: result: $ac_res" >&5
15873echo "${ECHO_T}$ac_res" >&6; }
15874
15875fi
15876if test `eval echo '${'$as_ac_Header'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879_ACEOF
15880
15881fi
15882
15883done
15884
15885
15886{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15887echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15888cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h. */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h. */
15894extern const char *__crashreporter_info__;
15895 int main() {
15896 __crashreporter_info__ = "test";
15897 return 0;
15898 }
15899
15900_ACEOF
15901rm -f conftest.$ac_objext conftest$ac_exeext
15902if { (ac_try="$ac_link"
15903case "(($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_link") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919esac
15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest$ac_exeext'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 { echo "$as_me:$LINENO: result: yes" >&5
15936echo "${ECHO_T}yes" >&6; }
15937
15938cat >>confdefs.h <<\_ACEOF
15939#define HAVE_CRASHREPORTER_INFO 1
15940_ACEOF
15941
15942else
15943 echo "$as_me: failed program was:" >&5
15944sed 's/^/| /' conftest.$ac_ext >&5
15945
15946 { echo "$as_me:$LINENO: result: no" >&5
15947echo "${ECHO_T}no" >&6; }
15948
15949cat >>confdefs.h <<\_ACEOF
15950#define HAVE_CRASHREPORTER_INFO 0
15951_ACEOF
15952
15953fi
15954
15955rm -f core conftest.err conftest.$ac_objext \
15956 conftest$ac_exeext conftest.$ac_ext
15957
15958
15959
15960
15961 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15962echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15963if test "${ac_cv_huge_val_sanity+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965else
15966
15967 ac_ext=cpp
15968ac_cpp='$CXXCPP $CPPFLAGS'
15969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15972
15973 ac_save_CXXFLAGS=$CXXFLAGS
Benjamin Kramer00171802012-05-05 15:02:39 +000015974 CXXFLAGS="$CXXFLAGS -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000015975 if test "$cross_compiling" = yes; then
15976 ac_cv_huge_val_sanity=yes
15977else
15978 cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984#include <math.h>
15985int
15986main ()
15987{
15988double x = HUGE_VAL; return x != x;
15989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest$ac_exeext
15994if { (ac_try="$ac_link"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007esac
16008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_cv_huge_val_sanity=yes
16014else
16015 echo "$as_me: program exited with status $ac_status" >&5
16016echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019( exit $ac_status )
16020ac_cv_huge_val_sanity=no
16021fi
16022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16023fi
16024
16025
16026 CXXFLAGS=$ac_save_CXXFLAGS
16027 ac_ext=c
16028ac_cpp='$CPP $CPPFLAGS'
16029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031ac_compiler_gnu=$ac_cv_c_compiler_gnu
16032
16033
16034fi
16035{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16036echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16037 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16038
16039
16040{ echo "$as_me:$LINENO: checking for pid_t" >&5
16041echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16042if test "${ac_cv_type_pid_t+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16044else
16045 cat >conftest.$ac_ext <<_ACEOF
16046/* confdefs.h. */
16047_ACEOF
16048cat confdefs.h >>conftest.$ac_ext
16049cat >>conftest.$ac_ext <<_ACEOF
16050/* end confdefs.h. */
16051$ac_includes_default
16052typedef pid_t ac__type_new_;
16053int
16054main ()
16055{
16056if ((ac__type_new_ *) 0)
16057 return 0;
16058if (sizeof (ac__type_new_))
16059 return 0;
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest.$ac_objext
16065if { (ac_try="$ac_compile"
16066case "(($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_compile") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082esac
16083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_type_pid_t=yes
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_cv_type_pid_t=no
16104fi
16105
16106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107fi
16108{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16109echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16110if test $ac_cv_type_pid_t = yes; then
16111 :
16112else
16113
16114cat >>confdefs.h <<_ACEOF
16115#define pid_t int
16116_ACEOF
16117
16118fi
16119
16120{ echo "$as_me:$LINENO: checking for size_t" >&5
16121echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16122if test "${ac_cv_type_size_t+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124else
16125 cat >conftest.$ac_ext <<_ACEOF
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
16131$ac_includes_default
16132typedef size_t ac__type_new_;
16133int
16134main ()
16135{
16136if ((ac__type_new_ *) 0)
16137 return 0;
16138if (sizeof (ac__type_new_))
16139 return 0;
16140 ;
16141 return 0;
16142}
16143_ACEOF
16144rm -f conftest.$ac_objext
16145if { (ac_try="$ac_compile"
16146case "(($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_compile") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; } &&
16168 { ac_try='test -s conftest.$ac_objext'
16169 { (case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_try") 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_type_size_t=yes
16179else
16180 echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_cv_type_size_t=no
16184fi
16185
16186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187fi
16188{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16189echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16190if test $ac_cv_type_size_t = yes; then
16191 :
16192else
16193
16194cat >>confdefs.h <<_ACEOF
16195#define size_t unsigned int
16196_ACEOF
16197
16198fi
16199
16200
16201cat >>confdefs.h <<_ACEOF
16202#define RETSIGTYPE void
16203_ACEOF
16204
16205{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16206echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16207if test "${ac_cv_struct_tm+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209else
16210 cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216#include <sys/types.h>
16217#include <time.h>
16218
16219int
16220main ()
16221{
16222struct tm *tp; tp->tm_sec;
16223 ;
16224 return 0;
16225}
16226_ACEOF
16227rm -f conftest.$ac_objext
16228if { (ac_try="$ac_compile"
16229case "(($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_compile") 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_try") 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255esac
16256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_struct_tm=time.h
16262else
16263 echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_cv_struct_tm=sys/time.h
16267fi
16268
16269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270fi
16271{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16272echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16273if test $ac_cv_struct_tm = sys/time.h; then
16274
16275cat >>confdefs.h <<\_ACEOF
16276#define TM_IN_SYS_TIME 1
16277_ACEOF
16278
16279fi
16280
16281{ echo "$as_me:$LINENO: checking for int64_t" >&5
16282echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16283if test "${ac_cv_type_int64_t+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285else
16286 cat >conftest.$ac_ext <<_ACEOF
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292$ac_includes_default
16293typedef int64_t ac__type_new_;
16294int
16295main ()
16296{
16297if ((ac__type_new_ *) 0)
16298 return 0;
16299if (sizeof (ac__type_new_))
16300 return 0;
16301 ;
16302 return 0;
16303}
16304_ACEOF
16305rm -f conftest.$ac_objext
16306if { (ac_try="$ac_compile"
16307case "(($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_compile") 2>conftest.er1
16313 ac_status=$?
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest.$ac_objext'
16330 { (case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16333esac
16334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_try") 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 ac_cv_type_int64_t=yes
16340else
16341 echo "$as_me: failed program was:" >&5
16342sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 ac_cv_type_int64_t=no
16345fi
16346
16347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348fi
16349{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16350echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16351if test $ac_cv_type_int64_t = yes; then
16352
16353cat >>confdefs.h <<_ACEOF
16354#define HAVE_INT64_T 1
16355_ACEOF
16356
16357
16358else
16359 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16360echo "$as_me: error: Type int64_t required but not found" >&2;}
16361 { (exit 1); exit 1; }; }
16362fi
16363
16364{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16365echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16366if test "${ac_cv_type_uint64_t+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368else
16369 cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376typedef uint64_t ac__type_new_;
16377int
16378main ()
16379{
16380if ((ac__type_new_ *) 0)
16381 return 0;
16382if (sizeof (ac__type_new_))
16383 return 0;
16384 ;
16385 return 0;
16386}
16387_ACEOF
16388rm -f conftest.$ac_objext
16389if { (ac_try="$ac_compile"
16390case "(($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_compile") 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest.$ac_objext'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16416esac
16417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_type_uint64_t=yes
16423else
16424 echo "$as_me: failed program was:" >&5
16425sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 ac_cv_type_uint64_t=no
16428fi
16429
16430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431fi
16432{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16433echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16434if test $ac_cv_type_uint64_t = yes; then
16435
16436cat >>confdefs.h <<_ACEOF
16437#define HAVE_UINT64_T 1
16438_ACEOF
16439
16440
16441else
16442 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16443echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16444if test "${ac_cv_type_u_int64_t+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453$ac_includes_default
16454typedef u_int64_t ac__type_new_;
16455int
16456main ()
16457{
16458if ((ac__type_new_ *) 0)
16459 return 0;
16460if (sizeof (ac__type_new_))
16461 return 0;
16462 ;
16463 return 0;
16464}
16465_ACEOF
16466rm -f conftest.$ac_objext
16467if { (ac_try="$ac_compile"
16468case "(($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_compile") 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest.$ac_objext'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16494esac
16495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_cv_type_u_int64_t=yes
16501else
16502 echo "$as_me: failed program was:" >&5
16503sed 's/^/| /' conftest.$ac_ext >&5
16504
16505 ac_cv_type_u_int64_t=no
16506fi
16507
16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509fi
16510{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16511echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16512if test $ac_cv_type_u_int64_t = yes; then
16513
16514cat >>confdefs.h <<_ACEOF
16515#define HAVE_U_INT64_T 1
16516_ACEOF
16517
16518
16519else
16520 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16521echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16522 { (exit 1); exit 1; }; }
16523fi
16524
16525fi
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16537do
16538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544 cat >conftest.$ac_ext <<_ACEOF
16545/* confdefs.h. */
16546_ACEOF
16547cat confdefs.h >>conftest.$ac_ext
16548cat >>conftest.$ac_ext <<_ACEOF
16549/* end confdefs.h. */
16550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16552#define $ac_func innocuous_$ac_func
16553
16554/* System header to define __stub macros and hopefully few prototypes,
16555 which can conflict with char $ac_func (); below.
16556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16557 <limits.h> exists even on freestanding compilers. */
16558
16559#ifdef __STDC__
16560# include <limits.h>
16561#else
16562# include <assert.h>
16563#endif
16564
16565#undef $ac_func
16566
16567/* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16570#ifdef __cplusplus
16571extern "C"
16572#endif
16573char $ac_func ();
16574/* The GNU C library defines this for functions which it implements
16575 to always fail with ENOSYS. Some functions are actually named
16576 something starting with __ and the normal name is an alias. */
16577#if defined __stub_$ac_func || defined __stub___$ac_func
16578choke me
16579#endif
16580
16581int
16582main ()
16583{
16584return $ac_func ();
16585 ;
16586 return 0;
16587}
16588_ACEOF
16589rm -f conftest.$ac_objext conftest$ac_exeext
16590if { (ac_try="$ac_link"
16591case "(($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_link") 2>conftest.er1
16597 ac_status=$?
16598 grep -v '^ *+' conftest.er1 >conftest.err
16599 rm -f conftest.er1
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604 { (case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16607esac
16608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_try") 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest$ac_exeext'
16614 { (case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617esac
16618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_try") 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 eval "$as_ac_var=yes"
16624else
16625 echo "$as_me: failed program was:" >&5
16626sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 eval "$as_ac_var=no"
16629fi
16630
16631rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16633fi
16634ac_res=`eval echo '${'$as_ac_var'}'`
16635 { echo "$as_me:$LINENO: result: $ac_res" >&5
16636echo "${ECHO_T}$ac_res" >&6; }
16637if test `eval echo '${'$as_ac_var'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16640_ACEOF
16641
16642fi
16643done
16644
16645
16646
16647
16648
16649for ac_func in powf fmodf strtof round
16650do
16651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16652{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656else
16657 cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
16663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16665#define $ac_func innocuous_$ac_func
16666
16667/* System header to define __stub macros and hopefully few prototypes,
16668 which can conflict with char $ac_func (); below.
16669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16670 <limits.h> exists even on freestanding compilers. */
16671
16672#ifdef __STDC__
16673# include <limits.h>
16674#else
16675# include <assert.h>
16676#endif
16677
16678#undef $ac_func
16679
16680/* Override any GCC internal prototype to avoid an error.
16681 Use char because int might match the return type of a GCC
16682 builtin and then its argument prototype would still apply. */
16683#ifdef __cplusplus
16684extern "C"
16685#endif
16686char $ac_func ();
16687/* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690#if defined __stub_$ac_func || defined __stub___$ac_func
16691choke me
16692#endif
16693
16694int
16695main ()
16696{
16697return $ac_func ();
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
16703if { (ac_try="$ac_link"
16704case "(($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_link") 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 eval "$as_ac_var=yes"
16737else
16738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 eval "$as_ac_var=no"
16742fi
16743
16744rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746fi
16747ac_res=`eval echo '${'$as_ac_var'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749echo "${ECHO_T}$ac_res" >&6; }
16750if test `eval echo '${'$as_ac_var'}'` = yes; then
16751 cat >>confdefs.h <<_ACEOF
16752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16753_ACEOF
16754
16755fi
16756done
16757
16758
16759
16760
16761
16762
16763for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16764do
16765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770else
16771 cat >conftest.$ac_ext <<_ACEOF
16772/* confdefs.h. */
16773_ACEOF
16774cat confdefs.h >>conftest.$ac_ext
16775cat >>conftest.$ac_ext <<_ACEOF
16776/* end confdefs.h. */
16777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16779#define $ac_func innocuous_$ac_func
16780
16781/* System header to define __stub macros and hopefully few prototypes,
16782 which can conflict with char $ac_func (); below.
16783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784 <limits.h> exists even on freestanding compilers. */
16785
16786#ifdef __STDC__
16787# include <limits.h>
16788#else
16789# include <assert.h>
16790#endif
16791
16792#undef $ac_func
16793
16794/* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797#ifdef __cplusplus
16798extern "C"
16799#endif
16800char $ac_func ();
16801/* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804#if defined __stub_$ac_func || defined __stub___$ac_func
16805choke me
16806#endif
16807
16808int
16809main ()
16810{
16811return $ac_func ();
16812 ;
16813 return 0;
16814}
16815_ACEOF
16816rm -f conftest.$ac_objext conftest$ac_exeext
16817if { (ac_try="$ac_link"
16818case "(($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_link") 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest$ac_exeext'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844esac
16845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 eval "$as_ac_var=yes"
16851else
16852 echo "$as_me: failed program was:" >&5
16853sed 's/^/| /' conftest.$ac_ext >&5
16854
16855 eval "$as_ac_var=no"
16856fi
16857
16858rm -f core conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16860fi
16861ac_res=`eval echo '${'$as_ac_var'}'`
16862 { echo "$as_me:$LINENO: result: $ac_res" >&5
16863echo "${ECHO_T}$ac_res" >&6; }
16864if test `eval echo '${'$as_ac_var'}'` = yes; then
16865 cat >>confdefs.h <<_ACEOF
16866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16867_ACEOF
16868
16869fi
16870done
16871
16872
16873
16874
16875for ac_func in isatty mkdtemp mkstemp
16876do
16877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883 cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
16889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16891#define $ac_func innocuous_$ac_func
16892
16893/* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func (); below.
16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896 <limits.h> exists even on freestanding compilers. */
16897
16898#ifdef __STDC__
16899# include <limits.h>
16900#else
16901# include <assert.h>
16902#endif
16903
16904#undef $ac_func
16905
16906/* Override any GCC internal prototype to avoid an error.
16907 Use char because int might match the return type of a GCC
16908 builtin and then its argument prototype would still apply. */
16909#ifdef __cplusplus
16910extern "C"
16911#endif
16912char $ac_func ();
16913/* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916#if defined __stub_$ac_func || defined __stub___$ac_func
16917choke me
16918#endif
16919
16920int
16921main ()
16922{
16923return $ac_func ();
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928rm -f conftest.$ac_objext conftest$ac_exeext
16929if { (ac_try="$ac_link"
16930case "(($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_link") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946esac
16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16956esac
16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 eval "$as_ac_var=yes"
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967 eval "$as_ac_var=no"
16968fi
16969
16970rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16972fi
16973ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975echo "${ECHO_T}$ac_res" >&6; }
16976if test `eval echo '${'$as_ac_var'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16979_ACEOF
16980
16981fi
16982done
16983
16984
16985
16986
16987
16988
16989
16990for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16991do
16992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997else
16998 cat >conftest.$ac_ext <<_ACEOF
16999/* confdefs.h. */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h. */
17004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17006#define $ac_func innocuous_$ac_func
17007
17008/* System header to define __stub macros and hopefully few prototypes,
17009 which can conflict with char $ac_func (); below.
17010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011 <limits.h> exists even on freestanding compilers. */
17012
17013#ifdef __STDC__
17014# include <limits.h>
17015#else
17016# include <assert.h>
17017#endif
17018
17019#undef $ac_func
17020
17021/* Override any GCC internal prototype to avoid an error.
17022 Use char because int might match the return type of a GCC
17023 builtin and then its argument prototype would still apply. */
17024#ifdef __cplusplus
17025extern "C"
17026#endif
17027char $ac_func ();
17028/* The GNU C library defines this for functions which it implements
17029 to always fail with ENOSYS. Some functions are actually named
17030 something starting with __ and the normal name is an alias. */
17031#if defined __stub_$ac_func || defined __stub___$ac_func
17032choke me
17033#endif
17034
17035int
17036main ()
17037{
17038return $ac_func ();
17039 ;
17040 return 0;
17041}
17042_ACEOF
17043rm -f conftest.$ac_objext conftest$ac_exeext
17044if { (ac_try="$ac_link"
17045case "(($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_link") 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest$ac_exeext'
17068 { (case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17071esac
17072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_try") 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 eval "$as_ac_var=yes"
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
17082 eval "$as_ac_var=no"
17083fi
17084
17085rm -f core conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17087fi
17088ac_res=`eval echo '${'$as_ac_var'}'`
17089 { echo "$as_me:$LINENO: result: $ac_res" >&5
17090echo "${ECHO_T}$ac_res" >&6; }
17091if test `eval echo '${'$as_ac_var'}'` = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17094_ACEOF
17095
17096fi
17097done
17098
17099
17100
17101
17102for ac_func in strerror strerror_r setenv
17103do
17104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17105{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17107if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 cat >conftest.$ac_ext <<_ACEOF
17111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
17116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17118#define $ac_func innocuous_$ac_func
17119
17120/* System header to define __stub macros and hopefully few prototypes,
17121 which can conflict with char $ac_func (); below.
17122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123 <limits.h> exists even on freestanding compilers. */
17124
17125#ifdef __STDC__
17126# include <limits.h>
17127#else
17128# include <assert.h>
17129#endif
17130
17131#undef $ac_func
17132
17133/* Override any GCC internal prototype to avoid an error.
17134 Use char because int might match the return type of a GCC
17135 builtin and then its argument prototype would still apply. */
17136#ifdef __cplusplus
17137extern "C"
17138#endif
17139char $ac_func ();
17140/* The GNU C library defines this for functions which it implements
17141 to always fail with ENOSYS. Some functions are actually named
17142 something starting with __ and the normal name is an alias. */
17143#if defined __stub_$ac_func || defined __stub___$ac_func
17144choke me
17145#endif
17146
17147int
17148main ()
17149{
17150return $ac_func ();
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155rm -f conftest.$ac_objext conftest$ac_exeext
17156if { (ac_try="$ac_link"
17157case "(($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_link") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173esac
17174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest$ac_exeext'
17180 { (case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183esac
17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_try") 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 eval "$as_ac_var=yes"
17190else
17191 echo "$as_me: failed program was:" >&5
17192sed 's/^/| /' conftest.$ac_ext >&5
17193
17194 eval "$as_ac_var=no"
17195fi
17196
17197rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17199fi
17200ac_res=`eval echo '${'$as_ac_var'}'`
17201 { echo "$as_me:$LINENO: result: $ac_res" >&5
17202echo "${ECHO_T}$ac_res" >&6; }
17203if test `eval echo '${'$as_ac_var'}'` = yes; then
17204 cat >>confdefs.h <<_ACEOF
17205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17206_ACEOF
17207
17208fi
17209done
17210
17211
17212
17213
17214
17215for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17216do
17217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222else
17223 cat >conftest.$ac_ext <<_ACEOF
17224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
17229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17231#define $ac_func innocuous_$ac_func
17232
17233/* System header to define __stub macros and hopefully few prototypes,
17234 which can conflict with char $ac_func (); below.
17235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236 <limits.h> exists even on freestanding compilers. */
17237
17238#ifdef __STDC__
17239# include <limits.h>
17240#else
17241# include <assert.h>
17242#endif
17243
17244#undef $ac_func
17245
17246/* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249#ifdef __cplusplus
17250extern "C"
17251#endif
17252char $ac_func ();
17253/* The GNU C library defines this for functions which it implements
17254 to always fail with ENOSYS. Some functions are actually named
17255 something starting with __ and the normal name is an alias. */
17256#if defined __stub_$ac_func || defined __stub___$ac_func
17257choke me
17258#endif
17259
17260int
17261main ()
17262{
17263return $ac_func ();
17264 ;
17265 return 0;
17266}
17267_ACEOF
17268rm -f conftest.$ac_objext conftest$ac_exeext
17269if { (ac_try="$ac_link"
17270case "(($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_link") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 eval "$as_ac_var=yes"
17303else
17304 echo "$as_me: failed program was:" >&5
17305sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 eval "$as_ac_var=no"
17308fi
17309
17310rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312fi
17313ac_res=`eval echo '${'$as_ac_var'}'`
17314 { echo "$as_me:$LINENO: result: $ac_res" >&5
17315echo "${ECHO_T}$ac_res" >&6; }
17316if test `eval echo '${'$as_ac_var'}'` = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17319_ACEOF
17320
17321fi
17322done
17323
17324
17325
17326
17327
17328
17329for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17330do
17331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17332{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17334if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336else
17337 cat >conftest.$ac_ext <<_ACEOF
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17345#define $ac_func innocuous_$ac_func
17346
17347/* System header to define __stub macros and hopefully few prototypes,
17348 which can conflict with char $ac_func (); below.
17349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17350 <limits.h> exists even on freestanding compilers. */
17351
17352#ifdef __STDC__
17353# include <limits.h>
17354#else
17355# include <assert.h>
17356#endif
17357
17358#undef $ac_func
17359
17360/* Override any GCC internal prototype to avoid an error.
17361 Use char because int might match the return type of a GCC
17362 builtin and then its argument prototype would still apply. */
17363#ifdef __cplusplus
17364extern "C"
17365#endif
17366char $ac_func ();
17367/* The GNU C library defines this for functions which it implements
17368 to always fail with ENOSYS. Some functions are actually named
17369 something starting with __ and the normal name is an alias. */
17370#if defined __stub_$ac_func || defined __stub___$ac_func
17371choke me
17372#endif
17373
17374int
17375main ()
17376{
17377return $ac_func ();
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext conftest$ac_exeext
17383if { (ac_try="$ac_link"
17384case "(($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_link") 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest$ac_exeext'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410esac
17411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 eval "$as_ac_var=yes"
17417else
17418 echo "$as_me: failed program was:" >&5
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 eval "$as_ac_var=no"
17422fi
17423
17424rm -f core conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17426fi
17427ac_res=`eval echo '${'$as_ac_var'}'`
17428 { echo "$as_me:$LINENO: result: $ac_res" >&5
17429echo "${ECHO_T}$ac_res" >&6; }
17430if test `eval echo '${'$as_ac_var'}'` = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17433_ACEOF
17434
17435fi
17436done
17437
17438{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17439echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17440if test "${llvm_cv_c_printf_a+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442else
17443 ac_ext=c
17444ac_cpp='$CPP $CPPFLAGS'
17445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447ac_compiler_gnu=$ac_cv_c_compiler_gnu
17448
17449 if test "$cross_compiling" = yes; then
17450 llvmac_cv_c_printf_a=no
17451else
17452 cat >conftest.$ac_ext <<_ACEOF
17453
17454 /* confdefs.h. */
17455_ACEOF
17456cat confdefs.h >>conftest.$ac_ext
17457cat >>conftest.$ac_ext <<_ACEOF
17458/* end confdefs.h. */
17459
17460#include <stdio.h>
17461#include <stdlib.h>
17462
17463int
17464main ()
17465{
17466
17467volatile double A, B;
17468char Buffer[100];
17469A = 1;
17470A /= 10.0;
17471sprintf(Buffer, "%a", A);
17472B = atof(Buffer);
17473if (A != B)
17474 return (1);
17475if (A != 0x1.999999999999ap-4)
17476 return (1);
17477return (0);
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest$ac_exeext
17483if { (ac_try="$ac_link"
17484case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496esac
17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 llvm_cv_c_printf_a=yes
17503else
17504 echo "$as_me: program exited with status $ac_status" >&5
17505echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508( exit $ac_status )
17509llvmac_cv_c_printf_a=no
17510fi
17511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17512fi
17513
17514
17515 ac_ext=c
17516ac_cpp='$CPP $CPPFLAGS'
17517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17519ac_compiler_gnu=$ac_cv_c_compiler_gnu
17520
17521fi
17522{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17523echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17524 if test "$llvm_cv_c_printf_a" = "yes"; then
17525
17526cat >>confdefs.h <<\_ACEOF
17527#define HAVE_PRINTF_A 1
17528_ACEOF
17529
17530 fi
17531
17532
17533{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17534echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17535if test "${ac_cv_func_rand48+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 ac_ext=cpp
17539ac_cpp='$CXXCPP $CPPFLAGS'
17540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17543
17544 cat >conftest.$ac_ext <<_ACEOF
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
17550#include <stdlib.h>
17551int
17552main ()
17553{
17554srand48(0);lrand48();drand48();
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (ac_try="$ac_compile"
17561case "(($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_compile") 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577esac
17578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587esac
17588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_func_rand48=yes
17594else
17595 echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 ac_cv_func_rand48=no
17599fi
17600
17601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 ac_ext=c
17603ac_cpp='$CPP $CPPFLAGS'
17604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17606ac_compiler_gnu=$ac_cv_c_compiler_gnu
17607
17608fi
17609{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17610echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17611
17612if test "$ac_cv_func_rand48" = "yes" ; then
17613
17614cat >>confdefs.h <<\_ACEOF
17615#define HAVE_RAND48 1
17616_ACEOF
17617
17618fi
17619
17620
17621{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17622echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17623if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632$ac_includes_default
17633int
17634main ()
17635{
17636#ifndef strerror_s
17637 char *p = (char *) strerror_s;
17638 return !p;
17639#endif
17640
17641 ;
17642 return 0;
17643}
17644_ACEOF
17645rm -f conftest.$ac_objext
17646if { (ac_try="$ac_compile"
17647case "(($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_compile") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673esac
17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_have_decl_strerror_s=yes
17680else
17681 echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_cv_have_decl_strerror_s=no
17685fi
17686
17687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688fi
17689{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17690echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17691if test $ac_cv_have_decl_strerror_s = yes; then
17692
17693cat >>confdefs.h <<_ACEOF
17694#define HAVE_DECL_STRERROR_S 1
17695_ACEOF
17696
17697
17698else
17699 cat >>confdefs.h <<_ACEOF
17700#define HAVE_DECL_STRERROR_S 0
17701_ACEOF
17702
17703
17704fi
17705
17706
17707
17708if test "$llvm_cv_os_type" = "MingW" ; then
17709 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17710echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17711if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17713else
17714 ac_check_lib_save_LIBS=$LIBS
17715LIBS="-lgcc $LIBS"
17716cat >conftest.$ac_ext <<_ACEOF
17717/* confdefs.h. */
17718_ACEOF
17719cat confdefs.h >>conftest.$ac_ext
17720cat >>conftest.$ac_ext <<_ACEOF
17721/* end confdefs.h. */
17722
17723/* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17726#ifdef __cplusplus
17727extern "C"
17728#endif
17729char _alloca ();
17730int
17731main ()
17732{
17733return _alloca ();
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext conftest$ac_exeext
17739if { (ac_try="$ac_link"
17740case "(($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_link") 2>conftest.er1
17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756esac
17757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest$ac_exeext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_lib_gcc__alloca=yes
17773else
17774 echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_lib_gcc__alloca=no
17778fi
17779
17780rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782LIBS=$ac_check_lib_save_LIBS
17783fi
17784{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17785echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17786if test $ac_cv_lib_gcc__alloca = yes; then
17787
17788cat >>confdefs.h <<\_ACEOF
17789#define HAVE__ALLOCA 1
17790_ACEOF
17791
17792fi
17793
17794 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17795echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17796if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798else
17799 ac_check_lib_save_LIBS=$LIBS
17800LIBS="-lgcc $LIBS"
17801cat >conftest.$ac_ext <<_ACEOF
17802/* confdefs.h. */
17803_ACEOF
17804cat confdefs.h >>conftest.$ac_ext
17805cat >>conftest.$ac_ext <<_ACEOF
17806/* end confdefs.h. */
17807
17808/* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17811#ifdef __cplusplus
17812extern "C"
17813#endif
17814char __alloca ();
17815int
17816main ()
17817{
17818return __alloca ();
17819 ;
17820 return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext conftest$ac_exeext
17824if { (ac_try="$ac_link"
17825case "(($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_link") 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17851esac
17852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_lib_gcc___alloca=yes
17858else
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_lib_gcc___alloca=no
17863fi
17864
17865rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867LIBS=$ac_check_lib_save_LIBS
17868fi
17869{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17870echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17871if test $ac_cv_lib_gcc___alloca = yes; then
17872
17873cat >>confdefs.h <<\_ACEOF
17874#define HAVE___ALLOCA 1
17875_ACEOF
17876
17877fi
17878
17879 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17880echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17881if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883else
17884 ac_check_lib_save_LIBS=$LIBS
17885LIBS="-lgcc $LIBS"
17886cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892
17893/* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17896#ifdef __cplusplus
17897extern "C"
17898#endif
17899char __chkstk ();
17900int
17901main ()
17902{
17903return __chkstk ();
17904 ;
17905 return 0;
17906}
17907_ACEOF
17908rm -f conftest.$ac_objext conftest$ac_exeext
17909if { (ac_try="$ac_link"
17910case "(($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_link") 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17923 { (case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17926esac
17927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_try") 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest$ac_exeext'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_lib_gcc___chkstk=yes
17943else
17944 echo "$as_me: failed program was:" >&5
17945sed 's/^/| /' conftest.$ac_ext >&5
17946
17947 ac_cv_lib_gcc___chkstk=no
17948fi
17949
17950rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952LIBS=$ac_check_lib_save_LIBS
17953fi
17954{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17955echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17956if test $ac_cv_lib_gcc___chkstk = yes; then
17957
17958cat >>confdefs.h <<\_ACEOF
17959#define HAVE___CHKSTK 1
17960_ACEOF
17961
17962fi
17963
17964 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17965echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17966if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17968else
17969 ac_check_lib_save_LIBS=$LIBS
17970LIBS="-lgcc $LIBS"
17971cat >conftest.$ac_ext <<_ACEOF
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977
17978/* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17981#ifdef __cplusplus
17982extern "C"
17983#endif
17984char ___chkstk ();
17985int
17986main ()
17987{
17988return ___chkstk ();
17989 ;
17990 return 0;
17991}
17992_ACEOF
17993rm -f conftest.$ac_objext conftest$ac_exeext
17994if { (ac_try="$ac_link"
17995case "(($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_link") 2>conftest.er1
18001 ac_status=$?
18002 grep -v '^ *+' conftest.er1 >conftest.err
18003 rm -f conftest.er1
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest$ac_exeext'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_cv_lib_gcc____chkstk=yes
18028else
18029 echo "$as_me: failed program was:" >&5
18030sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 ac_cv_lib_gcc____chkstk=no
18033fi
18034
18035rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18037LIBS=$ac_check_lib_save_LIBS
18038fi
18039{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18040echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18041if test $ac_cv_lib_gcc____chkstk = yes; then
18042
18043cat >>confdefs.h <<\_ACEOF
18044#define HAVE____CHKSTK 1
18045_ACEOF
18046
18047fi
18048
18049
18050 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18051echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18052if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18054else
18055 ac_check_lib_save_LIBS=$LIBS
18056LIBS="-lgcc $LIBS"
18057cat >conftest.$ac_ext <<_ACEOF
18058/* confdefs.h. */
18059_ACEOF
18060cat confdefs.h >>conftest.$ac_ext
18061cat >>conftest.$ac_ext <<_ACEOF
18062/* end confdefs.h. */
18063
18064/* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18067#ifdef __cplusplus
18068extern "C"
18069#endif
18070char __ashldi3 ();
18071int
18072main ()
18073{
18074return __ashldi3 ();
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext conftest$ac_exeext
18080if { (ac_try="$ac_link"
18081case "(($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_link") 2>conftest.er1
18087 ac_status=$?
18088 grep -v '^ *+' conftest.er1 >conftest.err
18089 rm -f conftest.er1
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest$ac_exeext'
18104 { (case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18107esac
18108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_try") 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_lib_gcc___ashldi3=yes
18114else
18115 echo "$as_me: failed program was:" >&5
18116sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 ac_cv_lib_gcc___ashldi3=no
18119fi
18120
18121rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18123LIBS=$ac_check_lib_save_LIBS
18124fi
18125{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18126echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18127if test $ac_cv_lib_gcc___ashldi3 = yes; then
18128
18129cat >>confdefs.h <<\_ACEOF
18130#define HAVE___ASHLDI3 1
18131_ACEOF
18132
18133fi
18134
18135 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18136echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18137if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139else
18140 ac_check_lib_save_LIBS=$LIBS
18141LIBS="-lgcc $LIBS"
18142cat >conftest.$ac_ext <<_ACEOF
18143/* confdefs.h. */
18144_ACEOF
18145cat confdefs.h >>conftest.$ac_ext
18146cat >>conftest.$ac_ext <<_ACEOF
18147/* end confdefs.h. */
18148
18149/* Override any GCC internal prototype to avoid an error.
18150 Use char because int might match the return type of a GCC
18151 builtin and then its argument prototype would still apply. */
18152#ifdef __cplusplus
18153extern "C"
18154#endif
18155char __ashrdi3 ();
18156int
18157main ()
18158{
18159return __ashrdi3 ();
18160 ;
18161 return 0;
18162}
18163_ACEOF
18164rm -f conftest.$ac_objext conftest$ac_exeext
18165if { (ac_try="$ac_link"
18166case "(($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_link") 2>conftest.er1
18172 ac_status=$?
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
18178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182esac
18183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_try") 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; } &&
18188 { ac_try='test -s conftest$ac_exeext'
18189 { (case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_try") 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 ac_cv_lib_gcc___ashrdi3=yes
18199else
18200 echo "$as_me: failed program was:" >&5
18201sed 's/^/| /' conftest.$ac_ext >&5
18202
18203 ac_cv_lib_gcc___ashrdi3=no
18204fi
18205
18206rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208LIBS=$ac_check_lib_save_LIBS
18209fi
18210{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18211echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18212if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18213
18214cat >>confdefs.h <<\_ACEOF
18215#define HAVE___ASHRDI3 1
18216_ACEOF
18217
18218fi
18219
18220 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18221echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18222if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 ac_check_lib_save_LIBS=$LIBS
18226LIBS="-lgcc $LIBS"
18227cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
18233
18234/* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18237#ifdef __cplusplus
18238extern "C"
18239#endif
18240char __divdi3 ();
18241int
18242main ()
18243{
18244return __divdi3 ();
18245 ;
18246 return 0;
18247}
18248_ACEOF
18249rm -f conftest.$ac_objext conftest$ac_exeext
18250if { (ac_try="$ac_link"
18251case "(($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_link") 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264 { (case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18267esac
18268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_try") 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest$ac_exeext'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_lib_gcc___divdi3=yes
18284else
18285 echo "$as_me: failed program was:" >&5
18286sed 's/^/| /' conftest.$ac_ext >&5
18287
18288 ac_cv_lib_gcc___divdi3=no
18289fi
18290
18291rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293LIBS=$ac_check_lib_save_LIBS
18294fi
18295{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18296echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18297if test $ac_cv_lib_gcc___divdi3 = yes; then
18298
18299cat >>confdefs.h <<\_ACEOF
18300#define HAVE___DIVDI3 1
18301_ACEOF
18302
18303fi
18304
18305 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18306echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18307if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309else
18310 ac_check_lib_save_LIBS=$LIBS
18311LIBS="-lgcc $LIBS"
18312cat >conftest.$ac_ext <<_ACEOF
18313/* confdefs.h. */
18314_ACEOF
18315cat confdefs.h >>conftest.$ac_ext
18316cat >>conftest.$ac_ext <<_ACEOF
18317/* end confdefs.h. */
18318
18319/* Override any GCC internal prototype to avoid an error.
18320 Use char because int might match the return type of a GCC
18321 builtin and then its argument prototype would still apply. */
18322#ifdef __cplusplus
18323extern "C"
18324#endif
18325char __fixdfdi ();
18326int
18327main ()
18328{
18329return __fixdfdi ();
18330 ;
18331 return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext conftest$ac_exeext
18335if { (ac_try="$ac_link"
18336case "(($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_link") 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18352esac
18353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest$ac_exeext'
18359 { (case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18362esac
18363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_try") 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_gcc___fixdfdi=yes
18369else
18370 echo "$as_me: failed program was:" >&5
18371sed 's/^/| /' conftest.$ac_ext >&5
18372
18373 ac_cv_lib_gcc___fixdfdi=no
18374fi
18375
18376rm -f core conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
18378LIBS=$ac_check_lib_save_LIBS
18379fi
18380{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18381echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18382if test $ac_cv_lib_gcc___fixdfdi = yes; then
18383
18384cat >>confdefs.h <<\_ACEOF
18385#define HAVE___FIXDFDI 1
18386_ACEOF
18387
18388fi
18389
18390 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18391echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18392if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394else
18395 ac_check_lib_save_LIBS=$LIBS
18396LIBS="-lgcc $LIBS"
18397cat >conftest.$ac_ext <<_ACEOF
18398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
18403
18404/* Override any GCC internal prototype to avoid an error.
18405 Use char because int might match the return type of a GCC
18406 builtin and then its argument prototype would still apply. */
18407#ifdef __cplusplus
18408extern "C"
18409#endif
18410char __fixsfdi ();
18411int
18412main ()
18413{
18414return __fixsfdi ();
18415 ;
18416 return 0;
18417}
18418_ACEOF
18419rm -f conftest.$ac_objext conftest$ac_exeext
18420if { (ac_try="$ac_link"
18421case "(($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_link") 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest$ac_exeext'
18444 { (case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447esac
18448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_try") 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_lib_gcc___fixsfdi=yes
18454else
18455 echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 ac_cv_lib_gcc___fixsfdi=no
18459fi
18460
18461rm -f core conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18463LIBS=$ac_check_lib_save_LIBS
18464fi
18465{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18466echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18467if test $ac_cv_lib_gcc___fixsfdi = yes; then
18468
18469cat >>confdefs.h <<\_ACEOF
18470#define HAVE___FIXSFDI 1
18471_ACEOF
18472
18473fi
18474
18475 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18476echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18477if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479else
18480 ac_check_lib_save_LIBS=$LIBS
18481LIBS="-lgcc $LIBS"
18482cat >conftest.$ac_ext <<_ACEOF
18483/* confdefs.h. */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h. */
18488
18489/* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18492#ifdef __cplusplus
18493extern "C"
18494#endif
18495char __floatdidf ();
18496int
18497main ()
18498{
18499return __floatdidf ();
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext conftest$ac_exeext
18505if { (ac_try="$ac_link"
18506case "(($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_link") 2>conftest.er1
18512 ac_status=$?
18513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532esac
18533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_cv_lib_gcc___floatdidf=yes
18539else
18540 echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 ac_cv_lib_gcc___floatdidf=no
18544fi
18545
18546rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548LIBS=$ac_check_lib_save_LIBS
18549fi
18550{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18551echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18552if test $ac_cv_lib_gcc___floatdidf = yes; then
18553
18554cat >>confdefs.h <<\_ACEOF
18555#define HAVE___FLOATDIDF 1
18556_ACEOF
18557
18558fi
18559
18560 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18561echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18562if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564else
18565 ac_check_lib_save_LIBS=$LIBS
18566LIBS="-lgcc $LIBS"
18567cat >conftest.$ac_ext <<_ACEOF
18568/* confdefs.h. */
18569_ACEOF
18570cat confdefs.h >>conftest.$ac_ext
18571cat >>conftest.$ac_ext <<_ACEOF
18572/* end confdefs.h. */
18573
18574/* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18577#ifdef __cplusplus
18578extern "C"
18579#endif
18580char __lshrdi3 ();
18581int
18582main ()
18583{
18584return __lshrdi3 ();
18585 ;
18586 return 0;
18587}
18588_ACEOF
18589rm -f conftest.$ac_objext conftest$ac_exeext
18590if { (ac_try="$ac_link"
18591case "(($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_link") 2>conftest.er1
18597 ac_status=$?
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
18603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607esac
18608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617esac
18618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_try") 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_lib_gcc___lshrdi3=yes
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_cv_lib_gcc___lshrdi3=no
18629fi
18630
18631rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633LIBS=$ac_check_lib_save_LIBS
18634fi
18635{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18636echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18637if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18638
18639cat >>confdefs.h <<\_ACEOF
18640#define HAVE___LSHRDI3 1
18641_ACEOF
18642
18643fi
18644
18645 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18646echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18647if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649else
18650 ac_check_lib_save_LIBS=$LIBS
18651LIBS="-lgcc $LIBS"
18652cat >conftest.$ac_ext <<_ACEOF
18653/* confdefs.h. */
18654_ACEOF
18655cat confdefs.h >>conftest.$ac_ext
18656cat >>conftest.$ac_ext <<_ACEOF
18657/* end confdefs.h. */
18658
18659/* Override any GCC internal prototype to avoid an error.
18660 Use char because int might match the return type of a GCC
18661 builtin and then its argument prototype would still apply. */
18662#ifdef __cplusplus
18663extern "C"
18664#endif
18665char __moddi3 ();
18666int
18667main ()
18668{
18669return __moddi3 ();
18670 ;
18671 return 0;
18672}
18673_ACEOF
18674rm -f conftest.$ac_objext conftest$ac_exeext
18675if { (ac_try="$ac_link"
18676case "(($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_link") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18702esac
18703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_cv_lib_gcc___moddi3=yes
18709else
18710 echo "$as_me: failed program was:" >&5
18711sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 ac_cv_lib_gcc___moddi3=no
18714fi
18715
18716rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18718LIBS=$ac_check_lib_save_LIBS
18719fi
18720{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18721echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18722if test $ac_cv_lib_gcc___moddi3 = yes; then
18723
18724cat >>confdefs.h <<\_ACEOF
18725#define HAVE___MODDI3 1
18726_ACEOF
18727
18728fi
18729
18730 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18731echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18732if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734else
18735 ac_check_lib_save_LIBS=$LIBS
18736LIBS="-lgcc $LIBS"
18737cat >conftest.$ac_ext <<_ACEOF
18738/* confdefs.h. */
18739_ACEOF
18740cat confdefs.h >>conftest.$ac_ext
18741cat >>conftest.$ac_ext <<_ACEOF
18742/* end confdefs.h. */
18743
18744/* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747#ifdef __cplusplus
18748extern "C"
18749#endif
18750char __udivdi3 ();
18751int
18752main ()
18753{
18754return __udivdi3 ();
18755 ;
18756 return 0;
18757}
18758_ACEOF
18759rm -f conftest.$ac_objext conftest$ac_exeext
18760if { (ac_try="$ac_link"
18761case "(($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_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest$ac_exeext'
18784 { (case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18787esac
18788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_try") 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_gcc___udivdi3=yes
18794else
18795 echo "$as_me: failed program was:" >&5
18796sed 's/^/| /' conftest.$ac_ext >&5
18797
18798 ac_cv_lib_gcc___udivdi3=no
18799fi
18800
18801rm -f core conftest.err conftest.$ac_objext \
18802 conftest$ac_exeext conftest.$ac_ext
18803LIBS=$ac_check_lib_save_LIBS
18804fi
18805{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18806echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18807if test $ac_cv_lib_gcc___udivdi3 = yes; then
18808
18809cat >>confdefs.h <<\_ACEOF
18810#define HAVE___UDIVDI3 1
18811_ACEOF
18812
18813fi
18814
18815 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18816echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18817if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819else
18820 ac_check_lib_save_LIBS=$LIBS
18821LIBS="-lgcc $LIBS"
18822cat >conftest.$ac_ext <<_ACEOF
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
18828
18829/* Override any GCC internal prototype to avoid an error.
18830 Use char because int might match the return type of a GCC
18831 builtin and then its argument prototype would still apply. */
18832#ifdef __cplusplus
18833extern "C"
18834#endif
18835char __umoddi3 ();
18836int
18837main ()
18838{
18839return __umoddi3 ();
18840 ;
18841 return 0;
18842}
18843_ACEOF
18844rm -f conftest.$ac_objext conftest$ac_exeext
18845if { (ac_try="$ac_link"
18846case "(($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_link") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest$ac_exeext'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872esac
18873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_cv_lib_gcc___umoddi3=yes
18879else
18880 echo "$as_me: failed program was:" >&5
18881sed 's/^/| /' conftest.$ac_ext >&5
18882
18883 ac_cv_lib_gcc___umoddi3=no
18884fi
18885
18886rm -f core conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888LIBS=$ac_check_lib_save_LIBS
18889fi
18890{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18891echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18892if test $ac_cv_lib_gcc___umoddi3 = yes; then
18893
18894cat >>confdefs.h <<\_ACEOF
18895#define HAVE___UMODDI3 1
18896_ACEOF
18897
18898fi
18899
18900
18901 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18902echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18903if test "${ac_cv_lib_gcc___main+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906 ac_check_lib_save_LIBS=$LIBS
18907LIBS="-lgcc $LIBS"
18908cat >conftest.$ac_ext <<_ACEOF
18909/* confdefs.h. */
18910_ACEOF
18911cat confdefs.h >>conftest.$ac_ext
18912cat >>conftest.$ac_ext <<_ACEOF
18913/* end confdefs.h. */
18914
18915/* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18918#ifdef __cplusplus
18919extern "C"
18920#endif
18921char __main ();
18922int
18923main ()
18924{
18925return __main ();
18926 ;
18927 return 0;
18928}
18929_ACEOF
18930rm -f conftest.$ac_objext conftest$ac_exeext
18931if { (ac_try="$ac_link"
18932case "(($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_link") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945 { (case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948esac
18949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_try") 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest$ac_exeext'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958esac
18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_lib_gcc___main=yes
18965else
18966 echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 ac_cv_lib_gcc___main=no
18970fi
18971
18972rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974LIBS=$ac_check_lib_save_LIBS
18975fi
18976{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18977echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18978if test $ac_cv_lib_gcc___main = yes; then
18979
18980cat >>confdefs.h <<\_ACEOF
18981#define HAVE___MAIN 1
18982_ACEOF
18983
18984fi
18985
18986 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18987echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18988if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991 ac_check_lib_save_LIBS=$LIBS
18992LIBS="-lgcc $LIBS"
18993cat >conftest.$ac_ext <<_ACEOF
18994/* confdefs.h. */
18995_ACEOF
18996cat confdefs.h >>conftest.$ac_ext
18997cat >>conftest.$ac_ext <<_ACEOF
18998/* end confdefs.h. */
18999
19000/* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19003#ifdef __cplusplus
19004extern "C"
19005#endif
19006char __cmpdi2 ();
19007int
19008main ()
19009{
19010return __cmpdi2 ();
19011 ;
19012 return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext conftest$ac_exeext
19016if { (ac_try="$ac_link"
19017case "(($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_link") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 ac_cv_lib_gcc___cmpdi2=yes
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054 ac_cv_lib_gcc___cmpdi2=no
19055fi
19056
19057rm -f core conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19059LIBS=$ac_check_lib_save_LIBS
19060fi
19061{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19062echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19063if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19064
19065cat >>confdefs.h <<\_ACEOF
19066#define HAVE___CMPDI2 1
19067_ACEOF
19068
19069fi
19070
19071fi
19072
19073if test "$llvm_cv_os_type" = "MingW" ; then
19074 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19075echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19076 cat >conftest.$ac_ext <<_ACEOF
19077#include <windows.h>
19078#include <imagehlp.h>
19079extern void foo(PENUMLOADED_MODULES_CALLBACK);
19080extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19081_ACEOF
19082rm -f conftest.$ac_objext
19083if { (ac_try="$ac_compile"
19084case "(($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_compile") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116
19117 { echo "$as_me:$LINENO: result: yes" >&5
19118echo "${ECHO_T}yes" >&6; }
19119 llvm_cv_win32_elmcb_pcstr="PCSTR"
19120
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
19125
19126 { echo "$as_me:$LINENO: result: no" >&5
19127echo "${ECHO_T}no" >&6; }
19128 llvm_cv_win32_elmcb_pcstr="PSTR"
19129
19130fi
19131
19132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133
19134cat >>confdefs.h <<_ACEOF
19135#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19136_ACEOF
19137
19138fi
19139
19140
19141{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19142echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19143if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146 ac_ext=cpp
19147ac_cpp='$CXXCPP $CPPFLAGS'
19148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19151
19152 cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158#include <math.h>
19159int
19160main ()
19161{
19162float f; isnan(f);
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext
19168if { (ac_try="$ac_compile"
19169case "(($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_compile") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_func_isnan_in_math_h=yes
19202else
19203 echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206 ac_cv_func_isnan_in_math_h=no
19207fi
19208
19209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 ac_ext=c
19211ac_cpp='$CPP $CPPFLAGS'
19212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214ac_compiler_gnu=$ac_cv_c_compiler_gnu
19215
19216fi
19217{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19218echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19219
19220
19221if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19222
19223cat >>confdefs.h <<\_ACEOF
19224#define HAVE_ISNAN_IN_MATH_H 1
19225_ACEOF
19226
19227fi
19228
19229{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19230echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19231if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233else
19234 ac_ext=cpp
19235ac_cpp='$CXXCPP $CPPFLAGS'
19236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19239
19240 cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246#include <cmath>
19247int
19248main ()
19249{
19250float f; isnan(f);
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext
19256if { (ac_try="$ac_compile"
19257case "(($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_compile") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19273esac
19274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest.$ac_objext'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_func_isnan_in_cmath=yes
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_cv_func_isnan_in_cmath=no
19295fi
19296
19297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 ac_ext=c
19299ac_cpp='$CPP $CPPFLAGS'
19300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303
19304fi
19305{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19306echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19307
19308if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19309
19310cat >>confdefs.h <<\_ACEOF
19311#define HAVE_ISNAN_IN_CMATH 1
19312_ACEOF
19313
19314fi
19315
19316{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19317echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19318if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320else
19321 ac_ext=cpp
19322ac_cpp='$CXXCPP $CPPFLAGS'
19323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19326
19327 cat >conftest.$ac_ext <<_ACEOF
19328/* confdefs.h. */
19329_ACEOF
19330cat confdefs.h >>conftest.$ac_ext
19331cat >>conftest.$ac_ext <<_ACEOF
19332/* end confdefs.h. */
19333#include <cmath>
19334int
19335main ()
19336{
19337float f; std::isnan(f);
19338 ;
19339 return 0;
19340}
19341_ACEOF
19342rm -f conftest.$ac_objext
19343if { (ac_try="$ac_compile"
19344case "(($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_compile") 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360esac
19361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest.$ac_objext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370esac
19371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_cv_func_std_isnan_in_cmath=yes
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381 ac_cv_func_std_isnan_in_cmath=no
19382fi
19383
19384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 ac_ext=c
19386ac_cpp='$CPP $CPPFLAGS'
19387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391fi
19392{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19393echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19394
19395if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19396
19397cat >>confdefs.h <<\_ACEOF
19398#define HAVE_STD_ISNAN_IN_CMATH 1
19399_ACEOF
19400
19401fi
19402
19403
19404{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19405echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19406if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408else
19409 ac_ext=cpp
19410ac_cpp='$CXXCPP $CPPFLAGS'
19411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19414
19415 cat >conftest.$ac_ext <<_ACEOF
19416/* confdefs.h. */
19417_ACEOF
19418cat confdefs.h >>conftest.$ac_ext
19419cat >>conftest.$ac_ext <<_ACEOF
19420/* end confdefs.h. */
19421#include <math.h>
19422int
19423main ()
19424{
19425float f; isinf(f);
19426 ;
19427 return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext
19431if { (ac_try="$ac_compile"
19432case "(($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_compile") 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448esac
19449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458esac
19459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_func_isinf_in_math_h=yes
19465else
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 ac_cv_func_isinf_in_math_h=no
19470fi
19471
19472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19473 ac_ext=c
19474ac_cpp='$CPP $CPPFLAGS'
19475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478
19479fi
19480{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19481echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19482
19483if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19484
19485cat >>confdefs.h <<\_ACEOF
19486#define HAVE_ISINF_IN_MATH_H 1
19487_ACEOF
19488
19489fi
19490
19491{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19492echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19493if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19495else
19496 ac_ext=cpp
19497ac_cpp='$CXXCPP $CPPFLAGS'
19498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19501
19502 cat >conftest.$ac_ext <<_ACEOF
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508#include <cmath>
19509int
19510main ()
19511{
19512float f; isinf(f);
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (ac_try="$ac_compile"
19519case "(($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_compile") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535esac
19536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545esac
19546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_func_isinf_in_cmath=yes
19552else
19553 echo "$as_me: failed program was:" >&5
19554sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 ac_cv_func_isinf_in_cmath=no
19557fi
19558
19559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 ac_ext=c
19561ac_cpp='$CPP $CPPFLAGS'
19562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564ac_compiler_gnu=$ac_cv_c_compiler_gnu
19565
19566fi
19567{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19568echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19569
19570if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19571
19572cat >>confdefs.h <<\_ACEOF
19573#define HAVE_ISINF_IN_CMATH 1
19574_ACEOF
19575
19576fi
19577
19578{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19579echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19580if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582else
19583 ac_ext=cpp
19584ac_cpp='$CXXCPP $CPPFLAGS'
19585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19588
19589 cat >conftest.$ac_ext <<_ACEOF
19590/* confdefs.h. */
19591_ACEOF
19592cat confdefs.h >>conftest.$ac_ext
19593cat >>conftest.$ac_ext <<_ACEOF
19594/* end confdefs.h. */
19595#include <cmath>
19596int
19597main ()
19598{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019599float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019600 ;
19601 return 0;
19602}
19603_ACEOF
19604rm -f conftest.$ac_objext
19605if { (ac_try="$ac_compile"
19606case "(($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_compile") 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19619 { (case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19622esac
19623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_try") 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 ac_cv_func_std_isinf_in_cmath=yes
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 ac_cv_func_std_isinf_in_cmath=no
19644fi
19645
19646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 ac_ext=c
19648ac_cpp='$CPP $CPPFLAGS'
19649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652
19653fi
19654{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19655echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19656
19657if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19658
19659cat >>confdefs.h <<\_ACEOF
19660#define HAVE_STD_ISINF_IN_CMATH 1
19661_ACEOF
19662
19663fi
19664
19665{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19666echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19667if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669else
19670 ac_ext=cpp
19671ac_cpp='$CXXCPP $CPPFLAGS'
19672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19675
19676 cat >conftest.$ac_ext <<_ACEOF
19677/* confdefs.h. */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
19681/* end confdefs.h. */
19682#include <ieeefp.h>
19683int
19684main ()
19685{
19686float f; finite(f);
19687 ;
19688 return 0;
19689}
19690_ACEOF
19691rm -f conftest.$ac_objext
19692if { (ac_try="$ac_compile"
19693case "(($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_compile") 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19709esac
19710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; } &&
19715 { ac_try='test -s conftest.$ac_objext'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_func_finite_in_ieeefp_h=yes
19726else
19727 echo "$as_me: failed program was:" >&5
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ac_cv_func_finite_in_ieeefp_h=no
19731fi
19732
19733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 ac_ext=c
19735ac_cpp='$CPP $CPPFLAGS'
19736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740fi
19741{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19742echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19743
19744if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19745
19746cat >>confdefs.h <<\_ACEOF
19747#define HAVE_FINITE_IN_IEEEFP_H 1
19748_ACEOF
19749
19750fi
19751
19752
19753
19754if test "$llvm_cv_platform_type" = "Unix" ; then
19755
19756
19757for ac_header in stdlib.h unistd.h
19758do
19759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19765fi
19766ac_res=`eval echo '${'$as_ac_Header'}'`
19767 { echo "$as_me:$LINENO: result: $ac_res" >&5
19768echo "${ECHO_T}$ac_res" >&6; }
19769else
19770 # Is the header compilable?
19771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19773cat >conftest.$ac_ext <<_ACEOF
19774/* confdefs.h. */
19775_ACEOF
19776cat confdefs.h >>conftest.$ac_ext
19777cat >>conftest.$ac_ext <<_ACEOF
19778/* end confdefs.h. */
19779$ac_includes_default
19780#include <$ac_header>
19781_ACEOF
19782rm -f conftest.$ac_objext
19783if { (ac_try="$ac_compile"
19784case "(($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_compile") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_header_compiler=yes
19817else
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_header_compiler=no
19822fi
19823
19824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19826echo "${ECHO_T}$ac_header_compiler" >&6; }
19827
19828# Is the header present?
19829{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19831cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837#include <$ac_header>
19838_ACEOF
19839if { (ac_try="$ac_cpp conftest.$ac_ext"
19840case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843esac
19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } >/dev/null; then
19852 if test -s conftest.err; then
19853 ac_cpp_err=$ac_c_preproc_warn_flag
19854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19855 else
19856 ac_cpp_err=
19857 fi
19858else
19859 ac_cpp_err=yes
19860fi
19861if test -z "$ac_cpp_err"; then
19862 ac_header_preproc=yes
19863else
19864 echo "$as_me: failed program was:" >&5
19865sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ac_header_preproc=no
19868fi
19869
19870rm -f conftest.err conftest.$ac_ext
19871{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872echo "${ECHO_T}$ac_header_preproc" >&6; }
19873
19874# So? What about this header?
19875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19876 yes:no: )
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19881 ac_header_preproc=yes
19882 ;;
19883 no:yes:* )
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19896 ( cat <<\_ASBOX
19897## ------------------------------ ##
19898## Report this to bugs@yourdomain ##
19899## ------------------------------ ##
19900_ASBOX
19901 ) | sed "s/^/$as_me: WARNING: /" >&2
19902 ;;
19903esac
19904{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908else
19909 eval "$as_ac_Header=\$ac_header_preproc"
19910fi
19911ac_res=`eval echo '${'$as_ac_Header'}'`
19912 { echo "$as_me:$LINENO: result: $ac_res" >&5
19913echo "${ECHO_T}$ac_res" >&6; }
19914
19915fi
19916if test `eval echo '${'$as_ac_Header'}'` = yes; then
19917 cat >>confdefs.h <<_ACEOF
19918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19919_ACEOF
19920
19921fi
19922
19923done
19924
19925
19926for ac_func in getpagesize
19927do
19928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19929{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19933else
19934 cat >conftest.$ac_ext <<_ACEOF
19935/* confdefs.h. */
19936_ACEOF
19937cat confdefs.h >>conftest.$ac_ext
19938cat >>conftest.$ac_ext <<_ACEOF
19939/* end confdefs.h. */
19940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19942#define $ac_func innocuous_$ac_func
19943
19944/* System header to define __stub macros and hopefully few prototypes,
19945 which can conflict with char $ac_func (); below.
19946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19947 <limits.h> exists even on freestanding compilers. */
19948
19949#ifdef __STDC__
19950# include <limits.h>
19951#else
19952# include <assert.h>
19953#endif
19954
19955#undef $ac_func
19956
19957/* Override any GCC internal prototype to avoid an error.
19958 Use char because int might match the return type of a GCC
19959 builtin and then its argument prototype would still apply. */
19960#ifdef __cplusplus
19961extern "C"
19962#endif
19963char $ac_func ();
19964/* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
19967#if defined __stub_$ac_func || defined __stub___$ac_func
19968choke me
19969#endif
19970
19971int
19972main ()
19973{
19974return $ac_func ();
19975 ;
19976 return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext conftest$ac_exeext
19980if { (ac_try="$ac_link"
19981case "(($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_link") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest$ac_exeext'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20007esac
20008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 eval "$as_ac_var=yes"
20014else
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 eval "$as_ac_var=no"
20019fi
20020
20021rm -f core conftest.err conftest.$ac_objext \
20022 conftest$ac_exeext conftest.$ac_ext
20023fi
20024ac_res=`eval echo '${'$as_ac_var'}'`
20025 { echo "$as_me:$LINENO: result: $ac_res" >&5
20026echo "${ECHO_T}$ac_res" >&6; }
20027if test `eval echo '${'$as_ac_var'}'` = yes; then
20028 cat >>confdefs.h <<_ACEOF
20029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20030_ACEOF
20031
20032fi
20033done
20034
20035{ echo "$as_me:$LINENO: checking for working mmap" >&5
20036echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20037if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040 if test "$cross_compiling" = yes; then
20041 ac_cv_func_mmap_fixed_mapped=no
20042else
20043 cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
20049$ac_includes_default
20050/* malloc might have been renamed as rpl_malloc. */
20051#undef malloc
20052
20053/* Thanks to Mike Haertel and Jim Avera for this test.
20054 Here is a matrix of mmap possibilities:
20055 mmap private not fixed
20056 mmap private fixed at somewhere currently unmapped
20057 mmap private fixed at somewhere already mapped
20058 mmap shared not fixed
20059 mmap shared fixed at somewhere currently unmapped
20060 mmap shared fixed at somewhere already mapped
20061 For private mappings, we should verify that changes cannot be read()
20062 back from the file, nor mmap's back from the file at a different
20063 address. (There have been systems where private was not correctly
20064 implemented like the infamous i386 svr4.0, and systems where the
20065 VM page cache was not coherent with the file system buffer cache
20066 like early versions of FreeBSD and possibly contemporary NetBSD.)
20067 For shared mappings, we should conversely verify that changes get
20068 propagated back to all the places they're supposed to be.
20069
20070 Grep wants private fixed already mapped.
20071 The main things grep needs to know about mmap are:
20072 * does it exist and is it safe to write into the mmap'd area
20073 * how to use it (BSD variants) */
20074
20075#include <fcntl.h>
20076#include <sys/mman.h>
20077
20078#if !STDC_HEADERS && !HAVE_STDLIB_H
20079char *malloc ();
20080#endif
20081
20082/* This mess was copied from the GNU getpagesize.h. */
20083#if !HAVE_GETPAGESIZE
20084/* Assume that all systems that can run configure have sys/param.h. */
20085# if !HAVE_SYS_PARAM_H
20086# define HAVE_SYS_PARAM_H 1
20087# endif
20088
20089# ifdef _SC_PAGESIZE
20090# define getpagesize() sysconf(_SC_PAGESIZE)
20091# else /* no _SC_PAGESIZE */
20092# if HAVE_SYS_PARAM_H
20093# include <sys/param.h>
20094# ifdef EXEC_PAGESIZE
20095# define getpagesize() EXEC_PAGESIZE
20096# else /* no EXEC_PAGESIZE */
20097# ifdef NBPG
20098# define getpagesize() NBPG * CLSIZE
20099# ifndef CLSIZE
20100# define CLSIZE 1
20101# endif /* no CLSIZE */
20102# else /* no NBPG */
20103# ifdef NBPC
20104# define getpagesize() NBPC
20105# else /* no NBPC */
20106# ifdef PAGESIZE
20107# define getpagesize() PAGESIZE
20108# endif /* PAGESIZE */
20109# endif /* no NBPC */
20110# endif /* no NBPG */
20111# endif /* no EXEC_PAGESIZE */
20112# else /* no HAVE_SYS_PARAM_H */
20113# define getpagesize() 8192 /* punt totally */
20114# endif /* no HAVE_SYS_PARAM_H */
20115# endif /* no _SC_PAGESIZE */
20116
20117#endif /* no HAVE_GETPAGESIZE */
20118
20119int
20120main ()
20121{
20122 char *data, *data2, *data3;
20123 int i, pagesize;
20124 int fd;
20125
20126 pagesize = getpagesize ();
20127
20128 /* First, make a file with some known garbage in it. */
20129 data = (char *) malloc (pagesize);
20130 if (!data)
20131 return 1;
20132 for (i = 0; i < pagesize; ++i)
20133 *(data + i) = rand ();
20134 umask (0);
20135 fd = creat ("conftest.mmap", 0600);
20136 if (fd < 0)
20137 return 1;
20138 if (write (fd, data, pagesize) != pagesize)
20139 return 1;
20140 close (fd);
20141
20142 /* Next, try to mmap the file at a fixed address which already has
20143 something else allocated at it. If we can, also make sure that
20144 we see the same garbage. */
20145 fd = open ("conftest.mmap", O_RDWR);
20146 if (fd < 0)
20147 return 1;
20148 data2 = (char *) malloc (2 * pagesize);
20149 if (!data2)
20150 return 1;
20151 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20152 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20153 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20154 return 1;
20155 for (i = 0; i < pagesize; ++i)
20156 if (*(data + i) != *(data2 + i))
20157 return 1;
20158
20159 /* Finally, make sure that changes to the mapped area do not
20160 percolate back to the file as seen by read(). (This is a bug on
20161 some variants of i386 svr4.0.) */
20162 for (i = 0; i < pagesize; ++i)
20163 *(data2 + i) = *(data2 + i) + 1;
20164 data3 = (char *) malloc (pagesize);
20165 if (!data3)
20166 return 1;
20167 if (read (fd, data3, pagesize) != pagesize)
20168 return 1;
20169 for (i = 0; i < pagesize; ++i)
20170 if (*(data + i) != *(data3 + i))
20171 return 1;
20172 close (fd);
20173 return 0;
20174}
20175_ACEOF
20176rm -f conftest$ac_exeext
20177if { (ac_try="$ac_link"
20178case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_link") 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190esac
20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_func_mmap_fixed_mapped=yes
20197else
20198 echo "$as_me: program exited with status $ac_status" >&5
20199echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202( exit $ac_status )
20203ac_cv_func_mmap_fixed_mapped=no
20204fi
20205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20206fi
20207
20208
20209fi
20210{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20211echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20212if test $ac_cv_func_mmap_fixed_mapped = yes; then
20213
20214cat >>confdefs.h <<\_ACEOF
20215#define HAVE_MMAP 1
20216_ACEOF
20217
20218fi
20219rm -f conftest.mmap
20220
20221 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20222echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20223if test "${ac_cv_func_mmap_file+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225else
20226 ac_ext=c
20227ac_cpp='$CPP $CPPFLAGS'
20228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230ac_compiler_gnu=$ac_cv_c_compiler_gnu
20231
20232 if test "$cross_compiling" = yes; then
20233 ac_cv_func_mmap_file=no
20234else
20235 cat >conftest.$ac_ext <<_ACEOF
20236
20237 /* confdefs.h. */
20238_ACEOF
20239cat confdefs.h >>conftest.$ac_ext
20240cat >>conftest.$ac_ext <<_ACEOF
20241/* end confdefs.h. */
20242
20243#include <sys/types.h>
20244#include <sys/mman.h>
20245#include <fcntl.h>
20246
20247int
20248main ()
20249{
20250
20251 int fd;
20252 fd = creat ("foo",0777);
20253 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20254 unlink ("foo");
20255 return (fd != (int) MAP_FAILED);
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260rm -f conftest$ac_exeext
20261if { (ac_try="$ac_link"
20262case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265esac
20266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20271 { (case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_try") 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_cv_func_mmap_file=yes
20281else
20282 echo "$as_me: program exited with status $ac_status" >&5
20283echo "$as_me: failed program was:" >&5
20284sed 's/^/| /' conftest.$ac_ext >&5
20285
20286( exit $ac_status )
20287ac_cv_func_mmap_file=no
20288fi
20289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20290fi
20291
20292
20293 ac_ext=c
20294ac_cpp='$CPP $CPPFLAGS'
20295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297ac_compiler_gnu=$ac_cv_c_compiler_gnu
20298
20299
20300fi
20301{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20302echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20303if test "$ac_cv_func_mmap_file" = yes; then
20304
20305cat >>confdefs.h <<\_ACEOF
20306#define HAVE_MMAP_FILE
20307_ACEOF
20308
20309 MMAP_FILE=yes
20310
20311fi
20312
20313 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20314echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20315if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20317else
20318 if test "$llvm_cv_os_type" = "Interix" ; then
20319 ac_cv_need_dev_zero_for_mmap=yes
20320 else
20321 ac_cv_need_dev_zero_for_mmap=no
20322 fi
20323
20324fi
20325{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20326echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20327if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20328
20329cat >>confdefs.h <<\_ACEOF
20330#define NEED_DEV_ZERO_FOR_MMAP 1
20331_ACEOF
20332
20333fi
20334
20335 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20336 then
20337 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20338echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20339 fi
20340 if test "$ac_cv_func_mmap_file" = "no"
20341 then
20342 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20343echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20344 fi
20345fi
20346
20347{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20348echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20349ac_ext=cpp
20350ac_cpp='$CXXCPP $CPPFLAGS'
20351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20354
20355cat >conftest.$ac_ext <<_ACEOF
20356/* confdefs.h. */
20357_ACEOF
20358cat confdefs.h >>conftest.$ac_ext
20359cat >>conftest.$ac_ext <<_ACEOF
20360/* end confdefs.h. */
20361int main() {
20362 volatile unsigned long val = 1;
20363 __sync_synchronize();
20364 __sync_val_compare_and_swap(&val, 1, 0);
20365 __sync_add_and_fetch(&val, 1);
20366 __sync_sub_and_fetch(&val, 1);
20367 return 0;
20368 }
20369
20370_ACEOF
20371rm -f conftest.$ac_objext conftest$ac_exeext
20372if { (ac_try="$ac_link"
20373case "(($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_link") 2>conftest.er1
20379 ac_status=$?
20380 grep -v '^ *+' conftest.er1 >conftest.err
20381 rm -f conftest.er1
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389esac
20390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest$ac_exeext'
20396 { (case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20399esac
20400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_try") 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_ext=c
20406ac_cpp='$CPP $CPPFLAGS'
20407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410
20411 { echo "$as_me:$LINENO: result: yes" >&5
20412echo "${ECHO_T}yes" >&6; }
20413
20414cat >>confdefs.h <<\_ACEOF
20415#define LLVM_HAS_ATOMICS 1
20416_ACEOF
20417
20418else
20419 echo "$as_me: failed program was:" >&5
20420sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 { echo "$as_me:$LINENO: result: no" >&5
20423echo "${ECHO_T}no" >&6; }
20424
20425cat >>confdefs.h <<\_ACEOF
20426#define LLVM_HAS_ATOMICS 0
20427_ACEOF
20428
20429 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20430echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20431fi
20432
20433rm -f core conftest.err conftest.$ac_objext \
20434 conftest$ac_exeext conftest.$ac_ext
20435
20436
20437if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20438 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20439echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20440if test "${llvm_cv_linux_mixed+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442else
20443 ac_ext=c
20444ac_cpp='$CPP $CPPFLAGS'
20445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447ac_compiler_gnu=$ac_cv_c_compiler_gnu
20448
20449 cat >conftest.$ac_ext <<_ACEOF
20450/* confdefs.h. */
20451_ACEOF
20452cat confdefs.h >>conftest.$ac_ext
20453cat >>conftest.$ac_ext <<_ACEOF
20454/* end confdefs.h. */
20455#ifndef __x86_64__
20456 error: Not x86-64 even if uname says so!
20457 #endif
20458
20459int
20460main ()
20461{
20462
20463 ;
20464 return 0;
20465}
20466_ACEOF
20467rm -f conftest.$ac_objext
20468if { (ac_try="$ac_compile"
20469case "(($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_compile") 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485esac
20486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest.$ac_objext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495esac
20496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 llvm_cv_linux_mixed=no
20502else
20503 echo "$as_me: failed program was:" >&5
20504sed 's/^/| /' conftest.$ac_ext >&5
20505
20506 llvm_cv_linux_mixed=yes
20507fi
20508
20509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510 ac_ext=c
20511ac_cpp='$CPP $CPPFLAGS'
20512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515
20516
20517fi
20518{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20519echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20520
20521 if test "$llvm_cv_linux_mixed" = "yes"; then
20522 llvm_cv_target_arch="x86"
20523 ARCH="x86"
20524 fi
20525fi
20526
20527
20528for ac_func in __dso_handle
20529do
20530as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20533if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 cat >conftest.$ac_ext <<_ACEOF
20537/* confdefs.h. */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
20542/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20544#define $ac_func innocuous_$ac_func
20545
20546/* System header to define __stub macros and hopefully few prototypes,
20547 which can conflict with char $ac_func (); below.
20548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20549 <limits.h> exists even on freestanding compilers. */
20550
20551#ifdef __STDC__
20552# include <limits.h>
20553#else
20554# include <assert.h>
20555#endif
20556
20557#undef $ac_func
20558
20559/* Override any GCC internal prototype to avoid an error.
20560 Use char because int might match the return type of a GCC
20561 builtin and then its argument prototype would still apply. */
20562#ifdef __cplusplus
20563extern "C"
20564#endif
20565char $ac_func ();
20566/* The GNU C library defines this for functions which it implements
20567 to always fail with ENOSYS. Some functions are actually named
20568 something starting with __ and the normal name is an alias. */
20569#if defined __stub_$ac_func || defined __stub___$ac_func
20570choke me
20571#endif
20572
20573int
20574main ()
20575{
20576return $ac_func ();
20577 ;
20578 return 0;
20579}
20580_ACEOF
20581rm -f conftest.$ac_objext conftest$ac_exeext
20582if { (ac_try="$ac_link"
20583case "(($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_link") 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; } &&
20605 { ac_try='test -s conftest$ac_exeext'
20606 { (case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609esac
20610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_try") 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 eval "$as_ac_var=yes"
20616else
20617 echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620 eval "$as_ac_var=no"
20621fi
20622
20623rm -f core conftest.err conftest.$ac_objext \
20624 conftest$ac_exeext conftest.$ac_ext
20625fi
20626ac_res=`eval echo '${'$as_ac_var'}'`
20627 { echo "$as_me:$LINENO: result: $ac_res" >&5
20628echo "${ECHO_T}$ac_res" >&6; }
20629if test `eval echo '${'$as_ac_var'}'` = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20632_ACEOF
20633
20634fi
20635done
20636
20637
20638SHLIBEXT=$libltdl_cv_shlibext
20639
20640
20641SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20642
20643
20644# Translate the various configuration directories and other basic
20645# information into substitutions that will end up in Makefile.config.in
20646# that these configured values can be used by the makefiles
20647if test "${prefix}" = "NONE" ; then
20648 prefix="/usr/local"
20649fi
20650eval LLVM_PREFIX="${prefix}";
20651eval LLVM_BINDIR="${prefix}/bin";
20652eval LLVM_LIBDIR="${prefix}/lib";
20653eval LLVM_DATADIR="${prefix}/share/llvm";
20654eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20655eval LLVM_ETCDIR="${prefix}/etc/llvm";
20656eval LLVM_INCLUDEDIR="${prefix}/include";
20657eval LLVM_INFODIR="${prefix}/info";
20658eval LLVM_MANDIR="${prefix}/man";
20659LLVM_CONFIGTIME=`date`
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671# Place the various directores into the config.h file as #defines so that we
20672# can know about the installation paths within LLVM.
20673
20674cat >>confdefs.h <<_ACEOF
20675#define LLVM_PREFIX "$LLVM_PREFIX"
20676_ACEOF
20677
20678
20679cat >>confdefs.h <<_ACEOF
20680#define LLVM_BINDIR "$LLVM_BINDIR"
20681_ACEOF
20682
20683
20684cat >>confdefs.h <<_ACEOF
20685#define LLVM_LIBDIR "$LLVM_LIBDIR"
20686_ACEOF
20687
20688
20689cat >>confdefs.h <<_ACEOF
20690#define LLVM_DATADIR "$LLVM_DATADIR"
20691_ACEOF
20692
20693
20694cat >>confdefs.h <<_ACEOF
20695#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20696_ACEOF
20697
20698
20699cat >>confdefs.h <<_ACEOF
20700#define LLVM_ETCDIR "$LLVM_ETCDIR"
20701_ACEOF
20702
20703
20704cat >>confdefs.h <<_ACEOF
20705#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20706_ACEOF
20707
20708
20709cat >>confdefs.h <<_ACEOF
20710#define LLVM_INFODIR "$LLVM_INFODIR"
20711_ACEOF
20712
20713
20714cat >>confdefs.h <<_ACEOF
20715#define LLVM_MANDIR "$LLVM_MANDIR"
20716_ACEOF
20717
20718
20719cat >>confdefs.h <<_ACEOF
20720#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20721_ACEOF
20722
20723
20724cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020725#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020726_ACEOF
20727
20728
20729# Determine which bindings to build.
20730if test "$BINDINGS_TO_BUILD" = auto ; then
20731 BINDINGS_TO_BUILD=""
20732 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20733 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20734 fi
20735fi
20736BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20737
20738
20739# This isn't really configurey, but it avoids having to repeat the list in
20740# other files.
20741ALL_BINDINGS=ocaml
20742
20743
20744# Do any work necessary to ensure that bindings have what they need.
20745binding_prereqs_failed=0
20746for a_binding in $BINDINGS_TO_BUILD ; do
20747 case "$a_binding" in
20748 ocaml)
20749 if test "x$OCAMLC" = x ; then
20750 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20751echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20752 binding_prereqs_failed=1
20753 fi
20754 if test "x$OCAMLDEP" = x ; then
20755 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20756echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20757 binding_prereqs_failed=1
20758 fi
20759 if test "x$OCAMLOPT" = x ; then
20760 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20761echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20762 fi
20763 if test "x$with_ocaml_libdir" != xauto ; then
20764 OCAML_LIBDIR=$with_ocaml_libdir
20765
20766 else
20767 ocaml_stdlib="`"$OCAMLC" -where`"
20768 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20769 then
20770 # ocaml stdlib is beneath our prefix; use stdlib
20771 OCAML_LIBDIR=$ocaml_stdlib
20772
20773 else
20774 # ocaml stdlib is outside our prefix; use libdir/ocaml
20775 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20776
20777 fi
20778 fi
20779 ;;
20780 esac
20781done
20782if test "$binding_prereqs_failed" = 1 ; then
20783 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20784echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20785 { (exit 1); exit 1; }; }
20786fi
20787
20788{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20789echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20790if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20792else
20793 ac_ext=cpp
20794ac_cpp='$CXXCPP $CPPFLAGS'
20795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799 oldcxxflags="$CXXFLAGS"
Benjamin Kramer00171802012-05-05 15:02:39 +000020800 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020801 cat >conftest.$ac_ext <<_ACEOF
20802/* confdefs.h. */
20803_ACEOF
20804cat confdefs.h >>conftest.$ac_ext
20805cat >>conftest.$ac_ext <<_ACEOF
20806/* end confdefs.h. */
Benjamin Kramer00171802012-05-05 15:02:39 +000020807template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020808int
20809main ()
20810{
Benjamin Kramer00171802012-05-05 15:02:39 +000020811X<int>().f();
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020812 ;
20813 return 0;
20814}
20815_ACEOF
20816rm -f conftest.$ac_objext
20817if { (ac_try="$ac_compile"
20818case "(($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_compile") 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20831 { (case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20834esac
20835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_try") 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; } &&
20840 { ac_try='test -s conftest.$ac_objext'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844esac
20845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 llvm_cv_cxx_visibility_inlines_hidden=yes
20851else
20852 echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 llvm_cv_cxx_visibility_inlines_hidden=no
20856fi
20857
20858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859 CXXFLAGS="$oldcxxflags"
20860 ac_ext=c
20861ac_cpp='$CPP $CPPFLAGS'
20862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20864ac_compiler_gnu=$ac_cv_c_compiler_gnu
20865
20866
20867fi
20868{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20869echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20870if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20871 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20872
20873else
20874 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20875
20876fi
20877
20878
20879if test "$llvm_cv_link_use_r" = "yes" ; then
20880 RPATH="-Wl,-R"
20881else
20882 RPATH="-Wl,-rpath"
20883fi
20884
20885
20886if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20887 RDYNAMIC="-Wl,-export-dynamic"
20888else
20889 RDYNAMIC=""
20890fi
20891
20892
20893
Reid Spencer421ec052005-02-24 18:53:47 +000020894
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020895ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020896
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020897ac_config_files="$ac_config_files Makefile.llvm.config"
20898
John Criswell451f67f2003-10-16 01:45:35 +000020899
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020900ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020901
20902
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020903ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020904
20905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020906ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020907
20908
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020909ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020910
20911
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020912ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020913
20914
20915
John Criswell451f67f2003-10-16 01:45:35 +000020916cat >confcache <<\_ACEOF
20917# This file is a shell script that caches the results of configure
20918# tests run on this system so they can be shared between configure
20919# scripts and configure runs, see configure's option --config-cache.
20920# It is not useful on other systems. If it contains results you don't
20921# want to keep, you may remove or edit it.
20922#
20923# config.status only pays attention to the cache file if you give it
20924# the --recheck option to rerun configure.
20925#
20926# `ac_cv_env_foo' variables (set or unset) will be overridden when
20927# loading this file, other *unset* `ac_cv_foo' will be assigned the
20928# following values.
20929
20930_ACEOF
20931
20932# The following way of writing the cache mishandles newlines in values,
20933# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020934# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020935# Ultrix sh set writes to stderr and can't be redirected directly,
20936# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020937(
20938 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20939 eval ac_val=\$$ac_var
20940 case $ac_val in #(
20941 *${as_nl}*)
20942 case $ac_var in #(
20943 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20944echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20945 esac
20946 case $ac_var in #(
20947 _ | IFS | as_nl) ;; #(
20948 *) $as_unset $ac_var ;;
20949 esac ;;
20950 esac
20951 done
20952
John Criswell451f67f2003-10-16 01:45:35 +000020953 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20955 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020956 # `set' does not quote correctly, so add quotes (double-quote
20957 # substitution turns \\\\ into \\, and sed turns \\ into \).
20958 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020959 "s/'/'\\\\''/g;
20960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020961 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020962 *)
20963 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020965 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020966 esac |
20967 sort
20968) |
John Criswell451f67f2003-10-16 01:45:35 +000020969 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020970 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020971 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020972 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20974 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20976 :end' >>confcache
20977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20978 if test -w "$cache_file"; then
20979 test "x$cache_file" != "x/dev/null" &&
20980 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20981echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020982 cat confcache >$cache_file
20983 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020984 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20985echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020986 fi
20987fi
20988rm -f confcache
20989
20990test "x$prefix" = xNONE && prefix=$ac_default_prefix
20991# Let make expand exec_prefix.
20992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20993
John Criswell451f67f2003-10-16 01:45:35 +000020994# Transform confdefs.h into DEFS.
20995# Protect against shell expansion while executing Makefile rules.
20996# Protect against Makefile macro expansion.
20997#
20998# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020999# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021000# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021001ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021002t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021003:clear
21004s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021005t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021006s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021007t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021008b any
21009:quote
21010s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21011s/\[/\\&/g
21012s/\]/\\&/g
21013s/\$/$$/g
21014H
21015:any
21016${
21017 g
21018 s/^\n//
21019 s/\n/ /g
21020 p
21021}
21022'
21023DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021024
21025
21026ac_libobjs=
21027ac_ltlibobjs=
21028for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21029 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21031 ac_i=`echo "$ac_i" | sed "$ac_script"`
21032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21033 # will be set to the directory where LIBOBJS objects are built.
21034 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21035 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021036done
21037LIBOBJS=$ac_libobjs
21038
21039LTLIBOBJS=$ac_ltlibobjs
21040
21041
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021042if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21043 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21044Usually this means the macro was only invoked conditionally." >&5
21045echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21046Usually this means the macro was only invoked conditionally." >&2;}
21047 { (exit 1); exit 1; }; }
21048fi
21049if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21050 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21051Usually this means the macro was only invoked conditionally." >&5
21052echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21053Usually this means the macro was only invoked conditionally." >&2;}
21054 { (exit 1); exit 1; }; }
21055fi
John Criswell451f67f2003-10-16 01:45:35 +000021056
21057: ${CONFIG_STATUS=./config.status}
21058ac_clean_files_save=$ac_clean_files
21059ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21060{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21061echo "$as_me: creating $CONFIG_STATUS" >&6;}
21062cat >$CONFIG_STATUS <<_ACEOF
21063#! $SHELL
21064# Generated by $as_me.
21065# Run this file to recreate the current configuration.
21066# Compiler output produced by configure, useful for debugging
21067# configure, is in config.log if it exists.
21068
21069debug=false
21070ac_cs_recheck=false
21071ac_cs_silent=false
21072SHELL=\${CONFIG_SHELL-$SHELL}
21073_ACEOF
21074
21075cat >>$CONFIG_STATUS <<\_ACEOF
21076## --------------------- ##
21077## M4sh Initialization. ##
21078## --------------------- ##
21079
Dan Gohman324f6082009-03-25 00:52:11 +000021080# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021081if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21082 emulate sh
21083 NULLCMD=:
21084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21085 # is contrary to our usage. Disable this feature.
21086 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021087 setopt NO_GLOB_SUBST
21088else
21089 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021090fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021091BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021092DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021093
John Criswell451f67f2003-10-16 01:45:35 +000021094
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021095# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021096# Avoid depending upon Character Ranges.
21097as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21099as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21100as_cr_digits='0123456789'
21101as_cr_alnum=$as_cr_Letters$as_cr_digits
21102
21103# The user is always right.
21104if test "${PATH_SEPARATOR+set}" != set; then
21105 echo "#! /bin/sh" >conf$$.sh
21106 echo "exit 0" >>conf$$.sh
21107 chmod +x conf$$.sh
21108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21109 PATH_SEPARATOR=';'
21110 else
21111 PATH_SEPARATOR=:
21112 fi
21113 rm -f conf$$.sh
21114fi
21115
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021116# Support unset when possible.
21117if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21118 as_unset=unset
21119else
21120 as_unset=false
21121fi
John Criswell451f67f2003-10-16 01:45:35 +000021122
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021123
21124# IFS
21125# We need space, tab and new line, in precisely that order. Quoting is
21126# there to prevent editors from complaining about space-tab.
21127# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21128# splitting by setting IFS to empty value.)
21129as_nl='
21130'
21131IFS=" "" $as_nl"
21132
21133# Find who we are. Look in the path if we contain no directory separator.
21134case $0 in
21135 *[\\/]* ) as_myself=$0 ;;
21136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021137for as_dir in $PATH
21138do
21139 IFS=$as_save_IFS
21140 test -z "$as_dir" && as_dir=.
21141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21142done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021143IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021144
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021145 ;;
21146esac
21147# We did not find ourselves, most probably we were run as `sh COMMAND'
21148# in which case we are not to be found in the path.
21149if test "x$as_myself" = x; then
21150 as_myself=$0
21151fi
21152if test ! -f "$as_myself"; then
21153 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21154 { (exit 1); exit 1; }
21155fi
21156
21157# Work around bugs in pre-3.0 UWIN ksh.
21158for as_var in ENV MAIL MAILPATH
21159do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21160done
21161PS1='$ '
21162PS2='> '
21163PS4='+ '
21164
21165# NLS nuisances.
21166for as_var in \
21167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21169 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021170do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021171 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21172 eval $as_var=C; export $as_var
21173 else
21174 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21175 fi
21176done
21177
21178# Required to use basename.
21179if expr a : '\(a\)' >/dev/null 2>&1 &&
21180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21181 as_expr=expr
21182else
21183 as_expr=false
21184fi
21185
21186if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21187 as_basename=basename
21188else
21189 as_basename=false
21190fi
21191
21192
21193# Name of the executable.
21194as_me=`$as_basename -- "$0" ||
21195$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21196 X"$0" : 'X\(//\)$' \| \
21197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21198echo X/"$0" |
21199 sed '/^.*\/\([^/][^/]*\)\/*$/{
21200 s//\1/
21201 q
21202 }
21203 /^X\/\(\/\/\)$/{
21204 s//\1/
21205 q
21206 }
21207 /^X\/\(\/\).*/{
21208 s//\1/
21209 q
21210 }
21211 s/.*/./; q'`
21212
21213# CDPATH.
21214$as_unset CDPATH
21215
21216
21217
John Criswell451f67f2003-10-16 01:45:35 +000021218 as_lineno_1=$LINENO
21219 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021220 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021221 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021222
21223 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21224 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021225 # line-number line after each line using $LINENO; the second 'sed'
21226 # does the real work. The second script uses 'N' to pair each
21227 # line-number line with the line containing $LINENO, and appends
21228 # trailing '-' during substitution so that $LINENO is not a special
21229 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021231 # scripts with optimization help from Paolo Bonzini. Blame Lee
21232 # E. McMahon (1931-1989) for sed's syntax. :-)
21233 sed -n '
21234 p
21235 /[$]LINENO/=
21236 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021237 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021238 s/[$]LINENO.*/&-/
21239 t lineno
21240 b
21241 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021242 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021243 :loop
21244 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021245 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021246 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021247 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021248 chmod +x "$as_me.lineno" ||
21249 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021250 { (exit 1); exit 1; }; }
21251
21252 # Don't try to exec as it changes $[0], causing all sort of problems
21253 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021254 # original and so on. Autoconf is especially sensitive to this).
21255 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021256 # Exit status is that of the last command.
21257 exit
21258}
21259
21260
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021261if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21262 as_dirname=dirname
21263else
21264 as_dirname=false
21265fi
21266
21267ECHO_C= ECHO_N= ECHO_T=
21268case `echo -n x` in
21269-n*)
21270 case `echo 'x\c'` in
21271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21272 *) ECHO_C='\c';;
21273 esac;;
21274*)
21275 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021276esac
21277
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021278if expr a : '\(a\)' >/dev/null 2>&1 &&
21279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021280 as_expr=expr
21281else
21282 as_expr=false
21283fi
21284
21285rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021286if test -d conf$$.dir; then
21287 rm -f conf$$.dir/conf$$.file
21288else
21289 rm -f conf$$.dir
21290 mkdir conf$$.dir
21291fi
John Criswell451f67f2003-10-16 01:45:35 +000021292echo >conf$$.file
21293if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021294 as_ln_s='ln -s'
21295 # ... but there are two gotchas:
21296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21298 # In both cases, we have to default to `cp -p'.
21299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021300 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021301elif ln conf$$.file conf$$ 2>/dev/null; then
21302 as_ln_s=ln
21303else
21304 as_ln_s='cp -p'
21305fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021306rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21307rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021308
21309if mkdir -p . 2>/dev/null; then
21310 as_mkdir_p=:
21311else
Reid Spencer9964cd82005-01-01 09:26:55 +000021312 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021313 as_mkdir_p=false
21314fi
21315
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021316# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21317# systems may use methods other than mode bits to determine executability.
21318cat >conf$$.file <<_ASEOF
21319#! /bin/sh
21320exit 0
21321_ASEOF
21322chmod +x conf$$.file
21323if test -x conf$$.file >/dev/null 2>&1; then
21324 as_executable_p="test -x"
21325else
21326 as_executable_p=:
21327fi
21328rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021329
21330# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021331as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021332
21333# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021334as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021335
21336
John Criswell451f67f2003-10-16 01:45:35 +000021337exec 6>&1
21338
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021339# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021340# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021341# values after options handling.
21342ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021343This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021344generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021345
21346 CONFIG_FILES = $CONFIG_FILES
21347 CONFIG_HEADERS = $CONFIG_HEADERS
21348 CONFIG_LINKS = $CONFIG_LINKS
21349 CONFIG_COMMANDS = $CONFIG_COMMANDS
21350 $ $0 $@
21351
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021352on `(hostname || uname -n) 2>/dev/null | sed 1q`
21353"
21354
John Criswell451f67f2003-10-16 01:45:35 +000021355_ACEOF
21356
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021357cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021358# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021359config_files="$ac_config_files"
21360config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021361
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021362_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021363
21364cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021365ac_cs_usage="\
21366\`$as_me' instantiates files from templates according to the
21367current configuration.
21368
21369Usage: $0 [OPTIONS] [FILE]...
21370
21371 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021372 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021373 -q, --quiet do not print progress messages
21374 -d, --debug don't remove temporary files
21375 --recheck update $as_me by reconfiguring in the same conditions
21376 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021377 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021378
21379Configuration files:
21380$config_files
21381
21382Configuration commands:
21383$config_commands
21384
21385Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021386
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021387_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021388cat >>$CONFIG_STATUS <<_ACEOF
21389ac_cs_version="\\
21390[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021391configured by $0, generated by GNU Autoconf 2.60,
21392 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021393
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021394Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021395This config.status script is free software; the Free Software Foundation
21396gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021397
21398ac_pwd='$ac_pwd'
21399srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021400INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021401_ACEOF
21402
21403cat >>$CONFIG_STATUS <<\_ACEOF
21404# If no file are specified by the user, then we need to provide default
21405# value. By we need to know if files were specified by the user.
21406ac_need_defaults=:
21407while test $# != 0
21408do
21409 case $1 in
21410 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021413 ac_shift=:
21414 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021415 *)
John Criswell451f67f2003-10-16 01:45:35 +000021416 ac_option=$1
21417 ac_optarg=$2
21418 ac_shift=shift
21419 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021420 esac
21421
21422 case $ac_option in
21423 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21425 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21427 echo "$ac_cs_version"; exit ;;
21428 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021429 debug=: ;;
21430 --file | --fil | --fi | --f )
21431 $ac_shift
21432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21433 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021434 --he | --h | --help | --hel | -h )
21435 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21438 ac_cs_silent=: ;;
21439
21440 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021441 -*) { echo "$as_me: error: unrecognized option: $1
21442Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021443 { (exit 1); exit 1; }; } ;;
21444
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021445 *) ac_config_targets="$ac_config_targets $1"
21446 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021447
21448 esac
21449 shift
21450done
21451
21452ac_configure_extra_args=
21453
21454if $ac_cs_silent; then
21455 exec 6>/dev/null
21456 ac_configure_extra_args="$ac_configure_extra_args --silent"
21457fi
21458
21459_ACEOF
21460cat >>$CONFIG_STATUS <<_ACEOF
21461if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021462 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21463 CONFIG_SHELL=$SHELL
21464 export CONFIG_SHELL
21465 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021466fi
21467
21468_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021469cat >>$CONFIG_STATUS <<\_ACEOF
21470exec 5>>config.log
21471{
21472 echo
21473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21474## Running $as_me. ##
21475_ASBOX
21476 echo "$ac_log"
21477} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021479_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021480cat >>$CONFIG_STATUS <<_ACEOF
21481#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021482# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021483#
Reid Spencer421ec052005-02-24 18:53:47 +000021484llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021485
21486_ACEOF
21487
Dan Gohman324f6082009-03-25 00:52:11 +000021488cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021489
21490# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021491for ac_config_target in $ac_config_targets
21492do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021493 case $ac_config_target in
21494 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21495 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021496 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021497 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21498 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21499 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21500 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21501 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21502
John Criswell451f67f2003-10-16 01:45:35 +000021503 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21504echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21505 { (exit 1); exit 1; }; };;
21506 esac
21507done
21508
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021509
John Criswell451f67f2003-10-16 01:45:35 +000021510# If the user did not use the arguments to specify the items to instantiate,
21511# then the envvar interface is used. Set only those that are not.
21512# We use the long form for the default assignment because of an extremely
21513# bizarre bug on SunOS 4.1.3.
21514if $ac_need_defaults; then
21515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21517fi
21518
21519# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021520# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021521# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021522# Hook for its removal unless debugging.
21523# Note that there is a small window in which the directory will not be cleaned:
21524# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021525$debug ||
21526{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021527 tmp=
21528 trap 'exit_status=$?
21529 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21530' 0
John Criswell451f67f2003-10-16 01:45:35 +000021531 trap '{ (exit 1); exit 1; }' 1 2 13 15
21532}
John Criswell451f67f2003-10-16 01:45:35 +000021533# Create a (secure) tmp directory for tmp files.
21534
21535{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021537 test -n "$tmp" && test -d "$tmp"
21538} ||
21539{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021540 tmp=./conf$$-$RANDOM
21541 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021542} ||
21543{
21544 echo "$me: cannot create a temporary directory in ." >&2
21545 { (exit 1); exit 1; }
21546}
21547
John Criswell451f67f2003-10-16 01:45:35 +000021548#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021549# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021550#
21551
21552# No need to generate the scripts if there are no CONFIG_FILES.
21553# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021554if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021555
21556_ACEOF
21557
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021558
21559
21560ac_delim='%!_!# '
21561for ac_last_try in false false false false false :; do
21562 cat >conf$$subs.sed <<_ACEOF
21563SHELL!$SHELL$ac_delim
21564PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21565PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21566PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21567PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21568PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21569PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21570exec_prefix!$exec_prefix$ac_delim
21571prefix!$prefix$ac_delim
21572program_transform_name!$program_transform_name$ac_delim
21573bindir!$bindir$ac_delim
21574sbindir!$sbindir$ac_delim
21575libexecdir!$libexecdir$ac_delim
21576datarootdir!$datarootdir$ac_delim
21577datadir!$datadir$ac_delim
21578sysconfdir!$sysconfdir$ac_delim
21579sharedstatedir!$sharedstatedir$ac_delim
21580localstatedir!$localstatedir$ac_delim
21581includedir!$includedir$ac_delim
21582oldincludedir!$oldincludedir$ac_delim
21583docdir!$docdir$ac_delim
21584infodir!$infodir$ac_delim
21585htmldir!$htmldir$ac_delim
21586dvidir!$dvidir$ac_delim
21587pdfdir!$pdfdir$ac_delim
21588psdir!$psdir$ac_delim
21589libdir!$libdir$ac_delim
21590localedir!$localedir$ac_delim
21591mandir!$mandir$ac_delim
21592DEFS!$DEFS$ac_delim
21593ECHO_C!$ECHO_C$ac_delim
21594ECHO_N!$ECHO_N$ac_delim
21595ECHO_T!$ECHO_T$ac_delim
21596LIBS!$LIBS$ac_delim
21597build_alias!$build_alias$ac_delim
21598host_alias!$host_alias$ac_delim
21599target_alias!$target_alias$ac_delim
21600LLVM_SRC!$LLVM_SRC$ac_delim
21601LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021602LLVM_VERSION!$LLVM_VERSION$ac_delim
21603CC!$CC$ac_delim
21604CFLAGS!$CFLAGS$ac_delim
21605LDFLAGS!$LDFLAGS$ac_delim
21606CPPFLAGS!$CPPFLAGS$ac_delim
21607ac_ct_CC!$ac_ct_CC$ac_delim
21608EXEEXT!$EXEEXT$ac_delim
21609OBJEXT!$OBJEXT$ac_delim
21610CXX!$CXX$ac_delim
21611CXXFLAGS!$CXXFLAGS$ac_delim
21612ac_ct_CXX!$ac_ct_CXX$ac_delim
21613CPP!$CPP$ac_delim
21614ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21615LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21616subdirs!$subdirs$ac_delim
21617build!$build$ac_delim
21618build_cpu!$build_cpu$ac_delim
21619build_vendor!$build_vendor$ac_delim
21620build_os!$build_os$ac_delim
21621host!$host$ac_delim
21622host_cpu!$host_cpu$ac_delim
21623host_vendor!$host_vendor$ac_delim
21624host_os!$host_os$ac_delim
21625target!$target$ac_delim
21626target_cpu!$target_cpu$ac_delim
21627target_vendor!$target_vendor$ac_delim
21628target_os!$target_os$ac_delim
21629OS!$OS$ac_delim
21630HOST_OS!$HOST_OS$ac_delim
21631TARGET_OS!$TARGET_OS$ac_delim
21632LINKALL!$LINKALL$ac_delim
21633NOLINKALL!$NOLINKALL$ac_delim
21634LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21635LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21636ARCH!$ARCH$ac_delim
21637ENDIAN!$ENDIAN$ac_delim
21638GREP!$GREP$ac_delim
21639EGREP!$EGREP$ac_delim
21640LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21641BUILD_CC!$BUILD_CC$ac_delim
21642BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21643BUILD_CXX!$BUILD_CXX$ac_delim
21644CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021645ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021646ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21647ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21648DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21649ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21650EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21651DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21652DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21653JIT!$JIT$ac_delim
21654TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21655ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21656ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21657ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21658ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21659ENABLE_PIC!$ENABLE_PIC$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021660_ACEOF
21661
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021663 break
21664 elif $ac_last_try; then
21665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21666echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21667 { (exit 1); exit 1; }; }
21668 else
21669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021670 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021671done
21672
21673ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21674if test -n "$ac_eof"; then
21675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21676 ac_eof=`expr $ac_eof + 1`
21677fi
21678
21679cat >>$CONFIG_STATUS <<_ACEOF
21680cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21682_ACEOF
21683sed '
21684s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21685s/^/s,@/; s/!/@,|#_!!_#|/
21686:n
21687t n
21688s/'"$ac_delim"'$/,g/; t
21689s/$/\\/; p
21690N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21691' >>$CONFIG_STATUS <conf$$subs.sed
21692rm -f conf$$subs.sed
21693cat >>$CONFIG_STATUS <<_ACEOF
21694CEOF$ac_eof
21695_ACEOF
21696
21697
21698ac_delim='%!_!# '
21699for ac_last_try in false false false false false :; do
21700 cat >conf$$subs.sed <<_ACEOF
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021701ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021702ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21703ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21704TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21705LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21706LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21707LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21708LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021709OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21710EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21711EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21712BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21713NM!$NM$ac_delim
21714ifGNUmake!$ifGNUmake$ac_delim
21715LN_S!$LN_S$ac_delim
21716CMP!$CMP$ac_delim
21717CP!$CP$ac_delim
21718DATE!$DATE$ac_delim
21719FIND!$FIND$ac_delim
21720MKDIR!$MKDIR$ac_delim
21721MV!$MV$ac_delim
21722RANLIB!$RANLIB$ac_delim
21723AR!$AR$ac_delim
21724RM!$RM$ac_delim
21725SED!$SED$ac_delim
21726TAR!$TAR$ac_delim
21727BINPWD!$BINPWD$ac_delim
21728GRAPHVIZ!$GRAPHVIZ$ac_delim
21729DOT!$DOT$ac_delim
21730FDP!$FDP$ac_delim
21731NEATO!$NEATO$ac_delim
21732TWOPI!$TWOPI$ac_delim
21733CIRCO!$CIRCO$ac_delim
21734GV!$GV$ac_delim
21735DOTTY!$DOTTY$ac_delim
21736XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021737INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21738INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21739INSTALL_DATA!$INSTALL_DATA$ac_delim
21740BZIP2!$BZIP2$ac_delim
21741CAT!$CAT$ac_delim
21742DOXYGEN!$DOXYGEN$ac_delim
21743GROFF!$GROFF$ac_delim
21744GZIPBIN!$GZIPBIN$ac_delim
21745POD2HTML!$POD2HTML$ac_delim
21746POD2MAN!$POD2MAN$ac_delim
21747PDFROFF!$PDFROFF$ac_delim
21748RUNTEST!$RUNTEST$ac_delim
21749TCLSH!$TCLSH$ac_delim
21750ZIP!$ZIP$ac_delim
21751OCAMLC!$OCAMLC$ac_delim
21752OCAMLOPT!$OCAMLOPT$ac_delim
21753OCAMLDEP!$OCAMLDEP$ac_delim
21754OCAMLDOC!$OCAMLDOC$ac_delim
21755GAS!$GAS$ac_delim
21756HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21757INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21758INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21759CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21760CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21761LIBADD_DL!$LIBADD_DL$ac_delim
21762NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21763NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021764COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021765USE_UDIS86!$USE_UDIS86$ac_delim
21766USE_OPROFILE!$USE_OPROFILE$ac_delim
21767HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21768HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21769MMAP_FILE!$MMAP_FILE$ac_delim
21770SHLIBEXT!$SHLIBEXT$ac_delim
21771SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21772LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21773LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21774LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21775LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21776LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21777LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21778LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21779LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21780LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21781LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21782BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21783ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21784OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21785ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21786RPATH!$RPATH$ac_delim
21787RDYNAMIC!$RDYNAMIC$ac_delim
21788LIBOBJS!$LIBOBJS$ac_delim
21789LTLIBOBJS!$LTLIBOBJS$ac_delim
21790_ACEOF
21791
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021793 break
21794 elif $ac_last_try; then
21795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21796echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21797 { (exit 1); exit 1; }; }
21798 else
21799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21800 fi
21801done
21802
21803ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21804if test -n "$ac_eof"; then
21805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21806 ac_eof=`expr $ac_eof + 1`
21807fi
21808
21809cat >>$CONFIG_STATUS <<_ACEOF
21810cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21812_ACEOF
21813sed '
21814s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21815s/^/s,@/; s/!/@,|#_!!_#|/
21816:n
21817t n
21818s/'"$ac_delim"'$/,g/; t
21819s/$/\\/; p
21820N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21821' >>$CONFIG_STATUS <conf$$subs.sed
21822rm -f conf$$subs.sed
21823cat >>$CONFIG_STATUS <<_ACEOF
21824:end
21825s/|#_!!_#|//g
21826CEOF$ac_eof
21827_ACEOF
21828
21829
21830# VPATH may cause trouble with some makes, so we remove $(srcdir),
21831# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21832# trailing colons and then remove the whole line if VPATH becomes empty
21833# (actually we leave an empty line to preserve line numbers).
21834if test "x$srcdir" = x.; then
21835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21836s/:*\$(srcdir):*/:/
21837s/:*\${srcdir}:*/:/
21838s/:*@srcdir@:*/:/
21839s/^\([^=]*=[ ]*\):*/\1/
21840s/:*$//
21841s/^[^=]*=[ ]*$//
21842}'
21843fi
21844
21845cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021846fi # test -n "$CONFIG_FILES"
21847
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021848
21849for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21850do
21851 case $ac_tag in
21852 :[FHLC]) ac_mode=$ac_tag; continue;;
21853 esac
21854 case $ac_mode$ac_tag in
21855 :[FHL]*:*);;
21856 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21857echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21858 { (exit 1); exit 1; }; };;
21859 :[FH]-) ac_tag=-:-;;
21860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21861 esac
21862 ac_save_IFS=$IFS
21863 IFS=:
21864 set x $ac_tag
21865 IFS=$ac_save_IFS
21866 shift
21867 ac_file=$1
21868 shift
21869
21870 case $ac_mode in
21871 :L) ac_source=$1;;
21872 :[FH])
21873 ac_file_inputs=
21874 for ac_f
21875 do
21876 case $ac_f in
21877 -) ac_f="$tmp/stdin";;
21878 *) # Look for the file first in the build tree, then in the source tree
21879 # (if the path is not absolute). The absolute path cannot be DOS-style,
21880 # because $ac_f cannot contain `:'.
21881 test -f "$ac_f" ||
21882 case $ac_f in
21883 [\\/$]*) false;;
21884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21885 esac ||
21886 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21887echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21888 { (exit 1); exit 1; }; };;
21889 esac
21890 ac_file_inputs="$ac_file_inputs $ac_f"
21891 done
21892
21893 # Let's still pretend it is `configure' which instantiates (i.e., don't
21894 # use $as_me), people would be surprised to read:
21895 # /* config.h. Generated by config.status. */
21896 configure_input="Generated from "`IFS=:
21897 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21898 if test x"$ac_file" != x-; then
21899 configure_input="$ac_file. $configure_input"
21900 { echo "$as_me:$LINENO: creating $ac_file" >&5
21901echo "$as_me: creating $ac_file" >&6;}
21902 fi
21903
21904 case $ac_tag in
21905 *:-:* | *:-) cat >"$tmp/stdin";;
21906 esac
21907 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021908 esac
21909
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021910 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021912 X"$ac_file" : 'X\(//\)[^/]' \| \
21913 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021915echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21917 s//\1/
21918 q
21919 }
21920 /^X\(\/\/\)[^/].*/{
21921 s//\1/
21922 q
21923 }
21924 /^X\(\/\/\)$/{
21925 s//\1/
21926 q
21927 }
21928 /^X\(\/\).*/{
21929 s//\1/
21930 q
21931 }
21932 s/.*/./; q'`
21933 { as_dir="$ac_dir"
21934 case $as_dir in #(
21935 -*) as_dir=./$as_dir;;
21936 esac
21937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021938 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021939 while :; do
21940 case $as_dir in #(
21941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21942 *) as_qdir=$as_dir;;
21943 esac
21944 as_dirs="'$as_qdir' $as_dirs"
21945 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021947 X"$as_dir" : 'X\(//\)[^/]' \| \
21948 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021950echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21952 s//\1/
21953 q
21954 }
21955 /^X\(\/\/\)[^/].*/{
21956 s//\1/
21957 q
21958 }
21959 /^X\(\/\/\)$/{
21960 s//\1/
21961 q
21962 }
21963 /^X\(\/\).*/{
21964 s//\1/
21965 q
21966 }
21967 s/.*/./; q'`
21968 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021969 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021970 test -z "$as_dirs" || eval "mkdir $as_dirs"
21971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21972echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021973 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021974 ac_builddir=.
21975
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021976case "$ac_dir" in
21977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21978*)
John Criswell451f67f2003-10-16 01:45:35 +000021979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021980 # A ".." for each directory in $ac_dir_suffix.
21981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21982 case $ac_top_builddir_sub in
21983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21985 esac ;;
21986esac
21987ac_abs_top_builddir=$ac_pwd
21988ac_abs_builddir=$ac_pwd$ac_dir_suffix
21989# for backward compatibility:
21990ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021991
21992case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021993 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021994 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021995 ac_top_srcdir=$ac_top_builddir_sub
21996 ac_abs_top_srcdir=$ac_pwd ;;
21997 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000021998 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021999 ac_top_srcdir=$srcdir
22000 ac_abs_top_srcdir=$srcdir ;;
22001 *) # Relative name.
22002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22003 ac_top_srcdir=$ac_top_build_prefix$srcdir
22004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022005esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022007
Dan Gohman324f6082009-03-25 00:52:11 +000022008
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022009 case $ac_mode in
22010 :F)
22011 #
22012 # CONFIG_FILE
22013 #
Dan Gohman324f6082009-03-25 00:52:11 +000022014
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022015 case $INSTALL in
22016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22018 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022019_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022020
22021cat >>$CONFIG_STATUS <<\_ACEOF
22022# If the template does not know about datarootdir, expand it.
22023# FIXME: This hack should be removed a few years after 2.60.
22024ac_datarootdir_hack=; ac_datarootdir_seen=
22025
22026case `sed -n '/datarootdir/ {
22027 p
22028 q
22029}
22030/@datadir@/p
22031/@docdir@/p
22032/@infodir@/p
22033/@localedir@/p
22034/@mandir@/p
22035' $ac_file_inputs` in
22036*datarootdir*) ac_datarootdir_seen=yes;;
22037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22038 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22039echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22040_ACEOF
22041cat >>$CONFIG_STATUS <<_ACEOF
22042 ac_datarootdir_hack='
22043 s&@datadir@&$datadir&g
22044 s&@docdir@&$docdir&g
22045 s&@infodir@&$infodir&g
22046 s&@localedir@&$localedir&g
22047 s&@mandir@&$mandir&g
22048 s&\\\${datarootdir}&$datarootdir&g' ;;
22049esac
22050_ACEOF
22051
22052# Neutralize VPATH when `$srcdir' = `.'.
22053# Shell code in configure.ac might set extrasub.
22054# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022055cat >>$CONFIG_STATUS <<_ACEOF
22056 sed "$ac_vpsub
22057$extrasub
22058_ACEOF
22059cat >>$CONFIG_STATUS <<\_ACEOF
22060:t
22061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022062s&@configure_input@&$configure_input&;t t
22063s&@top_builddir@&$ac_top_builddir_sub&;t t
22064s&@srcdir@&$ac_srcdir&;t t
22065s&@abs_srcdir@&$ac_abs_srcdir&;t t
22066s&@top_srcdir@&$ac_top_srcdir&;t t
22067s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22068s&@builddir@&$ac_builddir&;t t
22069s&@abs_builddir@&$ac_abs_builddir&;t t
22070s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022071s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022072$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022073" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022074
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022075test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22079which seems to be undefined. Please make sure it is defined." >&5
22080echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22081which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022082
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022083 rm -f "$tmp/stdin"
22084 case $ac_file in
22085 -) cat "$tmp/out"; rm -f "$tmp/out";;
22086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022087 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022088 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022089
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022090
22091 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22092echo "$as_me: executing $ac_file commands" >&6;}
22093 ;;
22094 esac
22095
22096
22097 case $ac_file$ac_mode in
Benjamin Kramer00171802012-05-05 15:02:39 +000022098 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22099 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22100 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22101 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22102 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22103 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22104 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22105 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22106 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22107 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022108
22109 esac
22110done # for ac_tag
22111
John Criswell451f67f2003-10-16 01:45:35 +000022112
22113{ (exit 0); exit 0; }
22114_ACEOF
22115chmod +x $CONFIG_STATUS
22116ac_clean_files=$ac_clean_files_save
22117
22118
22119# configure is writing to config.log, and then calls config.status.
22120# config.status does its own redirection, appending to config.log.
22121# Unfortunately, on DOS this fails, as config.log is still kept open
22122# by configure, so config.status won't be able to write to it; its
22123# output is simply discarded. So we exec the FD to /dev/null,
22124# effectively closing config.log, so it can be properly (re)opened and
22125# appended to by config.status. When coming back to configure, we
22126# need to make the FD available again.
22127if test "$no_create" != yes; then
22128 ac_cs_success=:
22129 ac_config_status_args=
22130 test "$silent" = yes &&
22131 ac_config_status_args="$ac_config_status_args --quiet"
22132 exec 5>/dev/null
22133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22134 exec 5>>config.log
22135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22136 # would make configure fail if this is the last instruction.
22137 $ac_cs_success || { (exit 1); exit 1; }
22138fi
22139
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022140#
22141# CONFIG_SUBDIRS section.
22142#
22143if test "$no_recursion" != yes; then
22144
22145 # Remove --cache-file and --srcdir arguments so they do not pile up.
22146 ac_sub_configure_args=
22147 ac_prev=
22148 eval "set x $ac_configure_args"
22149 shift
22150 for ac_arg
22151 do
22152 if test -n "$ac_prev"; then
22153 ac_prev=
22154 continue
22155 fi
22156 case $ac_arg in
22157 -cache-file | --cache-file | --cache-fil | --cache-fi \
22158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22159 ac_prev=cache_file ;;
22160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22162 | --c=*)
22163 ;;
22164 --config-cache | -C)
22165 ;;
22166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22167 ac_prev=srcdir ;;
22168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22169 ;;
22170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22171 ac_prev=prefix ;;
22172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22173 ;;
22174 *)
22175 case $ac_arg in
22176 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22177 esac
22178 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22179 esac
22180 done
22181
22182 # Always prepend --prefix to ensure using the same prefix
22183 # in subdir configurations.
22184 ac_arg="--prefix=$prefix"
22185 case $ac_arg in
22186 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22187 esac
22188 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22189
22190 ac_popdir=`pwd`
22191 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22192
22193 # Do not complain, so a configure script can configure whichever
22194 # parts of a large source tree are present.
22195 test -d "$srcdir/$ac_dir" || continue
22196
22197 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22198 echo "$as_me:$LINENO: $ac_msg" >&5
22199 echo "$ac_msg" >&6
22200 { as_dir="$ac_dir"
22201 case $as_dir in #(
22202 -*) as_dir=./$as_dir;;
22203 esac
22204 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22205 as_dirs=
22206 while :; do
22207 case $as_dir in #(
22208 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22209 *) as_qdir=$as_dir;;
22210 esac
22211 as_dirs="'$as_qdir' $as_dirs"
22212 as_dir=`$as_dirname -- "$as_dir" ||
22213$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22214 X"$as_dir" : 'X\(//\)[^/]' \| \
22215 X"$as_dir" : 'X\(//\)$' \| \
22216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22217echo X"$as_dir" |
22218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22219 s//\1/
22220 q
22221 }
22222 /^X\(\/\/\)[^/].*/{
22223 s//\1/
22224 q
22225 }
22226 /^X\(\/\/\)$/{
22227 s//\1/
22228 q
22229 }
22230 /^X\(\/\).*/{
22231 s//\1/
22232 q
22233 }
22234 s/.*/./; q'`
22235 test -d "$as_dir" && break
22236 done
22237 test -z "$as_dirs" || eval "mkdir $as_dirs"
22238 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22239echo "$as_me: error: cannot create directory $as_dir" >&2;}
22240 { (exit 1); exit 1; }; }; }
22241 ac_builddir=.
22242
22243case "$ac_dir" in
22244.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22245*)
22246 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22247 # A ".." for each directory in $ac_dir_suffix.
22248 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22249 case $ac_top_builddir_sub in
22250 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22252 esac ;;
22253esac
22254ac_abs_top_builddir=$ac_pwd
22255ac_abs_builddir=$ac_pwd$ac_dir_suffix
22256# for backward compatibility:
22257ac_top_builddir=$ac_top_build_prefix
22258
22259case $srcdir in
22260 .) # We are building in place.
22261 ac_srcdir=.
22262 ac_top_srcdir=$ac_top_builddir_sub
22263 ac_abs_top_srcdir=$ac_pwd ;;
22264 [\\/]* | ?:[\\/]* ) # Absolute name.
22265 ac_srcdir=$srcdir$ac_dir_suffix;
22266 ac_top_srcdir=$srcdir
22267 ac_abs_top_srcdir=$srcdir ;;
22268 *) # Relative name.
22269 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22270 ac_top_srcdir=$ac_top_build_prefix$srcdir
22271 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22272esac
22273ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22274
22275
22276 cd "$ac_dir"
22277
22278 # Check for guested configure; otherwise get Cygnus style configure.
22279 if test -f "$ac_srcdir/configure.gnu"; then
22280 ac_sub_configure=$ac_srcdir/configure.gnu
22281 elif test -f "$ac_srcdir/configure"; then
22282 ac_sub_configure=$ac_srcdir/configure
22283 elif test -f "$ac_srcdir/configure.in"; then
22284 # This should be Cygnus configure.
22285 ac_sub_configure=$ac_aux_dir/configure
22286 else
22287 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22288echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22289 ac_sub_configure=
22290 fi
22291
22292 # The recursion is here.
22293 if test -n "$ac_sub_configure"; then
22294 # Make the cache file name correct relative to the subdirectory.
22295 case $cache_file in
22296 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22297 *) # Relative name.
22298 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22299 esac
22300
22301 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22302echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22303 # The eval makes quoting arguments work.
22304 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22305 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22306 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22307echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22308 { (exit 1); exit 1; }; }
22309 fi
22310
22311 cd "$ac_popdir"
22312 done
22313fi
22314