blob: 71b6dc518cb5672f5be8d6d3788d249f23863e8d [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Craig Topper8ee39632012-11-12 06:11:12 +0000686ENABLE_CXX11
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000687ENABLE_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
Craig Topper8ee39632012-11-12 06:11:12 +0000690ENABLE_WERROR
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000691ENABLE_EXPENSIVE_CHECKS
692EXPENSIVE_CHECKS
693DEBUG_RUNTIME
694DEBUG_SYMBOLS
695JIT
696TARGET_HAS_JIT
697ENABLE_DOCS
698ENABLE_DOXYGEN
699ENABLE_THREADS
700ENABLE_PTHREADS
701ENABLE_PIC
702ENABLE_SHARED
703ENABLE_EMBED_STDCXX
704ENABLE_TIMESTAMPS
705TARGETS_TO_BUILD
706LLVM_ENUM_TARGETS
707LLVM_ENUM_ASM_PRINTERS
708LLVM_ENUM_ASM_PARSERS
709LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000710OPTIMIZE_OPTION
711EXTRA_OPTIONS
712EXTRA_LD_OPTIONS
713BINUTILS_INCDIR
714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
737XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
742CAT
743DOXYGEN
744GROFF
745GZIPBIN
746POD2HTML
747POD2MAN
748PDFROFF
749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771SHLIBEXT
772SHLIBPATH_VAR
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000789LIBOBJS
790LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000791ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000792 ac_precious_vars='build_alias
793host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
802CPP'
803ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000830# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000839includedir='${prefix}/include'
840oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000850
851ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000852ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000853for ac_option
854do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000857 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000858 ac_prev=
859 continue
860 fi
861
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000862 case $ac_option in
863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *) ac_optarg=yes ;;
865 esac
John Criswell451f67f2003-10-16 01:45:35 +0000866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000894 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000896 datadir=$ac_optarg ;;
897
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
John Criswell451f67f2003-10-16 01:45:35 +0000905 -disable-* | --disable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000908 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000911 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000912 eval enable_$ac_feature=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000923
924 -enable-* | --enable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000931 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
John Criswell451f67f2003-10-16 01:45:35 +0000964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
John Criswell451f67f2003-10-16 01:45:35 +0000993 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000994 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
John Criswell451f67f2003-10-16 01:45:35 +00001072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001124 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001127 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001128 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001129
1130 -without-* | --without-*)
1131 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001136 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001137 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) { echo "$as_me: error: unrecognized option: $ac_option
1158Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001168 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180done
1181
1182if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1186fi
1187
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001188# Be sure to have absolute directory names.
1189for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001193do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001195 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001198 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001199 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1217 cross_compiling=yes
1218 fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { echo "$as_me: error: Working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1235
1236
John Criswell451f67f2003-10-16 01:45:35 +00001237# Find the source files, if location was not specified.
1238if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001242$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001243 X"$0" : 'X\(//\)[^/]' \| \
1244 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001246echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001265 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001266 srcdir=..
1267 fi
1268else
1269 ac_srcdir_defaulted=no
1270fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001271if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001274 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001275fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001279 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001280 pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
John Criswell451f67f2003-10-16 01:45:35 +00001297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
John Criswell451f67f2003-10-16 01:45:35 +00001325Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001329 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001358_ACEOF
1359
1360 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001361
1362System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372 esac
1373 cat <<\_ACEOF
1374
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001375Optional Features:
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001379 --enable-libcpp Use libc++ if available (default is NO)
Craig Topper8ee39632012-11-12 06:11:12 +00001380 --enable-cxx11 Use c++11 if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001381 --enable-optimized Compile with optimizations enabled (default is NO)
1382 --enable-profiling Compile with profiling enabled (default is NO)
1383 --enable-assertions Compile with assertion checks enabled (default is
1384 YES)
Craig Topper8ee39632012-11-12 06:11:12 +00001385 --enable-werror Compile with -Werror enabled (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001386 --enable-expensive-checks
1387 Compile with expensive debug checks enabled (default
1388 is NO)
1389 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 NO)
1391 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1392 optimization is on and YES if it's off)
1393 --enable-jit Enable Just In Time Compiling (default is YES)
1394 --enable-docs Build documents (default is YES)
1395 --enable-doxygen Build doxygen documentation (default is NO)
1396 --enable-threads Use threads if available (default is YES)
1397 --enable-pthreads Use pthreads if available (default is YES)
1398 --enable-pic Build LLVM with Position Independent Code (default
1399 is YES)
1400 --enable-shared Build a shared library and link tools against it
1401 (default is NO)
1402 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1403 Win32 DLL (default is YES)
1404 --enable-timestamps Enable embedding timestamp information in build
1405 (default is YES)
1406 --enable-targets Build specific host targets: all or
1407 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001408 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001409 xcore, msp430, nvptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1414
John Criswell451f67f2003-10-16 01:45:35 +00001415Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001420 --with-optimize-option Select the compiler options to use for optimized
1421 builds
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 is stdlib)
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1428 resource files
1429 --with-c-include-dirs Colon separated list of directories clang will
1430 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001431 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1440
1441Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001454
1455Report bugs to <bugs@yourdomain>.
1456_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001457ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001463 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001464 ac_builddir=.
1465
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
John Criswell451f67f2003-10-16 01:45:35 +00001469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001481
1482case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001483 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001484 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001488 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001495esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001497
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001506 else
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001510 done
1511fi
1512
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001514if $ac_init_version; then
1515 cat <<\_ACEOF
1516[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001518
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001519Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15202002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001524 exit
John Criswell451f67f2003-10-16 01:45:35 +00001525fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001526cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001527This file contains any messages produced by compilers while
1528running configure, to aid debugging if configure makes a mistake.
1529
1530It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001531generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001532
1533 $ $0 $@
1534
1535_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001536exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001537{
1538cat <<_ASUNAME
1539## --------- ##
1540## Platform. ##
1541## --------- ##
1542
1543hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551
1552/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001555/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001556/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559
1560_ASUNAME
1561
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1568done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001569IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001570
1571} >&5
1572
1573cat >&5 <<_ACEOF
1574
1575
1576## ----------- ##
1577## Core tests. ##
1578## ----------- ##
1579
1580_ACEOF
1581
1582
1583# Keep a trace of the command line.
1584# Strip out --no-create and --no-recursion so they do not pile up.
1585# Strip out --silent because we don't want to record it for future runs.
1586# Also quote any args containing shell meta-characters.
1587# Make two passes to allow for proper duplicate-argument suppression.
1588ac_configure_args=
1589ac_configure_args0=
1590ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001591ac_must_keep_next=false
1592for ac_pass in 1 2
1593do
1594 for ac_arg
1595 do
1596 case $ac_arg in
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1600 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001601 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603 esac
1604 case $ac_pass in
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 2)
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001609 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001610 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001611 case $ac_arg in
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618 esac
1619 ;;
1620 -* ) ac_must_keep_next=true ;;
1621 esac
John Criswell451f67f2003-10-16 01:45:35 +00001622 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001623 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001624 ;;
1625 esac
1626 done
1627done
1628$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631# When interrupted or exit'd, cleanup temporary files, and complete
1632# config.log. We remove comments because anyway the quotes in there
1633# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001634# WARNING: Use '\'' to represent an apostrophe within the trap.
1635# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001636trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1638 {
1639 echo
1640
1641 cat <<\_ASBOX
1642## ---------------- ##
1643## Cache variables. ##
1644## ---------------- ##
1645_ASBOX
1646 echo
1647 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001648(
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1651 case $ac_val in #(
1652 *${as_nl}*)
1653 case $ac_var in #(
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656 esac
1657 case $ac_var in #(
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1660 esac ;;
1661 esac
1662 done
John Criswell451f67f2003-10-16 01:45:35 +00001663 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001666 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001670 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001672 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001673 esac |
1674 sort
1675)
John Criswell451f67f2003-10-16 01:45:35 +00001676 echo
1677
1678 cat <<\_ASBOX
1679## ----------------- ##
1680## Output variables. ##
1681## ----------------- ##
1682_ASBOX
1683 echo
1684 for ac_var in $ac_subst_vars
1685 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001686 eval ac_val=\$$ac_var
1687 case $ac_val in
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 esac
1690 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001691 done | sort
1692 echo
1693
1694 if test -n "$ac_subst_files"; then
1695 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001696## ------------------- ##
1697## File substitutions. ##
1698## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_files
1702 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 esac
1707 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001708 done | sort
1709 echo
1710 fi
1711
1712 if test -s confdefs.h; then
1713 cat <<\_ASBOX
1714## ----------- ##
1715## confdefs.h. ##
1716## ----------- ##
1717_ASBOX
1718 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001719 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001720 echo
1721 fi
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1725 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001728 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001729' 0
John Criswell451f67f2003-10-16 01:45:35 +00001730for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732done
1733ac_signal=0
1734
1735# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001736rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001737
1738# Predefined preprocessor variables.
1739
1740cat >>confdefs.h <<_ACEOF
1741#define PACKAGE_NAME "$PACKAGE_NAME"
1742_ACEOF
1743
1744
1745cat >>confdefs.h <<_ACEOF
1746#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747_ACEOF
1748
1749
1750cat >>confdefs.h <<_ACEOF
1751#define PACKAGE_VERSION "$PACKAGE_VERSION"
1752_ACEOF
1753
1754
1755cat >>confdefs.h <<_ACEOF
1756#define PACKAGE_STRING "$PACKAGE_STRING"
1757_ACEOF
1758
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762_ACEOF
1763
1764
1765# Let the site file select an alternate cache file if it wants to.
1766# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001767if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771else
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001774fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001775shift
1776for ac_site_file
1777do
John Criswell451f67f2003-10-16 01:45:35 +00001778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1782 . "$ac_site_file"
1783 fi
1784done
1785
1786if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791echo "$as_me: loading cache $cache_file" >&6;}
1792 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001795 esac
1796 fi
1797else
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799echo "$as_me: creating cache $cache_file" >&6;}
1800 >$cache_file
1801fi
1802
1803# Check that the precious variables saved in the cache have kept the same
1804# value.
1805ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001806for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001811 case $ac_old_set,$ac_new_set in
1812 set,)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,set)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,);;
1821 *)
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001826echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001828echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001829 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001830 fi;;
1831 esac
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1834 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001836 *) ac_arg=$ac_var=$ac_new_val ;;
1837 esac
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841 esac
1842 fi
1843done
1844if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1850fi
1851
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
John Criswell451f67f2003-10-16 01:45:35 +00001876ac_ext=c
1877ac_cpp='$CPP $CPPFLAGS'
1878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882
1883
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001884LLVM_SRC_ROOT="../.."
1885LLVM_OBJ_ROOT="../.."
1886
1887LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001889
1890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001891# Check whether --with-llvmsrc was given.
1892if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1894else
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1896fi
1897
1898 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001899
1900
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001901# Check whether --with-llvmobj was given.
1902if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1904else
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906fi
Dan Gohman324f6082009-03-25 00:52:11 +00001907
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001908 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001909
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001910 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001911
1912
1913
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001914{ echo "$as_me:$LINENO: checking llvm-config" >&5
1915echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1919fi
1920{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921echo "${ECHO_T}$llvm_config_path" >&6; }
1922
1923{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1924echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1927else
1928 llvm_package_version="unknown";
1929fi
1930{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931echo "${ECHO_T}$llvm_package_version" >&6; }
1932LLVM_VERSION=$llvm_package_version
1933
1934
1935
1936
John Criswell451f67f2003-10-16 01:45:35 +00001937ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001938for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001939 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001947 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1951 fi
1952done
1953if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001956 { (exit 1); exit 1; }; }
1957fi
John Criswell451f67f2003-10-16 01:45:35 +00001958
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001959# These three variables are undocumented and unsupported,
1960# and are intended to be withdrawn in a future Autoconf release.
1961# They can cause serious problems if a builder's source tree is in a directory
1962# whose full name contains unusual characters.
1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001966
1967
1968
1969
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1977 do
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1998 fi
1999done
2000done
2001IFS=$as_save_IFS
2002
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015 test -n "$CC" && break
2016 done
2017fi
2018if test -z "$CC"; then
2019 ac_ct_CC=$CC
2020 for ac_prog in clang llvm-gcc gcc
2021do
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023set dummy $ac_prog; ac_word=$2
2024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043done
2044done
2045IFS=$as_save_IFS
2046
2047fi
2048fi
2049ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052echo "${ECHO_T}$ac_ct_CC" >&6; }
2053else
2054 { echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6; }
2056fi
2057
2058
2059 test -n "$ac_ct_CC" && break
2060done
2061
2062 if test "x$ac_ct_CC" = x; then
2063 CC=""
2064 else
2065 case $cross_compiling:$ac_tool_warned in
2066yes:)
2067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068whose name does not start with the host triplet. If you think this
2069configuration is useful to you, please write to autoconf@gnu.org." >&5
2070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073ac_tool_warned=yes ;;
2074esac
2075 CC=$ac_ct_CC
2076 fi
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO: checking for C compiler version" >&5
2088ac_compiler=`set X $ac_compile; echo $2`
2089{ (ac_try="$ac_compiler --version >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099{ (ac_try="$ac_compiler -v >&5"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109{ (ac_try="$ac_compiler -V >&5"
2110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
2114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126
2127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135ac_clean_files_save=$ac_clean_files
2136ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137# Try to create an executable without -o first, disregard a.out.
2138# It will help us diagnose broken compilers, and finding out an intuition
2139# of exeext.
2140{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143#
2144# List of possible output files, starting from the most likely.
2145# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146# only as a last resort. b.out is created by i960 compilers.
2147ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148#
2149# The IRIX 6 linker writes into existing files which may not be
2150# executable, retaining their permissions. Remove them first so a
2151# subsequent execution test works.
2152ac_rmfiles=
2153for ac_file in $ac_files
2154do
2155 case $ac_file in
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158 esac
2159done
2160rm -f $ac_rmfiles
2161
2162if { (ac_try="$ac_link_default"
2163case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166esac
2167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174# in a Makefile. We should not override ac_cv_exeext if it was cached,
2175# so that the user can short-circuit this test for compilers unknown to
2176# Autoconf.
2177for ac_file in $ac_files
2178do
2179 test -f "$ac_file" || continue
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182 ;;
2183 [ab].out )
2184 # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
2187 *.* )
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 then :; else
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 fi
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2196 # actually working.
2197 break;;
2198 * )
2199 break;;
2200 esac
2201done
2202test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204else
2205 echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: C compiler cannot create executables
2211See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216{ echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6; }
2218
2219# Check that the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230esac
2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 cross_compiling=no
2237 else
2238 if test "$cross_compiling" = maybe; then
2239 cross_compiling=yes
2240 else
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249 fi
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255ac_clean_files=$ac_clean_files_save
2256# Check that the compiler produces executables we can run. If not, either
2257# the compiler is broken, or we cross compile.
2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265if { (ac_try="$ac_link"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2281 case $ac_file in
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 break;;
2285 * ) break;;
2286 esac
2287done
2288else
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest$ac_cv_exeext
2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
2303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308 cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
2314
2315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
2324if { (ac_try="$ac_compile"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2336 case $ac_file in
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 break;;
2340 esac
2341done
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2351fi
2352
2353rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354fi
2355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356echo "${ECHO_T}$ac_cv_objext" >&6; }
2357OBJEXT=$ac_cv_objext
2358ac_objext=$OBJEXT
2359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
2370
2371int
2372main ()
2373{
2374#ifndef __GNUC__
2375 choke me
2376#endif
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_compiler_gnu=yes
2417else
2418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_compiler_gnu=no
2422fi
2423
2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427fi
2428{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
2431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
2433{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2440 ac_cv_prog_cc_g=no
2441 CFLAGS="-g"
2442 cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h. */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h. */
2448
2449int
2450main ()
2451{
2452
2453 ;
2454 return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (ac_try="$ac_compile"
2459case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_cc_g=yes
2492else
2493 echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 CFLAGS=""
2497 cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h. */
2503
2504int
2505main ()
2506{
2507
2508 ;
2509 return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
2513if { (ac_try="$ac_compile"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 :
2547else
2548 echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2552 CFLAGS="-g"
2553 cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
2559
2560int
2561main ()
2562{
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (ac_try="$ac_compile"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_prog_cc_g=yes
2603else
2604 echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608fi
2609
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2618fi
2619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2625 CFLAGS="-g -O2"
2626 else
2627 CFLAGS="-g"
2628 fi
2629else
2630 if test "$GCC" = yes; then
2631 CFLAGS="-O2"
2632 else
2633 CFLAGS=
2634 fi
2635fi
2636{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641 ac_cv_prog_cc_c89=no
2642ac_save_CC=$CC
2643cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
2649#include <stdarg.h>
2650#include <stdio.h>
2651#include <sys/types.h>
2652#include <sys/stat.h>
2653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654struct buf { int x; };
2655FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656static char *e (p, i)
2657 char **p;
2658 int i;
2659{
2660 return p[i];
2661}
2662static char *f (char * (*g) (char **, int), char **p, ...)
2663{
2664 char *s;
2665 va_list v;
2666 va_start (v,p);
2667 s = g (p, va_arg (v,int));
2668 va_end (v);
2669 return s;
2670}
2671
2672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2683#define FOO(x) 'x'
2684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686int test (int i, double x);
2687struct s1 {int (*f) (int a);};
2688struct s2 {int (*f) (double a);};
2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690int argc;
2691char **argv;
2692int
2693main ()
2694{
2695return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702do
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705if { (ac_try="$ac_compile"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744fi
2745
2746rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748done
2749rm -f conftest.$ac_ext
2750CC=$ac_save_CC
2751
2752fi
2753# AC_CACHE_VAL
2754case "x$ac_cv_prog_cc_c89" in
2755 x)
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757echo "${ECHO_T}none needed" >&6; } ;;
2758 xno)
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760echo "${ECHO_T}unsupported" >&6; } ;;
2761 *)
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765esac
2766
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774ac_ext=cpp
2775ac_cpp='$CXXCPP $CPPFLAGS'
2776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2781 CXX=$CCC
2782 else
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2785 do
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CXX=$ac_cv_prog_CXX
2814if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816echo "${ECHO_T}$CXX" >&6; }
2817else
2818 { echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6; }
2820fi
2821
2822
2823 test -n "$CXX" && break
2824 done
2825fi
2826if test -z "$CXX"; then
2827 ac_ct_CXX=$CXX
2828 for ac_prog in clang++ llvm-g++ g++
2829do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6; }
2864fi
2865
2866
2867 test -n "$ac_ct_CXX" && break
2868done
2869
2870 if test "x$ac_ct_CXX" = x; then
2871 CXX="g++"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876whose name does not start with the host triplet. If you think this
2877configuration is useful to you, please write to autoconf@gnu.org." >&5
2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet. If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883 CXX=$ac_ct_CXX
2884 fi
2885fi
2886
2887 fi
2888fi
2889# Provide some information about the compiler.
2890echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891ac_compiler=`set X $ac_compile; echo $2`
2892{ (ac_try="$ac_compiler --version >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (ac_try="$ac_compiler -v >&5"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912{ (ac_try="$ac_compiler -V >&5"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922
2923{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939 choke me
2940#endif
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_compiler_gnu=yes
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 ac_compiler_gnu=no
2986fi
2987
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991fi
2992{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994GXX=`test $ac_compiler_gnu = yes && echo yes`
2995ac_test_CXXFLAGS=${CXXFLAGS+set}
2996ac_save_CXXFLAGS=$CXXFLAGS
2997{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3004 ac_cv_prog_cxx_g=no
3005 CXXFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 CXXFLAGS=""
3061 cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 :
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 CXXFLAGS="-g"
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3167else
3168 echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182fi
3183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3189 CXXFLAGS="-g -O2"
3190 else
3191 CXXFLAGS="-g"
3192 fi
3193else
3194 if test "$GXX" = yes; then
3195 CXXFLAGS="-O2"
3196 else
3197 CXXFLAGS=
3198 fi
3199fi
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213# On Suns, sometimes $CPP names a directory.
3214if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216fi
3217if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
3245_ACEOF
3246if { (ac_try="$ac_cpp conftest.$ac_ext"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 # Broken: fails on valid input.
3275continue
3276fi
3277
3278rm -f conftest.err conftest.$ac_ext
3279
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3314continue
3315else
3316 echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323
3324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then
3330 break
3331fi
3332
3333 done
3334 ac_cv_prog_CPP=$CPP
3335
3336fi
3337 CPP=$ac_cv_prog_CPP
3338else
3339 ac_cv_prog_CPP=$CPP
3340fi
3341{ echo "$as_me:$LINENO: result: $CPP" >&5
3342echo "${ECHO_T}$CPP" >&6; }
3343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
3363 Syntax error
3364_ACEOF
3365if { (ac_try="$ac_cpp conftest.$ac_ext"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 # Broken: fails on valid input.
3394continue
3395fi
3396
3397rm -f conftest.err conftest.$ac_ext
3398
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 else
3426 ac_cpp_err=
3427 fi
3428else
3429 ac_cpp_err=yes
3430fi
3431if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3433continue
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
3442
3443rm -f conftest.err conftest.$ac_ext
3444
3445done
3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447rm -f conftest.err conftest.$ac_ext
3448if $ac_preproc_ok; then
3449 :
3450else
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&5
3453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467# Check whether --enable-polly was given.
3468if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3470else
3471 enableval=default
3472fi
3473
3474case "$enableval" in
3475 yes) ENABLE_POLLY=1
3476 ;;
3477 no) ENABLE_POLLY=0
3478 ;;
3479 default) ENABLE_POLLY=1
3480 ;;
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3484esac
3485
3486
3487if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488 LLVM_HAS_POLLY=1
3489
3490 subdirs="$subdirs tools/polly"
3491
3492fi
3493
3494
3495# Make sure we can run config.sub.
3496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3500
3501{ echo "$as_me:$LINENO: checking build system type" >&5
3502echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 ac_build_alias=$build_alias
3507test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3517
3518fi
3519{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520echo "${ECHO_T}$ac_cv_build" >&6; }
3521case $ac_cv_build in
3522*-*-*) ;;
3523*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3526esac
3527build=$ac_cv_build
3528ac_save_IFS=$IFS; IFS='-'
3529set x $ac_cv_build
3530shift
3531build_cpu=$1
3532build_vendor=$2
3533shift; shift
3534# Remember, the first character of IFS is used to create $*,
3535# except with old shells:
3536build_os=$*
3537IFS=$ac_save_IFS
3538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541{ echo "$as_me:$LINENO: checking host system type" >&5
3542echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3548else
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3553fi
3554
3555fi
3556{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557echo "${ECHO_T}$ac_cv_host" >&6; }
3558case $ac_cv_host in
3559*-*-*) ;;
3560*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3563esac
3564host=$ac_cv_host
3565ac_save_IFS=$IFS; IFS='-'
3566set x $ac_cv_host
3567shift
3568host_cpu=$1
3569host_vendor=$2
3570shift; shift
3571# Remember, the first character of IFS is used to create $*,
3572# except with old shells:
3573host_os=$*
3574IFS=$ac_save_IFS
3575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578{ echo "$as_me:$LINENO: checking target system type" >&5
3579echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3585else
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3590fi
3591
3592fi
3593{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594echo "${ECHO_T}$ac_cv_target" >&6; }
3595case $ac_cv_target in
3596*-*-*) ;;
3597*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3600esac
3601target=$ac_cv_target
3602ac_save_IFS=$IFS; IFS='-'
3603set x $ac_cv_target
3604shift
3605target_cpu=$1
3606target_vendor=$2
3607shift; shift
3608# Remember, the first character of IFS is used to create $*,
3609# except with old shells:
3610target_os=$*
3611IFS=$ac_save_IFS
3612case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613
3614
3615# The aliases save the names the user supplied, while $host etc.
3616# will get canonicalized.
3617test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3619 NONENONEs,x,x, &&
3620 program_prefix=${target_alias}-
3621
3622{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
3627 case $host in
3628 *-*-aix*)
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3633 *-*-irix*)
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3638 *-*-cygwin*)
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3643 *-*-darwin*)
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3648 *-*-minix*)
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003653 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3658 *-*-openbsd*)
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3663 *-*-netbsd*)
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3668 *-*-dragonfly*)
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3673 *-*-hpux*)
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3678 *-*-interix*)
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3683 *-*-linux*)
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003688 *-*-gnu*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003693 *-*-solaris*)
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-auroraux*)
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-win32*)
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3708 *-*-mingw*)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3713 *-*-haiku*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-unknown-eabi*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-unknown-elf*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3728 *)
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3733esac
3734fi
3735{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737
3738{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 case $target in
3744 *-*-aix*)
3745 llvm_cv_target_os_type="AIX" ;;
3746 *-*-irix*)
3747 llvm_cv_target_os_type="IRIX" ;;
3748 *-*-cygwin*)
3749 llvm_cv_target_os_type="Cygwin" ;;
3750 *-*-darwin*)
3751 llvm_cv_target_os_type="Darwin" ;;
3752 *-*-minix*)
3753 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003754 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003755 llvm_cv_target_os_type="FreeBSD" ;;
3756 *-*-openbsd*)
3757 llvm_cv_target_os_type="OpenBSD" ;;
3758 *-*-netbsd*)
3759 llvm_cv_target_os_type="NetBSD" ;;
3760 *-*-dragonfly*)
3761 llvm_cv_target_os_type="DragonFly" ;;
3762 *-*-hpux*)
3763 llvm_cv_target_os_type="HP-UX" ;;
3764 *-*-interix*)
3765 llvm_cv_target_os_type="Interix" ;;
3766 *-*-linux*)
3767 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003768 *-*-gnu*)
3769 llvm_cv_target_os_type="GNU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003770 *-*-solaris*)
3771 llvm_cv_target_os_type="SunOS" ;;
3772 *-*-auroraux*)
3773 llvm_cv_target_os_type="AuroraUX" ;;
3774 *-*-win32*)
3775 llvm_cv_target_os_type="Win32" ;;
3776 *-*-mingw*)
3777 llvm_cv_target_os_type="MingW" ;;
3778 *-*-haiku*)
3779 llvm_cv_target_os_type="Haiku" ;;
3780 *-*-rtems*)
3781 llvm_cv_target_os_type="RTEMS" ;;
3782 *-*-nacl*)
3783 llvm_cv_target_os_type="NativeClient" ;;
3784 *-unknown-eabi*)
3785 llvm_cv_target_os_type="Freestanding" ;;
3786 *)
3787 llvm_cv_target_os_type="Unknown" ;;
3788esac
3789fi
3790{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792
3793if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3797fi
3798
3799OS=$llvm_cv_os_type
3800
3801HOST_OS=$llvm_cv_os_type
3802
3803TARGET_OS=$llvm_cv_target_os_type
3804
3805
3806LINKALL=$llvm_cv_link_all_option
3807
3808NOLINKALL=$llvm_cv_no_link_all_option
3809
3810
3811case $llvm_cv_platform_type in
3812 Unix)
3813
3814cat >>confdefs.h <<\_ACEOF
3815#define LLVM_ON_UNIX 1
3816_ACEOF
3817
3818 LLVM_ON_UNIX=1
3819
3820 LLVM_ON_WIN32=0
3821
3822 ;;
3823 Win32)
3824
3825cat >>confdefs.h <<\_ACEOF
3826#define LLVM_ON_WIN32 1
3827_ACEOF
3828
3829 LLVM_ON_UNIX=0
3830
3831 LLVM_ON_WIN32=1
3832
3833 ;;
3834esac
3835
3836{ echo "$as_me:$LINENO: checking target architecture" >&5
3837echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 case $target in
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003846 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003847 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3848 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003849 xcore-*) llvm_cv_target_arch="XCore" ;;
3850 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003851 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003852 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003853 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003854 *) llvm_cv_target_arch="Unknown" ;;
3855esac
3856fi
3857{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3858echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3859
3860if test "$llvm_cv_target_arch" = "Unknown" ; then
3861 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3862echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3863fi
3864
3865# Determine the LLVM native architecture for the target
3866case "$llvm_cv_target_arch" in
3867 x86) LLVM_NATIVE_ARCH="X86" ;;
3868 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3869 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3870esac
3871
3872ARCH=$llvm_cv_target_arch
3873
3874
3875
3876
3877{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 # Extract the first word of "grep ggrep" to use in msg output
3883if test -z "$GREP"; then
3884set dummy grep ggrep; ac_prog_name=$2
3885if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 ac_path_GREP_found=false
3889# Loop through the user's path and test for each of PROGNAME-LIST
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3899 # Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901case `"$ac_path_GREP" --version 2>&1` in
3902*GNU*)
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904*)
3905 ac_count=0
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907 while :
3908 do
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3920 fi
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3923 done
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925esac
3926
3927
3928 $ac_path_GREP_found && break 3
3929 done
3930done
3931
3932done
3933IFS=$as_save_IFS
3934
3935
3936fi
3937
3938GREP="$ac_cv_path_GREP"
3939if test -z "$GREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3943fi
3944
3945else
3946 ac_cv_path_GREP=$GREP
3947fi
3948
3949
3950fi
3951{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953 GREP="$ac_cv_path_GREP"
3954
3955
3956{ echo "$as_me:$LINENO: checking for egrep" >&5
3957echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962 then ac_cv_path_EGREP="$GREP -E"
3963 else
3964 # Extract the first word of "egrep" to use in msg output
3965if test -z "$EGREP"; then
3966set dummy egrep; ac_prog_name=$2
3967if test "${ac_cv_path_EGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970 ac_path_EGREP_found=false
3971# Loop through the user's path and test for each of PROGNAME-LIST
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3981 # Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983case `"$ac_path_EGREP" --version 2>&1` in
3984*GNU*)
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986*)
3987 ac_count=0
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4002 fi
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007esac
4008
4009
4010 $ac_path_EGREP_found && break 3
4011 done
4012done
4013
4014done
4015IFS=$as_save_IFS
4016
4017
4018fi
4019
4020EGREP="$ac_cv_path_EGREP"
4021if test -z "$EGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4025fi
4026
4027else
4028 ac_cv_path_EGREP=$EGREP
4029fi
4030
4031
4032 fi
4033fi
4034{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4037
4038
4039{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4041if test "${ac_cv_header_stdc+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
4050#include <stdlib.h>
4051#include <stdarg.h>
4052#include <string.h>
4053#include <float.h>
4054
4055int
4056main ()
4057{
4058
4059 ;
4060 return 0;
4061}
4062_ACEOF
4063rm -f conftest.$ac_objext
4064if { (ac_try="$ac_compile"
4065case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_header_stdc=yes
4098else
4099 echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 ac_cv_header_stdc=no
4103fi
4104
4105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106
4107if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h. */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h. */
4115#include <string.h>
4116
4117_ACEOF
4118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "memchr" >/dev/null 2>&1; then
4120 :
4121else
4122 ac_cv_header_stdc=no
4123fi
4124rm -f conftest*
4125
4126fi
4127
4128if test $ac_cv_header_stdc = yes; then
4129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4130 cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136#include <stdlib.h>
4137
4138_ACEOF
4139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "free" >/dev/null 2>&1; then
4141 :
4142else
4143 ac_cv_header_stdc=no
4144fi
4145rm -f conftest*
4146
4147fi
4148
4149if test $ac_cv_header_stdc = yes; then
4150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4151 if test "$cross_compiling" = yes; then
4152 :
4153else
4154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160#include <ctype.h>
4161#include <stdlib.h>
4162#if ((' ' & 0x0FF) == 0x020)
4163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4165#else
4166# define ISLOWER(c) \
4167 (('a' <= (c) && (c) <= 'i') \
4168 || ('j' <= (c) && (c) <= 'r') \
4169 || ('s' <= (c) && (c) <= 'z'))
4170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171#endif
4172
4173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4174int
4175main ()
4176{
4177 int i;
4178 for (i = 0; i < 256; i++)
4179 if (XOR (islower (i), ISLOWER (i))
4180 || toupper (i) != TOUPPER (i))
4181 return 2;
4182 return 0;
4183}
4184_ACEOF
4185rm -f conftest$ac_exeext
4186if { (ac_try="$ac_link"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_link") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 :
4206else
4207 echo "$as_me: program exited with status $ac_status" >&5
4208echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211( exit $ac_status )
4212ac_cv_header_stdc=no
4213fi
4214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215fi
4216
4217
4218fi
4219fi
4220{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4222if test $ac_cv_header_stdc = yes; then
4223
4224cat >>confdefs.h <<\_ACEOF
4225#define STDC_HEADERS 1
4226_ACEOF
4227
4228fi
4229
4230# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241 inttypes.h stdint.h unistd.h
4242do
4243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255$ac_includes_default
4256
4257#include <$ac_header>
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (ac_try="$ac_compile"
4261case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 eval "$as_ac_Header=yes"
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 eval "$as_ac_Header=no"
4299fi
4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302fi
4303ac_res=`eval echo '${'$as_ac_Header'}'`
4304 { echo "$as_me:$LINENO: result: $ac_res" >&5
4305echo "${ECHO_T}$ac_res" >&6; }
4306if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309_ACEOF
4310
4311fi
4312
4313done
4314
4315
4316{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4317echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4318if test "${ac_cv_c_bigendian+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321 # See if sys/param.h defines the BYTE_ORDER macro.
4322cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
4328#include <sys/types.h>
4329#include <sys/param.h>
4330
4331int
4332main ()
4333{
4334#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4335 bogus endian macros
4336#endif
4337
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext
4343if { (ac_try="$ac_compile"
4344case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 # It does; now see whether it defined to BIG_ENDIAN or not.
4377cat >conftest.$ac_ext <<_ACEOF
4378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
4383#include <sys/types.h>
4384#include <sys/param.h>
4385
4386int
4387main ()
4388{
4389#if BYTE_ORDER != BIG_ENDIAN
4390 not big endian
4391#endif
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397rm -f conftest.$ac_objext
4398if { (ac_try="$ac_compile"
4399case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402esac
4403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425esac
4426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_c_bigendian=yes
4432else
4433 echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 ac_cv_c_bigendian=no
4437fi
4438
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440else
4441 echo "$as_me: failed program was:" >&5
4442sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 # It does not; compile a test program.
4445if test "$cross_compiling" = yes; then
4446 # try to guess the endianness by grepping values into an object file
4447 ac_cv_c_bigendian=unknown
4448 cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
4454short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4455short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4456void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4457short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4458short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4459void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460int
4461main ()
4462{
4463 _ascii (); _ebcdic ();
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (ac_try="$ac_compile"
4470case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4503 ac_cv_c_bigendian=yes
4504fi
4505if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4506 if test "$ac_cv_c_bigendian" = unknown; then
4507 ac_cv_c_bigendian=no
4508 else
4509 # finding both strings is unlikely to happen, but who knows?
4510 ac_cv_c_bigendian=unknown
4511 fi
4512fi
4513else
4514 echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517
4518fi
4519
4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521else
4522 cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
4528$ac_includes_default
4529int
4530main ()
4531{
4532
4533 /* Are we little or big endian? From Harbison&Steele. */
4534 union
4535 {
4536 long int l;
4537 char c[sizeof (long int)];
4538 } u;
4539 u.l = 1;
4540 return u.c[sizeof (long int) - 1] == 1;
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546rm -f conftest$ac_exeext
4547if { (ac_try="$ac_link"
4548case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551esac
4552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_link") 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560esac
4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_try") 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_c_bigendian=no
4567else
4568 echo "$as_me: program exited with status $ac_status" >&5
4569echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572( exit $ac_status )
4573ac_cv_c_bigendian=yes
4574fi
4575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576fi
4577
4578
4579fi
4580
4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582fi
4583{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4584echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4585case $ac_cv_c_bigendian in
4586 yes)
4587 ENDIAN=big
4588 ;;
4589 no)
4590 ENDIAN=little
4591 ;;
4592 *)
4593 { { echo "$as_me:$LINENO: error: unknown endianness
4594presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4595echo "$as_me: error: unknown endianness
4596presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4597 { (exit 1); exit 1; }; } ;;
4598esac
4599
4600
4601if test "$cross_compiling" = yes; then
4602 LLVM_CROSS_COMPILING=1
4603
4604
4605{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4606echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4607if test "${ac_cv_build_exeext+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4611 ac_cv_build_exeext=.exe
4612else
4613 ac_build_prefix=${build_alias}-
4614
4615 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4616set dummy ${ac_build_prefix}gcc; ac_word=$2
4617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622 if test -n "$BUILD_CC"; then
4623 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637done
4638IFS=$as_save_IFS
4639
4640fi
4641fi
4642BUILD_CC=$ac_cv_prog_BUILD_CC
4643if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645echo "${ECHO_T}$BUILD_CC" >&6; }
4646else
4647 { echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6; }
4649fi
4650
4651
4652 if test -z "$BUILD_CC"; then
4653 # Extract the first word of "gcc", so it can be a program name with args.
4654set dummy gcc; ac_word=$2
4655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 if test -n "$BUILD_CC"; then
4661 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_BUILD_CC="gcc"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680BUILD_CC=$ac_cv_prog_BUILD_CC
4681if test -n "$BUILD_CC"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4683echo "${ECHO_T}$BUILD_CC" >&6; }
4684else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6; }
4687fi
4688
4689
4690 if test -z "$BUILD_CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692set dummy cc; ac_word=$2
4693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 if test -n "$BUILD_CC"; then
4699 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4700else
4701 ac_prog_rejected=no
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4711 continue
4712 fi
4713 ac_cv_prog_BUILD_CC="cc"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718done
4719IFS=$as_save_IFS
4720
4721if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_BUILD_CC
4724 shift
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set BUILD_CC to just the basename; use the full file name.
4729 shift
4730 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4731 fi
4732fi
4733fi
4734fi
4735BUILD_CC=$ac_cv_prog_BUILD_CC
4736if test -n "$BUILD_CC"; then
4737 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4738echo "${ECHO_T}$BUILD_CC" >&6; }
4739else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6; }
4742fi
4743
4744
4745 fi
4746 fi
4747 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4748echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4749 { (exit 1); exit 1; }; }
4750 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4751 rm -f conftest*
4752 echo 'int main () { return 0; }' > conftest.$ac_ext
4753 ac_cv_build_exeext=
4754 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4755 (eval $ac_build_link) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; then
4759 for file in conftest.*; do
4760 case $file in
4761 *.c | *.o | *.obj | *.dSYM) ;;
4762 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4763 esac
4764 done
4765 else
4766 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4767echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4768 { (exit 1); exit 1; }; }
4769 fi
4770 rm -f conftest*
4771 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4772fi
4773fi
4774
4775BUILD_EXEEXT=""
4776test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4777{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4778echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4779ac_build_exeext=$BUILD_EXEEXT
4780
4781 ac_build_prefix=${build_alias}-
4782 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4783set dummy ${ac_build_prefix}g++; ac_word=$2
4784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 if test -n "$BUILD_CXX"; then
4790 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803done
4804done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812echo "${ECHO_T}$BUILD_CXX" >&6; }
4813else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6; }
4816fi
4817
4818
4819 if test -z "$BUILD_CXX"; then
4820 # Extract the first word of "g++", so it can be a program name with args.
4821set dummy g++; ac_word=$2
4822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 if test -n "$BUILD_CXX"; then
4828 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_BUILD_CXX="g++"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842done
4843IFS=$as_save_IFS
4844
4845fi
4846fi
4847BUILD_CXX=$ac_cv_prog_BUILD_CXX
4848if test -n "$BUILD_CXX"; then
4849 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4850echo "${ECHO_T}$BUILD_CXX" >&6; }
4851else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6; }
4854fi
4855
4856
4857 if test -z "$BUILD_CXX"; then
4858 # Extract the first word of "c++", so it can be a program name with args.
4859set dummy c++; ac_word=$2
4860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$BUILD_CXX"; then
4866 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4867else
4868 ac_prog_rejected=no
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4877 ac_prog_rejected=yes
4878 continue
4879 fi
4880 ac_cv_prog_BUILD_CXX="c++"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884done
4885done
4886IFS=$as_save_IFS
4887
4888if test $ac_prog_rejected = yes; then
4889 # We found a bogon in the path, so make sure we never use it.
4890 set dummy $ac_cv_prog_BUILD_CXX
4891 shift
4892 if test $# != 0; then
4893 # We chose a different compiler from the bogus one.
4894 # However, it has the same basename, so the bogon will be chosen
4895 # first if we set BUILD_CXX to just the basename; use the full file name.
4896 shift
4897 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4898 fi
4899fi
4900fi
4901fi
4902BUILD_CXX=$ac_cv_prog_BUILD_CXX
4903if test -n "$BUILD_CXX"; then
4904 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4905echo "${ECHO_T}$BUILD_CXX" >&6; }
4906else
4907 { echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6; }
4909fi
4910
4911
4912 fi
4913 fi
4914else
4915 LLVM_CROSS_COMPILING=0
4916
4917fi
4918
4919if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4920 cvsbuild="yes"
4921 optimize="no"
4922 CVSBUILD=CVSBUILD=1
4923
4924else
4925 cvsbuild="no"
4926 optimize="yes"
4927fi
4928
4929
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004930# Check whether --enable-libcpp was given.
4931if test "${enable_libcpp+set}" = set; then
4932 enableval=$enable_libcpp;
4933else
4934 enableval=default
4935fi
4936
4937case "$enableval" in
4938 yes) ENABLE_LIBCPP=1
4939 ;;
4940 no) ENABLE_LIBCPP=0
4941 ;;
4942 default) ENABLE_LIBCPP=0
4943;;
4944 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4945echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4946 { (exit 1); exit 1; }; } ;;
4947esac
4948
Craig Topper8ee39632012-11-12 06:11:12 +00004949# Check whether --enable-cxx11 was given.
4950if test "${enable_cxx11+set}" = set; then
4951 enableval=$enable_cxx11;
4952else
4953 enableval=default
4954fi
4955
4956case "$enableval" in
4957 yes) ENABLE_CXX11=1
4958 ;;
4959 no) ENABLE_CXX11=0
4960 ;;
4961 default) ENABLE_CXX11=0
4962;;
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4964echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966esac
4967
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004968# Check whether --enable-optimized was given.
4969if test "${enable_optimized+set}" = set; then
4970 enableval=$enable_optimized;
4971else
4972 enableval=$optimize
4973fi
4974
4975if test ${enableval} = "no" ; then
4976 ENABLE_OPTIMIZED=
4977
4978else
4979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4980
4981fi
4982
4983# Check whether --enable-profiling was given.
4984if test "${enable_profiling+set}" = set; then
4985 enableval=$enable_profiling;
4986else
4987 enableval="no"
4988fi
4989
4990if test ${enableval} = "no" ; then
4991 ENABLE_PROFILING=
4992
4993else
4994 ENABLE_PROFILING=ENABLE_PROFILING=1
4995
4996fi
4997
4998# Check whether --enable-assertions was given.
4999if test "${enable_assertions+set}" = set; then
5000 enableval=$enable_assertions;
5001else
5002 enableval="yes"
5003fi
5004
5005if test ${enableval} = "yes" ; then
5006 DISABLE_ASSERTIONS=
5007
5008else
5009 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5010
5011fi
5012
Craig Topper8ee39632012-11-12 06:11:12 +00005013# Check whether --enable-werror was given.
5014if test "${enable_werror+set}" = set; then
5015 enableval=$enable_werror;
5016else
5017 enableval="no"
5018fi
5019
5020case "$enableval" in
5021 yes) ENABLE_WERROR=1
5022 ;;
5023 no) ENABLE_WERROR=0
5024 ;;
5025 default) ENABLE_WERROR=0
5026;;
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5028echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5030esac
5031
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005032# Check whether --enable-expensive-checks was given.
5033if test "${enable_expensive_checks+set}" = set; then
5034 enableval=$enable_expensive_checks;
5035else
5036 enableval="no"
5037fi
5038
5039if test ${enableval} = "yes" ; then
5040 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5041
5042 EXPENSIVE_CHECKS=yes
5043
5044else
5045 ENABLE_EXPENSIVE_CHECKS=
5046
5047 EXPENSIVE_CHECKS=no
5048
5049fi
5050
5051# Check whether --enable-debug-runtime was given.
5052if test "${enable_debug_runtime+set}" = set; then
5053 enableval=$enable_debug_runtime;
5054else
5055 enableval=no
5056fi
5057
5058if test ${enableval} = "no" ; then
5059 DEBUG_RUNTIME=
5060
5061else
5062 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5063
5064fi
5065
5066# Check whether --enable-debug-symbols was given.
5067if test "${enable_debug_symbols+set}" = set; then
5068 enableval=$enable_debug_symbols;
5069else
5070 enableval=no
5071fi
5072
5073if test ${enableval} = "no" ; then
5074 DEBUG_SYMBOLS=
5075
5076else
5077 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5078
5079fi
5080
5081# Check whether --enable-jit was given.
5082if test "${enable_jit+set}" = set; then
5083 enableval=$enable_jit;
5084else
5085 enableval=default
5086fi
5087
5088if test ${enableval} = "no"
5089then
5090 JIT=
5091
5092else
5093 case "$llvm_cv_target_arch" in
5094 x86) TARGET_HAS_JIT=1
5095 ;;
5096 Sparc) TARGET_HAS_JIT=0
5097 ;;
5098 PowerPC) TARGET_HAS_JIT=1
5099 ;;
5100 x86_64) TARGET_HAS_JIT=1
5101 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005102 ARM) TARGET_HAS_JIT=1
5103 ;;
5104 Mips) TARGET_HAS_JIT=1
5105 ;;
5106 XCore) TARGET_HAS_JIT=0
5107 ;;
5108 MSP430) TARGET_HAS_JIT=0
5109 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005110 Hexagon) TARGET_HAS_JIT=0
5111 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005112 MBlaze) TARGET_HAS_JIT=0
5113 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005114 NVPTX) TARGET_HAS_JIT=0
5115 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005116 *) TARGET_HAS_JIT=0
5117 ;;
5118 esac
5119fi
5120
5121# Check whether --enable-docs was given.
5122if test "${enable_docs+set}" = set; then
5123 enableval=$enable_docs;
5124else
5125 enableval=default
5126fi
5127
5128case "$enableval" in
5129 yes) ENABLE_DOCS=1
5130 ;;
5131 no) ENABLE_DOCS=0
5132 ;;
5133 default) ENABLE_DOCS=1
5134 ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5136echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138esac
5139
5140# Check whether --enable-doxygen was given.
5141if test "${enable_doxygen+set}" = set; then
5142 enableval=$enable_doxygen;
5143else
5144 enableval=default
5145fi
5146
5147case "$enableval" in
5148 yes) ENABLE_DOXYGEN=1
5149 ;;
5150 no) ENABLE_DOXYGEN=0
5151 ;;
5152 default) ENABLE_DOXYGEN=0
5153 ;;
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5155echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157esac
5158
5159# Check whether --enable-threads was given.
5160if test "${enable_threads+set}" = set; then
5161 enableval=$enable_threads;
5162else
5163 enableval=default
5164fi
5165
5166case "$enableval" in
5167 yes) ENABLE_THREADS=1
5168 ;;
5169 no) ENABLE_THREADS=0
5170 ;;
5171 default) ENABLE_THREADS=1
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
5178cat >>confdefs.h <<_ACEOF
5179#define ENABLE_THREADS $ENABLE_THREADS
5180_ACEOF
5181
5182
5183# Check whether --enable-pthreads was given.
5184if test "${enable_pthreads+set}" = set; then
5185 enableval=$enable_pthreads;
5186else
5187 enableval=default
5188fi
5189
5190case "$enableval" in
5191 yes) ENABLE_PTHREADS=1
5192 ;;
5193 no) ENABLE_PTHREADS=0
5194 ;;
5195 default) ENABLE_PTHREADS=1
5196 ;;
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5198echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5200esac
5201
5202# Check whether --enable-pic was given.
5203if test "${enable_pic+set}" = set; then
5204 enableval=$enable_pic;
5205else
5206 enableval=default
5207fi
5208
5209case "$enableval" in
5210 yes) ENABLE_PIC=1
5211 ;;
5212 no) ENABLE_PIC=0
5213 ;;
5214 default) ENABLE_PIC=1
5215 ;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5217echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5219esac
5220
5221cat >>confdefs.h <<_ACEOF
5222#define ENABLE_PIC $ENABLE_PIC
5223_ACEOF
5224
5225
5226# Check whether --enable-shared was given.
5227if test "${enable_shared+set}" = set; then
5228 enableval=$enable_shared;
5229else
5230 enableval=default
5231fi
5232
5233case "$enableval" in
5234 yes) ENABLE_SHARED=1
5235 ;;
5236 no) ENABLE_SHARED=0
5237 ;;
5238 default) ENABLE_SHARED=0
5239 ;;
5240 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5241echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5242 { (exit 1); exit 1; }; } ;;
5243esac
5244
5245# Check whether --enable-embed-stdcxx was given.
5246if test "${enable_embed_stdcxx+set}" = set; then
5247 enableval=$enable_embed_stdcxx;
5248else
5249 enableval=default
5250fi
5251
5252case "$enableval" in
5253 yes) ENABLE_EMBED_STDCXX=1
5254 ;;
5255 no) ENABLE_EMBED_STDCXX=0
5256 ;;
5257 default) ENABLE_EMBED_STDCXX=1
5258 ;;
5259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5260echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5262esac
5263
5264# Check whether --enable-timestamps was given.
5265if test "${enable_timestamps+set}" = set; then
5266 enableval=$enable_timestamps;
5267else
5268 enableval=default
5269fi
5270
5271case "$enableval" in
5272 yes) ENABLE_TIMESTAMPS=1
5273 ;;
5274 no) ENABLE_TIMESTAMPS=0
5275 ;;
5276 default) ENABLE_TIMESTAMPS=1
5277 ;;
5278 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5279echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5281esac
5282
5283cat >>confdefs.h <<_ACEOF
5284#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5285_ACEOF
5286
5287
5288TARGETS_TO_BUILD=""
5289# Check whether --enable-targets was given.
5290if test "${enable_targets+set}" = set; then
5291 enableval=$enable_targets;
5292else
5293 enableval=all
5294fi
5295
5296if test "$enableval" = host-only ; then
5297 enableval=host
5298fi
5299case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005300 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005301 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5302 case "$a_target" in
5303 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5304 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5305 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5306 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005307 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5308 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5309 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5310 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5311 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005312 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005313 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5314 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005315 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005316 host) case "$llvm_cv_target_arch" in
5317 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5319 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5320 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005321 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5322 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5323 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5325 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5326 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005327 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005328 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005329 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5330echo "$as_me: error: Can not set target to build" >&2;}
5331 { (exit 1); exit 1; }; } ;;
5332 esac ;;
5333 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5334echo "$as_me: error: Unrecognized target $a_target" >&2;}
5335 { (exit 1); exit 1; }; } ;;
5336 esac
5337 done
5338 ;;
5339esac
5340TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5341
5342
5343# Determine whether we are building LLVM support for the native architecture.
5344# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5345for a_target in $TARGETS_TO_BUILD; do
5346 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5347
5348cat >>confdefs.h <<_ACEOF
5349#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5350_ACEOF
5351
5352 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5353 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5354 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5355 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5356 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5357 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5358 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5360 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5361 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005362
5363cat >>confdefs.h <<_ACEOF
5364#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5365_ACEOF
5366
5367
5368cat >>confdefs.h <<_ACEOF
5369#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5370_ACEOF
5371
5372
5373cat >>confdefs.h <<_ACEOF
5374#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5375_ACEOF
5376
5377
5378cat >>confdefs.h <<_ACEOF
5379#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5380_ACEOF
5381
5382 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5383
5384cat >>confdefs.h <<_ACEOF
5385#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5386_ACEOF
5387
5388 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5390
5391cat >>confdefs.h <<_ACEOF
5392#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5393_ACEOF
5394
5395 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005396 fi
5397done
5398
5399# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400# target feature def files.
5401LLVM_ENUM_TARGETS=""
5402LLVM_ENUM_ASM_PRINTERS=""
5403LLVM_ENUM_ASM_PARSERS=""
5404LLVM_ENUM_DISASSEMBLERS=""
5405for target_to_build in $TARGETS_TO_BUILD; do
5406 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5407 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5408 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5409 fi
5410 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5412 fi
5413 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5415 fi
5416done
5417
5418
5419
5420
5421
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005422
5423# Check whether --with-optimize-option was given.
5424if test "${with_optimize_option+set}" = set; then
5425 withval=$with_optimize_option;
5426else
5427 withval=default
5428fi
5429
5430{ echo "$as_me:$LINENO: checking optimization flags" >&5
5431echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5432case "$withval" in
5433 default)
5434 case "$llvm_cv_os_type" in
5435 FreeBSD) optimize_option=-O2 ;;
5436 MingW) optimize_option=-O2 ;;
5437 *) optimize_option=-O3 ;;
5438 esac ;;
5439 *) optimize_option="$withval" ;;
5440esac
5441OPTIMIZE_OPTION=$optimize_option
5442
5443{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5444echo "${ECHO_T}$optimize_option" >&6; }
5445
5446
5447# Check whether --with-extra-options was given.
5448if test "${with_extra_options+set}" = set; then
5449 withval=$with_extra_options;
5450else
5451 withval=default
5452fi
5453
5454case "$withval" in
5455 default) EXTRA_OPTIONS= ;;
5456 *) EXTRA_OPTIONS=$withval ;;
5457esac
5458EXTRA_OPTIONS=$EXTRA_OPTIONS
5459
5460
5461
5462# Check whether --with-extra-ld-options was given.
5463if test "${with_extra_ld_options+set}" = set; then
5464 withval=$with_extra_ld_options;
5465else
5466 withval=default
5467fi
5468
5469case "$withval" in
5470 default) EXTRA_LD_OPTIONS= ;;
5471 *) EXTRA_LD_OPTIONS=$withval ;;
5472esac
5473EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5474
5475
5476# Check whether --enable-bindings was given.
5477if test "${enable_bindings+set}" = set; then
5478 enableval=$enable_bindings;
5479else
5480 enableval=default
5481fi
5482
5483BINDINGS_TO_BUILD=""
5484case "$enableval" in
5485 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5486 all ) BINDINGS_TO_BUILD="ocaml" ;;
5487 none | no) BINDINGS_TO_BUILD="" ;;
5488 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5489 case "$a_binding" in
5490 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5491 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5492echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5493 { (exit 1); exit 1; }; } ;;
5494 esac
5495 done
5496 ;;
5497esac
5498
5499
5500# Check whether --with-ocaml-libdir was given.
5501if test "${with_ocaml_libdir+set}" = set; then
5502 withval=$with_ocaml_libdir;
5503else
5504 withval=auto
5505fi
5506
5507case "$withval" in
5508 auto) with_ocaml_libdir="$withval" ;;
5509 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5510 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5511echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5513esac
5514
5515
5516# Check whether --with-clang-resource-dir was given.
5517if test "${with_clang_resource_dir+set}" = set; then
5518 withval=$with_clang_resource_dir;
5519else
5520 withval=""
5521fi
5522
5523
5524cat >>confdefs.h <<_ACEOF
5525#define CLANG_RESOURCE_DIR "$withval"
5526_ACEOF
5527
5528
5529
5530# Check whether --with-c-include-dirs was given.
5531if test "${with_c_include_dirs+set}" = set; then
5532 withval=$with_c_include_dirs;
5533else
5534 withval=""
5535fi
5536
5537
5538cat >>confdefs.h <<_ACEOF
5539#define C_INCLUDE_DIRS "$withval"
5540_ACEOF
5541
5542
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005543# Clang normally uses the system c++ headers and libraries. With this option,
5544# clang will use the ones provided by a gcc installation instead. This option should
5545# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005546
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005547# Check whether --with-gcc-toolchain was given.
5548if test "${with_gcc_toolchain+set}" = set; then
5549 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005550else
5551 withval=""
5552fi
5553
5554
5555cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005556#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005557_ACEOF
5558
5559
5560
5561# Check whether --with-binutils-include was given.
5562if test "${with_binutils_include+set}" = set; then
5563 withval=$with_binutils_include;
5564else
5565 withval=default
5566fi
5567
5568case "$withval" in
5569 default) WITH_BINUTILS_INCDIR=default ;;
5570 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5571 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5572echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5573 { (exit 1); exit 1; }; } ;;
5574esac
5575if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5576 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5577
5578 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5579 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5580 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5581echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5582 { (exit 1); exit 1; }; };
5583 fi
5584fi
5585
5586
5587# Check whether --with-bug-report-url was given.
5588if test "${with_bug_report_url+set}" = set; then
5589 withval=$with_bug_report_url;
5590else
5591 withval="http://llvm.org/bugs/"
5592fi
5593
5594
5595cat >>confdefs.h <<_ACEOF
5596#define BUG_REPORT_URL "$withval"
5597_ACEOF
5598
5599
5600# Check whether --enable-libffi was given.
5601if test "${enable_libffi+set}" = set; then
5602 enableval=$enable_libffi; case "$enableval" in
5603 yes) llvm_cv_enable_libffi="yes" ;;
5604 no) llvm_cv_enable_libffi="no" ;;
5605 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5606echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5607 { (exit 1); exit 1; }; } ;;
5608 esac
5609else
5610 llvm_cv_enable_libffi=no
5611fi
5612
5613
5614
5615{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5616echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5617if test "${lt_cv_path_NM+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620 if test -n "$NM"; then
5621 # Let the user override the test.
5622 lt_cv_path_NM="$NM"
5623else
5624 lt_nm_to_check="${ac_tool_prefix}nm"
5625 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5626 lt_nm_to_check="$lt_nm_to_check nm"
5627 fi
5628 for lt_tmp_nm in $lt_nm_to_check; do
5629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5630 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5631 IFS="$lt_save_ifs"
5632 test -z "$ac_dir" && ac_dir=.
5633 tmp_nm="$ac_dir/$lt_tmp_nm"
5634 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5635 # Check to see if the nm accepts a BSD-compat flag.
5636 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5637 # nm: unknown option "B" ignored
5638 # Tru64's nm complains that /dev/null is an invalid object file
5639 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5640 */dev/null* | *'Invalid file or object type'*)
5641 lt_cv_path_NM="$tmp_nm -B"
5642 break
5643 ;;
5644 *)
5645 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5646 */dev/null*)
5647 lt_cv_path_NM="$tmp_nm -p"
5648 break
5649 ;;
5650 *)
5651 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5652 continue # so that we can try to find one that supports BSD flags
5653 ;;
5654 esac
5655 ;;
5656 esac
5657 fi
5658 done
5659 IFS="$lt_save_ifs"
5660 done
5661 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5662fi
5663fi
5664{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5665echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5666NM="$lt_cv_path_NM"
5667
5668
5669
5670{ echo "$as_me:$LINENO: checking for GNU make" >&5
5671echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5672if test "${llvm_cv_gnu_make_command+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675 llvm_cv_gnu_make_command=''
5676 for a in "$MAKE" make gmake gnumake ; do
5677 if test -z "$a" ; then continue ; fi ;
5678 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5679 then
5680 llvm_cv_gnu_make_command=$a ;
5681 break;
5682 fi
5683 done
5684fi
5685{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5686echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5687 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5688 ifGNUmake='' ;
5689 else
5690 ifGNUmake='#' ;
5691 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5692echo "${ECHO_T}\"Not found\"" >&6; };
5693 fi
5694
5695
5696{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5697echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5698LN_S=$as_ln_s
5699if test "$LN_S" = "ln -s"; then
5700 { echo "$as_me:$LINENO: result: yes" >&5
5701echo "${ECHO_T}yes" >&6; }
5702else
5703 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5704echo "${ECHO_T}no, using $LN_S" >&6; }
5705fi
5706
5707# Extract the first word of "cmp", so it can be a program name with args.
5708set dummy cmp; ac_word=$2
5709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5711if test "${ac_cv_path_CMP+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714 case $CMP in
5715 [\\/]* | ?:[\\/]*)
5716 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5717 ;;
5718 *)
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731done
5732IFS=$as_save_IFS
5733
5734 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5735 ;;
5736esac
5737fi
5738CMP=$ac_cv_path_CMP
5739if test -n "$CMP"; then
5740 { echo "$as_me:$LINENO: result: $CMP" >&5
5741echo "${ECHO_T}$CMP" >&6; }
5742else
5743 { echo "$as_me:$LINENO: result: no" >&5
5744echo "${ECHO_T}no" >&6; }
5745fi
5746
5747
5748# Extract the first word of "cp", so it can be a program name with args.
5749set dummy cp; ac_word=$2
5750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5752if test "${ac_cv_path_CP+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 case $CP in
5756 [\\/]* | ?:[\\/]*)
5757 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5758 ;;
5759 *)
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771done
5772done
5773IFS=$as_save_IFS
5774
5775 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5776 ;;
5777esac
5778fi
5779CP=$ac_cv_path_CP
5780if test -n "$CP"; then
5781 { echo "$as_me:$LINENO: result: $CP" >&5
5782echo "${ECHO_T}$CP" >&6; }
5783else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6; }
5786fi
5787
5788
5789# Extract the first word of "date", so it can be a program name with args.
5790set dummy date; ac_word=$2
5791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793if test "${ac_cv_path_DATE+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796 case $DATE in
5797 [\\/]* | ?:[\\/]*)
5798 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5799 ;;
5800 *)
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813done
5814IFS=$as_save_IFS
5815
5816 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5817 ;;
5818esac
5819fi
5820DATE=$ac_cv_path_DATE
5821if test -n "$DATE"; then
5822 { echo "$as_me:$LINENO: result: $DATE" >&5
5823echo "${ECHO_T}$DATE" >&6; }
5824else
5825 { echo "$as_me:$LINENO: result: no" >&5
5826echo "${ECHO_T}no" >&6; }
5827fi
5828
5829
5830# Extract the first word of "find", so it can be a program name with args.
5831set dummy find; ac_word=$2
5832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834if test "${ac_cv_path_FIND+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 case $FIND in
5838 [\\/]* | ?:[\\/]*)
5839 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5840 ;;
5841 *)
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853done
5854done
5855IFS=$as_save_IFS
5856
5857 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5858 ;;
5859esac
5860fi
5861FIND=$ac_cv_path_FIND
5862if test -n "$FIND"; then
5863 { echo "$as_me:$LINENO: result: $FIND" >&5
5864echo "${ECHO_T}$FIND" >&6; }
5865else
5866 { echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6; }
5868fi
5869
5870
5871# Extract the first word of "grep", so it can be a program name with args.
5872set dummy grep; ac_word=$2
5873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875if test "${ac_cv_path_GREP+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878 case $GREP in
5879 [\\/]* | ?:[\\/]*)
5880 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5881 ;;
5882 *)
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895done
5896IFS=$as_save_IFS
5897
5898 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5899 ;;
5900esac
5901fi
5902GREP=$ac_cv_path_GREP
5903if test -n "$GREP"; then
5904 { echo "$as_me:$LINENO: result: $GREP" >&5
5905echo "${ECHO_T}$GREP" >&6; }
5906else
5907 { echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6; }
5909fi
5910
5911
5912# Extract the first word of "mkdir", so it can be a program name with args.
5913set dummy mkdir; ac_word=$2
5914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916if test "${ac_cv_path_MKDIR+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 case $MKDIR in
5920 [\\/]* | ?:[\\/]*)
5921 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5922 ;;
5923 *)
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937IFS=$as_save_IFS
5938
5939 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5940 ;;
5941esac
5942fi
5943MKDIR=$ac_cv_path_MKDIR
5944if test -n "$MKDIR"; then
5945 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5946echo "${ECHO_T}$MKDIR" >&6; }
5947else
5948 { echo "$as_me:$LINENO: result: no" >&5
5949echo "${ECHO_T}no" >&6; }
5950fi
5951
5952
5953# Extract the first word of "mv", so it can be a program name with args.
5954set dummy mv; ac_word=$2
5955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5957if test "${ac_cv_path_MV+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960 case $MV in
5961 [\\/]* | ?:[\\/]*)
5962 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5963 ;;
5964 *)
5965 as_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_path_MV="$as_dir/$ac_word$ac_exec_ext"
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
5980 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5981 ;;
5982esac
5983fi
5984MV=$ac_cv_path_MV
5985if test -n "$MV"; then
5986 { echo "$as_me:$LINENO: result: $MV" >&5
5987echo "${ECHO_T}$MV" >&6; }
5988else
5989 { echo "$as_me:$LINENO: result: no" >&5
5990echo "${ECHO_T}no" >&6; }
5991fi
5992
5993
5994if test -n "$ac_tool_prefix"; then
5995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5996set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 if test -n "$RANLIB"; then
6003 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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
6022RANLIB=$ac_cv_prog_RANLIB
6023if test -n "$RANLIB"; then
6024 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6025echo "${ECHO_T}$RANLIB" >&6; }
6026else
6027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
6029fi
6030
6031
6032fi
6033if test -z "$ac_cv_prog_RANLIB"; then
6034 ac_ct_RANLIB=$RANLIB
6035 # Extract the first word of "ranlib", so it can be a program name with args.
6036set dummy ranlib; ac_word=$2
6037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6039if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042 if test -n "$ac_ct_RANLIB"; then
6043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_ac_ct_RANLIB="ranlib"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056done
6057done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6063if test -n "$ac_ct_RANLIB"; then
6064 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6065echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6066else
6067 { echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6; }
6069fi
6070
6071 if test "x$ac_ct_RANLIB" = x; then
6072 RANLIB=":"
6073 else
6074 case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6077whose name does not start with the host triplet. If you think this
6078configuration is useful to you, please write to autoconf@gnu.org." >&5
6079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6080whose name does not start with the host triplet. If you think this
6081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084 RANLIB=$ac_ct_RANLIB
6085 fi
6086else
6087 RANLIB="$ac_cv_prog_RANLIB"
6088fi
6089
6090if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6092set dummy ${ac_tool_prefix}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_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 if test -n "$AR"; then
6099 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}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
6118AR=$ac_cv_prog_AR
6119if test -n "$AR"; then
6120 { echo "$as_me:$LINENO: result: $AR" >&5
6121echo "${ECHO_T}$AR" >&6; }
6122else
6123 { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
6125fi
6126
6127
6128fi
6129if test -z "$ac_cv_prog_AR"; then
6130 ac_ct_AR=$AR
6131 # Extract the first word of "ar", so it can be a program name with args.
6132set dummy ar; ac_word=$2
6133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138 if test -n "$ac_ct_AR"; then
6139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_AR="ar"
6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152done
6153done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158ac_ct_AR=$ac_cv_prog_ac_ct_AR
6159if test -n "$ac_ct_AR"; then
6160 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6161echo "${ECHO_T}$ac_ct_AR" >&6; }
6162else
6163 { echo "$as_me:$LINENO: result: no" >&5
6164echo "${ECHO_T}no" >&6; }
6165fi
6166
6167 if test "x$ac_ct_AR" = x; then
6168 AR="false"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171yes:)
6172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6173whose name does not start with the host triplet. If you think this
6174configuration is useful to you, please write to autoconf@gnu.org." >&5
6175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6176whose name does not start with the host triplet. If you think this
6177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6178ac_tool_warned=yes ;;
6179esac
6180 AR=$ac_ct_AR
6181 fi
6182else
6183 AR="$ac_cv_prog_AR"
6184fi
6185
6186# Extract the first word of "rm", so it can be a program name with args.
6187set dummy rm; ac_word=$2
6188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190if test "${ac_cv_path_RM+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193 case $RM in
6194 [\\/]* | ?:[\\/]*)
6195 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6196 ;;
6197 *)
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210done
6211IFS=$as_save_IFS
6212
6213 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6214 ;;
6215esac
6216fi
6217RM=$ac_cv_path_RM
6218if test -n "$RM"; then
6219 { echo "$as_me:$LINENO: result: $RM" >&5
6220echo "${ECHO_T}$RM" >&6; }
6221else
6222 { echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
6224fi
6225
6226
6227# Extract the first word of "sed", so it can be a program name with args.
6228set dummy sed; ac_word=$2
6229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231if test "${ac_cv_path_SED+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234 case $SED in
6235 [\\/]* | ?:[\\/]*)
6236 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6237 ;;
6238 *)
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250done
6251done
6252IFS=$as_save_IFS
6253
6254 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6255 ;;
6256esac
6257fi
6258SED=$ac_cv_path_SED
6259if test -n "$SED"; then
6260 { echo "$as_me:$LINENO: result: $SED" >&5
6261echo "${ECHO_T}$SED" >&6; }
6262else
6263 { echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6; }
6265fi
6266
6267
6268# Extract the first word of "tar", so it can be a program name with args.
6269set dummy tar; ac_word=$2
6270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272if test "${ac_cv_path_TAR+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275 case $TAR in
6276 [\\/]* | ?:[\\/]*)
6277 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6278 ;;
6279 *)
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291done
6292done
6293IFS=$as_save_IFS
6294
6295 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6296 ;;
6297esac
6298fi
6299TAR=$ac_cv_path_TAR
6300if test -n "$TAR"; then
6301 { echo "$as_me:$LINENO: result: $TAR" >&5
6302echo "${ECHO_T}$TAR" >&6; }
6303else
6304 { echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6; }
6306fi
6307
6308
6309# Extract the first word of "pwd", so it can be a program name with args.
6310set dummy pwd; ac_word=$2
6311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313if test "${ac_cv_path_BINPWD+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 case $BINPWD in
6317 [\\/]* | ?:[\\/]*)
6318 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6319 ;;
6320 *)
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333done
6334IFS=$as_save_IFS
6335
6336 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6337 ;;
6338esac
6339fi
6340BINPWD=$ac_cv_path_BINPWD
6341if test -n "$BINPWD"; then
6342 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6343echo "${ECHO_T}$BINPWD" >&6; }
6344else
6345 { echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6; }
6347fi
6348
6349
6350
6351# Extract the first word of "Graphviz", so it can be a program name with args.
6352set dummy Graphviz; ac_word=$2
6353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358 case $GRAPHVIZ in
6359 [\\/]* | ?:[\\/]*)
6360 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6361 ;;
6362 *)
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374done
6375done
6376IFS=$as_save_IFS
6377
6378 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6379 ;;
6380esac
6381fi
6382GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6383if test -n "$GRAPHVIZ"; then
6384 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6385echo "${ECHO_T}$GRAPHVIZ" >&6; }
6386else
6387 { echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6; }
6389fi
6390
6391
6392if test "$GRAPHVIZ" != "echo Graphviz" ; then
6393
6394cat >>confdefs.h <<\_ACEOF
6395#define HAVE_GRAPHVIZ 1
6396_ACEOF
6397
6398 if test "$llvm_cv_os_type" = "MingW" ; then
6399 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6400 fi
6401
6402cat >>confdefs.h <<_ACEOF
6403#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6404_ACEOF
6405
6406fi
6407# Extract the first word of "dot", so it can be a program name with args.
6408set dummy dot; ac_word=$2
6409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411if test "${ac_cv_path_DOT+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414 case $DOT in
6415 [\\/]* | ?:[\\/]*)
6416 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6417 ;;
6418 *)
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430done
6431done
6432IFS=$as_save_IFS
6433
6434 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6435 ;;
6436esac
6437fi
6438DOT=$ac_cv_path_DOT
6439if test -n "$DOT"; then
6440 { echo "$as_me:$LINENO: result: $DOT" >&5
6441echo "${ECHO_T}$DOT" >&6; }
6442else
6443 { echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6; }
6445fi
6446
6447
6448if test "$DOT" != "echo dot" ; then
6449
6450cat >>confdefs.h <<\_ACEOF
6451#define HAVE_DOT 1
6452_ACEOF
6453
6454 if test "$llvm_cv_os_type" = "MingW" ; then
6455 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456 fi
6457
6458cat >>confdefs.h <<_ACEOF
6459#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6460_ACEOF
6461
6462fi
6463# Extract the first word of "fdp", so it can be a program name with args.
6464set dummy fdp; ac_word=$2
6465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467if test "${ac_cv_path_FDP+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469else
6470 case $FDP in
6471 [\\/]* | ?:[\\/]*)
6472 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6473 ;;
6474 *)
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486done
6487done
6488IFS=$as_save_IFS
6489
6490 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6491 ;;
6492esac
6493fi
6494FDP=$ac_cv_path_FDP
6495if test -n "$FDP"; then
6496 { echo "$as_me:$LINENO: result: $FDP" >&5
6497echo "${ECHO_T}$FDP" >&6; }
6498else
6499 { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
6501fi
6502
6503
6504if test "$FDP" != "echo fdp" ; then
6505
6506cat >>confdefs.h <<\_ACEOF
6507#define HAVE_FDP 1
6508_ACEOF
6509
6510 if test "$llvm_cv_os_type" = "MingW" ; then
6511 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 fi
6513
6514cat >>confdefs.h <<_ACEOF
6515#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6516_ACEOF
6517
6518fi
6519# Extract the first word of "neato", so it can be a program name with args.
6520set dummy neato; ac_word=$2
6521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523if test "${ac_cv_path_NEATO+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526 case $NEATO in
6527 [\\/]* | ?:[\\/]*)
6528 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6529 ;;
6530 *)
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544IFS=$as_save_IFS
6545
6546 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6547 ;;
6548esac
6549fi
6550NEATO=$ac_cv_path_NEATO
6551if test -n "$NEATO"; then
6552 { echo "$as_me:$LINENO: result: $NEATO" >&5
6553echo "${ECHO_T}$NEATO" >&6; }
6554else
6555 { echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6; }
6557fi
6558
6559
6560if test "$NEATO" != "echo neato" ; then
6561
6562cat >>confdefs.h <<\_ACEOF
6563#define HAVE_NEATO 1
6564_ACEOF
6565
6566 if test "$llvm_cv_os_type" = "MingW" ; then
6567 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 fi
6569
6570cat >>confdefs.h <<_ACEOF
6571#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6572_ACEOF
6573
6574fi
6575# Extract the first word of "twopi", so it can be a program name with args.
6576set dummy twopi; ac_word=$2
6577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579if test "${ac_cv_path_TWOPI+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 case $TWOPI in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599done
6600IFS=$as_save_IFS
6601
6602 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6603 ;;
6604esac
6605fi
6606TWOPI=$ac_cv_path_TWOPI
6607if test -n "$TWOPI"; then
6608 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6609echo "${ECHO_T}$TWOPI" >&6; }
6610else
6611 { echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6; }
6613fi
6614
6615
6616if test "$TWOPI" != "echo twopi" ; then
6617
6618cat >>confdefs.h <<\_ACEOF
6619#define HAVE_TWOPI 1
6620_ACEOF
6621
6622 if test "$llvm_cv_os_type" = "MingW" ; then
6623 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 fi
6625
6626cat >>confdefs.h <<_ACEOF
6627#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6628_ACEOF
6629
6630fi
6631# Extract the first word of "circo", so it can be a program name with args.
6632set dummy circo; ac_word=$2
6633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635if test "${ac_cv_path_CIRCO+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638 case $CIRCO in
6639 [\\/]* | ?:[\\/]*)
6640 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6641 ;;
6642 *)
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654done
6655done
6656IFS=$as_save_IFS
6657
6658 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6659 ;;
6660esac
6661fi
6662CIRCO=$ac_cv_path_CIRCO
6663if test -n "$CIRCO"; then
6664 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6665echo "${ECHO_T}$CIRCO" >&6; }
6666else
6667 { echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6; }
6669fi
6670
6671
6672if test "$CIRCO" != "echo circo" ; then
6673
6674cat >>confdefs.h <<\_ACEOF
6675#define HAVE_CIRCO 1
6676_ACEOF
6677
6678 if test "$llvm_cv_os_type" = "MingW" ; then
6679 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 fi
6681
6682cat >>confdefs.h <<_ACEOF
6683#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6684_ACEOF
6685
6686fi
6687for ac_prog in gv gsview32
6688do
6689 # Extract the first word of "$ac_prog", so it can be a program name with args.
6690set dummy $ac_prog; ac_word=$2
6691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693if test "${ac_cv_path_GV+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 case $GV in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6699 ;;
6700 *)
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712done
6713done
6714IFS=$as_save_IFS
6715
6716 ;;
6717esac
6718fi
6719GV=$ac_cv_path_GV
6720if test -n "$GV"; then
6721 { echo "$as_me:$LINENO: result: $GV" >&5
6722echo "${ECHO_T}$GV" >&6; }
6723else
6724 { echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6; }
6726fi
6727
6728
6729 test -n "$GV" && break
6730done
6731test -n "$GV" || GV="echo gv"
6732
6733if test "$GV" != "echo gv" ; then
6734
6735cat >>confdefs.h <<\_ACEOF
6736#define HAVE_GV 1
6737_ACEOF
6738
6739 if test "$llvm_cv_os_type" = "MingW" ; then
6740 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741 fi
6742
6743cat >>confdefs.h <<_ACEOF
6744#define LLVM_PATH_GV "$GV${EXEEXT}"
6745_ACEOF
6746
6747fi
6748# Extract the first word of "dotty", so it can be a program name with args.
6749set dummy dotty; ac_word=$2
6750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752if test "${ac_cv_path_DOTTY+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755 case $DOTTY in
6756 [\\/]* | ?:[\\/]*)
6757 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6758 ;;
6759 *)
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772done
6773IFS=$as_save_IFS
6774
6775 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6776 ;;
6777esac
6778fi
6779DOTTY=$ac_cv_path_DOTTY
6780if test -n "$DOTTY"; then
6781 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6782echo "${ECHO_T}$DOTTY" >&6; }
6783else
6784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
6786fi
6787
6788
6789if test "$DOTTY" != "echo dotty" ; then
6790
6791cat >>confdefs.h <<\_ACEOF
6792#define HAVE_DOTTY 1
6793_ACEOF
6794
6795 if test "$llvm_cv_os_type" = "MingW" ; then
6796 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 fi
6798
6799cat >>confdefs.h <<_ACEOF
6800#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6801_ACEOF
6802
6803fi
6804# Extract the first word of "xdot.py", so it can be a program name with args.
6805set dummy xdot.py; ac_word=$2
6806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_path_XDOT_PY+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 case $XDOT_PY in
6812 [\\/]* | ?:[\\/]*)
6813 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6814 ;;
6815 *)
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827done
6828done
6829IFS=$as_save_IFS
6830
6831 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6832 ;;
6833esac
6834fi
6835XDOT_PY=$ac_cv_path_XDOT_PY
6836if test -n "$XDOT_PY"; then
6837 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6838echo "${ECHO_T}$XDOT_PY" >&6; }
6839else
6840 { echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6; }
6842fi
6843
6844
6845if test "$XDOT_PY" != "echo xdot.py" ; then
6846
6847cat >>confdefs.h <<\_ACEOF
6848#define HAVE_XDOT_PY 1
6849_ACEOF
6850
6851 if test "$llvm_cv_os_type" = "MingW" ; then
6852 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 fi
6854
6855cat >>confdefs.h <<_ACEOF
6856#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6857_ACEOF
6858
6859fi
6860
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006861# Find a good install program. We prefer a C program (faster),
6862# so one script is as good as another. But avoid the broken or
6863# incompatible versions:
6864# SysV /etc/install, /usr/sbin/install
6865# SunOS /usr/etc/install
6866# IRIX /sbin/install
6867# AIX /bin/install
6868# AmigaOS /C/install, which installs bootblocks on floppy discs
6869# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6870# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6871# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6872# OS/2's system install, which has a completely different semantic
6873# ./install, which can be erroneously created by make from ./install.sh.
6874{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6875echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6876if test -z "$INSTALL"; then
6877if test "${ac_cv_path_install+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 # Account for people who put trailing slashes in PATH elements.
6886case $as_dir/ in
6887 ./ | .// | /cC/* | \
6888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6889 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6890 /usr/ucb/* ) ;;
6891 *)
6892 # OSF1 and SCO ODT 3.0 have their own names for install.
6893 # Don't use installbsd from OSF since it installs stuff as root
6894 # by default.
6895 for ac_prog in ginstall scoinst install; do
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6898 if test $ac_prog = install &&
6899 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6900 # AIX install. It has an incompatible calling convention.
6901 :
6902 elif test $ac_prog = install &&
6903 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6904 # program-specific install script used by HP pwplus--don't use.
6905 :
6906 else
6907 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6908 break 3
6909 fi
6910 fi
6911 done
6912 done
6913 ;;
6914esac
6915done
6916IFS=$as_save_IFS
6917
6918
6919fi
6920 if test "${ac_cv_path_install+set}" = set; then
6921 INSTALL=$ac_cv_path_install
6922 else
6923 # As a last resort, use the slow shell script. Don't cache a
6924 # value for INSTALL within a source directory, because that will
6925 # break other packages using the cache if that directory is
6926 # removed, or if the value is a relative name.
6927 INSTALL=$ac_install_sh
6928 fi
6929fi
6930{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6931echo "${ECHO_T}$INSTALL" >&6; }
6932
6933# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6934# It thinks the first close brace ends the variable substitution.
6935test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6936
6937test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6938
6939test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6940
6941case "$INSTALL" in
6942 [\\/$]* | ?:[\\/]* ) ;;
6943 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6944esac
6945
6946# Extract the first word of "bzip2", so it can be a program name with args.
6947set dummy bzip2; 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_BZIP2+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 case $BZIP2 in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_BZIP2="$BZIP2" # 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_BZIP2="$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
6976BZIP2=$ac_cv_path_BZIP2
6977if test -n "$BZIP2"; then
6978 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6979echo "${ECHO_T}$BZIP2" >&6; }
6980else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
6983fi
6984
6985
6986# Extract the first word of "cat", so it can be a program name with args.
6987set dummy cat; 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_CAT+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 case $CAT in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_CAT="$CAT" # 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_CAT="$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
7016CAT=$ac_cv_path_CAT
7017if test -n "$CAT"; then
7018 { echo "$as_me:$LINENO: result: $CAT" >&5
7019echo "${ECHO_T}$CAT" >&6; }
7020else
7021 { echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6; }
7023fi
7024
7025
7026# Extract the first word of "doxygen", so it can be a program name with args.
7027set dummy doxygen; 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_DOXYGEN+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033 case $DOXYGEN in
7034 [\\/]* | ?:[\\/]*)
7035 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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
7056DOXYGEN=$ac_cv_path_DOXYGEN
7057if test -n "$DOXYGEN"; then
7058 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7059echo "${ECHO_T}$DOXYGEN" >&6; }
7060else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
7063fi
7064
7065
7066# Extract the first word of "groff", so it can be a program name with args.
7067set dummy groff; 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_GROFF+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073 case $GROFF in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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
7096GROFF=$ac_cv_path_GROFF
7097if test -n "$GROFF"; then
7098 { echo "$as_me:$LINENO: result: $GROFF" >&5
7099echo "${ECHO_T}$GROFF" >&6; }
7100else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
7103fi
7104
7105
7106# Extract the first word of "gzip", so it can be a program name with args.
7107set dummy gzip; 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_GZIPBIN+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 case $GZIPBIN in
7114 [\\/]* | ?:[\\/]*)
7115 ac_cv_path_GZIPBIN="$GZIPBIN" # 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_GZIPBIN="$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
7136GZIPBIN=$ac_cv_path_GZIPBIN
7137if test -n "$GZIPBIN"; then
7138 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7139echo "${ECHO_T}$GZIPBIN" >&6; }
7140else
7141 { echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6; }
7143fi
7144
7145
7146# Extract the first word of "pod2html", so it can be a program name with args.
7147set dummy pod2html; 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_POD2HTML+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 case $POD2HTML in
7154 [\\/]* | ?:[\\/]*)
7155 ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$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
7176POD2HTML=$ac_cv_path_POD2HTML
7177if test -n "$POD2HTML"; then
7178 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7179echo "${ECHO_T}$POD2HTML" >&6; }
7180else
7181 { echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6; }
7183fi
7184
7185
7186# Extract the first word of "pod2man", so it can be a program name with args.
7187set dummy pod2man; 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_POD2MAN+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 case $POD2MAN in
7194 [\\/]* | ?:[\\/]*)
7195 ac_cv_path_POD2MAN="$POD2MAN" # 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_POD2MAN="$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
7216POD2MAN=$ac_cv_path_POD2MAN
7217if test -n "$POD2MAN"; then
7218 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7219echo "${ECHO_T}$POD2MAN" >&6; }
7220else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6; }
7223fi
7224
7225
7226# Extract the first word of "pdfroff", so it can be a program name with args.
7227set dummy pdfroff; 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_PDFROFF+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 case $PDFROFF in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_PDFROFF="$PDFROFF" # 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_PDFROFF="$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
7256PDFROFF=$ac_cv_path_PDFROFF
7257if test -n "$PDFROFF"; then
7258 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7259echo "${ECHO_T}$PDFROFF" >&6; }
7260else
7261 { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
7263fi
7264
7265
7266# Extract the first word of "runtest", so it can be a program name with args.
7267set dummy runtest; ac_word=$2
7268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270if test "${ac_cv_path_RUNTEST+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 case $RUNTEST in
7274 [\\/]* | ?:[\\/]*)
7275 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7276 ;;
7277 *)
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290done
7291IFS=$as_save_IFS
7292
7293 ;;
7294esac
7295fi
7296RUNTEST=$ac_cv_path_RUNTEST
7297if test -n "$RUNTEST"; then
7298 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7299echo "${ECHO_T}$RUNTEST" >&6; }
7300else
7301 { echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6; }
7303fi
7304
7305
7306
7307no_itcl=true
7308{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7309echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7310
7311# Check whether --with-tclinclude was given.
7312if test "${with_tclinclude+set}" = set; then
7313 withval=$with_tclinclude; with_tclinclude=${withval}
7314else
7315 with_tclinclude=''
7316fi
7317
7318if test "${ac_cv_path_tclsh+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320else
7321
7322if test x"${with_tclinclude}" != x ; then
7323 if test -f ${with_tclinclude}/tclsh ; then
7324 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7325 elif test -f ${with_tclinclude}/src/tclsh ; then
7326 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7327 else
7328 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7329echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7330 { (exit 1); exit 1; }; }
7331 fi
7332fi
7333fi
7334
7335
7336if test x"${ac_cv_path_tclsh}" = x ; then
7337 { echo "$as_me:$LINENO: result: none" >&5
7338echo "${ECHO_T}none" >&6; }
7339 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
7340do
7341 # Extract the first word of "$ac_prog", so it can be a program name with args.
7342set dummy $ac_prog; ac_word=$2
7343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345if test "${ac_cv_path_TCLSH+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348 case $TCLSH in
7349 [\\/]* | ?:[\\/]*)
7350 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7351 ;;
7352 *)
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366IFS=$as_save_IFS
7367
7368 ;;
7369esac
7370fi
7371TCLSH=$ac_cv_path_TCLSH
7372if test -n "$TCLSH"; then
7373 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7374echo "${ECHO_T}$TCLSH" >&6; }
7375else
7376 { echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6; }
7378fi
7379
7380
7381 test -n "$TCLSH" && break
7382done
7383
7384 if test x"${TCLSH}" = x ; then
7385 ac_cv_path_tclsh='';
7386 else
7387 ac_cv_path_tclsh="${TCLSH}";
7388 fi
7389else
7390 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7391echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7392 TCLSH="${ac_cv_path_tclsh}"
7393
7394fi
7395
7396# Extract the first word of "zip", so it can be a program name with args.
7397set dummy zip; ac_word=$2
7398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400if test "${ac_cv_path_ZIP+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403 case $ZIP in
7404 [\\/]* | ?:[\\/]*)
7405 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7406 ;;
7407 *)
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419done
7420done
7421IFS=$as_save_IFS
7422
7423 ;;
7424esac
7425fi
7426ZIP=$ac_cv_path_ZIP
7427if test -n "$ZIP"; then
7428 { echo "$as_me:$LINENO: result: $ZIP" >&5
7429echo "${ECHO_T}$ZIP" >&6; }
7430else
7431 { echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6; }
7433fi
7434
7435
7436for ac_prog in ocamlc
7437do
7438 # Extract the first word of "$ac_prog", so it can be a program name with args.
7439set dummy $ac_prog; ac_word=$2
7440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442if test "${ac_cv_path_OCAMLC+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 case $OCAMLC in
7446 [\\/]* | ?:[\\/]*)
7447 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7448 ;;
7449 *)
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461done
7462done
7463IFS=$as_save_IFS
7464
7465 ;;
7466esac
7467fi
7468OCAMLC=$ac_cv_path_OCAMLC
7469if test -n "$OCAMLC"; then
7470 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7471echo "${ECHO_T}$OCAMLC" >&6; }
7472else
7473 { echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6; }
7475fi
7476
7477
7478 test -n "$OCAMLC" && break
7479done
7480
7481for ac_prog in ocamlopt
7482do
7483 # Extract the first word of "$ac_prog", so it can be a program name with args.
7484set dummy $ac_prog; ac_word=$2
7485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 case $OCAMLOPT in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507done
7508IFS=$as_save_IFS
7509
7510 ;;
7511esac
7512fi
7513OCAMLOPT=$ac_cv_path_OCAMLOPT
7514if test -n "$OCAMLOPT"; then
7515 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7516echo "${ECHO_T}$OCAMLOPT" >&6; }
7517else
7518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
7520fi
7521
7522
7523 test -n "$OCAMLOPT" && break
7524done
7525
7526for ac_prog in ocamldep
7527do
7528 # Extract the first word of "$ac_prog", so it can be a program name with args.
7529set dummy $ac_prog; ac_word=$2
7530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 case $OCAMLDEP in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551done
7552done
7553IFS=$as_save_IFS
7554
7555 ;;
7556esac
7557fi
7558OCAMLDEP=$ac_cv_path_OCAMLDEP
7559if test -n "$OCAMLDEP"; then
7560 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7561echo "${ECHO_T}$OCAMLDEP" >&6; }
7562else
7563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
7565fi
7566
7567
7568 test -n "$OCAMLDEP" && break
7569done
7570
7571for ac_prog in ocamldoc
7572do
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574set dummy $ac_prog; ac_word=$2
7575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580 case $OCAMLDOC in
7581 [\\/]* | ?:[\\/]*)
7582 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7583 ;;
7584 *)
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596done
7597done
7598IFS=$as_save_IFS
7599
7600 ;;
7601esac
7602fi
7603OCAMLDOC=$ac_cv_path_OCAMLDOC
7604if test -n "$OCAMLDOC"; then
7605 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7606echo "${ECHO_T}$OCAMLDOC" >&6; }
7607else
7608 { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
7610fi
7611
7612
7613 test -n "$OCAMLDOC" && break
7614done
7615
7616for ac_prog in gas as
7617do
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619set dummy $ac_prog; ac_word=$2
7620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622if test "${ac_cv_path_GAS+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 case $GAS in
7626 [\\/]* | ?:[\\/]*)
7627 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7628 ;;
7629 *)
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641done
7642done
7643IFS=$as_save_IFS
7644
7645 ;;
7646esac
7647fi
7648GAS=$ac_cv_path_GAS
7649if test -n "$GAS"; then
7650 { echo "$as_me:$LINENO: result: $GAS" >&5
7651echo "${ECHO_T}$GAS" >&6; }
7652else
7653 { echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6; }
7655fi
7656
7657
7658 test -n "$GAS" && break
7659done
7660
7661
7662{ echo "$as_me:$LINENO: checking for linker version" >&5
7663echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7664if test "${llvm_cv_link_version+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667
7668 version_string="$(ld -v 2>&1 | head -1)"
7669
7670 # Check for ld64.
7671 if (echo "$version_string" | grep -q "ld64"); then
Benjamin Kramer00171802012-05-05 15:02:39 +00007672 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarbf79f912011-10-18 23:10:58 +00007673 else
7674 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7675 fi
7676
7677fi
7678{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7679echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7680
7681cat >>confdefs.h <<_ACEOF
7682#define HOST_LINK_VERSION "$llvm_cv_link_version"
7683_ACEOF
7684
7685
7686
7687{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7688echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7689if test "${llvm_cv_link_use_r+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692 ac_ext=c
7693ac_cpp='$CPP $CPPFLAGS'
7694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7696ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697
7698 oldcflags="$CFLAGS"
7699 CFLAGS="$CFLAGS -Wl,-R."
7700 cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h. */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h. */
7706
7707int
7708main ()
7709{
7710
7711 ;
7712 return 0;
7713}
7714_ACEOF
7715rm -f conftest.$ac_objext conftest$ac_exeext
7716if { (ac_try="$ac_link"
7717case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720esac
7721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_link") 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7730 { (case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733esac
7734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_try") 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest$ac_exeext'
7740 { (case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743esac
7744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_try") 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 llvm_cv_link_use_r=yes
7750else
7751 echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 llvm_cv_link_use_r=no
7755fi
7756
7757rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 CFLAGS="$oldcflags"
7760 ac_ext=c
7761ac_cpp='$CPP $CPPFLAGS'
7762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765
7766
7767fi
7768{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7769echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7770if test "$llvm_cv_link_use_r" = yes ; then
7771
7772cat >>confdefs.h <<\_ACEOF
7773#define HAVE_LINK_R 1
7774_ACEOF
7775
7776 fi
7777
7778
7779{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7780echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7781if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 ac_ext=c
7785ac_cpp='$CPP $CPPFLAGS'
7786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789
7790 oldcflags="$CFLAGS"
7791 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7792 cat >conftest.$ac_ext <<_ACEOF
7793/* confdefs.h. */
7794_ACEOF
7795cat confdefs.h >>conftest.$ac_ext
7796cat >>conftest.$ac_ext <<_ACEOF
7797/* end confdefs.h. */
7798
7799int
7800main ()
7801{
7802
7803 ;
7804 return 0;
7805}
7806_ACEOF
7807rm -f conftest.$ac_objext conftest$ac_exeext
7808if { (ac_try="$ac_link"
7809case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812esac
7813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_link") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7822 { (case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825esac
7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_try") 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest$ac_exeext'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
7836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 llvm_cv_link_use_export_dynamic=yes
7842else
7843 echo "$as_me: failed program was:" >&5
7844sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 llvm_cv_link_use_export_dynamic=no
7847fi
7848
7849rm -f core conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 CFLAGS="$oldcflags"
7852 ac_ext=c
7853ac_cpp='$CPP $CPPFLAGS'
7854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857
7858
7859fi
7860{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7861echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7862if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7863
7864cat >>confdefs.h <<\_ACEOF
7865#define HAVE_LINK_EXPORT_DYNAMIC 1
7866_ACEOF
7867
7868 fi
7869
7870
7871{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7872echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7873if test "${llvm_cv_link_use_version_script+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882 oldcflags="$CFLAGS"
7883
7884 # The following code is from the autoconf manual,
7885 # "11.13: Limitations of Usual Tools".
7886 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7887 # Use mktemp if possible; otherwise fall back on mkdir,
7888 # with $RANDOM to make collisions less likely.
7889 : ${TMPDIR=/tmp}
7890 {
7891 tmp=`
7892 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7893 ` &&
7894 test -n "$tmp" && test -d "$tmp"
7895 } || {
7896 tmp=$TMPDIR/foo$$-$RANDOM
7897 (umask 077 && mkdir "$tmp")
7898 } || exit $?
7899
7900 echo "{" > "$tmp/export.map"
7901 echo " global: main;" >> "$tmp/export.map"
7902 echo " local: *;" >> "$tmp/export.map"
7903 echo "};" >> "$tmp/export.map"
7904
7905 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
7916
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936 { (case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_try") 2>&5
7942 ac_status=$?
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 llvm_cv_link_use_version_script=yes
7956else
7957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 llvm_cv_link_use_version_script=no
7961fi
7962
7963rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 rm "$tmp/export.map"
7966 rmdir "$tmp"
7967 CFLAGS="$oldcflags"
7968 ac_ext=c
7969ac_cpp='$CPP $CPPFLAGS'
7970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973
7974
7975fi
7976{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7977echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7978if test "$llvm_cv_link_use_version_script" = yes ; then
7979 HAVE_LINK_VERSION_SCRIPT=1
7980
7981 fi
7982
7983
7984
7985
7986{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7987echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7988if test "${ac_cv_c_const+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990else
7991 cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997
7998int
7999main ()
8000{
8001/* FIXME: Include the comments suggested by Paul. */
8002#ifndef __cplusplus
8003 /* Ultrix mips cc rejects this. */
8004 typedef int charset[2];
8005 const charset x;
8006 /* SunOS 4.1.1 cc rejects this. */
8007 char const *const *ccp;
8008 char **p;
8009 /* NEC SVR4.0.2 mips cc rejects this. */
8010 struct point {int x, y;};
8011 static struct point const zero = {0,0};
8012 /* AIX XL C 1.02.0.0 rejects this.
8013 It does not let you subtract one const X* pointer from another in
8014 an arm of an if-expression whose if-part is not a constant
8015 expression */
8016 const char *g = "string";
8017 ccp = &g + (g ? g-g : 0);
8018 /* HPUX 7.0 cc rejects these. */
8019 ++ccp;
8020 p = (char**) ccp;
8021 ccp = (char const *const *) p;
8022 { /* SCO 3.2v4 cc rejects this. */
8023 char *t;
8024 char const *s = 0 ? (char *) 0 : (char const *) 0;
8025
8026 *t++ = 0;
8027 if (s) return 0;
8028 }
8029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8030 int x[] = {25, 17};
8031 const int *foo = &x[0];
8032 ++foo;
8033 }
8034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8035 typedef const int *iptr;
8036 iptr p = 0;
8037 ++p;
8038 }
8039 { /* AIX XL C 1.02.0.0 rejects this saying
8040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8041 struct s { int j; const int *ap[3]; };
8042 struct s *b; b->j = 5;
8043 }
8044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8045 const int foo = 10;
8046 if (!foo) return 0;
8047 }
8048 return !x[0] && !zero.x;
8049#endif
8050
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055rm -f conftest.$ac_objext
8056if { (ac_try="$ac_compile"
8057case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060esac
8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_compile") 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073esac
8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest.$ac_objext'
8080 { (case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8083esac
8084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_try") 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_c_const=yes
8090else
8091 echo "$as_me: failed program was:" >&5
8092sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_c_const=no
8095fi
8096
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098fi
8099{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8100echo "${ECHO_T}$ac_cv_c_const" >&6; }
8101if test $ac_cv_c_const = no; then
8102
8103cat >>confdefs.h <<\_ACEOF
8104#define const
8105_ACEOF
8106
8107fi
8108
8109
8110
8111
8112
8113
8114ac_header_dirent=no
8115for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8116 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8117{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8118echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128#include <sys/types.h>
8129#include <$ac_hdr>
8130
8131int
8132main ()
8133{
8134if ((DIR *) 0)
8135return 0;
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (ac_try="$ac_compile"
8142case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest.$ac_objext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168esac
8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 eval "$as_ac_Header=yes"
8175else
8176 echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 eval "$as_ac_Header=no"
8180fi
8181
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184ac_res=`eval echo '${'$as_ac_Header'}'`
8185 { echo "$as_me:$LINENO: result: $ac_res" >&5
8186echo "${ECHO_T}$ac_res" >&6; }
8187if test `eval echo '${'$as_ac_Header'}'` = yes; then
8188 cat >>confdefs.h <<_ACEOF
8189#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8190_ACEOF
8191
8192ac_header_dirent=$ac_hdr; break
8193fi
8194
8195done
8196# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8197if test $ac_header_dirent = dirent.h; then
8198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8199echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8200if test "${ac_cv_search_opendir+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 ac_func_search_save_LIBS=$LIBS
8204cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h. */
8206_ACEOF
8207cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */
8210
8211/* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8214#ifdef __cplusplus
8215extern "C"
8216#endif
8217char opendir ();
8218int
8219main ()
8220{
8221return opendir ();
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226for ac_lib in '' dir; do
8227 if test -z "$ac_lib"; then
8228 ac_res="none required"
8229 else
8230 ac_res=-l$ac_lib
8231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8232 fi
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234if { (ac_try="$ac_link"
8235case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238esac
8239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_link") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251esac
8252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261esac
8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_try") 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_search_opendir=$ac_res
8268else
8269 echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272
8273fi
8274
8275rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext
8277 if test "${ac_cv_search_opendir+set}" = set; then
8278 break
8279fi
8280done
8281if test "${ac_cv_search_opendir+set}" = set; then
8282 :
8283else
8284 ac_cv_search_opendir=no
8285fi
8286rm conftest.$ac_ext
8287LIBS=$ac_func_search_save_LIBS
8288fi
8289{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8290echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8291ac_res=$ac_cv_search_opendir
8292if test "$ac_res" != no; then
8293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8294
8295fi
8296
8297else
8298 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8299echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8300if test "${ac_cv_search_opendir+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 ac_func_search_save_LIBS=$LIBS
8304cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310
8311/* Override any GCC internal prototype to avoid an error.
8312 Use char because int might match the return type of a GCC
8313 builtin and then its argument prototype would still apply. */
8314#ifdef __cplusplus
8315extern "C"
8316#endif
8317char opendir ();
8318int
8319main ()
8320{
8321return opendir ();
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326for ac_lib in '' x; do
8327 if test -z "$ac_lib"; then
8328 ac_res="none required"
8329 else
8330 ac_res=-l$ac_lib
8331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8332 fi
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334if { (ac_try="$ac_link"
8335case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_link") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_search_opendir=$ac_res
8368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
8372
8373fi
8374
8375rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext
8377 if test "${ac_cv_search_opendir+set}" = set; then
8378 break
8379fi
8380done
8381if test "${ac_cv_search_opendir+set}" = set; then
8382 :
8383else
8384 ac_cv_search_opendir=no
8385fi
8386rm conftest.$ac_ext
8387LIBS=$ac_func_search_save_LIBS
8388fi
8389{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8390echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8391ac_res=$ac_cv_search_opendir
8392if test "$ac_res" != no; then
8393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8394
8395fi
8396
8397fi
8398
8399
8400for ac_header in dlfcn.h
8401do
8402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408fi
8409ac_res=`eval echo '${'$as_ac_Header'}'`
8410 { echo "$as_me:$LINENO: result: $ac_res" >&5
8411echo "${ECHO_T}$ac_res" >&6; }
8412else
8413 # Is the header compilable?
8414{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8416cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
8422$ac_includes_default
8423#include <$ac_header>
8424_ACEOF
8425rm -f conftest.$ac_objext
8426if { (ac_try="$ac_compile"
8427case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest.$ac_objext'
8450 { (case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453esac
8454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_try") 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_header_compiler=yes
8460else
8461 echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_header_compiler=no
8465fi
8466
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8469echo "${ECHO_T}$ac_header_compiler" >&6; }
8470
8471# Is the header present?
8472{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8474cat >conftest.$ac_ext <<_ACEOF
8475/* confdefs.h. */
8476_ACEOF
8477cat confdefs.h >>conftest.$ac_ext
8478cat >>conftest.$ac_ext <<_ACEOF
8479/* end confdefs.h. */
8480#include <$ac_header>
8481_ACEOF
8482if { (ac_try="$ac_cpp conftest.$ac_ext"
8483case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486esac
8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } >/dev/null; then
8495 if test -s conftest.err; then
8496 ac_cpp_err=$ac_c_preproc_warn_flag
8497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8498 else
8499 ac_cpp_err=
8500 fi
8501else
8502 ac_cpp_err=yes
8503fi
8504if test -z "$ac_cpp_err"; then
8505 ac_header_preproc=yes
8506else
8507 echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 ac_header_preproc=no
8511fi
8512
8513rm -f conftest.err conftest.$ac_ext
8514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8515echo "${ECHO_T}$ac_header_preproc" >&6; }
8516
8517# So? What about this header?
8518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8519 yes:no: )
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8524 ac_header_preproc=yes
8525 ;;
8526 no:yes:* )
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8534echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8539 ( cat <<\_ASBOX
8540## ------------------------------ ##
8541## Report this to bugs@yourdomain ##
8542## ------------------------------ ##
8543_ASBOX
8544 ) | sed "s/^/$as_me: WARNING: /" >&2
8545 ;;
8546esac
8547{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552 eval "$as_ac_Header=\$ac_header_preproc"
8553fi
8554ac_res=`eval echo '${'$as_ac_Header'}'`
8555 { echo "$as_me:$LINENO: result: $ac_res" >&5
8556echo "${ECHO_T}$ac_res" >&6; }
8557
8558fi
8559if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560 cat >>confdefs.h <<_ACEOF
8561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562_ACEOF
8563
8564fi
8565
8566done
8567
8568# Check whether --enable-ltdl-install was given.
8569if test "${enable_ltdl_install+set}" = set; then
8570 enableval=$enable_ltdl_install;
8571fi
8572
8573
8574
8575
8576if test x"${enable_ltdl_install-no}" != xno; then
8577 INSTALL_LTDL_TRUE=
8578 INSTALL_LTDL_FALSE='#'
8579else
8580 INSTALL_LTDL_TRUE='#'
8581 INSTALL_LTDL_FALSE=
8582fi
8583
8584
8585
8586if test x"${enable_ltdl_convenience-no}" != xno; then
8587 CONVENIENCE_LTDL_TRUE=
8588 CONVENIENCE_LTDL_FALSE='#'
8589else
8590 CONVENIENCE_LTDL_TRUE='#'
8591 CONVENIENCE_LTDL_FALSE=
8592fi
8593
8594
8595{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8596echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8597library_names_spec=
8598libname_spec='lib$name'
8599soname_spec=
8600shrext_cmds=".so"
8601postinstall_cmds=
8602postuninstall_cmds=
8603finish_cmds=
8604finish_eval=
8605shlibpath_var=
8606shlibpath_overrides_runpath=unknown
8607version_type=none
8608dynamic_linker="$host_os ld.so"
8609sys_lib_dlsearch_path_spec="/lib /usr/lib"
8610if test "$GCC" = yes; then
8611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8613 # if the path contains ";" then we assume it to be the separator
8614 # otherwise default to the standard path separator (i.e. ":") - it is
8615 # assumed that no part of a normal pathname contains ";" but that should
8616 # okay in the real world where ";" in dirpaths is itself problematic.
8617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8618 else
8619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8620 fi
8621else
8622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8623fi
8624need_lib_prefix=unknown
8625hardcode_into_libs=no
8626
8627# when you set need_version to no, make sure it does not cause -set_version
8628# flags to be left without arguments
8629need_version=unknown
8630
8631case $host_os in
8632aix3*)
8633 version_type=linux
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8635 shlibpath_var=LIBPATH
8636
8637 # AIX 3 has no versioning support, so we append a major version to the name.
8638 soname_spec='${libname}${release}${shared_ext}$major'
8639 ;;
8640
8641aix4* | aix5*)
8642 version_type=linux
8643 need_lib_prefix=no
8644 need_version=no
8645 hardcode_into_libs=yes
8646 if test "$host_cpu" = ia64; then
8647 # AIX 5 supports IA64
8648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 else
8651 # With GCC up to 2.95.x, collect2 would create an import file
8652 # for dependence libraries. The import file would start with
8653 # the line `#! .'. This would cause the generated library to
8654 # depend on `.', always an invalid library. This was fixed in
8655 # development snapshots of GCC prior to 3.0.
8656 case $host_os in
8657 aix4 | aix4.[01] | aix4.[01].*)
8658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8659 echo ' yes '
8660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8661 :
8662 else
8663 can_build_shared=no
8664 fi
8665 ;;
8666 esac
8667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8668 # soname into executable. Probably we can add versioning support to
8669 # collect2, so additional links can be useful in future.
8670 if test "$aix_use_runtimelinking" = yes; then
8671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8672 # instead of lib<name>.a to let people know that these are not
8673 # typical AIX shared libraries.
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 else
8676 # We preserve .a as extension for shared libraries through AIX4.2
8677 # and later when we are not doing run time linking.
8678 library_names_spec='${libname}${release}.a $libname.a'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 fi
8681 shlibpath_var=LIBPATH
8682 fi
8683 ;;
8684
8685amigaos*)
8686 library_names_spec='$libname.ixlibrary $libname.a'
8687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8688 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'
8689 ;;
8690
8691beos*)
8692 library_names_spec='${libname}${shared_ext}'
8693 dynamic_linker="$host_os ld.so"
8694 shlibpath_var=LIBRARY_PATH
8695 ;;
8696
8697bsdi[45]*)
8698 version_type=linux
8699 need_version=no
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8706 # the default ld.so.conf also contains /usr/contrib/lib and
8707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8708 # libtool to hard-code these into programs
8709 ;;
8710
8711cygwin* | mingw* | pw32*)
8712 version_type=windows
8713 shrext_cmds=".dll"
8714 need_version=no
8715 need_lib_prefix=no
8716
8717 case $GCC,$host_os in
8718 yes,cygwin* | yes,mingw* | yes,pw32*)
8719 library_names_spec='$libname.dll.a'
8720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8721 postinstall_cmds='base_file=`basename \${file}`~
8722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8723 dldir=$destdir/`dirname \$dlpath`~
8724 test -d \$dldir || mkdir -p \$dldir~
8725 $install_prog $dir/$dlname \$dldir/$dlname~
8726 chmod a+x \$dldir/$dlname'
8727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8728 dlpath=$dir/\$dldll~
8729 $rm \$dlpath'
8730 shlibpath_overrides_runpath=yes
8731
8732 case $host_os in
8733 cygwin*)
8734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8737 ;;
8738 mingw*)
8739 # MinGW DLLs use traditional 'lib' prefix
8740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8742 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8743 # It is most probably a Windows format PATH printed by
8744 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8745 # path with ; separators, and with drive letters. We can handle the
8746 # drive letters (cygwin fileutils understands them), so leave them,
8747 # especially as we might pass files found there to a mingw objdump,
8748 # which wouldn't understand a cygwinified path. Ahh.
8749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8750 else
8751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8752 fi
8753 ;;
8754 pw32*)
8755 # pw32 DLLs use 'pw' prefix rather than 'lib'
8756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757 ;;
8758 esac
8759 ;;
8760
8761 *)
8762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8763 ;;
8764 esac
8765 dynamic_linker='Win32 ld.exe'
8766 # FIXME: first we should search . and the directory the executable is in
8767 shlibpath_var=PATH
8768 ;;
8769
8770darwin* | rhapsody*)
8771 dynamic_linker="$host_os dyld"
8772 version_type=darwin
8773 need_lib_prefix=no
8774 need_version=no
8775 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8776 soname_spec='${libname}${release}${major}$shared_ext'
8777 shlibpath_overrides_runpath=yes
8778 shlibpath_var=DYLD_LIBRARY_PATH
8779 shrext_cmds='.dylib'
8780 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8781 if test "$GCC" = yes; then
8782 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"`
8783 else
8784 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8785 fi
8786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8787 ;;
8788
8789dgux*)
8790 version_type=linux
8791 need_lib_prefix=no
8792 need_version=no
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8794 soname_spec='${libname}${release}${shared_ext}$major'
8795 shlibpath_var=LD_LIBRARY_PATH
8796 ;;
8797
Rafael Espindola48381e52012-01-31 17:18:47 +00008798freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008799 dynamic_linker=no
8800 ;;
8801
8802kfreebsd*-gnu)
8803 version_type=linux
8804 need_lib_prefix=no
8805 need_version=no
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 shlibpath_var=LD_LIBRARY_PATH
8809 shlibpath_overrides_runpath=no
8810 hardcode_into_libs=yes
8811 dynamic_linker='GNU ld.so'
8812 ;;
8813
8814freebsd* | dragonfly*)
8815 # DragonFly does not have aout. When/if they implement a new
8816 # versioning mechanism, adjust this.
8817 if test -x /usr/bin/objformat; then
8818 objformat=`/usr/bin/objformat`
8819 else
8820 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008821 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008822 *) objformat=elf ;;
8823 esac
8824 fi
8825 version_type=freebsd-$objformat
8826 case $version_type in
8827 freebsd-elf*)
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8829 need_version=no
8830 need_lib_prefix=no
8831 ;;
8832 freebsd-*)
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8834 need_version=yes
8835 ;;
8836 esac
8837 shlibpath_var=LD_LIBRARY_PATH
8838 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008839 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008840 shlibpath_overrides_runpath=yes
8841 ;;
8842 freebsd3.[01]* | freebsdelf3.[01]*)
8843 shlibpath_overrides_runpath=yes
8844 hardcode_into_libs=yes
8845 ;;
8846 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8847 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8848 shlibpath_overrides_runpath=no
8849 hardcode_into_libs=yes
8850 ;;
8851 freebsd*) # from 4.6 on
8852 shlibpath_overrides_runpath=yes
8853 hardcode_into_libs=yes
8854 ;;
8855 esac
8856 ;;
8857
8858gnu*)
8859 version_type=linux
8860 need_lib_prefix=no
8861 need_version=no
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 hardcode_into_libs=yes
8866 ;;
8867
8868hpux9* | hpux10* | hpux11*)
8869 # Give a soname corresponding to the major version so that dld.sl refuses to
8870 # link against other versions.
8871 version_type=sunos
8872 need_lib_prefix=no
8873 need_version=no
8874 case $host_cpu in
8875 ia64*)
8876 shrext_cmds='.so'
8877 hardcode_into_libs=yes
8878 dynamic_linker="$host_os dld.so"
8879 shlibpath_var=LD_LIBRARY_PATH
8880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 if test "X$HPUX_IA64_MODE" = X32; then
8884 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8885 else
8886 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8887 fi
8888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8889 ;;
8890 hppa*64*)
8891 shrext_cmds='.sl'
8892 hardcode_into_libs=yes
8893 dynamic_linker="$host_os dld.sl"
8894 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8900 ;;
8901 *)
8902 shrext_cmds='.sl'
8903 dynamic_linker="$host_os dld.sl"
8904 shlibpath_var=SHLIB_PATH
8905 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 ;;
8909 esac
8910 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8911 postinstall_cmds='chmod 555 $lib'
8912 ;;
8913
8914interix3*)
8915 version_type=linux
8916 need_lib_prefix=no
8917 need_version=no
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 shlibpath_overrides_runpath=no
8923 hardcode_into_libs=yes
8924 ;;
8925
8926irix5* | irix6* | nonstopux*)
8927 case $host_os in
8928 nonstopux*) version_type=nonstopux ;;
8929 *)
8930 if test "$lt_cv_prog_gnu_ld" = yes; then
8931 version_type=linux
8932 else
8933 version_type=irix
8934 fi ;;
8935 esac
8936 need_lib_prefix=no
8937 need_version=no
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 case $host_os in
8941 irix5* | nonstopux*)
8942 libsuff= shlibsuff=
8943 ;;
8944 *)
8945 case $LD in # libtool.m4 will add one of these switches to LD
8946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8947 libsuff= shlibsuff= libmagic=32-bit;;
8948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8949 libsuff=32 shlibsuff=N32 libmagic=N32;;
8950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8952 *) libsuff= shlibsuff= libmagic=never-match;;
8953 esac
8954 ;;
8955 esac
8956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8957 shlibpath_overrides_runpath=no
8958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8960 hardcode_into_libs=yes
8961 ;;
8962
8963# No shared lib support for Linux oldld, aout, or coff.
8964linux*oldld* | linux*aout* | linux*coff*)
8965 dynamic_linker=no
8966 ;;
8967
8968# This must be Linux ELF.
8969linux*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8976 shlibpath_var=LD_LIBRARY_PATH
8977 shlibpath_overrides_runpath=no
8978 # This implies no fast_install, which is unacceptable.
8979 # Some rework will be needed to allow for fast_install
8980 # before this can be enabled.
8981 hardcode_into_libs=yes
8982
8983 # Append ld.so.conf contents to the search path
8984 if test -f /etc/ld.so.conf; then
8985 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' ' '`
8986 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8987 fi
8988
8989 # We used to test for /lib/ld.so.1 and disable shared libraries on
8990 # powerpc, because MkLinux only supported shared libraries with the
8991 # GNU dynamic linker. Since this was broken with cross compilers,
8992 # most powerpc-linux boxes support dynamic linking these days and
8993 # people can always --disable-shared, the test was removed, and we
8994 # assume the GNU/Linux dynamic linker is in use.
8995 dynamic_linker='GNU/Linux ld.so'
8996 ;;
8997
8998knetbsd*-gnu)
8999 version_type=linux
9000 need_lib_prefix=no
9001 need_version=no
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=no
9006 hardcode_into_libs=yes
9007 dynamic_linker='GNU ld.so'
9008 ;;
9009
9010netbsd*)
9011 version_type=sunos
9012 need_lib_prefix=no
9013 need_version=no
9014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9017 dynamic_linker='NetBSD (a.out) ld.so'
9018 else
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 dynamic_linker='NetBSD ld.elf_so'
9022 fi
9023 shlibpath_var=LD_LIBRARY_PATH
9024 shlibpath_overrides_runpath=yes
9025 hardcode_into_libs=yes
9026 ;;
9027
9028newsos6)
9029 version_type=linux
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9033 ;;
9034
9035nto-qnx*)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=yes
9043 ;;
9044
9045openbsd*)
9046 version_type=sunos
9047 sys_lib_dlsearch_path_spec="/usr/lib"
9048 need_lib_prefix=no
9049 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9050 case $host_os in
9051 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9052 *) need_version=no ;;
9053 esac
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9058 case $host_os in
9059 openbsd2.[89] | openbsd2.[89].*)
9060 shlibpath_overrides_runpath=no
9061 ;;
9062 *)
9063 shlibpath_overrides_runpath=yes
9064 ;;
9065 esac
9066 else
9067 shlibpath_overrides_runpath=yes
9068 fi
9069 ;;
9070
9071os2*)
9072 libname_spec='$name'
9073 shrext_cmds=".dll"
9074 need_lib_prefix=no
9075 library_names_spec='$libname${shared_ext} $libname.a'
9076 dynamic_linker='OS/2 ld.exe'
9077 shlibpath_var=LIBPATH
9078 ;;
9079
9080osf3* | osf4* | osf5*)
9081 version_type=osf
9082 need_lib_prefix=no
9083 need_version=no
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9088 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9089 ;;
9090
9091solaris*)
9092 version_type=linux
9093 need_lib_prefix=no
9094 need_version=no
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=yes
9099 hardcode_into_libs=yes
9100 # ldd complains unless libraries are executable
9101 postinstall_cmds='chmod +x $lib'
9102 ;;
9103
9104sunos4*)
9105 version_type=sunos
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=yes
9110 if test "$with_gnu_ld" = yes; then
9111 need_lib_prefix=no
9112 fi
9113 need_version=yes
9114 ;;
9115
9116sysv4 | sysv4.3*)
9117 version_type=linux
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 case $host_vendor in
9122 sni)
9123 shlibpath_overrides_runpath=no
9124 need_lib_prefix=no
9125 export_dynamic_flag_spec='${wl}-Blargedynsym'
9126 runpath_var=LD_RUN_PATH
9127 ;;
9128 siemens)
9129 need_lib_prefix=no
9130 ;;
9131 motorola)
9132 need_lib_prefix=no
9133 need_version=no
9134 shlibpath_overrides_runpath=no
9135 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9136 ;;
9137 esac
9138 ;;
9139
9140sysv4*MP*)
9141 if test -d /usr/nec ;then
9142 version_type=linux
9143 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9144 soname_spec='$libname${shared_ext}.$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 fi
9147 ;;
9148
9149sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9150 version_type=freebsd-elf
9151 need_lib_prefix=no
9152 need_version=no
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 hardcode_into_libs=yes
9157 if test "$with_gnu_ld" = yes; then
9158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9159 shlibpath_overrides_runpath=no
9160 else
9161 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9162 shlibpath_overrides_runpath=yes
9163 case $host_os in
9164 sco3.2v5*)
9165 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9166 ;;
9167 esac
9168 fi
9169 sys_lib_dlsearch_path_spec='/usr/lib'
9170 ;;
9171
9172uts4*)
9173 version_type=linux
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 ;;
9178
9179*)
9180 dynamic_linker=no
9181 ;;
9182esac
9183{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9184echo "${ECHO_T}$dynamic_linker" >&6; }
9185test "$dynamic_linker" = no && can_build_shared=no
9186
9187variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9188if test "$GCC" = yes; then
9189 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9190fi
9191
9192
9193{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9194echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9195if test "${libltdl_cv_shlibext+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198
9199module=yes
9200eval libltdl_cv_shlibext=$shrext_cmds
9201
9202fi
9203{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9204echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9205if test -n "$libltdl_cv_shlibext"; then
9206
9207cat >>confdefs.h <<_ACEOF
9208#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9209_ACEOF
9210
9211fi
9212
9213
9214{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9215echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9216if test "${libltdl_cv_shlibpath_var+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219 libltdl_cv_shlibpath_var="$shlibpath_var"
9220fi
9221{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9222echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9223if test -n "$libltdl_cv_shlibpath_var"; then
9224
9225cat >>confdefs.h <<_ACEOF
9226#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9227_ACEOF
9228
9229fi
9230
9231
9232{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9233echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9234if test "${libltdl_cv_sys_search_path+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236else
9237 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9238fi
9239{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9240echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9241if test -n "$libltdl_cv_sys_search_path"; then
9242 sys_search_path=
9243 for dir in $libltdl_cv_sys_search_path; do
9244 if test -z "$sys_search_path"; then
9245 sys_search_path="$dir"
9246 else
9247 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9248 fi
9249 done
9250
9251cat >>confdefs.h <<_ACEOF
9252#define LTDL_SYSSEARCHPATH "$sys_search_path"
9253_ACEOF
9254
9255fi
9256
9257{ echo "$as_me:$LINENO: checking for objdir" >&5
9258echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9259if test "${libltdl_cv_objdir+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261else
9262 libltdl_cv_objdir="$objdir"
9263 if test -n "$objdir"; then
9264 :
9265 else
9266 rm -f .libs 2>/dev/null
9267 mkdir .libs 2>/dev/null
9268 if test -d .libs; then
9269 libltdl_cv_objdir=.libs
9270 else
9271 # MS-DOS does not allow filenames that begin with a dot.
9272 libltdl_cv_objdir=_libs
9273 fi
9274 rmdir .libs 2>/dev/null
9275 fi
9276
9277fi
9278{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9279echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9280
9281cat >>confdefs.h <<_ACEOF
9282#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9283_ACEOF
9284
9285
9286
9287
9288
9289
9290# Check for command to grab the raw symbol name followed by C symbol from nm.
9291{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9292echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9293if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295else
9296
9297# These are sane defaults that work on at least a few old systems.
9298# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9299
9300# Character class describing NM global symbol codes.
9301symcode='[BCDEGRST]'
9302
9303# Regexp to match symbols that can be accessed directly from C.
9304sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9305
9306# Transform an extracted symbol line into a proper C declaration
9307lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9308
9309# Transform an extracted symbol line into symbol name and symbol address
9310lt_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'"
9311
9312# Define system-specific variables.
9313case $host_os in
9314aix*)
9315 symcode='[BCDT]'
9316 ;;
9317cygwin* | mingw* | pw32*)
9318 symcode='[ABCDGISTW]'
9319 ;;
9320hpux*) # Its linker distinguishes data from code symbols
9321 if test "$host_cpu" = ia64; then
9322 symcode='[ABCDEGRST]'
9323 fi
9324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9325 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'"
9326 ;;
9327linux*)
9328 if test "$host_cpu" = ia64; then
9329 symcode='[ABCDGIRSTW]'
9330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9331 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'"
9332 fi
9333 ;;
9334irix* | nonstopux*)
9335 symcode='[BCDEGRST]'
9336 ;;
9337osf*)
9338 symcode='[BCDEGQRST]'
9339 ;;
9340solaris*)
9341 symcode='[BDRT]'
9342 ;;
9343sco3.2v5*)
9344 symcode='[DT]'
9345 ;;
9346sysv4.2uw2*)
9347 symcode='[DT]'
9348 ;;
9349sysv5* | sco5v6* | unixware* | OpenUNIX*)
9350 symcode='[ABDT]'
9351 ;;
9352sysv4)
9353 symcode='[DFNSTU]'
9354 ;;
9355esac
9356
9357# Handle CRLF in mingw tool chain
9358opt_cr=
9359case $build_os in
9360mingw*)
9361 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9362 ;;
9363esac
9364
9365# If we're using GNU nm, then use its standard symbol codes.
9366case `$NM -V 2>&1` in
9367*GNU* | *'with BFD'*)
9368 symcode='[ABCDGIRSTW]' ;;
9369esac
9370
9371# Try without a prefix undercore, then with it.
9372for ac_symprfx in "" "_"; do
9373
9374 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9375 symxfrm="\\1 $ac_symprfx\\2 \\2"
9376
9377 # Write the raw and C identifiers.
9378 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9379
9380 # Check to see that the pipe works correctly.
9381 pipe_works=no
9382
9383 rm -f conftest*
9384 cat > conftest.$ac_ext <<EOF
9385#ifdef __cplusplus
9386extern "C" {
9387#endif
9388char nm_test_var;
9389void nm_test_func(){}
9390#ifdef __cplusplus
9391}
9392#endif
9393int main(){nm_test_var='a';nm_test_func();return(0);}
9394EOF
9395
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; then
9401 # Now try to grab the symbols.
9402 nlist=conftest.nm
9403 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9404 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && test -s "$nlist"; then
9408 # Try sorting and uniquifying the output.
9409 if sort "$nlist" | uniq > "$nlist"T; then
9410 mv -f "$nlist"T "$nlist"
9411 else
9412 rm -f "$nlist"T
9413 fi
9414
9415 # Make sure that we snagged all the symbols we need.
9416 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9417 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9418 cat <<EOF > conftest.$ac_ext
9419#ifdef __cplusplus
9420extern "C" {
9421#endif
9422
9423EOF
9424 # Now generate the symbol file.
9425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9426
9427 cat <<EOF >> conftest.$ac_ext
9428#if defined (__STDC__) && __STDC__
9429# define lt_ptr_t void *
9430#else
9431# define lt_ptr_t char *
9432# define const
9433#endif
9434
9435/* The mapping between symbol names and symbols. */
9436const struct {
9437 const char *name;
9438 lt_ptr_t address;
9439}
9440lt_preloaded_symbols[] =
9441{
9442EOF
9443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9444 cat <<\EOF >> conftest.$ac_ext
9445 {0, (lt_ptr_t) 0}
9446};
9447
9448#ifdef __cplusplus
9449}
9450#endif
9451EOF
9452 # Now try linking the two files.
9453 mv conftest.$ac_objext conftstm.$ac_objext
9454 lt_save_LIBS="$LIBS"
9455 lt_save_CFLAGS="$CFLAGS"
9456 LIBS="conftstm.$ac_objext"
9457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9463 pipe_works=yes
9464 fi
9465 LIBS="$lt_save_LIBS"
9466 CFLAGS="$lt_save_CFLAGS"
9467 else
9468 echo "cannot find nm_test_func in $nlist" >&5
9469 fi
9470 else
9471 echo "cannot find nm_test_var in $nlist" >&5
9472 fi
9473 else
9474 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9475 fi
9476 else
9477 echo "$progname: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 fi
9480 rm -f conftest* conftst*
9481
9482 # Do not use the global_symbol_pipe unless it works.
9483 if test "$pipe_works" = yes; then
9484 break
9485 else
9486 lt_cv_sys_global_symbol_pipe=
9487 fi
9488done
9489
9490fi
9491
9492if test -z "$lt_cv_sys_global_symbol_pipe"; then
9493 lt_cv_sys_global_symbol_to_cdecl=
9494fi
9495if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9496 { echo "$as_me:$LINENO: result: failed" >&5
9497echo "${ECHO_T}failed" >&6; }
9498else
9499 { echo "$as_me:$LINENO: result: ok" >&5
9500echo "${ECHO_T}ok" >&6; }
9501fi
9502
9503
9504{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9505echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9506if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9510 libltdl_cv_preloaded_symbols=yes
9511 else
9512 libltdl_cv_preloaded_symbols=no
9513 fi
9514
9515fi
9516{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9517echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9518if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9519
9520cat >>confdefs.h <<\_ACEOF
9521#define HAVE_PRELOADED_SYMBOLS 1
9522_ACEOF
9523
9524fi
9525
9526LIBADD_DL=
9527
9528ac_ext=c
9529ac_cpp='$CPP $CPPFLAGS'
9530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532ac_compiler_gnu=$ac_cv_c_compiler_gnu
9533
9534
9535{ echo "$as_me:$LINENO: checking for shl_load" >&5
9536echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9537if test "${ac_cv_func_shl_load+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540 cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9548#define shl_load innocuous_shl_load
9549
9550/* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char shl_load (); below.
9552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553 <limits.h> exists even on freestanding compilers. */
9554
9555#ifdef __STDC__
9556# include <limits.h>
9557#else
9558# include <assert.h>
9559#endif
9560
9561#undef shl_load
9562
9563/* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566#ifdef __cplusplus
9567extern "C"
9568#endif
9569char shl_load ();
9570/* The GNU C library defines this for functions which it implements
9571 to always fail with ENOSYS. Some functions are actually named
9572 something starting with __ and the normal name is an alias. */
9573#if defined __stub_shl_load || defined __stub___shl_load
9574choke me
9575#endif
9576
9577int
9578main ()
9579{
9580return shl_load ();
9581 ;
9582 return 0;
9583}
9584_ACEOF
9585rm -f conftest.$ac_objext conftest$ac_exeext
9586if { (ac_try="$ac_link"
9587case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_func_shl_load=yes
9620else
9621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ac_cv_func_shl_load=no
9625fi
9626
9627rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629fi
9630{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9631echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9632if test $ac_cv_func_shl_load = yes; then
9633
9634cat >>confdefs.h <<\_ACEOF
9635#define HAVE_SHL_LOAD 1
9636_ACEOF
9637
9638else
9639 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9640echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9641if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643else
9644 ac_check_lib_save_LIBS=$LIBS
9645LIBS="-ldld $LIBS"
9646cat >conftest.$ac_ext <<_ACEOF
9647/* confdefs.h. */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h. */
9652
9653/* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9656#ifdef __cplusplus
9657extern "C"
9658#endif
9659char shl_load ();
9660int
9661main ()
9662{
9663return shl_load ();
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext conftest$ac_exeext
9669if { (ac_try="$ac_link"
9670case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_link") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696esac
9697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_try") 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_cv_lib_dld_shl_load=yes
9703else
9704 echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_cv_lib_dld_shl_load=no
9708fi
9709
9710rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712LIBS=$ac_check_lib_save_LIBS
9713fi
9714{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9715echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9716if test $ac_cv_lib_dld_shl_load = yes; then
9717
9718cat >>confdefs.h <<\_ACEOF
9719#define HAVE_SHL_LOAD 1
9720_ACEOF
9721
9722 LIBADD_DL="$LIBADD_DL -ldld"
9723else
9724 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9725echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9726if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728else
9729 ac_check_lib_save_LIBS=$LIBS
9730LIBS="-ldl $LIBS"
9731cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h. */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h. */
9737
9738/* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741#ifdef __cplusplus
9742extern "C"
9743#endif
9744char dlopen ();
9745int
9746main ()
9747{
9748return dlopen ();
9749 ;
9750 return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
9754if { (ac_try="$ac_link"
9755case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9768 { (case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771esac
9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_try") 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_try") 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_lib_dl_dlopen=yes
9788else
9789 echo "$as_me: failed program was:" >&5
9790sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 ac_cv_lib_dl_dlopen=no
9793fi
9794
9795rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797LIBS=$ac_check_lib_save_LIBS
9798fi
9799{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9800echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9801if test $ac_cv_lib_dl_dlopen = yes; then
9802
9803cat >>confdefs.h <<\_ACEOF
9804#define HAVE_LIBDL 1
9805_ACEOF
9806
9807 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9808else
9809 cat >conftest.$ac_ext <<_ACEOF
9810/* confdefs.h. */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
9815#if HAVE_DLFCN_H
9816# include <dlfcn.h>
9817#endif
9818
9819int
9820main ()
9821{
9822dlopen(0, 0);
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827rm -f conftest.$ac_objext conftest$ac_exeext
9828if { (ac_try="$ac_link"
9829case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832esac
9833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_link") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855esac
9856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_try") 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861
9862cat >>confdefs.h <<\_ACEOF
9863#define HAVE_LIBDL 1
9864_ACEOF
9865 libltdl_cv_func_dlopen="yes"
9866else
9867 echo "$as_me: failed program was:" >&5
9868sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9871echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9872if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 ac_check_lib_save_LIBS=$LIBS
9876LIBS="-lsvld $LIBS"
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883
9884/* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9887#ifdef __cplusplus
9888extern "C"
9889#endif
9890char dlopen ();
9891int
9892main ()
9893{
9894return dlopen ();
9895 ;
9896 return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext conftest$ac_exeext
9900if { (ac_try="$ac_link"
9901case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_link") 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917esac
9918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest$ac_exeext'
9924 { (case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
9928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_try") 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_lib_svld_dlopen=yes
9934else
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_cv_lib_svld_dlopen=no
9939fi
9940
9941rm -f core conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943LIBS=$ac_check_lib_save_LIBS
9944fi
9945{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9946echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9947if test $ac_cv_lib_svld_dlopen = yes; then
9948
9949cat >>confdefs.h <<\_ACEOF
9950#define HAVE_LIBDL 1
9951_ACEOF
9952
9953 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9954else
9955 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9956echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9957if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 ac_check_lib_save_LIBS=$LIBS
9961LIBS="-ldld $LIBS"
9962cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
9968
9969/* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9972#ifdef __cplusplus
9973extern "C"
9974#endif
9975char dld_link ();
9976int
9977main ()
9978{
9979return dld_link ();
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (ac_try="$ac_link"
9986case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989esac
9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012esac
10013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_try") 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_lib_dld_dld_link=yes
10019else
10020 echo "$as_me: failed program was:" >&5
10021sed 's/^/| /' conftest.$ac_ext >&5
10022
10023 ac_cv_lib_dld_dld_link=no
10024fi
10025
10026rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028LIBS=$ac_check_lib_save_LIBS
10029fi
10030{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10031echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10032if test $ac_cv_lib_dld_dld_link = yes; then
10033
10034cat >>confdefs.h <<\_ACEOF
10035#define HAVE_DLD 1
10036_ACEOF
10037
10038 LIBADD_DL="$LIBADD_DL -ldld"
10039else
10040 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10041echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10042if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044else
10045 cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h. */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */
10051/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10053#define _dyld_func_lookup innocuous__dyld_func_lookup
10054
10055/* System header to define __stub macros and hopefully few prototypes,
10056 which can conflict with char _dyld_func_lookup (); below.
10057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10058 <limits.h> exists even on freestanding compilers. */
10059
10060#ifdef __STDC__
10061# include <limits.h>
10062#else
10063# include <assert.h>
10064#endif
10065
10066#undef _dyld_func_lookup
10067
10068/* Override any GCC internal prototype to avoid an error.
10069 Use char because int might match the return type of a GCC
10070 builtin and then its argument prototype would still apply. */
10071#ifdef __cplusplus
10072extern "C"
10073#endif
10074char _dyld_func_lookup ();
10075/* The GNU C library defines this for functions which it implements
10076 to always fail with ENOSYS. Some functions are actually named
10077 something starting with __ and the normal name is an alias. */
10078#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10079choke me
10080#endif
10081
10082int
10083main ()
10084{
10085return _dyld_func_lookup ();
10086 ;
10087 return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (ac_try="$ac_link"
10092case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095esac
10096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_link") 2>conftest.er1
10098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
10104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10105 { (case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108esac
10109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_try") 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118esac
10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_try") 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_func__dyld_func_lookup=yes
10125else
10126 echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ac_cv_func__dyld_func_lookup=no
10130fi
10131
10132rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134fi
10135{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10136echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10137if test $ac_cv_func__dyld_func_lookup = yes; then
10138
10139cat >>confdefs.h <<\_ACEOF
10140#define HAVE_DYLD 1
10141_ACEOF
10142
10143fi
10144
10145
10146fi
10147
10148
10149fi
10150
10151
10152fi
10153
10154rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156
10157fi
10158
10159
10160fi
10161
10162
10163fi
10164
10165
10166if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10167then
10168 lt_save_LIBS="$LIBS"
10169 LIBS="$LIBS $LIBADD_DL"
10170
10171for ac_func in dlerror
10172do
10173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10174{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178else
10179 cat >conftest.$ac_ext <<_ACEOF
10180/* confdefs.h. */
10181_ACEOF
10182cat confdefs.h >>conftest.$ac_ext
10183cat >>conftest.$ac_ext <<_ACEOF
10184/* end confdefs.h. */
10185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10187#define $ac_func innocuous_$ac_func
10188
10189/* System header to define __stub macros and hopefully few prototypes,
10190 which can conflict with char $ac_func (); below.
10191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10192 <limits.h> exists even on freestanding compilers. */
10193
10194#ifdef __STDC__
10195# include <limits.h>
10196#else
10197# include <assert.h>
10198#endif
10199
10200#undef $ac_func
10201
10202/* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10205#ifdef __cplusplus
10206extern "C"
10207#endif
10208char $ac_func ();
10209/* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212#if defined __stub_$ac_func || defined __stub___$ac_func
10213choke me
10214#endif
10215
10216int
10217main ()
10218{
10219return $ac_func ();
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224rm -f conftest.$ac_objext conftest$ac_exeext
10225if { (ac_try="$ac_link"
10226case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_link") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10239 { (case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242esac
10243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_try") 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest$ac_exeext'
10249 { (case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_try") 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10258 eval "$as_ac_var=yes"
10259else
10260 echo "$as_me: failed program was:" >&5
10261sed 's/^/| /' conftest.$ac_ext >&5
10262
10263 eval "$as_ac_var=no"
10264fi
10265
10266rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268fi
10269ac_res=`eval echo '${'$as_ac_var'}'`
10270 { echo "$as_me:$LINENO: result: $ac_res" >&5
10271echo "${ECHO_T}$ac_res" >&6; }
10272if test `eval echo '${'$as_ac_var'}'` = yes; then
10273 cat >>confdefs.h <<_ACEOF
10274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10275_ACEOF
10276
10277fi
10278done
10279
10280 LIBS="$lt_save_LIBS"
10281fi
10282ac_ext=c
10283ac_cpp='$CPP $CPPFLAGS'
10284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10286ac_compiler_gnu=$ac_cv_c_compiler_gnu
10287
10288
10289
10290{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10291echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10292if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295 ac_cv_sys_symbol_underscore=no
10296 cat > conftest.$ac_ext <<EOF
10297void nm_test_func(){}
10298int main(){nm_test_func;return 0;}
10299EOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; then
10305 # Now try to grab the symbols.
10306 ac_nlist=conftest.nm
10307 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10308 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } && test -s "$ac_nlist"; then
10312 # See whether the symbols have a leading underscore.
10313 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10314 ac_cv_sys_symbol_underscore=yes
10315 else
10316 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10317 :
10318 else
10319 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10320 fi
10321 fi
10322 else
10323 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10324 fi
10325 else
10326 echo "configure: failed program was:" >&5
10327 cat conftest.c >&5
10328 fi
10329 rm -rf conftest*
10330
10331fi
10332{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10333echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10334
10335
10336if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10337 if test x"$libltdl_cv_func_dlopen" = xyes ||
10338 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10339 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10340echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10341if test "${libltdl_cv_need_uscore+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343else
10344 libltdl_cv_need_uscore=unknown
10345 save_LIBS="$LIBS"
10346 LIBS="$LIBS $LIBADD_DL"
10347 if test "$cross_compiling" = yes; then :
10348 libltdl_cv_need_uscore=cross
10349else
10350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10351 lt_status=$lt_dlunknown
10352 cat > conftest.$ac_ext <<EOF
Tom Stellard38cda132012-07-16 18:19:46 +000010353#line 10311 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010354#include "confdefs.h"
10355
10356#if HAVE_DLFCN_H
10357#include <dlfcn.h>
10358#endif
10359
10360#include <stdio.h>
10361
10362#ifdef RTLD_GLOBAL
10363# define LT_DLGLOBAL RTLD_GLOBAL
10364#else
10365# ifdef DL_GLOBAL
10366# define LT_DLGLOBAL DL_GLOBAL
10367# else
10368# define LT_DLGLOBAL 0
10369# endif
10370#endif
10371
10372/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10373 find out it does not work in some platform. */
10374#ifndef LT_DLLAZY_OR_NOW
10375# ifdef RTLD_LAZY
10376# define LT_DLLAZY_OR_NOW RTLD_LAZY
10377# else
10378# ifdef DL_LAZY
10379# define LT_DLLAZY_OR_NOW DL_LAZY
10380# else
10381# ifdef RTLD_NOW
10382# define LT_DLLAZY_OR_NOW RTLD_NOW
10383# else
10384# ifdef DL_NOW
10385# define LT_DLLAZY_OR_NOW DL_NOW
10386# else
10387# define LT_DLLAZY_OR_NOW 0
10388# endif
10389# endif
10390# endif
10391# endif
10392#endif
10393
10394#ifdef __cplusplus
10395extern "C" void exit (int);
10396#endif
10397
10398void fnord() { int i=42;}
10399int main ()
10400{
10401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10402 int status = $lt_dlunknown;
10403
10404 if (self)
10405 {
10406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10407 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10408 /* dlclose (self); */
10409 }
10410 else
10411 puts (dlerror ());
10412
10413 exit (status);
10414}
10415EOF
10416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10421 (./conftest; exit; ) >&5 2>/dev/null
10422 lt_status=$?
10423 case x$lt_status in
10424 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10425 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10426 x$lt_dlunknown|x*) ;;
10427 esac
10428 else :
10429 # compilation failed
10430
10431 fi
10432fi
10433rm -fr conftest*
10434
10435 LIBS="$save_LIBS"
10436
10437fi
10438{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10439echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10440 fi
10441fi
10442
10443if test x"$libltdl_cv_need_uscore" = xyes; then
10444
10445cat >>confdefs.h <<\_ACEOF
10446#define NEED_USCORE 1
10447_ACEOF
10448
10449fi
10450
10451
10452{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10453echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10454if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456else
10457 # PORTME does your system automatically load deplibs for dlopen?
10458 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10459 # For now, we just catch OSes we know something about -- in the
10460 # future, we'll try test this programmatically.
10461 libltdl_cv_sys_dlopen_deplibs=unknown
10462 case "$host_os" in
10463 aix3*|aix4.1.*|aix4.2.*)
10464 # Unknown whether this is true for these versions of AIX, but
10465 # we want this `case' here to explicitly catch those versions.
10466 libltdl_cv_sys_dlopen_deplibs=unknown
10467 ;;
10468 aix[45]*)
10469 libltdl_cv_sys_dlopen_deplibs=yes
10470 ;;
10471 darwin*)
10472 # Assuming the user has installed a libdl from somewhere, this is true
10473 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
10476 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10477 # GNU and its variants, using gnu ld.so (Glibc)
10478 libltdl_cv_sys_dlopen_deplibs=yes
10479 ;;
10480 hpux10*|hpux11*)
10481 libltdl_cv_sys_dlopen_deplibs=yes
10482 ;;
10483 interix*)
10484 libltdl_cv_sys_dlopen_deplibs=yes
10485 ;;
10486 irix[12345]*|irix6.[01]*)
10487 # Catch all versions of IRIX before 6.2, and indicate that we don't
10488 # know how it worked for any of those versions.
10489 libltdl_cv_sys_dlopen_deplibs=unknown
10490 ;;
10491 irix*)
10492 # The case above catches anything before 6.2, and it's known that
10493 # at 6.2 and later dlopen does load deplibs.
10494 libltdl_cv_sys_dlopen_deplibs=yes
10495 ;;
10496 netbsd*)
10497 libltdl_cv_sys_dlopen_deplibs=yes
10498 ;;
10499 openbsd*)
10500 libltdl_cv_sys_dlopen_deplibs=yes
10501 ;;
10502 osf[1234]*)
10503 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10504 # it did *not* use an RPATH in a shared library to find objects the
10505 # library depends on, so we explicitly say `no'.
10506 libltdl_cv_sys_dlopen_deplibs=no
10507 ;;
10508 osf5.0|osf5.0a|osf5.1)
10509 # dlopen *does* load deplibs and with the right loader patch applied
10510 # it even uses RPATH in a shared library to search for shared objects
10511 # that the library depends on, but there's no easy way to know if that
10512 # patch is installed. Since this is the case, all we can really
10513 # say is unknown -- it depends on the patch being installed. If
10514 # it is, this changes to `yes'. Without it, it would be `no'.
10515 libltdl_cv_sys_dlopen_deplibs=unknown
10516 ;;
10517 osf*)
10518 # the two cases above should catch all versions of osf <= 5.1. Read
10519 # the comments above for what we know about them.
10520 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10521 # is used to find them so we can finally say `yes'.
10522 libltdl_cv_sys_dlopen_deplibs=yes
10523 ;;
10524 solaris*)
10525 libltdl_cv_sys_dlopen_deplibs=yes
10526 ;;
10527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10528 libltdl_cv_sys_dlopen_deplibs=yes
10529 ;;
10530 esac
10531
10532fi
10533{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10534echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10535if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10536
10537cat >>confdefs.h <<\_ACEOF
10538#define LTDL_DLOPEN_DEPLIBS 1
10539_ACEOF
10540
10541fi
10542
10543
10544for ac_header in argz.h
10545do
10546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552fi
10553ac_res=`eval echo '${'$as_ac_Header'}'`
10554 { echo "$as_me:$LINENO: result: $ac_res" >&5
10555echo "${ECHO_T}$ac_res" >&6; }
10556else
10557 # Is the header compilable?
10558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566$ac_includes_default
10567#include <$ac_header>
10568_ACEOF
10569rm -f conftest.$ac_objext
10570if { (ac_try="$ac_compile"
10571case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574esac
10575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_compile") 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597esac
10598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_try") 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10603 ac_header_compiler=yes
10604else
10605 echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_header_compiler=no
10609fi
10610
10611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10613echo "${ECHO_T}$ac_header_compiler" >&6; }
10614
10615# Is the header present?
10616{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10618cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h. */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h. */
10624#include <$ac_header>
10625_ACEOF
10626if { (ac_try="$ac_cpp conftest.$ac_ext"
10627case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } >/dev/null; then
10639 if test -s conftest.err; then
10640 ac_cpp_err=$ac_c_preproc_warn_flag
10641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10642 else
10643 ac_cpp_err=
10644 fi
10645else
10646 ac_cpp_err=yes
10647fi
10648if test -z "$ac_cpp_err"; then
10649 ac_header_preproc=yes
10650else
10651 echo "$as_me: failed program was:" >&5
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 ac_header_preproc=no
10655fi
10656
10657rm -f conftest.err conftest.$ac_ext
10658{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10659echo "${ECHO_T}$ac_header_preproc" >&6; }
10660
10661# So? What about this header?
10662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10663 yes:no: )
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10668 ac_header_preproc=yes
10669 ;;
10670 no:yes:* )
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10683 ( cat <<\_ASBOX
10684## ------------------------------ ##
10685## Report this to bugs@yourdomain ##
10686## ------------------------------ ##
10687_ASBOX
10688 ) | sed "s/^/$as_me: WARNING: /" >&2
10689 ;;
10690esac
10691{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 eval "$as_ac_Header=\$ac_header_preproc"
10697fi
10698ac_res=`eval echo '${'$as_ac_Header'}'`
10699 { echo "$as_me:$LINENO: result: $ac_res" >&5
10700echo "${ECHO_T}$ac_res" >&6; }
10701
10702fi
10703if test `eval echo '${'$as_ac_Header'}'` = yes; then
10704 cat >>confdefs.h <<_ACEOF
10705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10706_ACEOF
10707
10708fi
10709
10710done
10711
10712
10713{ echo "$as_me:$LINENO: checking for error_t" >&5
10714echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10715if test "${ac_cv_type_error_t+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717else
10718 cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
10724#if HAVE_ARGZ_H
10725# include <argz.h>
10726#endif
10727
10728typedef error_t ac__type_new_;
10729int
10730main ()
10731{
10732if ((ac__type_new_ *) 0)
10733 return 0;
10734if (sizeof (ac__type_new_))
10735 return 0;
10736 ;
10737 return 0;
10738}
10739_ACEOF
10740rm -f conftest.$ac_objext
10741if { (ac_try="$ac_compile"
10742case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745esac
10746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_compile") 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758esac
10759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768esac
10769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_type_error_t=yes
10775else
10776 echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_type_error_t=no
10780fi
10781
10782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783fi
10784{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10785echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10786if test $ac_cv_type_error_t = yes; then
10787
10788cat >>confdefs.h <<_ACEOF
10789#define HAVE_ERROR_T 1
10790_ACEOF
10791
10792
10793else
10794
10795cat >>confdefs.h <<\_ACEOF
10796#define error_t int
10797_ACEOF
10798
10799fi
10800
10801
10802
10803
10804
10805
10806
10807for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10808do
10809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10810{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815 cat >conftest.$ac_ext <<_ACEOF
10816/* confdefs.h. */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h. */
10821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10823#define $ac_func innocuous_$ac_func
10824
10825/* System header to define __stub macros and hopefully few prototypes,
10826 which can conflict with char $ac_func (); below.
10827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828 <limits.h> exists even on freestanding compilers. */
10829
10830#ifdef __STDC__
10831# include <limits.h>
10832#else
10833# include <assert.h>
10834#endif
10835
10836#undef $ac_func
10837
10838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char $ac_func ();
10845/* The GNU C library defines this for functions which it implements
10846 to always fail with ENOSYS. Some functions are actually named
10847 something starting with __ and the normal name is an alias. */
10848#if defined __stub_$ac_func || defined __stub___$ac_func
10849choke me
10850#endif
10851
10852int
10853main ()
10854{
10855return $ac_func ();
10856 ;
10857 return 0;
10858}
10859_ACEOF
10860rm -f conftest.$ac_objext conftest$ac_exeext
10861if { (ac_try="$ac_link"
10862case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 eval "$as_ac_var=yes"
10895else
10896 echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 eval "$as_ac_var=no"
10900fi
10901
10902rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904fi
10905ac_res=`eval echo '${'$as_ac_var'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907echo "${ECHO_T}$ac_res" >&6; }
10908if test `eval echo '${'$as_ac_var'}'` = yes; then
10909 cat >>confdefs.h <<_ACEOF
10910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10911_ACEOF
10912
10913fi
10914done
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10944 stdio.h unistd.h
10945do
10946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952fi
10953ac_res=`eval echo '${'$as_ac_Header'}'`
10954 { echo "$as_me:$LINENO: result: $ac_res" >&5
10955echo "${ECHO_T}$ac_res" >&6; }
10956else
10957 # Is the header compilable?
10958{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10960cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h. */
10966$ac_includes_default
10967#include <$ac_header>
10968_ACEOF
10969rm -f conftest.$ac_objext
10970if { (ac_try="$ac_compile"
10971case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974esac
10975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_compile") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10984 { (case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_try") 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997esac
10998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_try") 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_header_compiler=yes
11004else
11005 echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_header_compiler=no
11009fi
11010
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11013echo "${ECHO_T}$ac_header_compiler" >&6; }
11014
11015# Is the header present?
11016{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11018cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024#include <$ac_header>
11025_ACEOF
11026if { (ac_try="$ac_cpp conftest.$ac_ext"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } >/dev/null; then
11039 if test -s conftest.err; then
11040 ac_cpp_err=$ac_c_preproc_warn_flag
11041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11042 else
11043 ac_cpp_err=
11044 fi
11045else
11046 ac_cpp_err=yes
11047fi
11048if test -z "$ac_cpp_err"; then
11049 ac_header_preproc=yes
11050else
11051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_header_preproc=no
11055fi
11056
11057rm -f conftest.err conftest.$ac_ext
11058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11059echo "${ECHO_T}$ac_header_preproc" >&6; }
11060
11061# So? What about this header?
11062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11063 yes:no: )
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11068 ac_header_preproc=yes
11069 ;;
11070 no:yes:* )
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11083 ( cat <<\_ASBOX
11084## ------------------------------ ##
11085## Report this to bugs@yourdomain ##
11086## ------------------------------ ##
11087_ASBOX
11088 ) | sed "s/^/$as_me: WARNING: /" >&2
11089 ;;
11090esac
11091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095else
11096 eval "$as_ac_Header=\$ac_header_preproc"
11097fi
11098ac_res=`eval echo '${'$as_ac_Header'}'`
11099 { echo "$as_me:$LINENO: result: $ac_res" >&5
11100echo "${ECHO_T}$ac_res" >&6; }
11101
11102fi
11103if test `eval echo '${'$as_ac_Header'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11106_ACEOF
11107
11108fi
11109
11110done
11111
11112
11113
11114
11115
11116for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11117do
11118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124fi
11125ac_res=`eval echo '${'$as_ac_Header'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127echo "${ECHO_T}$ac_res" >&6; }
11128else
11129 # Is the header compilable?
11130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138$ac_includes_default
11139#include <$ac_header>
11140_ACEOF
11141rm -f conftest.$ac_objext
11142if { (ac_try="$ac_compile"
11143case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_compile") 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_header_compiler=yes
11176else
11177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 ac_header_compiler=no
11181fi
11182
11183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11185echo "${ECHO_T}$ac_header_compiler" >&6; }
11186
11187# Is the header present?
11188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11190cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196#include <$ac_header>
11197_ACEOF
11198if { (ac_try="$ac_cpp conftest.$ac_ext"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } >/dev/null; then
11211 if test -s conftest.err; then
11212 ac_cpp_err=$ac_c_preproc_warn_flag
11213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11214 else
11215 ac_cpp_err=
11216 fi
11217else
11218 ac_cpp_err=yes
11219fi
11220if test -z "$ac_cpp_err"; then
11221 ac_header_preproc=yes
11222else
11223 echo "$as_me: failed program was:" >&5
11224sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_header_preproc=no
11227fi
11228
11229rm -f conftest.err conftest.$ac_ext
11230{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11231echo "${ECHO_T}$ac_header_preproc" >&6; }
11232
11233# So? What about this header?
11234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 yes:no: )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11240 ac_header_preproc=yes
11241 ;;
11242 no:yes:* )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11255 ( cat <<\_ASBOX
11256## ------------------------------ ##
11257## Report this to bugs@yourdomain ##
11258## ------------------------------ ##
11259_ASBOX
11260 ) | sed "s/^/$as_me: WARNING: /" >&2
11261 ;;
11262esac
11263{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268 eval "$as_ac_Header=\$ac_header_preproc"
11269fi
11270ac_res=`eval echo '${'$as_ac_Header'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272echo "${ECHO_T}$ac_res" >&6; }
11273
11274fi
11275if test `eval echo '${'$as_ac_Header'}'` = yes; then
11276 cat >>confdefs.h <<_ACEOF
11277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11278_ACEOF
11279
11280fi
11281
11282done
11283
11284
11285
11286for ac_header in string.h strings.h
11287do
11288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294fi
11295ac_res=`eval echo '${'$as_ac_Header'}'`
11296 { echo "$as_me:$LINENO: result: $ac_res" >&5
11297echo "${ECHO_T}$ac_res" >&6; }
11298else
11299 # Is the header compilable?
11300{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11302cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308$ac_includes_default
11309#include <$ac_header>
11310_ACEOF
11311rm -f conftest.$ac_objext
11312if { (ac_try="$ac_compile"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_header_compiler=yes
11346else
11347 echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_header_compiler=no
11351fi
11352
11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11355echo "${ECHO_T}$ac_header_compiler" >&6; }
11356
11357# Is the header present?
11358{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11360cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366#include <$ac_header>
11367_ACEOF
11368if { (ac_try="$ac_cpp conftest.$ac_ext"
11369case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } >/dev/null; then
11381 if test -s conftest.err; then
11382 ac_cpp_err=$ac_c_preproc_warn_flag
11383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11384 else
11385 ac_cpp_err=
11386 fi
11387else
11388 ac_cpp_err=yes
11389fi
11390if test -z "$ac_cpp_err"; then
11391 ac_header_preproc=yes
11392else
11393 echo "$as_me: failed program was:" >&5
11394sed 's/^/| /' conftest.$ac_ext >&5
11395
11396 ac_header_preproc=no
11397fi
11398
11399rm -f conftest.err conftest.$ac_ext
11400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11401echo "${ECHO_T}$ac_header_preproc" >&6; }
11402
11403# So? What about this header?
11404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11405 yes:no: )
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11410 ac_header_preproc=yes
11411 ;;
11412 no:yes:* )
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11425 ( cat <<\_ASBOX
11426## ------------------------------ ##
11427## Report this to bugs@yourdomain ##
11428## ------------------------------ ##
11429_ASBOX
11430 ) | sed "s/^/$as_me: WARNING: /" >&2
11431 ;;
11432esac
11433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437else
11438 eval "$as_ac_Header=\$ac_header_preproc"
11439fi
11440ac_res=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442echo "${ECHO_T}$ac_res" >&6; }
11443
11444fi
11445if test `eval echo '${'$as_ac_Header'}'` = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448_ACEOF
11449 break
11450fi
11451
11452done
11453
11454
11455
11456
11457for ac_func in strchr index
11458do
11459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11460{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11462if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464else
11465 cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
11471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11473#define $ac_func innocuous_$ac_func
11474
11475/* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func (); below.
11477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 <limits.h> exists even on freestanding compilers. */
11479
11480#ifdef __STDC__
11481# include <limits.h>
11482#else
11483# include <assert.h>
11484#endif
11485
11486#undef $ac_func
11487
11488/* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491#ifdef __cplusplus
11492extern "C"
11493#endif
11494char $ac_func ();
11495/* The GNU C library defines this for functions which it implements
11496 to always fail with ENOSYS. Some functions are actually named
11497 something starting with __ and the normal name is an alias. */
11498#if defined __stub_$ac_func || defined __stub___$ac_func
11499choke me
11500#endif
11501
11502int
11503main ()
11504{
11505return $ac_func ();
11506 ;
11507 return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext conftest$ac_exeext
11511if { (ac_try="$ac_link"
11512case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_link") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 eval "$as_ac_var=yes"
11545else
11546 echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 eval "$as_ac_var=no"
11550fi
11551
11552rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554fi
11555ac_res=`eval echo '${'$as_ac_var'}'`
11556 { echo "$as_me:$LINENO: result: $ac_res" >&5
11557echo "${ECHO_T}$ac_res" >&6; }
11558if test `eval echo '${'$as_ac_var'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11561_ACEOF
11562 break
11563fi
11564done
11565
11566
11567
11568for ac_func in strrchr rindex
11569do
11570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11584#define $ac_func innocuous_$ac_func
11585
11586/* System header to define __stub macros and hopefully few prototypes,
11587 which can conflict with char $ac_func (); below.
11588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589 <limits.h> exists even on freestanding compilers. */
11590
11591#ifdef __STDC__
11592# include <limits.h>
11593#else
11594# include <assert.h>
11595#endif
11596
11597#undef $ac_func
11598
11599/* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char $ac_func ();
11606/* The GNU C library defines this for functions which it implements
11607 to always fail with ENOSYS. Some functions are actually named
11608 something starting with __ and the normal name is an alias. */
11609#if defined __stub_$ac_func || defined __stub___$ac_func
11610choke me
11611#endif
11612
11613int
11614main ()
11615{
11616return $ac_func ();
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (ac_try="$ac_link"
11623case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_link") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649esac
11650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 eval "$as_ac_var=yes"
11656else
11657 echo "$as_me: failed program was:" >&5
11658sed 's/^/| /' conftest.$ac_ext >&5
11659
11660 eval "$as_ac_var=no"
11661fi
11662
11663rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665fi
11666ac_res=`eval echo '${'$as_ac_var'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668echo "${ECHO_T}$ac_res" >&6; }
11669if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672_ACEOF
11673 break
11674fi
11675done
11676
11677
11678
11679for ac_func in memcpy bcopy
11680do
11681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695#define $ac_func innocuous_$ac_func
11696
11697/* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below.
11699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 <limits.h> exists even on freestanding compilers. */
11701
11702#ifdef __STDC__
11703# include <limits.h>
11704#else
11705# include <assert.h>
11706#endif
11707
11708#undef $ac_func
11709
11710/* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713#ifdef __cplusplus
11714extern "C"
11715#endif
11716char $ac_func ();
11717/* The GNU C library defines this for functions which it implements
11718 to always fail with ENOSYS. Some functions are actually named
11719 something starting with __ and the normal name is an alias. */
11720#if defined __stub_$ac_func || defined __stub___$ac_func
11721choke me
11722#endif
11723
11724int
11725main ()
11726{
11727return $ac_func ();
11728 ;
11729 return 0;
11730}
11731_ACEOF
11732rm -f conftest.$ac_objext conftest$ac_exeext
11733if { (ac_try="$ac_link"
11734case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737esac
11738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750esac
11751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 eval "$as_ac_var=yes"
11767else
11768 echo "$as_me: failed program was:" >&5
11769sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 eval "$as_ac_var=no"
11772fi
11773
11774rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776fi
11777ac_res=`eval echo '${'$as_ac_var'}'`
11778 { echo "$as_me:$LINENO: result: $ac_res" >&5
11779echo "${ECHO_T}$ac_res" >&6; }
11780if test `eval echo '${'$as_ac_var'}'` = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783_ACEOF
11784 break
11785fi
11786done
11787
11788
11789
11790for ac_func in memmove strcmp
11791do
11792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11795if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11806#define $ac_func innocuous_$ac_func
11807
11808/* System header to define __stub macros and hopefully few prototypes,
11809 which can conflict with char $ac_func (); below.
11810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 <limits.h> exists even on freestanding compilers. */
11812
11813#ifdef __STDC__
11814# include <limits.h>
11815#else
11816# include <assert.h>
11817#endif
11818
11819#undef $ac_func
11820
11821/* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824#ifdef __cplusplus
11825extern "C"
11826#endif
11827char $ac_func ();
11828/* The GNU C library defines this for functions which it implements
11829 to always fail with ENOSYS. Some functions are actually named
11830 something starting with __ and the normal name is an alias. */
11831#if defined __stub_$ac_func || defined __stub___$ac_func
11832choke me
11833#endif
11834
11835int
11836main ()
11837{
11838return $ac_func ();
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext conftest$ac_exeext
11844if { (ac_try="$ac_link"
11845case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_link") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871esac
11872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 eval "$as_ac_var=yes"
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 eval "$as_ac_var=no"
11883fi
11884
11885rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887fi
11888ac_res=`eval echo '${'$as_ac_var'}'`
11889 { echo "$as_me:$LINENO: result: $ac_res" >&5
11890echo "${ECHO_T}$ac_res" >&6; }
11891if test `eval echo '${'$as_ac_var'}'` = yes; then
11892 cat >>confdefs.h <<_ACEOF
11893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894_ACEOF
11895
11896fi
11897done
11898
11899
11900
11901
11902for ac_func in closedir opendir readdir
11903do
11904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11905{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11918#define $ac_func innocuous_$ac_func
11919
11920/* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char $ac_func (); below.
11922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 <limits.h> exists even on freestanding compilers. */
11924
11925#ifdef __STDC__
11926# include <limits.h>
11927#else
11928# include <assert.h>
11929#endif
11930
11931#undef $ac_func
11932
11933/* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11936#ifdef __cplusplus
11937extern "C"
11938#endif
11939char $ac_func ();
11940/* The GNU C library defines this for functions which it implements
11941 to always fail with ENOSYS. Some functions are actually named
11942 something starting with __ and the normal name is an alias. */
11943#if defined __stub_$ac_func || defined __stub___$ac_func
11944choke me
11945#endif
11946
11947int
11948main ()
11949{
11950return $ac_func ();
11951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext conftest$ac_exeext
11956if { (ac_try="$ac_link"
11957case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_link") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest$ac_exeext'
11980 { (case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_try") 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 eval "$as_ac_var=yes"
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 eval "$as_ac_var=no"
11995fi
11996
11997rm -f core conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
11999fi
12000ac_res=`eval echo '${'$as_ac_var'}'`
12001 { echo "$as_me:$LINENO: result: $ac_res" >&5
12002echo "${ECHO_T}$ac_res" >&6; }
12003if test `eval echo '${'$as_ac_var'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006_ACEOF
12007
12008fi
12009done
12010
12011
12012
12013{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12014echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12015
12016ICC=no
12017IXX=no
12018case $CC in
12019 icc*|icpc*)
12020 ICC=yes
12021 IXX=yes
12022 ;;
12023 *)
12024 ;;
12025esac
12026
12027if test "$GCC" != "yes" && test "$ICC" != "yes"
12028then
12029 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12030echo "$as_me: error: gcc|icc required but not found" >&2;}
12031 { (exit 1); exit 1; }; }
12032fi
12033
12034if test "$GXX" != "yes" && test "$IXX" != "yes"
12035then
12036 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12037echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12038 { (exit 1); exit 1; }; }
12039fi
12040
12041if test "$GCC" = "yes"
12042then
12043 cat >conftest.$ac_ext <<_ACEOF
12044#if !defined(__GNUC__) || __GNUC__ < 3
12045#error Unsupported GCC version
12046#endif
12047
12048_ACEOF
12049rm -f conftest.$ac_objext
12050if { (ac_try="$ac_compile"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_try") 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try='test -s conftest.$ac_objext'
12074 { (case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12077esac
12078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_try") 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 :
12084else
12085 echo "$as_me: failed program was:" >&5
12086sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12089echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12090 { (exit 1); exit 1; }; }
12091fi
12092
12093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094fi
12095
12096if test -z "$llvm_cv_gnu_make_command"
12097then
12098 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12099echo "$as_me: error: GNU Make required but not found" >&2;}
12100 { (exit 1); exit 1; }; }
12101fi
12102
12103{ echo "$as_me:$LINENO: result: ok" >&5
12104echo "${ECHO_T}ok" >&6; }
12105
12106{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12107echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012108NO_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 +000012109
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012110NO_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 +000012111
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012112COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12113
12114{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12115echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012116
12117
12118
12119{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12120echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12121if test "${ac_cv_lib_m_sin+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 ac_check_lib_save_LIBS=$LIBS
12125LIBS="-lm $LIBS"
12126cat >conftest.$ac_ext <<_ACEOF
12127/* confdefs.h. */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h. */
12132
12133/* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136#ifdef __cplusplus
12137extern "C"
12138#endif
12139char sin ();
12140int
12141main ()
12142{
12143return sin ();
12144 ;
12145 return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext conftest$ac_exeext
12149if { (ac_try="$ac_link"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_cv_lib_m_sin=yes
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 ac_cv_lib_m_sin=no
12188fi
12189
12190rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192LIBS=$ac_check_lib_save_LIBS
12193fi
12194{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12195echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12196if test $ac_cv_lib_m_sin = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198#define HAVE_LIBM 1
12199_ACEOF
12200
12201 LIBS="-lm $LIBS"
12202
12203fi
12204
12205if test "$llvm_cv_os_type" = "MingW" ; then
12206
12207{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12208echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12209if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211else
12212 ac_check_lib_save_LIBS=$LIBS
12213LIBS="-limagehlp $LIBS"
12214cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221
12222int
12223main ()
12224{
12225return main ();
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230rm -f conftest.$ac_objext conftest$ac_exeext
12231if { (ac_try="$ac_link"
12232case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235esac
12236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_link") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245 { (case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_try") 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258esac
12259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_try") 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_lib_imagehlp_main=yes
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_cv_lib_imagehlp_main=no
12270fi
12271
12272rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274LIBS=$ac_check_lib_save_LIBS
12275fi
12276{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12277echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12278if test $ac_cv_lib_imagehlp_main = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280#define HAVE_LIBIMAGEHLP 1
12281_ACEOF
12282
12283 LIBS="-limagehlp $LIBS"
12284
12285fi
12286
12287
12288{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12289echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12290if test "${ac_cv_lib_psapi_main+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292else
12293 ac_check_lib_save_LIBS=$LIBS
12294LIBS="-lpsapi $LIBS"
12295cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
12301
12302
12303int
12304main ()
12305{
12306return main ();
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext conftest$ac_exeext
12312if { (ac_try="$ac_link"
12313case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326 { (case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329esac
12330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_try") 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339esac
12340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_lib_psapi_main=yes
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 ac_cv_lib_psapi_main=no
12351fi
12352
12353rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355LIBS=$ac_check_lib_save_LIBS
12356fi
12357{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12358echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12359if test $ac_cv_lib_psapi_main = yes; then
12360 cat >>confdefs.h <<_ACEOF
12361#define HAVE_LIBPSAPI 1
12362_ACEOF
12363
12364 LIBS="-lpsapi $LIBS"
12365
12366fi
12367
12368fi
12369
12370{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12371echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12372if test "${ac_cv_search_dlopen+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 ac_func_search_save_LIBS=$LIBS
12376cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382
12383/* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386#ifdef __cplusplus
12387extern "C"
12388#endif
12389char dlopen ();
12390int
12391main ()
12392{
12393return dlopen ();
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398for ac_lib in '' dl; do
12399 if test -z "$ac_lib"; then
12400 ac_res="none required"
12401 else
12402 ac_res=-l$ac_lib
12403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12404 fi
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406if { (ac_try="$ac_link"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_link") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433esac
12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_search_dlopen=$ac_res
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444
12445fi
12446
12447rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext
12449 if test "${ac_cv_search_dlopen+set}" = set; then
12450 break
12451fi
12452done
12453if test "${ac_cv_search_dlopen+set}" = set; then
12454 :
12455else
12456 ac_cv_search_dlopen=no
12457fi
12458rm conftest.$ac_ext
12459LIBS=$ac_func_search_save_LIBS
12460fi
12461{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12462echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12463ac_res=$ac_cv_search_dlopen
12464if test "$ac_res" != no; then
12465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12466
12467cat >>confdefs.h <<\_ACEOF
12468#define HAVE_DLOPEN 1
12469_ACEOF
12470
12471else
12472 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12473echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12474fi
12475
12476
12477if test "$llvm_cv_enable_libffi" = "yes" ; then
12478 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12479echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12480if test "${ac_cv_search_ffi_call+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 ac_func_search_save_LIBS=$LIBS
12484cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491/* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12494#ifdef __cplusplus
12495extern "C"
12496#endif
12497char ffi_call ();
12498int
12499main ()
12500{
12501return ffi_call ();
12502 ;
12503 return 0;
12504}
12505_ACEOF
12506for ac_lib in '' ffi; do
12507 if test -z "$ac_lib"; then
12508 ac_res="none required"
12509 else
12510 ac_res=-l$ac_lib
12511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12512 fi
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514if { (ac_try="$ac_link"
12515case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518esac
12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541esac
12542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_search_ffi_call=$ac_res
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552
12553fi
12554
12555rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext
12557 if test "${ac_cv_search_ffi_call+set}" = set; then
12558 break
12559fi
12560done
12561if test "${ac_cv_search_ffi_call+set}" = set; then
12562 :
12563else
12564 ac_cv_search_ffi_call=no
12565fi
12566rm conftest.$ac_ext
12567LIBS=$ac_func_search_save_LIBS
12568fi
12569{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12570echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12571ac_res=$ac_cv_search_ffi_call
12572if test "$ac_res" != no; then
12573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12574
12575cat >>confdefs.h <<\_ACEOF
12576#define HAVE_FFI_CALL 1
12577_ACEOF
12578
12579else
12580 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12581echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12582 { (exit 1); exit 1; }; }
12583fi
12584
12585fi
12586
12587{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12588echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12589if test "${ac_cv_search_mallinfo+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591else
12592 ac_func_search_save_LIBS=$LIBS
12593cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599
12600/* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603#ifdef __cplusplus
12604extern "C"
12605#endif
12606char mallinfo ();
12607int
12608main ()
12609{
12610return mallinfo ();
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615for ac_lib in '' malloc; do
12616 if test -z "$ac_lib"; then
12617 ac_res="none required"
12618 else
12619 ac_res=-l$ac_lib
12620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 fi
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623if { (ac_try="$ac_link"
12624case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 ac_cv_search_mallinfo=$ac_res
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661
12662fi
12663
12664rm -f core conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext
12666 if test "${ac_cv_search_mallinfo+set}" = set; then
12667 break
12668fi
12669done
12670if test "${ac_cv_search_mallinfo+set}" = set; then
12671 :
12672else
12673 ac_cv_search_mallinfo=no
12674fi
12675rm conftest.$ac_ext
12676LIBS=$ac_func_search_save_LIBS
12677fi
12678{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12679echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12680ac_res=$ac_cv_search_mallinfo
12681if test "$ac_res" != no; then
12682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12683
12684cat >>confdefs.h <<\_ACEOF
12685#define HAVE_MALLINFO 1
12686_ACEOF
12687
12688fi
12689
12690
12691if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12692
12693{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12694echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12695if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
12698 ac_check_lib_save_LIBS=$LIBS
12699LIBS="-lpthread $LIBS"
12700cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
12706
12707/* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12710#ifdef __cplusplus
12711extern "C"
12712#endif
12713char pthread_mutex_init ();
12714int
12715main ()
12716{
12717return pthread_mutex_init ();
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722rm -f conftest.$ac_objext conftest$ac_exeext
12723if { (ac_try="$ac_link"
12724case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740esac
12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750esac
12751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_lib_pthread_pthread_mutex_init=yes
12757else
12758 echo "$as_me: failed program was:" >&5
12759sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 ac_cv_lib_pthread_pthread_mutex_init=no
12762fi
12763
12764rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12766LIBS=$ac_check_lib_save_LIBS
12767fi
12768{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12769echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12770if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772#define HAVE_LIBPTHREAD 1
12773_ACEOF
12774
12775 LIBS="-lpthread $LIBS"
12776
12777fi
12778
12779 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12780echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12781if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783else
12784 ac_func_search_save_LIBS=$LIBS
12785cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791
12792/* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795#ifdef __cplusplus
12796extern "C"
12797#endif
12798char pthread_mutex_lock ();
12799int
12800main ()
12801{
12802return pthread_mutex_lock ();
12803 ;
12804 return 0;
12805}
12806_ACEOF
12807for ac_lib in '' pthread; do
12808 if test -z "$ac_lib"; then
12809 ac_res="none required"
12810 else
12811 ac_res=-l$ac_lib
12812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12813 fi
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815if { (ac_try="$ac_link"
12816case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_link") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12829 { (case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_try") 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12842esac
12843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12844 (eval "$ac_try") 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_search_pthread_mutex_lock=$ac_res
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853
12854fi
12855
12856rm -f core conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext
12858 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12859 break
12860fi
12861done
12862if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12863 :
12864else
12865 ac_cv_search_pthread_mutex_lock=no
12866fi
12867rm conftest.$ac_ext
12868LIBS=$ac_func_search_save_LIBS
12869fi
12870{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12871echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12872ac_res=$ac_cv_search_pthread_mutex_lock
12873if test "$ac_res" != no; then
12874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12875
12876cat >>confdefs.h <<\_ACEOF
12877#define HAVE_PTHREAD_MUTEX_LOCK 1
12878_ACEOF
12879
12880fi
12881
12882 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12883echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12884if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887 ac_func_search_save_LIBS=$LIBS
12888cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894
12895/* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898#ifdef __cplusplus
12899extern "C"
12900#endif
12901char pthread_rwlock_init ();
12902int
12903main ()
12904{
12905return pthread_rwlock_init ();
12906 ;
12907 return 0;
12908}
12909_ACEOF
12910for ac_lib in '' pthread; do
12911 if test -z "$ac_lib"; then
12912 ac_res="none required"
12913 else
12914 ac_res=-l$ac_lib
12915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12916 fi
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918if { (ac_try="$ac_link"
12919case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_link") 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935esac
12936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945esac
12946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_cv_search_pthread_rwlock_init=$ac_res
12952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956
12957fi
12958
12959rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext
12961 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12962 break
12963fi
12964done
12965if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12966 :
12967else
12968 ac_cv_search_pthread_rwlock_init=no
12969fi
12970rm conftest.$ac_ext
12971LIBS=$ac_func_search_save_LIBS
12972fi
12973{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12974echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12975ac_res=$ac_cv_search_pthread_rwlock_init
12976if test "$ac_res" != no; then
12977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978
12979cat >>confdefs.h <<\_ACEOF
12980#define HAVE_PTHREAD_RWLOCK_INIT 1
12981_ACEOF
12982
12983fi
12984
12985 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12986echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12987if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12989else
12990 ac_func_search_save_LIBS=$LIBS
12991cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997
12998/* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001#ifdef __cplusplus
13002extern "C"
13003#endif
13004char pthread_getspecific ();
13005int
13006main ()
13007{
13008return pthread_getspecific ();
13009 ;
13010 return 0;
13011}
13012_ACEOF
13013for ac_lib in '' pthread; do
13014 if test -z "$ac_lib"; then
13015 ac_res="none required"
13016 else
13017 ac_res=-l$ac_lib
13018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13019 fi
13020 rm -f conftest.$ac_objext conftest$ac_exeext
13021if { (ac_try="$ac_link"
13022case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_link") 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_try") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest$ac_exeext'
13045 { (case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048esac
13049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_try") 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_search_pthread_getspecific=$ac_res
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059
13060fi
13061
13062rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext
13064 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13065 break
13066fi
13067done
13068if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13069 :
13070else
13071 ac_cv_search_pthread_getspecific=no
13072fi
13073rm conftest.$ac_ext
13074LIBS=$ac_func_search_save_LIBS
13075fi
13076{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13077echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13078ac_res=$ac_cv_search_pthread_getspecific
13079if test "$ac_res" != no; then
13080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13081
13082cat >>confdefs.h <<\_ACEOF
13083#define HAVE_PTHREAD_GETSPECIFIC 1
13084_ACEOF
13085
13086fi
13087
13088fi
13089
13090
13091# Check whether --with-udis86 was given.
13092if test "${with_udis86+set}" = set; then
13093 withval=$with_udis86;
13094 USE_UDIS86=1
13095
13096 case "$withval" in
13097 /usr/lib|yes) ;;
13098 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13099 esac
13100
13101{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13102echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13103if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105else
13106 ac_check_lib_save_LIBS=$LIBS
13107LIBS="-ludis86 $LIBS"
13108cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114
13115/* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118#ifdef __cplusplus
13119extern "C"
13120#endif
13121char ud_init ();
13122int
13123main ()
13124{
13125return ud_init ();
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext conftest$ac_exeext
13131if { (ac_try="$ac_link"
13132case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_link") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13158esac
13159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_try") 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_cv_lib_udis86_ud_init=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_cv_lib_udis86_ud_init=no
13170fi
13171
13172rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174LIBS=$ac_check_lib_save_LIBS
13175fi
13176{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13177echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13178if test $ac_cv_lib_udis86_ud_init = yes; then
13179 cat >>confdefs.h <<_ACEOF
13180#define HAVE_LIBUDIS86 1
13181_ACEOF
13182
13183 LIBS="-ludis86 $LIBS"
13184
13185else
13186
13187 echo "Error! You need to have libudis86 around."
13188 exit -1
13189
13190fi
13191
13192
13193else
13194 USE_UDIS86=0
13195
13196fi
13197
13198
13199cat >>confdefs.h <<_ACEOF
13200#define USE_UDIS86 $USE_UDIS86
13201_ACEOF
13202
13203
13204
13205# Check whether --with-oprofile was given.
13206if test "${with_oprofile+set}" = set; then
13207 withval=$with_oprofile;
13208 USE_OPROFILE=1
13209
13210 case "$withval" in
13211 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13212 no) llvm_cv_oppath=
13213 USE_OPROFILE=0
13214 ;;
13215 *) llvm_cv_oppath="${withval}/lib/oprofile"
13216 CPPFLAGS="-I${withval}/include";;
13217 esac
13218 if test -n "$llvm_cv_oppath" ; then
13219 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13220 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13221echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13222if test "${ac_cv_search_bfd_init+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13224else
13225 ac_func_search_save_LIBS=$LIBS
13226cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h. */
13232
13233/* Override any GCC internal prototype to avoid an error.
13234 Use char because int might match the return type of a GCC
13235 builtin and then its argument prototype would still apply. */
13236#ifdef __cplusplus
13237extern "C"
13238#endif
13239char bfd_init ();
13240int
13241main ()
13242{
13243return bfd_init ();
13244 ;
13245 return 0;
13246}
13247_ACEOF
13248for ac_lib in '' bfd; do
13249 if test -z "$ac_lib"; then
13250 ac_res="none required"
13251 else
13252 ac_res=-l$ac_lib
13253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13254 fi
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256if { (ac_try="$ac_link"
13257case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260esac
13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_search_bfd_init=$ac_res
13290else
13291 echo "$as_me: failed program was:" >&5
13292sed 's/^/| /' conftest.$ac_ext >&5
13293
13294
13295fi
13296
13297rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext
13299 if test "${ac_cv_search_bfd_init+set}" = set; then
13300 break
13301fi
13302done
13303if test "${ac_cv_search_bfd_init+set}" = set; then
13304 :
13305else
13306 ac_cv_search_bfd_init=no
13307fi
13308rm conftest.$ac_ext
13309LIBS=$ac_func_search_save_LIBS
13310fi
13311{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13312echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13313ac_res=$ac_cv_search_bfd_init
13314if test "$ac_res" != no; then
13315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13316
13317fi
13318
13319 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13320echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13321if test "${ac_cv_search_op_open_agent+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323else
13324 ac_func_search_save_LIBS=$LIBS
13325cat >conftest.$ac_ext <<_ACEOF
13326/* confdefs.h. */
13327_ACEOF
13328cat confdefs.h >>conftest.$ac_ext
13329cat >>conftest.$ac_ext <<_ACEOF
13330/* end confdefs.h. */
13331
13332/* Override any GCC internal prototype to avoid an error.
13333 Use char because int might match the return type of a GCC
13334 builtin and then its argument prototype would still apply. */
13335#ifdef __cplusplus
13336extern "C"
13337#endif
13338char op_open_agent ();
13339int
13340main ()
13341{
13342return op_open_agent ();
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347for ac_lib in '' opagent; do
13348 if test -z "$ac_lib"; then
13349 ac_res="none required"
13350 else
13351 ac_res=-l$ac_lib
13352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13353 fi
13354 rm -f conftest.$ac_objext conftest$ac_exeext
13355if { (ac_try="$ac_link"
13356case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_link") 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try='test -s conftest$ac_exeext'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_search_op_open_agent=$ac_res
13389else
13390 echo "$as_me: failed program was:" >&5
13391sed 's/^/| /' conftest.$ac_ext >&5
13392
13393
13394fi
13395
13396rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext
13398 if test "${ac_cv_search_op_open_agent+set}" = set; then
13399 break
13400fi
13401done
13402if test "${ac_cv_search_op_open_agent+set}" = set; then
13403 :
13404else
13405 ac_cv_search_op_open_agent=no
13406fi
13407rm conftest.$ac_ext
13408LIBS=$ac_func_search_save_LIBS
13409fi
13410{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13411echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13412ac_res=$ac_cv_search_op_open_agent
13413if test "$ac_res" != no; then
13414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13415
13416else
13417
13418 echo "Error! You need to have libopagent around."
13419 exit -1
13420
13421fi
13422
13423 if test "${ac_cv_header_opagent_h+set}" = set; then
13424 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13425echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13426if test "${ac_cv_header_opagent_h+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428fi
13429{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13430echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13431else
13432 # Is the header compilable?
13433{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13434echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13435cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
13441$ac_includes_default
13442#include <opagent.h>
13443_ACEOF
13444rm -f conftest.$ac_objext
13445if { (ac_try="$ac_compile"
13446case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449esac
13450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_compile") 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13459 { (case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_try") 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_try") 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_header_compiler=yes
13479else
13480 echo "$as_me: failed program was:" >&5
13481sed 's/^/| /' conftest.$ac_ext >&5
13482
13483 ac_header_compiler=no
13484fi
13485
13486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13488echo "${ECHO_T}$ac_header_compiler" >&6; }
13489
13490# Is the header present?
13491{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13492echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499#include <opagent.h>
13500_ACEOF
13501if { (ac_try="$ac_cpp conftest.$ac_ext"
13502case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505esac
13506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } >/dev/null; then
13514 if test -s conftest.err; then
13515 ac_cpp_err=$ac_c_preproc_warn_flag
13516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13517 else
13518 ac_cpp_err=
13519 fi
13520else
13521 ac_cpp_err=yes
13522fi
13523if test -z "$ac_cpp_err"; then
13524 ac_header_preproc=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_header_preproc=no
13530fi
13531
13532rm -f conftest.err conftest.$ac_ext
13533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13534echo "${ECHO_T}$ac_header_preproc" >&6; }
13535
13536# So? What about this header?
13537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13538 yes:no: )
13539 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13540echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13542echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13543 ac_header_preproc=yes
13544 ;;
13545 no:yes:* )
13546 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13547echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13549echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13551echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13553echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13555echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13557echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13558 ( cat <<\_ASBOX
13559## ------------------------------ ##
13560## Report this to bugs@yourdomain ##
13561## ------------------------------ ##
13562_ASBOX
13563 ) | sed "s/^/$as_me: WARNING: /" >&2
13564 ;;
13565esac
13566{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13567echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13568if test "${ac_cv_header_opagent_h+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570else
13571 ac_cv_header_opagent_h=$ac_header_preproc
13572fi
13573{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13574echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13575
13576fi
13577if test $ac_cv_header_opagent_h = yes; then
13578 :
13579else
13580
13581 echo "Error! You need to have opagent.h around."
13582 exit -1
13583
13584fi
13585
13586
13587 fi
13588
13589else
13590
13591 USE_OPROFILE=0
13592
13593
13594fi
13595
13596
13597cat >>confdefs.h <<_ACEOF
13598#define USE_OPROFILE $USE_OPROFILE
13599_ACEOF
13600
13601
13602
13603
13604
13605
13606
13607
13608ac_header_dirent=no
13609for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13610 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13611{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13612echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622#include <sys/types.h>
13623#include <$ac_hdr>
13624
13625int
13626main ()
13627{
13628if ((DIR *) 0)
13629return 0;
13630 ;
13631 return 0;
13632}
13633_ACEOF
13634rm -f conftest.$ac_objext
13635if { (ac_try="$ac_compile"
13636case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639esac
13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13649 { (case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_try") 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662esac
13663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_try") 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 eval "$as_ac_Header=yes"
13669else
13670 echo "$as_me: failed program was:" >&5
13671sed 's/^/| /' conftest.$ac_ext >&5
13672
13673 eval "$as_ac_Header=no"
13674fi
13675
13676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677fi
13678ac_res=`eval echo '${'$as_ac_Header'}'`
13679 { echo "$as_me:$LINENO: result: $ac_res" >&5
13680echo "${ECHO_T}$ac_res" >&6; }
13681if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13684_ACEOF
13685
13686ac_header_dirent=$ac_hdr; break
13687fi
13688
13689done
13690# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13691if test $ac_header_dirent = dirent.h; then
13692 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13693echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13694if test "${ac_cv_search_opendir+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697 ac_func_search_save_LIBS=$LIBS
13698cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704
13705/* Override any GCC internal prototype to avoid an error.
13706 Use char because int might match the return type of a GCC
13707 builtin and then its argument prototype would still apply. */
13708#ifdef __cplusplus
13709extern "C"
13710#endif
13711char opendir ();
13712int
13713main ()
13714{
13715return opendir ();
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720for ac_lib in '' dir; do
13721 if test -z "$ac_lib"; then
13722 ac_res="none required"
13723 else
13724 ac_res=-l$ac_lib
13725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13726 fi
13727 rm -f conftest.$ac_objext conftest$ac_exeext
13728if { (ac_try="$ac_link"
13729case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13732esac
13733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_link") 2>conftest.er1
13735 ac_status=$?
13736 grep -v '^ *+' conftest.er1 >conftest.err
13737 rm -f conftest.er1
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13742 { (case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745esac
13746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_try") 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_search_opendir=$ac_res
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766
13767fi
13768
13769rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext
13771 if test "${ac_cv_search_opendir+set}" = set; then
13772 break
13773fi
13774done
13775if test "${ac_cv_search_opendir+set}" = set; then
13776 :
13777else
13778 ac_cv_search_opendir=no
13779fi
13780rm conftest.$ac_ext
13781LIBS=$ac_func_search_save_LIBS
13782fi
13783{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13784echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13785ac_res=$ac_cv_search_opendir
13786if test "$ac_res" != no; then
13787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13788
13789fi
13790
13791else
13792 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13793echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13794if test "${ac_cv_search_opendir+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797 ac_func_search_save_LIBS=$LIBS
13798cat >conftest.$ac_ext <<_ACEOF
13799/* confdefs.h. */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h. */
13804
13805/* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13808#ifdef __cplusplus
13809extern "C"
13810#endif
13811char opendir ();
13812int
13813main ()
13814{
13815return opendir ();
13816 ;
13817 return 0;
13818}
13819_ACEOF
13820for ac_lib in '' x; do
13821 if test -z "$ac_lib"; then
13822 ac_res="none required"
13823 else
13824 ac_res=-l$ac_lib
13825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13826 fi
13827 rm -f conftest.$ac_objext conftest$ac_exeext
13828if { (ac_try="$ac_link"
13829case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_link") 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_search_opendir=$ac_res
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866
13867fi
13868
13869rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext
13871 if test "${ac_cv_search_opendir+set}" = set; then
13872 break
13873fi
13874done
13875if test "${ac_cv_search_opendir+set}" = set; then
13876 :
13877else
13878 ac_cv_search_opendir=no
13879fi
13880rm conftest.$ac_ext
13881LIBS=$ac_func_search_save_LIBS
13882fi
13883{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13884echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13885ac_res=$ac_cv_search_opendir
13886if test "$ac_res" != no; then
13887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13888
13889fi
13890
13891fi
13892
13893{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13894echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13895if test "${ac_cv_header_mmap_anon+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897else
13898 ac_ext=c
13899ac_cpp='$CPP $CPPFLAGS'
13900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13902ac_compiler_gnu=$ac_cv_c_compiler_gnu
13903
13904 cat >conftest.$ac_ext <<_ACEOF
13905/* confdefs.h. */
13906_ACEOF
13907cat confdefs.h >>conftest.$ac_ext
13908cat >>conftest.$ac_ext <<_ACEOF
13909/* end confdefs.h. */
13910#include <sys/mman.h>
13911#include <unistd.h>
13912#include <fcntl.h>
13913int
13914main ()
13915{
13916mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext
13922if { (ac_try="$ac_compile"
13923case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_compile") 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_header_mmap_anon=yes
13956else
13957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 ac_cv_header_mmap_anon=no
13961fi
13962
13963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 ac_ext=c
13965ac_cpp='$CPP $CPPFLAGS'
13966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13968ac_compiler_gnu=$ac_cv_c_compiler_gnu
13969
13970
13971fi
13972{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13973echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13974if test "$ac_cv_header_mmap_anon" = yes; then
13975
13976cat >>confdefs.h <<\_ACEOF
13977#define HAVE_MMAP_ANONYMOUS 1
13978_ACEOF
13979
13980fi
13981
13982{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13983echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13984if test "${ac_cv_header_stat_broken+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987 cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993#include <sys/types.h>
13994#include <sys/stat.h>
13995
13996#if defined S_ISBLK && defined S_IFDIR
13997# if S_ISBLK (S_IFDIR)
13998You lose.
13999# endif
14000#endif
14001
14002#if defined S_ISBLK && defined S_IFCHR
14003# if S_ISBLK (S_IFCHR)
14004You lose.
14005# endif
14006#endif
14007
14008#if defined S_ISLNK && defined S_IFREG
14009# if S_ISLNK (S_IFREG)
14010You lose.
14011# endif
14012#endif
14013
14014#if defined S_ISSOCK && defined S_IFREG
14015# if S_ISSOCK (S_IFREG)
14016You lose.
14017# endif
14018#endif
14019
14020_ACEOF
14021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14022 $EGREP "You lose" >/dev/null 2>&1; then
14023 ac_cv_header_stat_broken=yes
14024else
14025 ac_cv_header_stat_broken=no
14026fi
14027rm -f conftest*
14028
14029fi
14030{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14031echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14032if test $ac_cv_header_stat_broken = yes; then
14033
14034cat >>confdefs.h <<\_ACEOF
14035#define STAT_MACROS_BROKEN 1
14036_ACEOF
14037
14038fi
14039
14040{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14041echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14042if test "${ac_cv_header_sys_wait_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 cat >conftest.$ac_ext <<_ACEOF
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
14051#include <sys/types.h>
14052#include <sys/wait.h>
14053#ifndef WEXITSTATUS
14054# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14055#endif
14056#ifndef WIFEXITED
14057# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14058#endif
14059
14060int
14061main ()
14062{
14063 int s;
14064 wait (&s);
14065 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext
14071if { (ac_try="$ac_compile"
14072case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14075esac
14076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_compile") 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14085 { (case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088esac
14089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_try") 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest.$ac_objext'
14095 { (case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098esac
14099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_try") 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_cv_header_sys_wait_h=yes
14105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ac_cv_header_sys_wait_h=no
14110fi
14111
14112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113fi
14114{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14115echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14116if test $ac_cv_header_sys_wait_h = yes; then
14117
14118cat >>confdefs.h <<\_ACEOF
14119#define HAVE_SYS_WAIT_H 1
14120_ACEOF
14121
14122fi
14123
14124{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14125echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14126if test "${ac_cv_header_time+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128else
14129 cat >conftest.$ac_ext <<_ACEOF
14130/* confdefs.h. */
14131_ACEOF
14132cat confdefs.h >>conftest.$ac_ext
14133cat >>conftest.$ac_ext <<_ACEOF
14134/* end confdefs.h. */
14135#include <sys/types.h>
14136#include <sys/time.h>
14137#include <time.h>
14138
14139int
14140main ()
14141{
14142if ((struct tm *) 0)
14143return 0;
14144 ;
14145 return 0;
14146}
14147_ACEOF
14148rm -f conftest.$ac_objext
14149if { (ac_try="$ac_compile"
14150case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153esac
14154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14163 { (case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_try") 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
14173 { (case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176esac
14177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_try") 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_cv_header_time=yes
14183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 ac_cv_header_time=no
14188fi
14189
14190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191fi
14192{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14193echo "${ECHO_T}$ac_cv_header_time" >&6; }
14194if test $ac_cv_header_time = yes; then
14195
14196cat >>confdefs.h <<\_ACEOF
14197#define TIME_WITH_SYS_TIME 1
14198_ACEOF
14199
14200fi
14201
14202
14203
14204
14205
14206
14207
14208
14209for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14210do
14211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217fi
14218ac_res=`eval echo '${'$as_ac_Header'}'`
14219 { echo "$as_me:$LINENO: result: $ac_res" >&5
14220echo "${ECHO_T}$ac_res" >&6; }
14221else
14222 # Is the header compilable?
14223{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14225cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231$ac_includes_default
14232#include <$ac_header>
14233_ACEOF
14234rm -f conftest.$ac_objext
14235if { (ac_try="$ac_compile"
14236case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_compile") 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_header_compiler=yes
14269else
14270 echo "$as_me: failed program was:" >&5
14271sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 ac_header_compiler=no
14274fi
14275
14276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14278echo "${ECHO_T}$ac_header_compiler" >&6; }
14279
14280# Is the header present?
14281{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14283cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
14289#include <$ac_header>
14290_ACEOF
14291if { (ac_try="$ac_cpp conftest.$ac_ext"
14292case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295esac
14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } >/dev/null; then
14304 if test -s conftest.err; then
14305 ac_cpp_err=$ac_c_preproc_warn_flag
14306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14307 else
14308 ac_cpp_err=
14309 fi
14310else
14311 ac_cpp_err=yes
14312fi
14313if test -z "$ac_cpp_err"; then
14314 ac_header_preproc=yes
14315else
14316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
14319 ac_header_preproc=no
14320fi
14321
14322rm -f conftest.err conftest.$ac_ext
14323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14324echo "${ECHO_T}$ac_header_preproc" >&6; }
14325
14326# So? What about this header?
14327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14328 yes:no: )
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14333 ac_header_preproc=yes
14334 ;;
14335 no:yes:* )
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14348 ( cat <<\_ASBOX
14349## ------------------------------ ##
14350## Report this to bugs@yourdomain ##
14351## ------------------------------ ##
14352_ASBOX
14353 ) | sed "s/^/$as_me: WARNING: /" >&2
14354 ;;
14355esac
14356{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361 eval "$as_ac_Header=\$ac_header_preproc"
14362fi
14363ac_res=`eval echo '${'$as_ac_Header'}'`
14364 { echo "$as_me:$LINENO: result: $ac_res" >&5
14365echo "${ECHO_T}$ac_res" >&6; }
14366
14367fi
14368if test `eval echo '${'$as_ac_Header'}'` = yes; then
14369 cat >>confdefs.h <<_ACEOF
14370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14371_ACEOF
14372
14373fi
14374
14375done
14376
14377
14378
14379
14380
14381
14382
14383for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14384do
14385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391fi
14392ac_res=`eval echo '${'$as_ac_Header'}'`
14393 { echo "$as_me:$LINENO: result: $ac_res" >&5
14394echo "${ECHO_T}$ac_res" >&6; }
14395else
14396 # Is the header compilable?
14397{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14399cat >conftest.$ac_ext <<_ACEOF
14400/* confdefs.h. */
14401_ACEOF
14402cat confdefs.h >>conftest.$ac_ext
14403cat >>conftest.$ac_ext <<_ACEOF
14404/* end confdefs.h. */
14405$ac_includes_default
14406#include <$ac_header>
14407_ACEOF
14408rm -f conftest.$ac_objext
14409if { (ac_try="$ac_compile"
14410case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_compile") 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426esac
14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436esac
14437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_try") 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_header_compiler=yes
14443else
14444 echo "$as_me: failed program was:" >&5
14445sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_header_compiler=no
14448fi
14449
14450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14452echo "${ECHO_T}$ac_header_compiler" >&6; }
14453
14454# Is the header present?
14455{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14457cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463#include <$ac_header>
14464_ACEOF
14465if { (ac_try="$ac_cpp conftest.$ac_ext"
14466case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469esac
14470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } >/dev/null; then
14478 if test -s conftest.err; then
14479 ac_cpp_err=$ac_c_preproc_warn_flag
14480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14481 else
14482 ac_cpp_err=
14483 fi
14484else
14485 ac_cpp_err=yes
14486fi
14487if test -z "$ac_cpp_err"; then
14488 ac_header_preproc=yes
14489else
14490 echo "$as_me: failed program was:" >&5
14491sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 ac_header_preproc=no
14494fi
14495
14496rm -f conftest.err conftest.$ac_ext
14497{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14498echo "${ECHO_T}$ac_header_preproc" >&6; }
14499
14500# So? What about this header?
14501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14502 yes:no: )
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14507 ac_header_preproc=yes
14508 ;;
14509 no:yes:* )
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14522 ( cat <<\_ASBOX
14523## ------------------------------ ##
14524## Report this to bugs@yourdomain ##
14525## ------------------------------ ##
14526_ASBOX
14527 ) | sed "s/^/$as_me: WARNING: /" >&2
14528 ;;
14529esac
14530{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 eval "$as_ac_Header=\$ac_header_preproc"
14536fi
14537ac_res=`eval echo '${'$as_ac_Header'}'`
14538 { echo "$as_me:$LINENO: result: $ac_res" >&5
14539echo "${ECHO_T}$ac_res" >&6; }
14540
14541fi
14542if test `eval echo '${'$as_ac_Header'}'` = yes; then
14543 cat >>confdefs.h <<_ACEOF
14544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14545_ACEOF
14546
14547fi
14548
14549done
14550
14551
14552
14553for ac_header in utime.h windows.h
14554do
14555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561fi
14562ac_res=`eval echo '${'$as_ac_Header'}'`
14563 { echo "$as_me:$LINENO: result: $ac_res" >&5
14564echo "${ECHO_T}$ac_res" >&6; }
14565else
14566 # Is the header compilable?
14567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14569cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575$ac_includes_default
14576#include <$ac_header>
14577_ACEOF
14578rm -f conftest.$ac_objext
14579if { (ac_try="$ac_compile"
14580case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_compile") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14593 { (case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596esac
14597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_try") 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606esac
14607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_try") 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_header_compiler=yes
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 ac_header_compiler=no
14618fi
14619
14620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14622echo "${ECHO_T}$ac_header_compiler" >&6; }
14623
14624# Is the header present?
14625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14627cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633#include <$ac_header>
14634_ACEOF
14635if { (ac_try="$ac_cpp conftest.$ac_ext"
14636case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639esac
14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } >/dev/null; then
14648 if test -s conftest.err; then
14649 ac_cpp_err=$ac_c_preproc_warn_flag
14650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14651 else
14652 ac_cpp_err=
14653 fi
14654else
14655 ac_cpp_err=yes
14656fi
14657if test -z "$ac_cpp_err"; then
14658 ac_header_preproc=yes
14659else
14660 echo "$as_me: failed program was:" >&5
14661sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 ac_header_preproc=no
14664fi
14665
14666rm -f conftest.err conftest.$ac_ext
14667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14668echo "${ECHO_T}$ac_header_preproc" >&6; }
14669
14670# So? What about this header?
14671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14672 yes:no: )
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14677 ac_header_preproc=yes
14678 ;;
14679 no:yes:* )
14680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14692 ( cat <<\_ASBOX
14693## ------------------------------ ##
14694## Report this to bugs@yourdomain ##
14695## ------------------------------ ##
14696_ASBOX
14697 ) | sed "s/^/$as_me: WARNING: /" >&2
14698 ;;
14699esac
14700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704else
14705 eval "$as_ac_Header=\$ac_header_preproc"
14706fi
14707ac_res=`eval echo '${'$as_ac_Header'}'`
14708 { echo "$as_me:$LINENO: result: $ac_res" >&5
14709echo "${ECHO_T}$ac_res" >&6; }
14710
14711fi
14712if test `eval echo '${'$as_ac_Header'}'` = yes; then
14713 cat >>confdefs.h <<_ACEOF
14714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14715_ACEOF
14716
14717fi
14718
14719done
14720
14721
14722
14723
14724
14725
14726for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14727do
14728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734fi
14735ac_res=`eval echo '${'$as_ac_Header'}'`
14736 { echo "$as_me:$LINENO: result: $ac_res" >&5
14737echo "${ECHO_T}$ac_res" >&6; }
14738else
14739 # Is the header compilable?
14740{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14742cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748$ac_includes_default
14749#include <$ac_header>
14750_ACEOF
14751rm -f conftest.$ac_objext
14752if { (ac_try="$ac_compile"
14753case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756esac
14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766 { (case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_try") 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14779esac
14780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781 (eval "$ac_try") 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_header_compiler=yes
14786else
14787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
14790 ac_header_compiler=no
14791fi
14792
14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14795echo "${ECHO_T}$ac_header_compiler" >&6; }
14796
14797# Is the header present?
14798{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14800cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806#include <$ac_header>
14807_ACEOF
14808if { (ac_try="$ac_cpp conftest.$ac_ext"
14809case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14812esac
14813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14815 ac_status=$?
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } >/dev/null; then
14821 if test -s conftest.err; then
14822 ac_cpp_err=$ac_c_preproc_warn_flag
14823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14824 else
14825 ac_cpp_err=
14826 fi
14827else
14828 ac_cpp_err=yes
14829fi
14830if test -z "$ac_cpp_err"; then
14831 ac_header_preproc=yes
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ac_header_preproc=no
14837fi
14838
14839rm -f conftest.err conftest.$ac_ext
14840{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14841echo "${ECHO_T}$ac_header_preproc" >&6; }
14842
14843# So? What about this header?
14844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14845 yes:no: )
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14850 ac_header_preproc=yes
14851 ;;
14852 no:yes:* )
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14860echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14865 ( cat <<\_ASBOX
14866## ------------------------------ ##
14867## Report this to bugs@yourdomain ##
14868## ------------------------------ ##
14869_ASBOX
14870 ) | sed "s/^/$as_me: WARNING: /" >&2
14871 ;;
14872esac
14873{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877else
14878 eval "$as_ac_Header=\$ac_header_preproc"
14879fi
14880ac_res=`eval echo '${'$as_ac_Header'}'`
14881 { echo "$as_me:$LINENO: result: $ac_res" >&5
14882echo "${ECHO_T}$ac_res" >&6; }
14883
14884fi
14885if test `eval echo '${'$as_ac_Header'}'` = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14888_ACEOF
14889
14890fi
14891
14892done
14893
14894
14895
14896
14897
14898for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14899do
14900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906fi
14907ac_res=`eval echo '${'$as_ac_Header'}'`
14908 { echo "$as_me:$LINENO: result: $ac_res" >&5
14909echo "${ECHO_T}$ac_res" >&6; }
14910else
14911 # Is the header compilable?
14912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920$ac_includes_default
14921#include <$ac_header>
14922_ACEOF
14923rm -f conftest.$ac_objext
14924if { (ac_try="$ac_compile"
14925case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928esac
14929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_compile") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14938 { (case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941esac
14942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_try") 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14951esac
14952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_try") 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ac_header_compiler=yes
14958else
14959 echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
14962 ac_header_compiler=no
14963fi
14964
14965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14967echo "${ECHO_T}$ac_header_compiler" >&6; }
14968
14969# Is the header present?
14970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14972cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978#include <$ac_header>
14979_ACEOF
14980if { (ac_try="$ac_cpp conftest.$ac_ext"
14981case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984esac
14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } >/dev/null; then
14993 if test -s conftest.err; then
14994 ac_cpp_err=$ac_c_preproc_warn_flag
14995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14996 else
14997 ac_cpp_err=
14998 fi
14999else
15000 ac_cpp_err=yes
15001fi
15002if test -z "$ac_cpp_err"; then
15003 ac_header_preproc=yes
15004else
15005 echo "$as_me: failed program was:" >&5
15006sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_header_preproc=no
15009fi
15010
15011rm -f conftest.err conftest.$ac_ext
15012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15013echo "${ECHO_T}$ac_header_preproc" >&6; }
15014
15015# So? What about this header?
15016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15017 yes:no: )
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15022 ac_header_preproc=yes
15023 ;;
15024 no:yes:* )
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15037 ( cat <<\_ASBOX
15038## ------------------------------ ##
15039## Report this to bugs@yourdomain ##
15040## ------------------------------ ##
15041_ASBOX
15042 ) | sed "s/^/$as_me: WARNING: /" >&2
15043 ;;
15044esac
15045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049else
15050 eval "$as_ac_Header=\$ac_header_preproc"
15051fi
15052ac_res=`eval echo '${'$as_ac_Header'}'`
15053 { echo "$as_me:$LINENO: result: $ac_res" >&5
15054echo "${ECHO_T}$ac_res" >&6; }
15055
15056fi
15057if test `eval echo '${'$as_ac_Header'}'` = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15060_ACEOF
15061
15062fi
15063
15064done
15065
15066
15067for ac_header in valgrind/valgrind.h
15068do
15069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075fi
15076ac_res=`eval echo '${'$as_ac_Header'}'`
15077 { echo "$as_me:$LINENO: result: $ac_res" >&5
15078echo "${ECHO_T}$ac_res" >&6; }
15079else
15080 # Is the header compilable?
15081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15083cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089$ac_includes_default
15090#include <$ac_header>
15091_ACEOF
15092rm -f conftest.$ac_objext
15093if { (ac_try="$ac_compile"
15094case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097esac
15098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_compile") 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15107 { (case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_try") 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest.$ac_objext'
15117 { (case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120esac
15121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_try") 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 ac_header_compiler=yes
15127else
15128 echo "$as_me: failed program was:" >&5
15129sed 's/^/| /' conftest.$ac_ext >&5
15130
15131 ac_header_compiler=no
15132fi
15133
15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15136echo "${ECHO_T}$ac_header_compiler" >&6; }
15137
15138# Is the header present?
15139{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15141cat >conftest.$ac_ext <<_ACEOF
15142/* confdefs.h. */
15143_ACEOF
15144cat confdefs.h >>conftest.$ac_ext
15145cat >>conftest.$ac_ext <<_ACEOF
15146/* end confdefs.h. */
15147#include <$ac_header>
15148_ACEOF
15149if { (ac_try="$ac_cpp conftest.$ac_ext"
15150case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153esac
15154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } >/dev/null; then
15162 if test -s conftest.err; then
15163 ac_cpp_err=$ac_c_preproc_warn_flag
15164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15165 else
15166 ac_cpp_err=
15167 fi
15168else
15169 ac_cpp_err=yes
15170fi
15171if test -z "$ac_cpp_err"; then
15172 ac_header_preproc=yes
15173else
15174 echo "$as_me: failed program was:" >&5
15175sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_header_preproc=no
15178fi
15179
15180rm -f conftest.err conftest.$ac_ext
15181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15182echo "${ECHO_T}$ac_header_preproc" >&6; }
15183
15184# So? What about this header?
15185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15186 yes:no: )
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15191 ac_header_preproc=yes
15192 ;;
15193 no:yes:* )
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15206 ( cat <<\_ASBOX
15207## ------------------------------ ##
15208## Report this to bugs@yourdomain ##
15209## ------------------------------ ##
15210_ASBOX
15211 ) | sed "s/^/$as_me: WARNING: /" >&2
15212 ;;
15213esac
15214{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219 eval "$as_ac_Header=\$ac_header_preproc"
15220fi
15221ac_res=`eval echo '${'$as_ac_Header'}'`
15222 { echo "$as_me:$LINENO: result: $ac_res" >&5
15223echo "${ECHO_T}$ac_res" >&6; }
15224
15225fi
15226if test `eval echo '${'$as_ac_Header'}'` = yes; then
15227 cat >>confdefs.h <<_ACEOF
15228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15229_ACEOF
15230
15231fi
15232
15233done
15234
15235
15236for ac_header in fenv.h
15237do
15238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244fi
15245ac_res=`eval echo '${'$as_ac_Header'}'`
15246 { echo "$as_me:$LINENO: result: $ac_res" >&5
15247echo "${ECHO_T}$ac_res" >&6; }
15248else
15249 # Is the header compilable?
15250{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15252cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258$ac_includes_default
15259#include <$ac_header>
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (ac_try="$ac_compile"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15276 { (case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_try") 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest.$ac_objext'
15286 { (case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15289esac
15290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291 (eval "$ac_try") 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_header_compiler=yes
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 ac_header_compiler=no
15301fi
15302
15303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15305echo "${ECHO_T}$ac_header_compiler" >&6; }
15306
15307# Is the header present?
15308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15310cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316#include <$ac_header>
15317_ACEOF
15318if { (ac_try="$ac_cpp conftest.$ac_ext"
15319case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15322esac
15323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } >/dev/null; then
15331 if test -s conftest.err; then
15332 ac_cpp_err=$ac_c_preproc_warn_flag
15333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15334 else
15335 ac_cpp_err=
15336 fi
15337else
15338 ac_cpp_err=yes
15339fi
15340if test -z "$ac_cpp_err"; then
15341 ac_header_preproc=yes
15342else
15343 echo "$as_me: failed program was:" >&5
15344sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_header_preproc=no
15347fi
15348
15349rm -f conftest.err conftest.$ac_ext
15350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15351echo "${ECHO_T}$ac_header_preproc" >&6; }
15352
15353# So? What about this header?
15354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15355 yes:no: )
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15360 ac_header_preproc=yes
15361 ;;
15362 no:yes:* )
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15375 ( cat <<\_ASBOX
15376## ------------------------------ ##
15377## Report this to bugs@yourdomain ##
15378## ------------------------------ ##
15379_ASBOX
15380 ) | sed "s/^/$as_me: WARNING: /" >&2
15381 ;;
15382esac
15383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387else
15388 eval "$as_ac_Header=\$ac_header_preproc"
15389fi
15390ac_res=`eval echo '${'$as_ac_Header'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392echo "${ECHO_T}$ac_res" >&6; }
15393
15394fi
15395if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15398_ACEOF
15399
15400fi
15401
15402done
15403
15404if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15405
15406for ac_header in pthread.h
15407do
15408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414fi
15415ac_res=`eval echo '${'$as_ac_Header'}'`
15416 { echo "$as_me:$LINENO: result: $ac_res" >&5
15417echo "${ECHO_T}$ac_res" >&6; }
15418else
15419 # Is the header compilable?
15420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15422cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428$ac_includes_default
15429#include <$ac_header>
15430_ACEOF
15431rm -f conftest.$ac_objext
15432if { (ac_try="$ac_compile"
15433case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436esac
15437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_compile") 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15446 { (case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449esac
15450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_try") 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; } &&
15455 { ac_try='test -s conftest.$ac_objext'
15456 { (case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459esac
15460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_try") 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_header_compiler=yes
15466else
15467 echo "$as_me: failed program was:" >&5
15468sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 ac_header_compiler=no
15471fi
15472
15473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475echo "${ECHO_T}$ac_header_compiler" >&6; }
15476
15477# Is the header present?
15478{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15480cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486#include <$ac_header>
15487_ACEOF
15488if { (ac_try="$ac_cpp conftest.$ac_ext"
15489case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492esac
15493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } >/dev/null; then
15501 if test -s conftest.err; then
15502 ac_cpp_err=$ac_c_preproc_warn_flag
15503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15504 else
15505 ac_cpp_err=
15506 fi
15507else
15508 ac_cpp_err=yes
15509fi
15510if test -z "$ac_cpp_err"; then
15511 ac_header_preproc=yes
15512else
15513 echo "$as_me: failed program was:" >&5
15514sed 's/^/| /' conftest.$ac_ext >&5
15515
15516 ac_header_preproc=no
15517fi
15518
15519rm -f conftest.err conftest.$ac_ext
15520{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15521echo "${ECHO_T}$ac_header_preproc" >&6; }
15522
15523# So? What about this header?
15524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15525 yes:no: )
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15530 ac_header_preproc=yes
15531 ;;
15532 no:yes:* )
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15545 ( cat <<\_ASBOX
15546## ------------------------------ ##
15547## Report this to bugs@yourdomain ##
15548## ------------------------------ ##
15549_ASBOX
15550 ) | sed "s/^/$as_me: WARNING: /" >&2
15551 ;;
15552esac
15553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558 eval "$as_ac_Header=\$ac_header_preproc"
15559fi
15560ac_res=`eval echo '${'$as_ac_Header'}'`
15561 { echo "$as_me:$LINENO: result: $ac_res" >&5
15562echo "${ECHO_T}$ac_res" >&6; }
15563
15564fi
15565if test `eval echo '${'$as_ac_Header'}'` = yes; then
15566 cat >>confdefs.h <<_ACEOF
15567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15568_ACEOF
15569 HAVE_PTHREAD=1
15570
15571else
15572 HAVE_PTHREAD=0
15573
15574fi
15575
15576done
15577
15578else
15579 HAVE_PTHREAD=0
15580
15581fi
15582
15583if test "$llvm_cv_enable_libffi" = "yes" ; then
15584
15585
15586for ac_header in ffi.h ffi/ffi.h
15587do
15588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594fi
15595ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597echo "${ECHO_T}$ac_res" >&6; }
15598else
15599 # Is the header compilable?
15600{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15602cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609#include <$ac_header>
15610_ACEOF
15611rm -f conftest.$ac_objext
15612if { (ac_try="$ac_compile"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_compile") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639esac
15640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_header_compiler=yes
15646else
15647 echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 ac_header_compiler=no
15651fi
15652
15653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15655echo "${ECHO_T}$ac_header_compiler" >&6; }
15656
15657# Is the header present?
15658{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15660cat >conftest.$ac_ext <<_ACEOF
15661/* confdefs.h. */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h. */
15666#include <$ac_header>
15667_ACEOF
15668if { (ac_try="$ac_cpp conftest.$ac_ext"
15669case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672esac
15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } >/dev/null; then
15681 if test -s conftest.err; then
15682 ac_cpp_err=$ac_c_preproc_warn_flag
15683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15684 else
15685 ac_cpp_err=
15686 fi
15687else
15688 ac_cpp_err=yes
15689fi
15690if test -z "$ac_cpp_err"; then
15691 ac_header_preproc=yes
15692else
15693 echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696 ac_header_preproc=no
15697fi
15698
15699rm -f conftest.err conftest.$ac_ext
15700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701echo "${ECHO_T}$ac_header_preproc" >&6; }
15702
15703# So? What about this header?
15704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15705 yes:no: )
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
15711 ;;
15712 no:yes:* )
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15725 ( cat <<\_ASBOX
15726## ------------------------------ ##
15727## Report this to bugs@yourdomain ##
15728## ------------------------------ ##
15729_ASBOX
15730 ) | sed "s/^/$as_me: WARNING: /" >&2
15731 ;;
15732esac
15733{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15737else
15738 eval "$as_ac_Header=\$ac_header_preproc"
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743
15744fi
15745if test `eval echo '${'$as_ac_Header'}'` = yes; then
15746 cat >>confdefs.h <<_ACEOF
15747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15748_ACEOF
15749
15750fi
15751
15752done
15753
15754fi
15755
15756
15757for ac_header in CrashReporterClient.h
15758do
15759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765fi
15766ac_res=`eval echo '${'$as_ac_Header'}'`
15767 { echo "$as_me:$LINENO: result: $ac_res" >&5
15768echo "${ECHO_T}$ac_res" >&6; }
15769else
15770 # Is the header compilable?
15771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15773cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780#include <$ac_header>
15781_ACEOF
15782rm -f conftest.$ac_objext
15783if { (ac_try="$ac_compile"
15784case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787esac
15788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_compile") 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15797 { (case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800esac
15801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_try") 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
15807 { (case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810esac
15811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_try") 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_header_compiler=yes
15817else
15818 echo "$as_me: failed program was:" >&5
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 ac_header_compiler=no
15822fi
15823
15824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15826echo "${ECHO_T}$ac_header_compiler" >&6; }
15827
15828# Is the header present?
15829{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15831cat >conftest.$ac_ext <<_ACEOF
15832/* confdefs.h. */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h. */
15837#include <$ac_header>
15838_ACEOF
15839if { (ac_try="$ac_cpp conftest.$ac_ext"
15840case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } >/dev/null; then
15852 if test -s conftest.err; then
15853 ac_cpp_err=$ac_c_preproc_warn_flag
15854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15855 else
15856 ac_cpp_err=
15857 fi
15858else
15859 ac_cpp_err=yes
15860fi
15861if test -z "$ac_cpp_err"; then
15862 ac_header_preproc=yes
15863else
15864 echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 ac_header_preproc=no
15868fi
15869
15870rm -f conftest.err conftest.$ac_ext
15871{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15872echo "${ECHO_T}$ac_header_preproc" >&6; }
15873
15874# So? What about this header?
15875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 yes:no: )
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15881 ac_header_preproc=yes
15882 ;;
15883 no:yes:* )
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15896 ( cat <<\_ASBOX
15897## ------------------------------ ##
15898## Report this to bugs@yourdomain ##
15899## ------------------------------ ##
15900_ASBOX
15901 ) | sed "s/^/$as_me: WARNING: /" >&2
15902 ;;
15903esac
15904{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908else
15909 eval "$as_ac_Header=\$ac_header_preproc"
15910fi
15911ac_res=`eval echo '${'$as_ac_Header'}'`
15912 { echo "$as_me:$LINENO: result: $ac_res" >&5
15913echo "${ECHO_T}$ac_res" >&6; }
15914
15915fi
15916if test `eval echo '${'$as_ac_Header'}'` = yes; then
15917 cat >>confdefs.h <<_ACEOF
15918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15919_ACEOF
15920
15921fi
15922
15923done
15924
15925
15926{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15927echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15928cat >conftest.$ac_ext <<_ACEOF
15929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
15933/* end confdefs.h. */
15934extern const char *__crashreporter_info__;
15935 int main() {
15936 __crashreporter_info__ = "test";
15937 return 0;
15938 }
15939
15940_ACEOF
15941rm -f conftest.$ac_objext conftest$ac_exeext
15942if { (ac_try="$ac_link"
15943case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946esac
15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_link") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15956 { (case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959esac
15960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_try") 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969esac
15970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 { echo "$as_me:$LINENO: result: yes" >&5
15976echo "${ECHO_T}yes" >&6; }
15977
15978cat >>confdefs.h <<\_ACEOF
15979#define HAVE_CRASHREPORTER_INFO 1
15980_ACEOF
15981
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 { echo "$as_me:$LINENO: result: no" >&5
15987echo "${ECHO_T}no" >&6; }
15988
15989cat >>confdefs.h <<\_ACEOF
15990#define HAVE_CRASHREPORTER_INFO 0
15991_ACEOF
15992
15993fi
15994
15995rm -f core conftest.err conftest.$ac_objext \
15996 conftest$ac_exeext conftest.$ac_ext
15997
15998
15999
16000
16001 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16002echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16003if test "${ac_cv_huge_val_sanity+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005else
16006
16007 ac_ext=cpp
16008ac_cpp='$CXXCPP $CPPFLAGS'
16009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16012
16013 ac_save_CXXFLAGS=$CXXFLAGS
Benjamin Kramer00171802012-05-05 15:02:39 +000016014 CXXFLAGS="$CXXFLAGS -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000016015 if test "$cross_compiling" = yes; then
16016 ac_cv_huge_val_sanity=yes
16017else
16018 cat >conftest.$ac_ext <<_ACEOF
16019/* confdefs.h. */
16020_ACEOF
16021cat confdefs.h >>conftest.$ac_ext
16022cat >>conftest.$ac_ext <<_ACEOF
16023/* end confdefs.h. */
16024#include <math.h>
16025int
16026main ()
16027{
16028double x = HUGE_VAL; return x != x;
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033rm -f conftest$ac_exeext
16034if { (ac_try="$ac_link"
16035case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038esac
16039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_link") 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16044 { (case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16047esac
16048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_try") 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053 ac_cv_huge_val_sanity=yes
16054else
16055 echo "$as_me: program exited with status $ac_status" >&5
16056echo "$as_me: failed program was:" >&5
16057sed 's/^/| /' conftest.$ac_ext >&5
16058
16059( exit $ac_status )
16060ac_cv_huge_val_sanity=no
16061fi
16062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16063fi
16064
16065
16066 CXXFLAGS=$ac_save_CXXFLAGS
16067 ac_ext=c
16068ac_cpp='$CPP $CPPFLAGS'
16069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16071ac_compiler_gnu=$ac_cv_c_compiler_gnu
16072
16073
16074fi
16075{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16076echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16077 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16078
16079
16080{ echo "$as_me:$LINENO: checking for pid_t" >&5
16081echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16082if test "${ac_cv_type_pid_t+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084else
16085 cat >conftest.$ac_ext <<_ACEOF
16086/* confdefs.h. */
16087_ACEOF
16088cat confdefs.h >>conftest.$ac_ext
16089cat >>conftest.$ac_ext <<_ACEOF
16090/* end confdefs.h. */
16091$ac_includes_default
16092typedef pid_t ac__type_new_;
16093int
16094main ()
16095{
16096if ((ac__type_new_ *) 0)
16097 return 0;
16098if (sizeof (ac__type_new_))
16099 return 0;
16100 ;
16101 return 0;
16102}
16103_ACEOF
16104rm -f conftest.$ac_objext
16105if { (ac_try="$ac_compile"
16106case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109esac
16110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_compile") 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } &&
16118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16119 { (case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122esac
16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_try") 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try='test -s conftest.$ac_objext'
16129 { (case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16132esac
16133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_try") 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_cv_type_pid_t=yes
16139else
16140 echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
16142
16143 ac_cv_type_pid_t=no
16144fi
16145
16146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147fi
16148{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16149echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16150if test $ac_cv_type_pid_t = yes; then
16151 :
16152else
16153
16154cat >>confdefs.h <<_ACEOF
16155#define pid_t int
16156_ACEOF
16157
16158fi
16159
16160{ echo "$as_me:$LINENO: checking for size_t" >&5
16161echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16162if test "${ac_cv_type_size_t+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164else
16165 cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171$ac_includes_default
16172typedef size_t ac__type_new_;
16173int
16174main ()
16175{
16176if ((ac__type_new_ *) 0)
16177 return 0;
16178if (sizeof (ac__type_new_))
16179 return 0;
16180 ;
16181 return 0;
16182}
16183_ACEOF
16184rm -f conftest.$ac_objext
16185if { (ac_try="$ac_compile"
16186case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_compile") 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16199 { (case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202esac
16203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_try") 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest.$ac_objext'
16209 { (case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16212esac
16213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_try") 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_cv_type_size_t=yes
16219else
16220 echo "$as_me: failed program was:" >&5
16221sed 's/^/| /' conftest.$ac_ext >&5
16222
16223 ac_cv_type_size_t=no
16224fi
16225
16226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227fi
16228{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16229echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16230if test $ac_cv_type_size_t = yes; then
16231 :
16232else
16233
16234cat >>confdefs.h <<_ACEOF
16235#define size_t unsigned int
16236_ACEOF
16237
16238fi
16239
16240
16241cat >>confdefs.h <<_ACEOF
16242#define RETSIGTYPE void
16243_ACEOF
16244
16245{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16246echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16247if test "${ac_cv_struct_tm+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249else
16250 cat >conftest.$ac_ext <<_ACEOF
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
16256#include <sys/types.h>
16257#include <time.h>
16258
16259int
16260main ()
16261{
16262struct tm *tp; tp->tm_sec;
16263 ;
16264 return 0;
16265}
16266_ACEOF
16267rm -f conftest.$ac_objext
16268if { (ac_try="$ac_compile"
16269case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16272esac
16273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_compile") 2>conftest.er1
16275 ac_status=$?
16276 grep -v '^ *+' conftest.er1 >conftest.err
16277 rm -f conftest.er1
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16282 { (case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285esac
16286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_try") 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295esac
16296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_try") 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 ac_cv_struct_tm=time.h
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_cv_struct_tm=sys/time.h
16307fi
16308
16309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310fi
16311{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16312echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16313if test $ac_cv_struct_tm = sys/time.h; then
16314
16315cat >>confdefs.h <<\_ACEOF
16316#define TM_IN_SYS_TIME 1
16317_ACEOF
16318
16319fi
16320
16321{ echo "$as_me:$LINENO: checking for int64_t" >&5
16322echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16323if test "${ac_cv_type_int64_t+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325else
16326 cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333typedef int64_t ac__type_new_;
16334int
16335main ()
16336{
16337if ((ac__type_new_ *) 0)
16338 return 0;
16339if (sizeof (ac__type_new_))
16340 return 0;
16341 ;
16342 return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext
16346if { (ac_try="$ac_compile"
16347case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350esac
16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_compile") 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } &&
16369 { ac_try='test -s conftest.$ac_objext'
16370 { (case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373esac
16374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_try") 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_type_int64_t=yes
16380else
16381 echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384 ac_cv_type_int64_t=no
16385fi
16386
16387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388fi
16389{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16390echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16391if test $ac_cv_type_int64_t = yes; then
16392
16393cat >>confdefs.h <<_ACEOF
16394#define HAVE_INT64_T 1
16395_ACEOF
16396
16397
16398else
16399 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16400echo "$as_me: error: Type int64_t required but not found" >&2;}
16401 { (exit 1); exit 1; }; }
16402fi
16403
16404{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16405echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16406if test "${ac_cv_type_uint64_t+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16408else
16409 cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h. */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h. */
16415$ac_includes_default
16416typedef uint64_t ac__type_new_;
16417int
16418main ()
16419{
16420if ((ac__type_new_ *) 0)
16421 return 0;
16422if (sizeof (ac__type_new_))
16423 return 0;
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext
16429if { (ac_try="$ac_compile"
16430case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433esac
16434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_compile") 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446esac
16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456esac
16457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458 (eval "$ac_try") 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 ac_cv_type_uint64_t=yes
16463else
16464 echo "$as_me: failed program was:" >&5
16465sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 ac_cv_type_uint64_t=no
16468fi
16469
16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471fi
16472{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16473echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16474if test $ac_cv_type_uint64_t = yes; then
16475
16476cat >>confdefs.h <<_ACEOF
16477#define HAVE_UINT64_T 1
16478_ACEOF
16479
16480
16481else
16482 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16483echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16484if test "${ac_cv_type_u_int64_t+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486else
16487 cat >conftest.$ac_ext <<_ACEOF
16488/* confdefs.h. */
16489_ACEOF
16490cat confdefs.h >>conftest.$ac_ext
16491cat >>conftest.$ac_ext <<_ACEOF
16492/* end confdefs.h. */
16493$ac_includes_default
16494typedef u_int64_t ac__type_new_;
16495int
16496main ()
16497{
16498if ((ac__type_new_ *) 0)
16499 return 0;
16500if (sizeof (ac__type_new_))
16501 return 0;
16502 ;
16503 return 0;
16504}
16505_ACEOF
16506rm -f conftest.$ac_objext
16507if { (ac_try="$ac_compile"
16508case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16511esac
16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_compile") 2>conftest.er1
16514 ac_status=$?
16515 grep -v '^ *+' conftest.er1 >conftest.err
16516 rm -f conftest.er1
16517 cat conftest.err >&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
16520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16521 { (case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_try") 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; } &&
16530 { ac_try='test -s conftest.$ac_objext'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534esac
16535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_type_u_int64_t=yes
16541else
16542 echo "$as_me: failed program was:" >&5
16543sed 's/^/| /' conftest.$ac_ext >&5
16544
16545 ac_cv_type_u_int64_t=no
16546fi
16547
16548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549fi
16550{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16551echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16552if test $ac_cv_type_u_int64_t = yes; then
16553
16554cat >>confdefs.h <<_ACEOF
16555#define HAVE_U_INT64_T 1
16556_ACEOF
16557
16558
16559else
16560 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16561echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16562 { (exit 1); exit 1; }; }
16563fi
16564
16565fi
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16577do
16578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16583else
16584 cat >conftest.$ac_ext <<_ACEOF
16585/* confdefs.h. */
16586_ACEOF
16587cat confdefs.h >>conftest.$ac_ext
16588cat >>conftest.$ac_ext <<_ACEOF
16589/* end confdefs.h. */
16590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16592#define $ac_func innocuous_$ac_func
16593
16594/* System header to define __stub macros and hopefully few prototypes,
16595 which can conflict with char $ac_func (); below.
16596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16597 <limits.h> exists even on freestanding compilers. */
16598
16599#ifdef __STDC__
16600# include <limits.h>
16601#else
16602# include <assert.h>
16603#endif
16604
16605#undef $ac_func
16606
16607/* Override any GCC internal prototype to avoid an error.
16608 Use char because int might match the return type of a GCC
16609 builtin and then its argument prototype would still apply. */
16610#ifdef __cplusplus
16611extern "C"
16612#endif
16613char $ac_func ();
16614/* The GNU C library defines this for functions which it implements
16615 to always fail with ENOSYS. Some functions are actually named
16616 something starting with __ and the normal name is an alias. */
16617#if defined __stub_$ac_func || defined __stub___$ac_func
16618choke me
16619#endif
16620
16621int
16622main ()
16623{
16624return $ac_func ();
16625 ;
16626 return 0;
16627}
16628_ACEOF
16629rm -f conftest.$ac_objext conftest$ac_exeext
16630if { (ac_try="$ac_link"
16631case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_link") 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest$ac_exeext'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
16658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 eval "$as_ac_var=yes"
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 eval "$as_ac_var=no"
16669fi
16670
16671rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673fi
16674ac_res=`eval echo '${'$as_ac_var'}'`
16675 { echo "$as_me:$LINENO: result: $ac_res" >&5
16676echo "${ECHO_T}$ac_res" >&6; }
16677if test `eval echo '${'$as_ac_var'}'` = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16680_ACEOF
16681
16682fi
16683done
16684
16685
16686
16687
16688
16689for ac_func in powf fmodf strtof round
16690do
16691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16692{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16694if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16696else
16697 cat >conftest.$ac_ext <<_ACEOF
16698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
16703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16705#define $ac_func innocuous_$ac_func
16706
16707/* System header to define __stub macros and hopefully few prototypes,
16708 which can conflict with char $ac_func (); below.
16709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16710 <limits.h> exists even on freestanding compilers. */
16711
16712#ifdef __STDC__
16713# include <limits.h>
16714#else
16715# include <assert.h>
16716#endif
16717
16718#undef $ac_func
16719
16720/* Override any GCC internal prototype to avoid an error.
16721 Use char because int might match the return type of a GCC
16722 builtin and then its argument prototype would still apply. */
16723#ifdef __cplusplus
16724extern "C"
16725#endif
16726char $ac_func ();
16727/* The GNU C library defines this for functions which it implements
16728 to always fail with ENOSYS. Some functions are actually named
16729 something starting with __ and the normal name is an alias. */
16730#if defined __stub_$ac_func || defined __stub___$ac_func
16731choke me
16732#endif
16733
16734int
16735main ()
16736{
16737return $ac_func ();
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext conftest$ac_exeext
16743if { (ac_try="$ac_link"
16744case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747esac
16748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_link") 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 eval "$as_ac_var=yes"
16777else
16778 echo "$as_me: failed program was:" >&5
16779sed 's/^/| /' conftest.$ac_ext >&5
16780
16781 eval "$as_ac_var=no"
16782fi
16783
16784rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16786fi
16787ac_res=`eval echo '${'$as_ac_var'}'`
16788 { echo "$as_me:$LINENO: result: $ac_res" >&5
16789echo "${ECHO_T}$ac_res" >&6; }
16790if test `eval echo '${'$as_ac_var'}'` = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16793_ACEOF
16794
16795fi
16796done
16797
16798
16799
16800
16801
16802
16803for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16804do
16805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811 cat >conftest.$ac_ext <<_ACEOF
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
16817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16819#define $ac_func innocuous_$ac_func
16820
16821/* System header to define __stub macros and hopefully few prototypes,
16822 which can conflict with char $ac_func (); below.
16823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824 <limits.h> exists even on freestanding compilers. */
16825
16826#ifdef __STDC__
16827# include <limits.h>
16828#else
16829# include <assert.h>
16830#endif
16831
16832#undef $ac_func
16833
16834/* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840char $ac_func ();
16841/* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844#if defined __stub_$ac_func || defined __stub___$ac_func
16845choke me
16846#endif
16847
16848int
16849main ()
16850{
16851return $ac_func ();
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext conftest$ac_exeext
16857if { (ac_try="$ac_link"
16858case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_link") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest$ac_exeext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_var=yes"
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 eval "$as_ac_var=no"
16896fi
16897
16898rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext conftest.$ac_ext
16900fi
16901ac_res=`eval echo '${'$as_ac_var'}'`
16902 { echo "$as_me:$LINENO: result: $ac_res" >&5
16903echo "${ECHO_T}$ac_res" >&6; }
16904if test `eval echo '${'$as_ac_var'}'` = yes; then
16905 cat >>confdefs.h <<_ACEOF
16906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16907_ACEOF
16908
16909fi
16910done
16911
16912
16913
16914
16915for ac_func in isatty mkdtemp mkstemp
16916do
16917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922else
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16931#define $ac_func innocuous_$ac_func
16932
16933/* System header to define __stub macros and hopefully few prototypes,
16934 which can conflict with char $ac_func (); below.
16935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936 <limits.h> exists even on freestanding compilers. */
16937
16938#ifdef __STDC__
16939# include <limits.h>
16940#else
16941# include <assert.h>
16942#endif
16943
16944#undef $ac_func
16945
16946/* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16949#ifdef __cplusplus
16950extern "C"
16951#endif
16952char $ac_func ();
16953/* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956#if defined __stub_$ac_func || defined __stub___$ac_func
16957choke me
16958#endif
16959
16960int
16961main ()
16962{
16963return $ac_func ();
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext conftest$ac_exeext
16969if { (ac_try="$ac_link"
16970case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16973esac
16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
16976 ac_status=$?
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 eval "$as_ac_var=yes"
17003else
17004 echo "$as_me: failed program was:" >&5
17005sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 eval "$as_ac_var=no"
17008fi
17009
17010rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012fi
17013ac_res=`eval echo '${'$as_ac_var'}'`
17014 { echo "$as_me:$LINENO: result: $ac_res" >&5
17015echo "${ECHO_T}$ac_res" >&6; }
17016if test `eval echo '${'$as_ac_var'}'` = yes; then
17017 cat >>confdefs.h <<_ACEOF
17018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17019_ACEOF
17020
17021fi
17022done
17023
17024
17025
17026
17027
17028
17029
17030for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17031do
17032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037else
17038 cat >conftest.$ac_ext <<_ACEOF
17039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
17044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17046#define $ac_func innocuous_$ac_func
17047
17048/* System header to define __stub macros and hopefully few prototypes,
17049 which can conflict with char $ac_func (); below.
17050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17051 <limits.h> exists even on freestanding compilers. */
17052
17053#ifdef __STDC__
17054# include <limits.h>
17055#else
17056# include <assert.h>
17057#endif
17058
17059#undef $ac_func
17060
17061/* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17064#ifdef __cplusplus
17065extern "C"
17066#endif
17067char $ac_func ();
17068/* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071#if defined __stub_$ac_func || defined __stub___$ac_func
17072choke me
17073#endif
17074
17075int
17076main ()
17077{
17078return $ac_func ();
17079 ;
17080 return 0;
17081}
17082_ACEOF
17083rm -f conftest.$ac_objext conftest$ac_exeext
17084if { (ac_try="$ac_link"
17085case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088esac
17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17091 ac_status=$?
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101esac
17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111esac
17112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 eval "$as_ac_var=yes"
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 eval "$as_ac_var=no"
17123fi
17124
17125rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17127fi
17128ac_res=`eval echo '${'$as_ac_var'}'`
17129 { echo "$as_me:$LINENO: result: $ac_res" >&5
17130echo "${ECHO_T}$ac_res" >&6; }
17131if test `eval echo '${'$as_ac_var'}'` = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17134_ACEOF
17135
17136fi
17137done
17138
17139
17140
17141
17142for ac_func in strerror strerror_r setenv
17143do
17144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149else
17150 cat >conftest.$ac_ext <<_ACEOF
17151/* confdefs.h. */
17152_ACEOF
17153cat confdefs.h >>conftest.$ac_ext
17154cat >>conftest.$ac_ext <<_ACEOF
17155/* end confdefs.h. */
17156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158#define $ac_func innocuous_$ac_func
17159
17160/* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char $ac_func (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17164
17165#ifdef __STDC__
17166# include <limits.h>
17167#else
17168# include <assert.h>
17169#endif
17170
17171#undef $ac_func
17172
17173/* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17176#ifdef __cplusplus
17177extern "C"
17178#endif
17179char $ac_func ();
17180/* The GNU C library defines this for functions which it implements
17181 to always fail with ENOSYS. Some functions are actually named
17182 something starting with __ and the normal name is an alias. */
17183#if defined __stub_$ac_func || defined __stub___$ac_func
17184choke me
17185#endif
17186
17187int
17188main ()
17189{
17190return $ac_func ();
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195rm -f conftest.$ac_objext conftest$ac_exeext
17196if { (ac_try="$ac_link"
17197case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
17220 { (case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223esac
17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17230else
17231 echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 eval "$as_ac_var=no"
17235fi
17236
17237rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17239fi
17240ac_res=`eval echo '${'$as_ac_var'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242echo "${ECHO_T}$ac_res" >&6; }
17243if test `eval echo '${'$as_ac_var'}'` = yes; then
17244 cat >>confdefs.h <<_ACEOF
17245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17246_ACEOF
17247
17248fi
17249done
17250
17251
17252
17253
17254
17255for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17256do
17257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17258{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17260if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
17263 cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17271#define $ac_func innocuous_$ac_func
17272
17273/* System header to define __stub macros and hopefully few prototypes,
17274 which can conflict with char $ac_func (); below.
17275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17276 <limits.h> exists even on freestanding compilers. */
17277
17278#ifdef __STDC__
17279# include <limits.h>
17280#else
17281# include <assert.h>
17282#endif
17283
17284#undef $ac_func
17285
17286/* Override any GCC internal prototype to avoid an error.
17287 Use char because int might match the return type of a GCC
17288 builtin and then its argument prototype would still apply. */
17289#ifdef __cplusplus
17290extern "C"
17291#endif
17292char $ac_func ();
17293/* The GNU C library defines this for functions which it implements
17294 to always fail with ENOSYS. Some functions are actually named
17295 something starting with __ and the normal name is an alias. */
17296#if defined __stub_$ac_func || defined __stub___$ac_func
17297choke me
17298#endif
17299
17300int
17301main ()
17302{
17303return $ac_func ();
17304 ;
17305 return 0;
17306}
17307_ACEOF
17308rm -f conftest.$ac_objext conftest$ac_exeext
17309if { (ac_try="$ac_link"
17310case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313esac
17314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_link") 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17323 { (case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326esac
17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_try") 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336esac
17337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_try") 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 eval "$as_ac_var=yes"
17343else
17344 echo "$as_me: failed program was:" >&5
17345sed 's/^/| /' conftest.$ac_ext >&5
17346
17347 eval "$as_ac_var=no"
17348fi
17349
17350rm -f core conftest.err conftest.$ac_objext \
17351 conftest$ac_exeext conftest.$ac_ext
17352fi
17353ac_res=`eval echo '${'$as_ac_var'}'`
17354 { echo "$as_me:$LINENO: result: $ac_res" >&5
17355echo "${ECHO_T}$ac_res" >&6; }
17356if test `eval echo '${'$as_ac_var'}'` = yes; then
17357 cat >>confdefs.h <<_ACEOF
17358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17359_ACEOF
17360
17361fi
17362done
17363
17364
17365
17366
17367
17368
17369for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17370do
17371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385#define $ac_func innocuous_$ac_func
17386
17387/* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392#ifdef __STDC__
17393# include <limits.h>
17394#else
17395# include <assert.h>
17396#endif
17397
17398#undef $ac_func
17399
17400/* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406char $ac_func ();
17407/* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410#if defined __stub_$ac_func || defined __stub___$ac_func
17411choke me
17412#endif
17413
17414int
17415main ()
17416{
17417return $ac_func ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (ac_try="$ac_link"
17424case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427esac
17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450esac
17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 eval "$as_ac_var=yes"
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 eval "$as_ac_var=no"
17462fi
17463
17464rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466fi
17467ac_res=`eval echo '${'$as_ac_var'}'`
17468 { echo "$as_me:$LINENO: result: $ac_res" >&5
17469echo "${ECHO_T}$ac_res" >&6; }
17470if test `eval echo '${'$as_ac_var'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17473_ACEOF
17474
17475fi
17476done
17477
17478{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17479echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17480if test "${llvm_cv_c_printf_a+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17482else
17483 ac_ext=c
17484ac_cpp='$CPP $CPPFLAGS'
17485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17487ac_compiler_gnu=$ac_cv_c_compiler_gnu
17488
17489 if test "$cross_compiling" = yes; then
17490 llvmac_cv_c_printf_a=no
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493
17494 /* confdefs.h. */
17495_ACEOF
17496cat confdefs.h >>conftest.$ac_ext
17497cat >>conftest.$ac_ext <<_ACEOF
17498/* end confdefs.h. */
17499
17500#include <stdio.h>
17501#include <stdlib.h>
17502
17503int
17504main ()
17505{
17506
17507volatile double A, B;
17508char Buffer[100];
17509A = 1;
17510A /= 10.0;
17511sprintf(Buffer, "%a", A);
17512B = atof(Buffer);
17513if (A != B)
17514 return (1);
17515if (A != 0x1.999999999999ap-4)
17516 return (1);
17517return (0);
17518 ;
17519 return 0;
17520}
17521_ACEOF
17522rm -f conftest$ac_exeext
17523if { (ac_try="$ac_link"
17524case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 llvm_cv_c_printf_a=yes
17543else
17544 echo "$as_me: program exited with status $ac_status" >&5
17545echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548( exit $ac_status )
17549llvmac_cv_c_printf_a=no
17550fi
17551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17552fi
17553
17554
17555 ac_ext=c
17556ac_cpp='$CPP $CPPFLAGS'
17557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17559ac_compiler_gnu=$ac_cv_c_compiler_gnu
17560
17561fi
17562{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17563echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17564 if test "$llvm_cv_c_printf_a" = "yes"; then
17565
17566cat >>confdefs.h <<\_ACEOF
17567#define HAVE_PRINTF_A 1
17568_ACEOF
17569
17570 fi
17571
17572
17573{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17574echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17575if test "${ac_cv_func_rand48+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578 ac_ext=cpp
17579ac_cpp='$CXXCPP $CPPFLAGS'
17580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17583
17584 cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h. */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h. */
17590#include <stdlib.h>
17591int
17592main ()
17593{
17594srand48(0);lrand48();drand48();
17595 ;
17596 return 0;
17597}
17598_ACEOF
17599rm -f conftest.$ac_objext
17600if { (ac_try="$ac_compile"
17601case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604esac
17605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_compile") 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617esac
17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest.$ac_objext'
17624 { (case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17627esac
17628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_try") 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_func_rand48=yes
17634else
17635 echo "$as_me: failed program was:" >&5
17636sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 ac_cv_func_rand48=no
17639fi
17640
17641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642 ac_ext=c
17643ac_cpp='$CPP $CPPFLAGS'
17644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647
17648fi
17649{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17650echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17651
17652if test "$ac_cv_func_rand48" = "yes" ; then
17653
17654cat >>confdefs.h <<\_ACEOF
17655#define HAVE_RAND48 1
17656_ACEOF
17657
17658fi
17659
17660
17661{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17662echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17663if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665else
17666 cat >conftest.$ac_ext <<_ACEOF
17667/* confdefs.h. */
17668_ACEOF
17669cat confdefs.h >>conftest.$ac_ext
17670cat >>conftest.$ac_ext <<_ACEOF
17671/* end confdefs.h. */
17672$ac_includes_default
17673int
17674main ()
17675{
17676#ifndef strerror_s
17677 char *p = (char *) strerror_s;
17678 return !p;
17679#endif
17680
17681 ;
17682 return 0;
17683}
17684_ACEOF
17685rm -f conftest.$ac_objext
17686if { (ac_try="$ac_compile"
17687case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_try") 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713esac
17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_have_decl_strerror_s=yes
17720else
17721 echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724 ac_cv_have_decl_strerror_s=no
17725fi
17726
17727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728fi
17729{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17730echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17731if test $ac_cv_have_decl_strerror_s = yes; then
17732
17733cat >>confdefs.h <<_ACEOF
17734#define HAVE_DECL_STRERROR_S 1
17735_ACEOF
17736
17737
17738else
17739 cat >>confdefs.h <<_ACEOF
17740#define HAVE_DECL_STRERROR_S 0
17741_ACEOF
17742
17743
17744fi
17745
17746
17747
17748if test "$llvm_cv_os_type" = "MingW" ; then
17749 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17750echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17751if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753else
17754 ac_check_lib_save_LIBS=$LIBS
17755LIBS="-lgcc $LIBS"
17756cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h. */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h. */
17762
17763/* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17766#ifdef __cplusplus
17767extern "C"
17768#endif
17769char _alloca ();
17770int
17771main ()
17772{
17773return _alloca ();
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778rm -f conftest.$ac_objext conftest$ac_exeext
17779if { (ac_try="$ac_link"
17780case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_link") 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17793 { (case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796esac
17797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_try") 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; } &&
17802 { ac_try='test -s conftest$ac_exeext'
17803 { (case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806esac
17807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_try") 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; }; then
17812 ac_cv_lib_gcc__alloca=yes
17813else
17814 echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 ac_cv_lib_gcc__alloca=no
17818fi
17819
17820rm -f core conftest.err conftest.$ac_objext \
17821 conftest$ac_exeext conftest.$ac_ext
17822LIBS=$ac_check_lib_save_LIBS
17823fi
17824{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17825echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17826if test $ac_cv_lib_gcc__alloca = yes; then
17827
17828cat >>confdefs.h <<\_ACEOF
17829#define HAVE__ALLOCA 1
17830_ACEOF
17831
17832fi
17833
17834 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17835echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17836if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838else
17839 ac_check_lib_save_LIBS=$LIBS
17840LIBS="-lgcc $LIBS"
17841cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h. */
17847
17848/* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851#ifdef __cplusplus
17852extern "C"
17853#endif
17854char __alloca ();
17855int
17856main ()
17857{
17858return __alloca ();
17859 ;
17860 return 0;
17861}
17862_ACEOF
17863rm -f conftest.$ac_objext conftest$ac_exeext
17864if { (ac_try="$ac_link"
17865case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868esac
17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_try") 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest$ac_exeext'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_lib_gcc___alloca=yes
17898else
17899 echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 ac_cv_lib_gcc___alloca=no
17903fi
17904
17905rm -f core conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907LIBS=$ac_check_lib_save_LIBS
17908fi
17909{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17910echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17911if test $ac_cv_lib_gcc___alloca = yes; then
17912
17913cat >>confdefs.h <<\_ACEOF
17914#define HAVE___ALLOCA 1
17915_ACEOF
17916
17917fi
17918
17919 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17920echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17921if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17923else
17924 ac_check_lib_save_LIBS=$LIBS
17925LIBS="-lgcc $LIBS"
17926cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
17932
17933/* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17936#ifdef __cplusplus
17937extern "C"
17938#endif
17939char __chkstk ();
17940int
17941main ()
17942{
17943return __chkstk ();
17944 ;
17945 return 0;
17946}
17947_ACEOF
17948rm -f conftest.$ac_objext conftest$ac_exeext
17949if { (ac_try="$ac_link"
17950case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953esac
17954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_link") 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17963 { (case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17966esac
17967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_try") 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; } &&
17972 { ac_try='test -s conftest$ac_exeext'
17973 { (case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17976esac
17977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_try") 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_cv_lib_gcc___chkstk=yes
17983else
17984 echo "$as_me: failed program was:" >&5
17985sed 's/^/| /' conftest.$ac_ext >&5
17986
17987 ac_cv_lib_gcc___chkstk=no
17988fi
17989
17990rm -f core conftest.err conftest.$ac_objext \
17991 conftest$ac_exeext conftest.$ac_ext
17992LIBS=$ac_check_lib_save_LIBS
17993fi
17994{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17995echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17996if test $ac_cv_lib_gcc___chkstk = yes; then
17997
17998cat >>confdefs.h <<\_ACEOF
17999#define HAVE___CHKSTK 1
18000_ACEOF
18001
18002fi
18003
18004 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18005echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18006if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008else
18009 ac_check_lib_save_LIBS=$LIBS
18010LIBS="-lgcc $LIBS"
18011cat >conftest.$ac_ext <<_ACEOF
18012/* confdefs.h. */
18013_ACEOF
18014cat confdefs.h >>conftest.$ac_ext
18015cat >>conftest.$ac_ext <<_ACEOF
18016/* end confdefs.h. */
18017
18018/* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021#ifdef __cplusplus
18022extern "C"
18023#endif
18024char ___chkstk ();
18025int
18026main ()
18027{
18028return ___chkstk ();
18029 ;
18030 return 0;
18031}
18032_ACEOF
18033rm -f conftest.$ac_objext conftest$ac_exeext
18034if { (ac_try="$ac_link"
18035case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038esac
18039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_link") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18048 { (case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051esac
18052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_try") 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest$ac_exeext'
18058 { (case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_try") 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 ac_cv_lib_gcc____chkstk=yes
18068else
18069 echo "$as_me: failed program was:" >&5
18070sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 ac_cv_lib_gcc____chkstk=no
18073fi
18074
18075rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077LIBS=$ac_check_lib_save_LIBS
18078fi
18079{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18080echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18081if test $ac_cv_lib_gcc____chkstk = yes; then
18082
18083cat >>confdefs.h <<\_ACEOF
18084#define HAVE____CHKSTK 1
18085_ACEOF
18086
18087fi
18088
18089
18090 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18091echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18092if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18094else
18095 ac_check_lib_save_LIBS=$LIBS
18096LIBS="-lgcc $LIBS"
18097cat >conftest.$ac_ext <<_ACEOF
18098/* confdefs.h. */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h. */
18103
18104/* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18107#ifdef __cplusplus
18108extern "C"
18109#endif
18110char __ashldi3 ();
18111int
18112main ()
18113{
18114return __ashldi3 ();
18115 ;
18116 return 0;
18117}
18118_ACEOF
18119rm -f conftest.$ac_objext conftest$ac_exeext
18120if { (ac_try="$ac_link"
18121case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124esac
18125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_link") 2>conftest.er1
18127 ac_status=$?
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18134 { (case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137esac
18138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_try") 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } &&
18143 { ac_try='test -s conftest$ac_exeext'
18144 { (case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147esac
18148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_try") 2>&5
18150 ac_status=$?
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; }; then
18153 ac_cv_lib_gcc___ashldi3=yes
18154else
18155 echo "$as_me: failed program was:" >&5
18156sed 's/^/| /' conftest.$ac_ext >&5
18157
18158 ac_cv_lib_gcc___ashldi3=no
18159fi
18160
18161rm -f core conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163LIBS=$ac_check_lib_save_LIBS
18164fi
18165{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18166echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18167if test $ac_cv_lib_gcc___ashldi3 = yes; then
18168
18169cat >>confdefs.h <<\_ACEOF
18170#define HAVE___ASHLDI3 1
18171_ACEOF
18172
18173fi
18174
18175 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18176echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18177if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18179else
18180 ac_check_lib_save_LIBS=$LIBS
18181LIBS="-lgcc $LIBS"
18182cat >conftest.$ac_ext <<_ACEOF
18183/* confdefs.h. */
18184_ACEOF
18185cat confdefs.h >>conftest.$ac_ext
18186cat >>conftest.$ac_ext <<_ACEOF
18187/* end confdefs.h. */
18188
18189/* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18192#ifdef __cplusplus
18193extern "C"
18194#endif
18195char __ashrdi3 ();
18196int
18197main ()
18198{
18199return __ashrdi3 ();
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204rm -f conftest.$ac_objext conftest$ac_exeext
18205if { (ac_try="$ac_link"
18206case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209esac
18210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219 { (case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_try") 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_cv_lib_gcc___ashrdi3=yes
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 ac_cv_lib_gcc___ashrdi3=no
18244fi
18245
18246rm -f core conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18248LIBS=$ac_check_lib_save_LIBS
18249fi
18250{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18251echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18252if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18253
18254cat >>confdefs.h <<\_ACEOF
18255#define HAVE___ASHRDI3 1
18256_ACEOF
18257
18258fi
18259
18260 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18261echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18262if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264else
18265 ac_check_lib_save_LIBS=$LIBS
18266LIBS="-lgcc $LIBS"
18267cat >conftest.$ac_ext <<_ACEOF
18268/* confdefs.h. */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h. */
18273
18274/* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18277#ifdef __cplusplus
18278extern "C"
18279#endif
18280char __divdi3 ();
18281int
18282main ()
18283{
18284return __divdi3 ();
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest.$ac_objext conftest$ac_exeext
18290if { (ac_try="$ac_link"
18291case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_link") 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
18303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307esac
18308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; } &&
18313 { ac_try='test -s conftest$ac_exeext'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18317esac
18318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_cv_lib_gcc___divdi3=yes
18324else
18325 echo "$as_me: failed program was:" >&5
18326sed 's/^/| /' conftest.$ac_ext >&5
18327
18328 ac_cv_lib_gcc___divdi3=no
18329fi
18330
18331rm -f core conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333LIBS=$ac_check_lib_save_LIBS
18334fi
18335{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18336echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18337if test $ac_cv_lib_gcc___divdi3 = yes; then
18338
18339cat >>confdefs.h <<\_ACEOF
18340#define HAVE___DIVDI3 1
18341_ACEOF
18342
18343fi
18344
18345 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18346echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18347if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18349else
18350 ac_check_lib_save_LIBS=$LIBS
18351LIBS="-lgcc $LIBS"
18352cat >conftest.$ac_ext <<_ACEOF
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
18358
18359/* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18362#ifdef __cplusplus
18363extern "C"
18364#endif
18365char __fixdfdi ();
18366int
18367main ()
18368{
18369return __fixdfdi ();
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext conftest$ac_exeext
18375if { (ac_try="$ac_link"
18376case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379esac
18380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_link") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_lib_gcc___fixdfdi=yes
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_cv_lib_gcc___fixdfdi=no
18414fi
18415
18416rm -f core conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418LIBS=$ac_check_lib_save_LIBS
18419fi
18420{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18421echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18422if test $ac_cv_lib_gcc___fixdfdi = yes; then
18423
18424cat >>confdefs.h <<\_ACEOF
18425#define HAVE___FIXDFDI 1
18426_ACEOF
18427
18428fi
18429
18430 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18431echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18432if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434else
18435 ac_check_lib_save_LIBS=$LIBS
18436LIBS="-lgcc $LIBS"
18437cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443
18444/* Override any GCC internal prototype to avoid an error.
18445 Use char because int might match the return type of a GCC
18446 builtin and then its argument prototype would still apply. */
18447#ifdef __cplusplus
18448extern "C"
18449#endif
18450char __fixsfdi ();
18451int
18452main ()
18453{
18454return __fixsfdi ();
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext conftest$ac_exeext
18460if { (ac_try="$ac_link"
18461case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18464esac
18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_link") 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477esac
18478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest$ac_exeext'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_cv_lib_gcc___fixsfdi=yes
18494else
18495 echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498 ac_cv_lib_gcc___fixsfdi=no
18499fi
18500
18501rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503LIBS=$ac_check_lib_save_LIBS
18504fi
18505{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18506echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18507if test $ac_cv_lib_gcc___fixsfdi = yes; then
18508
18509cat >>confdefs.h <<\_ACEOF
18510#define HAVE___FIXSFDI 1
18511_ACEOF
18512
18513fi
18514
18515 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18516echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18517if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 ac_check_lib_save_LIBS=$LIBS
18521LIBS="-lgcc $LIBS"
18522cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528
18529/* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18532#ifdef __cplusplus
18533extern "C"
18534#endif
18535char __floatdidf ();
18536int
18537main ()
18538{
18539return __floatdidf ();
18540 ;
18541 return 0;
18542}
18543_ACEOF
18544rm -f conftest.$ac_objext conftest$ac_exeext
18545if { (ac_try="$ac_link"
18546case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_link") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562esac
18563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest$ac_exeext'
18569 { (case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572esac
18573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_try") 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_lib_gcc___floatdidf=yes
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583 ac_cv_lib_gcc___floatdidf=no
18584fi
18585
18586rm -f core conftest.err conftest.$ac_objext \
18587 conftest$ac_exeext conftest.$ac_ext
18588LIBS=$ac_check_lib_save_LIBS
18589fi
18590{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18591echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18592if test $ac_cv_lib_gcc___floatdidf = yes; then
18593
18594cat >>confdefs.h <<\_ACEOF
18595#define HAVE___FLOATDIDF 1
18596_ACEOF
18597
18598fi
18599
18600 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18601echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18602if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 ac_check_lib_save_LIBS=$LIBS
18606LIBS="-lgcc $LIBS"
18607cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613
18614/* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18617#ifdef __cplusplus
18618extern "C"
18619#endif
18620char __lshrdi3 ();
18621int
18622main ()
18623{
18624return __lshrdi3 ();
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext conftest$ac_exeext
18630if { (ac_try="$ac_link"
18631case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647esac
18648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 ac_cv_lib_gcc___lshrdi3=yes
18664else
18665 echo "$as_me: failed program was:" >&5
18666sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_cv_lib_gcc___lshrdi3=no
18669fi
18670
18671rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
18673LIBS=$ac_check_lib_save_LIBS
18674fi
18675{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18676echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18677if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18678
18679cat >>confdefs.h <<\_ACEOF
18680#define HAVE___LSHRDI3 1
18681_ACEOF
18682
18683fi
18684
18685 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18686echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18687if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690 ac_check_lib_save_LIBS=$LIBS
18691LIBS="-lgcc $LIBS"
18692cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698
18699/* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18702#ifdef __cplusplus
18703extern "C"
18704#endif
18705char __moddi3 ();
18706int
18707main ()
18708{
18709return __moddi3 ();
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest.$ac_objext conftest$ac_exeext
18715if { (ac_try="$ac_link"
18716case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_link") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest$ac_exeext'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_cv_lib_gcc___moddi3=yes
18749else
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753 ac_cv_lib_gcc___moddi3=no
18754fi
18755
18756rm -f core conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758LIBS=$ac_check_lib_save_LIBS
18759fi
18760{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18761echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18762if test $ac_cv_lib_gcc___moddi3 = yes; then
18763
18764cat >>confdefs.h <<\_ACEOF
18765#define HAVE___MODDI3 1
18766_ACEOF
18767
18768fi
18769
18770 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18771echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18772if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18774else
18775 ac_check_lib_save_LIBS=$LIBS
18776LIBS="-lgcc $LIBS"
18777cat >conftest.$ac_ext <<_ACEOF
18778/* confdefs.h. */
18779_ACEOF
18780cat confdefs.h >>conftest.$ac_ext
18781cat >>conftest.$ac_ext <<_ACEOF
18782/* end confdefs.h. */
18783
18784/* Override any GCC internal prototype to avoid an error.
18785 Use char because int might match the return type of a GCC
18786 builtin and then its argument prototype would still apply. */
18787#ifdef __cplusplus
18788extern "C"
18789#endif
18790char __udivdi3 ();
18791int
18792main ()
18793{
18794return __udivdi3 ();
18795 ;
18796 return 0;
18797}
18798_ACEOF
18799rm -f conftest.$ac_objext conftest$ac_exeext
18800if { (ac_try="$ac_link"
18801case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_link") 2>conftest.er1
18807 ac_status=$?
18808 grep -v '^ *+' conftest.er1 >conftest.err
18809 rm -f conftest.er1
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
18813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18814 { (case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18817esac
18818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_try") 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try='test -s conftest$ac_exeext'
18824 { (case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827esac
18828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_try") 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_lib_gcc___udivdi3=yes
18834else
18835 echo "$as_me: failed program was:" >&5
18836sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 ac_cv_lib_gcc___udivdi3=no
18839fi
18840
18841rm -f core conftest.err conftest.$ac_objext \
18842 conftest$ac_exeext conftest.$ac_ext
18843LIBS=$ac_check_lib_save_LIBS
18844fi
18845{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18846echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18847if test $ac_cv_lib_gcc___udivdi3 = yes; then
18848
18849cat >>confdefs.h <<\_ACEOF
18850#define HAVE___UDIVDI3 1
18851_ACEOF
18852
18853fi
18854
18855 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18856echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18857if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 ac_check_lib_save_LIBS=$LIBS
18861LIBS="-lgcc $LIBS"
18862cat >conftest.$ac_ext <<_ACEOF
18863/* confdefs.h. */
18864_ACEOF
18865cat confdefs.h >>conftest.$ac_ext
18866cat >>conftest.$ac_ext <<_ACEOF
18867/* end confdefs.h. */
18868
18869/* Override any GCC internal prototype to avoid an error.
18870 Use char because int might match the return type of a GCC
18871 builtin and then its argument prototype would still apply. */
18872#ifdef __cplusplus
18873extern "C"
18874#endif
18875char __umoddi3 ();
18876int
18877main ()
18878{
18879return __umoddi3 ();
18880 ;
18881 return 0;
18882}
18883_ACEOF
18884rm -f conftest.$ac_objext conftest$ac_exeext
18885if { (ac_try="$ac_link"
18886case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_link") 2>conftest.er1
18892 ac_status=$?
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } &&
18898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18899 { (case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902esac
18903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_try") 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try='test -s conftest$ac_exeext'
18909 { (case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18912esac
18913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_try") 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 ac_cv_lib_gcc___umoddi3=yes
18919else
18920 echo "$as_me: failed program was:" >&5
18921sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 ac_cv_lib_gcc___umoddi3=no
18924fi
18925
18926rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928LIBS=$ac_check_lib_save_LIBS
18929fi
18930{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18931echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18932if test $ac_cv_lib_gcc___umoddi3 = yes; then
18933
18934cat >>confdefs.h <<\_ACEOF
18935#define HAVE___UMODDI3 1
18936_ACEOF
18937
18938fi
18939
18940
18941 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18942echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18943if test "${ac_cv_lib_gcc___main+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945else
18946 ac_check_lib_save_LIBS=$LIBS
18947LIBS="-lgcc $LIBS"
18948cat >conftest.$ac_ext <<_ACEOF
18949/* confdefs.h. */
18950_ACEOF
18951cat confdefs.h >>conftest.$ac_ext
18952cat >>conftest.$ac_ext <<_ACEOF
18953/* end confdefs.h. */
18954
18955/* Override any GCC internal prototype to avoid an error.
18956 Use char because int might match the return type of a GCC
18957 builtin and then its argument prototype would still apply. */
18958#ifdef __cplusplus
18959extern "C"
18960#endif
18961char __main ();
18962int
18963main ()
18964{
18965return __main ();
18966 ;
18967 return 0;
18968}
18969_ACEOF
18970rm -f conftest.$ac_objext conftest$ac_exeext
18971if { (ac_try="$ac_link"
18972case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975esac
18976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_link") 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest$ac_exeext'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998esac
18999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_lib_gcc___main=yes
19005else
19006 echo "$as_me: failed program was:" >&5
19007sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 ac_cv_lib_gcc___main=no
19010fi
19011
19012rm -f core conftest.err conftest.$ac_objext \
19013 conftest$ac_exeext conftest.$ac_ext
19014LIBS=$ac_check_lib_save_LIBS
19015fi
19016{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19017echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19018if test $ac_cv_lib_gcc___main = yes; then
19019
19020cat >>confdefs.h <<\_ACEOF
19021#define HAVE___MAIN 1
19022_ACEOF
19023
19024fi
19025
19026 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19027echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19028if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19030else
19031 ac_check_lib_save_LIBS=$LIBS
19032LIBS="-lgcc $LIBS"
19033cat >conftest.$ac_ext <<_ACEOF
19034/* confdefs.h. */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h. */
19039
19040/* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043#ifdef __cplusplus
19044extern "C"
19045#endif
19046char __cmpdi2 ();
19047int
19048main ()
19049{
19050return __cmpdi2 ();
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext conftest$ac_exeext
19056if { (ac_try="$ac_link"
19057case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060esac
19061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest$ac_exeext'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19089 ac_cv_lib_gcc___cmpdi2=yes
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 ac_cv_lib_gcc___cmpdi2=no
19095fi
19096
19097rm -f core conftest.err conftest.$ac_objext \
19098 conftest$ac_exeext conftest.$ac_ext
19099LIBS=$ac_check_lib_save_LIBS
19100fi
19101{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19102echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19103if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19104
19105cat >>confdefs.h <<\_ACEOF
19106#define HAVE___CMPDI2 1
19107_ACEOF
19108
19109fi
19110
19111fi
19112
19113if test "$llvm_cv_os_type" = "MingW" ; then
19114 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19115echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19116 cat >conftest.$ac_ext <<_ACEOF
19117#include <windows.h>
19118#include <imagehlp.h>
19119extern void foo(PENUMLOADED_MODULES_CALLBACK);
19120extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19121_ACEOF
19122rm -f conftest.$ac_objext
19123if { (ac_try="$ac_compile"
19124case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127esac
19128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_compile") 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19137 { (case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140esac
19141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_try") 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest.$ac_objext'
19147 { (case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_try") 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156
19157 { echo "$as_me:$LINENO: result: yes" >&5
19158echo "${ECHO_T}yes" >&6; }
19159 llvm_cv_win32_elmcb_pcstr="PCSTR"
19160
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165
19166 { echo "$as_me:$LINENO: result: no" >&5
19167echo "${ECHO_T}no" >&6; }
19168 llvm_cv_win32_elmcb_pcstr="PSTR"
19169
19170fi
19171
19172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173
19174cat >>confdefs.h <<_ACEOF
19175#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19176_ACEOF
19177
19178fi
19179
19180
19181{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19182echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19183if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19185else
19186 ac_ext=cpp
19187ac_cpp='$CXXCPP $CPPFLAGS'
19188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19191
19192 cat >conftest.$ac_ext <<_ACEOF
19193/* confdefs.h. */
19194_ACEOF
19195cat confdefs.h >>conftest.$ac_ext
19196cat >>conftest.$ac_ext <<_ACEOF
19197/* end confdefs.h. */
19198#include <math.h>
19199int
19200main ()
19201{
19202float f; isnan(f);
19203 ;
19204 return 0;
19205}
19206_ACEOF
19207rm -f conftest.$ac_objext
19208if { (ac_try="$ac_compile"
19209case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212esac
19213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_compile") 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19222 { (case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225esac
19226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_try") 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest.$ac_objext'
19232 { (case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19235esac
19236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_try") 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; }; then
19241 ac_cv_func_isnan_in_math_h=yes
19242else
19243 echo "$as_me: failed program was:" >&5
19244sed 's/^/| /' conftest.$ac_ext >&5
19245
19246 ac_cv_func_isnan_in_math_h=no
19247fi
19248
19249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 ac_ext=c
19251ac_cpp='$CPP $CPPFLAGS'
19252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254ac_compiler_gnu=$ac_cv_c_compiler_gnu
19255
19256fi
19257{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19258echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19259
19260
19261if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19262
19263cat >>confdefs.h <<\_ACEOF
19264#define HAVE_ISNAN_IN_MATH_H 1
19265_ACEOF
19266
19267fi
19268
19269{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19270echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19271if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273else
19274 ac_ext=cpp
19275ac_cpp='$CXXCPP $CPPFLAGS'
19276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19279
19280 cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
19286#include <cmath>
19287int
19288main ()
19289{
19290float f; isnan(f);
19291 ;
19292 return 0;
19293}
19294_ACEOF
19295rm -f conftest.$ac_objext
19296if { (ac_try="$ac_compile"
19297case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300esac
19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_compile") 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } &&
19309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19310 { (case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313esac
19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_try") 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323esac
19324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_try") 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_func_isnan_in_cmath=yes
19330else
19331 echo "$as_me: failed program was:" >&5
19332sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_cv_func_isnan_in_cmath=no
19335fi
19336
19337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 ac_ext=c
19339ac_cpp='$CPP $CPPFLAGS'
19340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343
19344fi
19345{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19346echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19347
19348if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19349
19350cat >>confdefs.h <<\_ACEOF
19351#define HAVE_ISNAN_IN_CMATH 1
19352_ACEOF
19353
19354fi
19355
19356{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19357echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19358if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360else
19361 ac_ext=cpp
19362ac_cpp='$CXXCPP $CPPFLAGS'
19363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19366
19367 cat >conftest.$ac_ext <<_ACEOF
19368/* confdefs.h. */
19369_ACEOF
19370cat confdefs.h >>conftest.$ac_ext
19371cat >>conftest.$ac_ext <<_ACEOF
19372/* end confdefs.h. */
19373#include <cmath>
19374int
19375main ()
19376{
19377float f; std::isnan(f);
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext
19383if { (ac_try="$ac_compile"
19384case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_compile") 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410esac
19411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_func_std_isnan_in_cmath=yes
19417else
19418 echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_cv_func_std_isnan_in_cmath=no
19422fi
19423
19424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19425 ac_ext=c
19426ac_cpp='$CPP $CPPFLAGS'
19427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429ac_compiler_gnu=$ac_cv_c_compiler_gnu
19430
19431fi
19432{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19433echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19434
19435if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19436
19437cat >>confdefs.h <<\_ACEOF
19438#define HAVE_STD_ISNAN_IN_CMATH 1
19439_ACEOF
19440
19441fi
19442
19443
19444{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19445echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19446if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448else
19449 ac_ext=cpp
19450ac_cpp='$CXXCPP $CPPFLAGS'
19451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19454
19455 cat >conftest.$ac_ext <<_ACEOF
19456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
19461#include <math.h>
19462int
19463main ()
19464{
19465float f; isinf(f);
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext
19471if { (ac_try="$ac_compile"
19472case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475esac
19476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_compile") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488esac
19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498esac
19499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_func_isinf_in_math_h=yes
19505else
19506 echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_func_isinf_in_math_h=no
19510fi
19511
19512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 ac_ext=c
19514ac_cpp='$CPP $CPPFLAGS'
19515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517ac_compiler_gnu=$ac_cv_c_compiler_gnu
19518
19519fi
19520{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19521echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19522
19523if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19524
19525cat >>confdefs.h <<\_ACEOF
19526#define HAVE_ISINF_IN_MATH_H 1
19527_ACEOF
19528
19529fi
19530
19531{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19532echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19533if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19535else
19536 ac_ext=cpp
19537ac_cpp='$CXXCPP $CPPFLAGS'
19538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19541
19542 cat >conftest.$ac_ext <<_ACEOF
19543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
19548#include <cmath>
19549int
19550main ()
19551{
19552float f; isinf(f);
19553 ;
19554 return 0;
19555}
19556_ACEOF
19557rm -f conftest.$ac_objext
19558if { (ac_try="$ac_compile"
19559case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562esac
19563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_compile") 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19572 { (case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575esac
19576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_try") 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (case "(($ac_try" in
19583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584 *) ac_try_echo=$ac_try;;
19585esac
19586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587 (eval "$ac_try") 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_cv_func_isinf_in_cmath=yes
19592else
19593 echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
19596 ac_cv_func_isinf_in_cmath=no
19597fi
19598
19599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 ac_ext=c
19601ac_cpp='$CPP $CPPFLAGS'
19602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604ac_compiler_gnu=$ac_cv_c_compiler_gnu
19605
19606fi
19607{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19608echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19609
19610if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19611
19612cat >>confdefs.h <<\_ACEOF
19613#define HAVE_ISINF_IN_CMATH 1
19614_ACEOF
19615
19616fi
19617
19618{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19619echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19620if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622else
19623 ac_ext=cpp
19624ac_cpp='$CXXCPP $CPPFLAGS'
19625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19628
19629 cat >conftest.$ac_ext <<_ACEOF
19630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h. */
19635#include <cmath>
19636int
19637main ()
19638{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019639float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019640 ;
19641 return 0;
19642}
19643_ACEOF
19644rm -f conftest.$ac_objext
19645if { (ac_try="$ac_compile"
19646case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_compile") 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662esac
19663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest.$ac_objext'
19669 { (case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19672esac
19673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_try") 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_cv_func_std_isinf_in_cmath=yes
19679else
19680 echo "$as_me: failed program was:" >&5
19681sed 's/^/| /' conftest.$ac_ext >&5
19682
19683 ac_cv_func_std_isinf_in_cmath=no
19684fi
19685
19686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687 ac_ext=c
19688ac_cpp='$CPP $CPPFLAGS'
19689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692
19693fi
19694{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19695echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19696
19697if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19698
19699cat >>confdefs.h <<\_ACEOF
19700#define HAVE_STD_ISINF_IN_CMATH 1
19701_ACEOF
19702
19703fi
19704
19705{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19706echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19707if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709else
19710 ac_ext=cpp
19711ac_cpp='$CXXCPP $CPPFLAGS'
19712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19715
19716 cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722#include <ieeefp.h>
19723int
19724main ()
19725{
19726float f; finite(f);
19727 ;
19728 return 0;
19729}
19730_ACEOF
19731rm -f conftest.$ac_objext
19732if { (ac_try="$ac_compile"
19733case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_compile") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749esac
19750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759esac
19760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_cv_func_finite_in_ieeefp_h=yes
19766else
19767 echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_cv_func_finite_in_ieeefp_h=no
19771fi
19772
19773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774 ac_ext=c
19775ac_cpp='$CPP $CPPFLAGS'
19776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779
19780fi
19781{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19782echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19783
19784if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19785
19786cat >>confdefs.h <<\_ACEOF
19787#define HAVE_FINITE_IN_IEEEFP_H 1
19788_ACEOF
19789
19790fi
19791
19792
19793
19794if test "$llvm_cv_platform_type" = "Unix" ; then
19795
19796
19797for ac_header in stdlib.h unistd.h
19798do
19799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805fi
19806ac_res=`eval echo '${'$as_ac_Header'}'`
19807 { echo "$as_me:$LINENO: result: $ac_res" >&5
19808echo "${ECHO_T}$ac_res" >&6; }
19809else
19810 # Is the header compilable?
19811{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19813cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h. */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h. */
19819$ac_includes_default
19820#include <$ac_header>
19821_ACEOF
19822rm -f conftest.$ac_objext
19823if { (ac_try="$ac_compile"
19824case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827esac
19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_compile") 2>conftest.er1
19830 ac_status=$?
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19837 { (case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840esac
19841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_try") 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; } &&
19846 { ac_try='test -s conftest.$ac_objext'
19847 { (case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_try") 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 ac_header_compiler=yes
19857else
19858 echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 ac_header_compiler=no
19862fi
19863
19864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19866echo "${ECHO_T}$ac_header_compiler" >&6; }
19867
19868# Is the header present?
19869{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19871cat >conftest.$ac_ext <<_ACEOF
19872/* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h. */
19877#include <$ac_header>
19878_ACEOF
19879if { (ac_try="$ac_cpp conftest.$ac_ext"
19880case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } >/dev/null; then
19892 if test -s conftest.err; then
19893 ac_cpp_err=$ac_c_preproc_warn_flag
19894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19895 else
19896 ac_cpp_err=
19897 fi
19898else
19899 ac_cpp_err=yes
19900fi
19901if test -z "$ac_cpp_err"; then
19902 ac_header_preproc=yes
19903else
19904 echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 ac_header_preproc=no
19908fi
19909
19910rm -f conftest.err conftest.$ac_ext
19911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19912echo "${ECHO_T}$ac_header_preproc" >&6; }
19913
19914# So? What about this header?
19915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19916 yes:no: )
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19921 ac_header_preproc=yes
19922 ;;
19923 no:yes:* )
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19936 ( cat <<\_ASBOX
19937## ------------------------------ ##
19938## Report this to bugs@yourdomain ##
19939## ------------------------------ ##
19940_ASBOX
19941 ) | sed "s/^/$as_me: WARNING: /" >&2
19942 ;;
19943esac
19944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948else
19949 eval "$as_ac_Header=\$ac_header_preproc"
19950fi
19951ac_res=`eval echo '${'$as_ac_Header'}'`
19952 { echo "$as_me:$LINENO: result: $ac_res" >&5
19953echo "${ECHO_T}$ac_res" >&6; }
19954
19955fi
19956if test `eval echo '${'$as_ac_Header'}'` = yes; then
19957 cat >>confdefs.h <<_ACEOF
19958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19959_ACEOF
19960
19961fi
19962
19963done
19964
19965
19966for ac_func in getpagesize
19967do
19968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19973else
19974 cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19982#define $ac_func innocuous_$ac_func
19983
19984/* System header to define __stub macros and hopefully few prototypes,
19985 which can conflict with char $ac_func (); below.
19986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19987 <limits.h> exists even on freestanding compilers. */
19988
19989#ifdef __STDC__
19990# include <limits.h>
19991#else
19992# include <assert.h>
19993#endif
19994
19995#undef $ac_func
19996
19997/* Override any GCC internal prototype to avoid an error.
19998 Use char because int might match the return type of a GCC
19999 builtin and then its argument prototype would still apply. */
20000#ifdef __cplusplus
20001extern "C"
20002#endif
20003char $ac_func ();
20004/* The GNU C library defines this for functions which it implements
20005 to always fail with ENOSYS. Some functions are actually named
20006 something starting with __ and the normal name is an alias. */
20007#if defined __stub_$ac_func || defined __stub___$ac_func
20008choke me
20009#endif
20010
20011int
20012main ()
20013{
20014return $ac_func ();
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext conftest$ac_exeext
20020if { (ac_try="$ac_link"
20021case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_link") 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20034 { (case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_try") 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest$ac_exeext'
20044 { (case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20047esac
20048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_try") 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 eval "$as_ac_var=yes"
20054else
20055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058 eval "$as_ac_var=no"
20059fi
20060
20061rm -f core conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext conftest.$ac_ext
20063fi
20064ac_res=`eval echo '${'$as_ac_var'}'`
20065 { echo "$as_me:$LINENO: result: $ac_res" >&5
20066echo "${ECHO_T}$ac_res" >&6; }
20067if test `eval echo '${'$as_ac_var'}'` = yes; then
20068 cat >>confdefs.h <<_ACEOF
20069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20070_ACEOF
20071
20072fi
20073done
20074
20075{ echo "$as_me:$LINENO: checking for working mmap" >&5
20076echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20077if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20079else
20080 if test "$cross_compiling" = yes; then
20081 ac_cv_func_mmap_fixed_mapped=no
20082else
20083 cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
20089$ac_includes_default
20090/* malloc might have been renamed as rpl_malloc. */
20091#undef malloc
20092
20093/* Thanks to Mike Haertel and Jim Avera for this test.
20094 Here is a matrix of mmap possibilities:
20095 mmap private not fixed
20096 mmap private fixed at somewhere currently unmapped
20097 mmap private fixed at somewhere already mapped
20098 mmap shared not fixed
20099 mmap shared fixed at somewhere currently unmapped
20100 mmap shared fixed at somewhere already mapped
20101 For private mappings, we should verify that changes cannot be read()
20102 back from the file, nor mmap's back from the file at a different
20103 address. (There have been systems where private was not correctly
20104 implemented like the infamous i386 svr4.0, and systems where the
20105 VM page cache was not coherent with the file system buffer cache
20106 like early versions of FreeBSD and possibly contemporary NetBSD.)
20107 For shared mappings, we should conversely verify that changes get
20108 propagated back to all the places they're supposed to be.
20109
20110 Grep wants private fixed already mapped.
20111 The main things grep needs to know about mmap are:
20112 * does it exist and is it safe to write into the mmap'd area
20113 * how to use it (BSD variants) */
20114
20115#include <fcntl.h>
20116#include <sys/mman.h>
20117
20118#if !STDC_HEADERS && !HAVE_STDLIB_H
20119char *malloc ();
20120#endif
20121
20122/* This mess was copied from the GNU getpagesize.h. */
20123#if !HAVE_GETPAGESIZE
20124/* Assume that all systems that can run configure have sys/param.h. */
20125# if !HAVE_SYS_PARAM_H
20126# define HAVE_SYS_PARAM_H 1
20127# endif
20128
20129# ifdef _SC_PAGESIZE
20130# define getpagesize() sysconf(_SC_PAGESIZE)
20131# else /* no _SC_PAGESIZE */
20132# if HAVE_SYS_PARAM_H
20133# include <sys/param.h>
20134# ifdef EXEC_PAGESIZE
20135# define getpagesize() EXEC_PAGESIZE
20136# else /* no EXEC_PAGESIZE */
20137# ifdef NBPG
20138# define getpagesize() NBPG * CLSIZE
20139# ifndef CLSIZE
20140# define CLSIZE 1
20141# endif /* no CLSIZE */
20142# else /* no NBPG */
20143# ifdef NBPC
20144# define getpagesize() NBPC
20145# else /* no NBPC */
20146# ifdef PAGESIZE
20147# define getpagesize() PAGESIZE
20148# endif /* PAGESIZE */
20149# endif /* no NBPC */
20150# endif /* no NBPG */
20151# endif /* no EXEC_PAGESIZE */
20152# else /* no HAVE_SYS_PARAM_H */
20153# define getpagesize() 8192 /* punt totally */
20154# endif /* no HAVE_SYS_PARAM_H */
20155# endif /* no _SC_PAGESIZE */
20156
20157#endif /* no HAVE_GETPAGESIZE */
20158
20159int
20160main ()
20161{
20162 char *data, *data2, *data3;
20163 int i, pagesize;
20164 int fd;
20165
20166 pagesize = getpagesize ();
20167
20168 /* First, make a file with some known garbage in it. */
20169 data = (char *) malloc (pagesize);
20170 if (!data)
20171 return 1;
20172 for (i = 0; i < pagesize; ++i)
20173 *(data + i) = rand ();
20174 umask (0);
20175 fd = creat ("conftest.mmap", 0600);
20176 if (fd < 0)
20177 return 1;
20178 if (write (fd, data, pagesize) != pagesize)
20179 return 1;
20180 close (fd);
20181
20182 /* Next, try to mmap the file at a fixed address which already has
20183 something else allocated at it. If we can, also make sure that
20184 we see the same garbage. */
20185 fd = open ("conftest.mmap", O_RDWR);
20186 if (fd < 0)
20187 return 1;
20188 data2 = (char *) malloc (2 * pagesize);
20189 if (!data2)
20190 return 1;
20191 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20192 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20193 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20194 return 1;
20195 for (i = 0; i < pagesize; ++i)
20196 if (*(data + i) != *(data2 + i))
20197 return 1;
20198
20199 /* Finally, make sure that changes to the mapped area do not
20200 percolate back to the file as seen by read(). (This is a bug on
20201 some variants of i386 svr4.0.) */
20202 for (i = 0; i < pagesize; ++i)
20203 *(data2 + i) = *(data2 + i) + 1;
20204 data3 = (char *) malloc (pagesize);
20205 if (!data3)
20206 return 1;
20207 if (read (fd, data3, pagesize) != pagesize)
20208 return 1;
20209 for (i = 0; i < pagesize; ++i)
20210 if (*(data + i) != *(data3 + i))
20211 return 1;
20212 close (fd);
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest$ac_exeext
20217if { (ac_try="$ac_link"
20218case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221esac
20222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_link") 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230esac
20231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_cv_func_mmap_fixed_mapped=yes
20237else
20238 echo "$as_me: program exited with status $ac_status" >&5
20239echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242( exit $ac_status )
20243ac_cv_func_mmap_fixed_mapped=no
20244fi
20245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20246fi
20247
20248
20249fi
20250{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20251echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20252if test $ac_cv_func_mmap_fixed_mapped = yes; then
20253
20254cat >>confdefs.h <<\_ACEOF
20255#define HAVE_MMAP 1
20256_ACEOF
20257
20258fi
20259rm -f conftest.mmap
20260
20261 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20262echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20263if test "${ac_cv_func_mmap_file+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265else
20266 ac_ext=c
20267ac_cpp='$CPP $CPPFLAGS'
20268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270ac_compiler_gnu=$ac_cv_c_compiler_gnu
20271
20272 if test "$cross_compiling" = yes; then
20273 ac_cv_func_mmap_file=no
20274else
20275 cat >conftest.$ac_ext <<_ACEOF
20276
20277 /* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
20282
20283#include <sys/types.h>
20284#include <sys/mman.h>
20285#include <fcntl.h>
20286
20287int
20288main ()
20289{
20290
20291 int fd;
20292 fd = creat ("foo",0777);
20293 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20294 unlink ("foo");
20295 return (fd != (int) MAP_FAILED);
20296 ;
20297 return 0;
20298}
20299_ACEOF
20300rm -f conftest$ac_exeext
20301if { (ac_try="$ac_link"
20302case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305esac
20306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_link") 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314esac
20315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_cv_func_mmap_file=yes
20321else
20322 echo "$as_me: program exited with status $ac_status" >&5
20323echo "$as_me: failed program was:" >&5
20324sed 's/^/| /' conftest.$ac_ext >&5
20325
20326( exit $ac_status )
20327ac_cv_func_mmap_file=no
20328fi
20329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20330fi
20331
20332
20333 ac_ext=c
20334ac_cpp='$CPP $CPPFLAGS'
20335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338
20339
20340fi
20341{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20342echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20343if test "$ac_cv_func_mmap_file" = yes; then
20344
20345cat >>confdefs.h <<\_ACEOF
20346#define HAVE_MMAP_FILE
20347_ACEOF
20348
20349 MMAP_FILE=yes
20350
20351fi
20352
20353 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20354echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20355if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358 if test "$llvm_cv_os_type" = "Interix" ; then
20359 ac_cv_need_dev_zero_for_mmap=yes
20360 else
20361 ac_cv_need_dev_zero_for_mmap=no
20362 fi
20363
20364fi
20365{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20366echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20367if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20368
20369cat >>confdefs.h <<\_ACEOF
20370#define NEED_DEV_ZERO_FOR_MMAP 1
20371_ACEOF
20372
20373fi
20374
20375 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20376 then
20377 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20378echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20379 fi
20380 if test "$ac_cv_func_mmap_file" = "no"
20381 then
20382 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20383echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20384 fi
20385fi
20386
20387{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20388echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20389ac_ext=cpp
20390ac_cpp='$CXXCPP $CPPFLAGS'
20391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20394
20395cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h. */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h. */
20401int main() {
20402 volatile unsigned long val = 1;
20403 __sync_synchronize();
20404 __sync_val_compare_and_swap(&val, 1, 0);
20405 __sync_add_and_fetch(&val, 1);
20406 __sync_sub_and_fetch(&val, 1);
20407 return 0;
20408 }
20409
20410_ACEOF
20411rm -f conftest.$ac_objext conftest$ac_exeext
20412if { (ac_try="$ac_link"
20413case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416esac
20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_link") 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } &&
20425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439esac
20440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 ac_ext=c
20446ac_cpp='$CPP $CPPFLAGS'
20447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450
20451 { echo "$as_me:$LINENO: result: yes" >&5
20452echo "${ECHO_T}yes" >&6; }
20453
20454cat >>confdefs.h <<\_ACEOF
20455#define LLVM_HAS_ATOMICS 1
20456_ACEOF
20457
20458else
20459 echo "$as_me: failed program was:" >&5
20460sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 { echo "$as_me:$LINENO: result: no" >&5
20463echo "${ECHO_T}no" >&6; }
20464
20465cat >>confdefs.h <<\_ACEOF
20466#define LLVM_HAS_ATOMICS 0
20467_ACEOF
20468
20469 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20470echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20471fi
20472
20473rm -f core conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20475
20476
20477if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20478 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20479echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20480if test "${llvm_cv_linux_mixed+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482else
20483 ac_ext=c
20484ac_cpp='$CPP $CPPFLAGS'
20485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20487ac_compiler_gnu=$ac_cv_c_compiler_gnu
20488
20489 cat >conftest.$ac_ext <<_ACEOF
20490/* confdefs.h. */
20491_ACEOF
20492cat confdefs.h >>conftest.$ac_ext
20493cat >>conftest.$ac_ext <<_ACEOF
20494/* end confdefs.h. */
20495#ifndef __x86_64__
20496 error: Not x86-64 even if uname says so!
20497 #endif
20498
20499int
20500main ()
20501{
20502
20503 ;
20504 return 0;
20505}
20506_ACEOF
20507rm -f conftest.$ac_objext
20508if { (ac_try="$ac_compile"
20509case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512esac
20513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_compile") 2>conftest.er1
20515 ac_status=$?
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20522 { (case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525esac
20526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_try") 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535esac
20536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_try") 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 llvm_cv_linux_mixed=no
20542else
20543 echo "$as_me: failed program was:" >&5
20544sed 's/^/| /' conftest.$ac_ext >&5
20545
20546 llvm_cv_linux_mixed=yes
20547fi
20548
20549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 ac_ext=c
20551ac_cpp='$CPP $CPPFLAGS'
20552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554ac_compiler_gnu=$ac_cv_c_compiler_gnu
20555
20556
20557fi
20558{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20559echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20560
20561 if test "$llvm_cv_linux_mixed" = "yes"; then
20562 llvm_cv_target_arch="x86"
20563 ARCH="x86"
20564 fi
20565fi
20566
20567
20568for ac_func in __dso_handle
20569do
20570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575else
20576 cat >conftest.$ac_ext <<_ACEOF
20577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
20582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20584#define $ac_func innocuous_$ac_func
20585
20586/* System header to define __stub macros and hopefully few prototypes,
20587 which can conflict with char $ac_func (); below.
20588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20589 <limits.h> exists even on freestanding compilers. */
20590
20591#ifdef __STDC__
20592# include <limits.h>
20593#else
20594# include <assert.h>
20595#endif
20596
20597#undef $ac_func
20598
20599/* Override any GCC internal prototype to avoid an error.
20600 Use char because int might match the return type of a GCC
20601 builtin and then its argument prototype would still apply. */
20602#ifdef __cplusplus
20603extern "C"
20604#endif
20605char $ac_func ();
20606/* The GNU C library defines this for functions which it implements
20607 to always fail with ENOSYS. Some functions are actually named
20608 something starting with __ and the normal name is an alias. */
20609#if defined __stub_$ac_func || defined __stub___$ac_func
20610choke me
20611#endif
20612
20613int
20614main ()
20615{
20616return $ac_func ();
20617 ;
20618 return 0;
20619}
20620_ACEOF
20621rm -f conftest.$ac_objext conftest$ac_exeext
20622if { (ac_try="$ac_link"
20623case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>conftest.er1
20629 ac_status=$?
20630 grep -v '^ *+' conftest.er1 >conftest.err
20631 rm -f conftest.er1
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20636 { (case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_try") 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; } &&
20645 { ac_try='test -s conftest$ac_exeext'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649esac
20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 eval "$as_ac_var=yes"
20656else
20657 echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 eval "$as_ac_var=no"
20661fi
20662
20663rm -f core conftest.err conftest.$ac_objext \
20664 conftest$ac_exeext conftest.$ac_ext
20665fi
20666ac_res=`eval echo '${'$as_ac_var'}'`
20667 { echo "$as_me:$LINENO: result: $ac_res" >&5
20668echo "${ECHO_T}$ac_res" >&6; }
20669if test `eval echo '${'$as_ac_var'}'` = yes; then
20670 cat >>confdefs.h <<_ACEOF
20671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20672_ACEOF
20673
20674fi
20675done
20676
20677
20678SHLIBEXT=$libltdl_cv_shlibext
20679
20680
20681SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20682
20683
20684# Translate the various configuration directories and other basic
20685# information into substitutions that will end up in Makefile.config.in
20686# that these configured values can be used by the makefiles
20687if test "${prefix}" = "NONE" ; then
20688 prefix="/usr/local"
20689fi
20690eval LLVM_PREFIX="${prefix}";
20691eval LLVM_BINDIR="${prefix}/bin";
20692eval LLVM_LIBDIR="${prefix}/lib";
20693eval LLVM_DATADIR="${prefix}/share/llvm";
20694eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20695eval LLVM_ETCDIR="${prefix}/etc/llvm";
20696eval LLVM_INCLUDEDIR="${prefix}/include";
20697eval LLVM_INFODIR="${prefix}/info";
20698eval LLVM_MANDIR="${prefix}/man";
20699LLVM_CONFIGTIME=`date`
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711# Place the various directores into the config.h file as #defines so that we
20712# can know about the installation paths within LLVM.
20713
20714cat >>confdefs.h <<_ACEOF
20715#define LLVM_PREFIX "$LLVM_PREFIX"
20716_ACEOF
20717
20718
20719cat >>confdefs.h <<_ACEOF
20720#define LLVM_BINDIR "$LLVM_BINDIR"
20721_ACEOF
20722
20723
20724cat >>confdefs.h <<_ACEOF
20725#define LLVM_LIBDIR "$LLVM_LIBDIR"
20726_ACEOF
20727
20728
20729cat >>confdefs.h <<_ACEOF
20730#define LLVM_DATADIR "$LLVM_DATADIR"
20731_ACEOF
20732
20733
20734cat >>confdefs.h <<_ACEOF
20735#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20736_ACEOF
20737
20738
20739cat >>confdefs.h <<_ACEOF
20740#define LLVM_ETCDIR "$LLVM_ETCDIR"
20741_ACEOF
20742
20743
20744cat >>confdefs.h <<_ACEOF
20745#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20746_ACEOF
20747
20748
20749cat >>confdefs.h <<_ACEOF
20750#define LLVM_INFODIR "$LLVM_INFODIR"
20751_ACEOF
20752
20753
20754cat >>confdefs.h <<_ACEOF
20755#define LLVM_MANDIR "$LLVM_MANDIR"
20756_ACEOF
20757
20758
20759cat >>confdefs.h <<_ACEOF
20760#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20761_ACEOF
20762
20763
20764cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020765#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020766_ACEOF
20767
20768
20769# Determine which bindings to build.
20770if test "$BINDINGS_TO_BUILD" = auto ; then
20771 BINDINGS_TO_BUILD=""
20772 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20773 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20774 fi
20775fi
20776BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20777
20778
20779# This isn't really configurey, but it avoids having to repeat the list in
20780# other files.
20781ALL_BINDINGS=ocaml
20782
20783
20784# Do any work necessary to ensure that bindings have what they need.
20785binding_prereqs_failed=0
20786for a_binding in $BINDINGS_TO_BUILD ; do
20787 case "$a_binding" in
20788 ocaml)
20789 if test "x$OCAMLC" = x ; then
20790 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20791echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20792 binding_prereqs_failed=1
20793 fi
20794 if test "x$OCAMLDEP" = x ; then
20795 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20796echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20797 binding_prereqs_failed=1
20798 fi
20799 if test "x$OCAMLOPT" = x ; then
20800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20801echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20802 fi
20803 if test "x$with_ocaml_libdir" != xauto ; then
20804 OCAML_LIBDIR=$with_ocaml_libdir
20805
20806 else
20807 ocaml_stdlib="`"$OCAMLC" -where`"
20808 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20809 then
20810 # ocaml stdlib is beneath our prefix; use stdlib
20811 OCAML_LIBDIR=$ocaml_stdlib
20812
20813 else
20814 # ocaml stdlib is outside our prefix; use libdir/ocaml
20815 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20816
20817 fi
20818 fi
20819 ;;
20820 esac
20821done
20822if test "$binding_prereqs_failed" = 1 ; then
20823 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20824echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20825 { (exit 1); exit 1; }; }
20826fi
20827
20828{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20829echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20830if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832else
20833 ac_ext=cpp
20834ac_cpp='$CXXCPP $CPPFLAGS'
20835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838
20839 oldcxxflags="$CXXFLAGS"
Benjamin Kramer00171802012-05-05 15:02:39 +000020840 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020841 cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
Benjamin Kramer00171802012-05-05 15:02:39 +000020847template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020848int
20849main ()
20850{
Benjamin Kramer00171802012-05-05 15:02:39 +000020851X<int>().f();
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020852 ;
20853 return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext
20857if { (ac_try="$ac_compile"
20858case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861esac
20862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20864 ac_status=$?
20865 grep -v '^ *+' conftest.er1 >conftest.err
20866 rm -f conftest.er1
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20871 { (case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874esac
20875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_try") 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20884esac
20885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_try") 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 llvm_cv_cxx_visibility_inlines_hidden=yes
20891else
20892 echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 llvm_cv_cxx_visibility_inlines_hidden=no
20896fi
20897
20898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 CXXFLAGS="$oldcxxflags"
20900 ac_ext=c
20901ac_cpp='$CPP $CPPFLAGS'
20902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906
20907fi
20908{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20909echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20910if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20911 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20912
20913else
20914 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20915
20916fi
20917
20918
20919if test "$llvm_cv_link_use_r" = "yes" ; then
20920 RPATH="-Wl,-R"
20921else
20922 RPATH="-Wl,-rpath"
20923fi
20924
20925
20926if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20927 RDYNAMIC="-Wl,-export-dynamic"
20928else
20929 RDYNAMIC=""
20930fi
20931
20932
20933
Reid Spencer421ec052005-02-24 18:53:47 +000020934
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020935ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020936
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020937ac_config_files="$ac_config_files Makefile.llvm.config"
20938
John Criswell451f67f2003-10-16 01:45:35 +000020939
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020940ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020941
20942
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020943ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020944
20945
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020946ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020947
20948
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020949ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020950
20951
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020952ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020953
20954
20955
John Criswell451f67f2003-10-16 01:45:35 +000020956cat >confcache <<\_ACEOF
20957# This file is a shell script that caches the results of configure
20958# tests run on this system so they can be shared between configure
20959# scripts and configure runs, see configure's option --config-cache.
20960# It is not useful on other systems. If it contains results you don't
20961# want to keep, you may remove or edit it.
20962#
20963# config.status only pays attention to the cache file if you give it
20964# the --recheck option to rerun configure.
20965#
20966# `ac_cv_env_foo' variables (set or unset) will be overridden when
20967# loading this file, other *unset* `ac_cv_foo' will be assigned the
20968# following values.
20969
20970_ACEOF
20971
20972# The following way of writing the cache mishandles newlines in values,
20973# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020974# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020975# Ultrix sh set writes to stderr and can't be redirected directly,
20976# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020977(
20978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20979 eval ac_val=\$$ac_var
20980 case $ac_val in #(
20981 *${as_nl}*)
20982 case $ac_var in #(
20983 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20984echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20985 esac
20986 case $ac_var in #(
20987 _ | IFS | as_nl) ;; #(
20988 *) $as_unset $ac_var ;;
20989 esac ;;
20990 esac
20991 done
20992
John Criswell451f67f2003-10-16 01:45:35 +000020993 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020994 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20995 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020996 # `set' does not quote correctly, so add quotes (double-quote
20997 # substitution turns \\\\ into \\, and sed turns \\ into \).
20998 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020999 "s/'/'\\\\''/g;
21000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021001 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021002 *)
21003 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021005 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021006 esac |
21007 sort
21008) |
John Criswell451f67f2003-10-16 01:45:35 +000021009 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021010 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021011 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021012 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21014 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21016 :end' >>confcache
21017if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21018 if test -w "$cache_file"; then
21019 test "x$cache_file" != "x/dev/null" &&
21020 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21021echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021022 cat confcache >$cache_file
21023 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021024 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21025echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021026 fi
21027fi
21028rm -f confcache
21029
21030test "x$prefix" = xNONE && prefix=$ac_default_prefix
21031# Let make expand exec_prefix.
21032test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21033
John Criswell451f67f2003-10-16 01:45:35 +000021034# Transform confdefs.h into DEFS.
21035# Protect against shell expansion while executing Makefile rules.
21036# Protect against Makefile macro expansion.
21037#
21038# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021039# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021040# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021041ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021042t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021043:clear
21044s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021045t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021046s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021047t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021048b any
21049:quote
21050s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21051s/\[/\\&/g
21052s/\]/\\&/g
21053s/\$/$$/g
21054H
21055:any
21056${
21057 g
21058 s/^\n//
21059 s/\n/ /g
21060 p
21061}
21062'
21063DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021064
21065
21066ac_libobjs=
21067ac_ltlibobjs=
21068for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21069 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21071 ac_i=`echo "$ac_i" | sed "$ac_script"`
21072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21073 # will be set to the directory where LIBOBJS objects are built.
21074 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21075 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021076done
21077LIBOBJS=$ac_libobjs
21078
21079LTLIBOBJS=$ac_ltlibobjs
21080
21081
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021082if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21083 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21084Usually this means the macro was only invoked conditionally." >&5
21085echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21086Usually this means the macro was only invoked conditionally." >&2;}
21087 { (exit 1); exit 1; }; }
21088fi
21089if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21090 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21091Usually this means the macro was only invoked conditionally." >&5
21092echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21093Usually this means the macro was only invoked conditionally." >&2;}
21094 { (exit 1); exit 1; }; }
21095fi
John Criswell451f67f2003-10-16 01:45:35 +000021096
21097: ${CONFIG_STATUS=./config.status}
21098ac_clean_files_save=$ac_clean_files
21099ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21100{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21101echo "$as_me: creating $CONFIG_STATUS" >&6;}
21102cat >$CONFIG_STATUS <<_ACEOF
21103#! $SHELL
21104# Generated by $as_me.
21105# Run this file to recreate the current configuration.
21106# Compiler output produced by configure, useful for debugging
21107# configure, is in config.log if it exists.
21108
21109debug=false
21110ac_cs_recheck=false
21111ac_cs_silent=false
21112SHELL=\${CONFIG_SHELL-$SHELL}
21113_ACEOF
21114
21115cat >>$CONFIG_STATUS <<\_ACEOF
21116## --------------------- ##
21117## M4sh Initialization. ##
21118## --------------------- ##
21119
Dan Gohman324f6082009-03-25 00:52:11 +000021120# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021121if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21122 emulate sh
21123 NULLCMD=:
21124 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21125 # is contrary to our usage. Disable this feature.
21126 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021127 setopt NO_GLOB_SUBST
21128else
21129 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021130fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021131BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021132DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021133
John Criswell451f67f2003-10-16 01:45:35 +000021134
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021135# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021136# Avoid depending upon Character Ranges.
21137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21140as_cr_digits='0123456789'
21141as_cr_alnum=$as_cr_Letters$as_cr_digits
21142
21143# The user is always right.
21144if test "${PATH_SEPARATOR+set}" != set; then
21145 echo "#! /bin/sh" >conf$$.sh
21146 echo "exit 0" >>conf$$.sh
21147 chmod +x conf$$.sh
21148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21149 PATH_SEPARATOR=';'
21150 else
21151 PATH_SEPARATOR=:
21152 fi
21153 rm -f conf$$.sh
21154fi
21155
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021156# Support unset when possible.
21157if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21158 as_unset=unset
21159else
21160 as_unset=false
21161fi
John Criswell451f67f2003-10-16 01:45:35 +000021162
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021163
21164# IFS
21165# We need space, tab and new line, in precisely that order. Quoting is
21166# there to prevent editors from complaining about space-tab.
21167# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21168# splitting by setting IFS to empty value.)
21169as_nl='
21170'
21171IFS=" "" $as_nl"
21172
21173# Find who we are. Look in the path if we contain no directory separator.
21174case $0 in
21175 *[\\/]* ) as_myself=$0 ;;
21176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021177for as_dir in $PATH
21178do
21179 IFS=$as_save_IFS
21180 test -z "$as_dir" && as_dir=.
21181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21182done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021183IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021184
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021185 ;;
21186esac
21187# We did not find ourselves, most probably we were run as `sh COMMAND'
21188# in which case we are not to be found in the path.
21189if test "x$as_myself" = x; then
21190 as_myself=$0
21191fi
21192if test ! -f "$as_myself"; then
21193 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21194 { (exit 1); exit 1; }
21195fi
21196
21197# Work around bugs in pre-3.0 UWIN ksh.
21198for as_var in ENV MAIL MAILPATH
21199do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21200done
21201PS1='$ '
21202PS2='> '
21203PS4='+ '
21204
21205# NLS nuisances.
21206for as_var in \
21207 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21208 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21209 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021210do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021211 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21212 eval $as_var=C; export $as_var
21213 else
21214 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21215 fi
21216done
21217
21218# Required to use basename.
21219if expr a : '\(a\)' >/dev/null 2>&1 &&
21220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21221 as_expr=expr
21222else
21223 as_expr=false
21224fi
21225
21226if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21227 as_basename=basename
21228else
21229 as_basename=false
21230fi
21231
21232
21233# Name of the executable.
21234as_me=`$as_basename -- "$0" ||
21235$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21236 X"$0" : 'X\(//\)$' \| \
21237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21238echo X/"$0" |
21239 sed '/^.*\/\([^/][^/]*\)\/*$/{
21240 s//\1/
21241 q
21242 }
21243 /^X\/\(\/\/\)$/{
21244 s//\1/
21245 q
21246 }
21247 /^X\/\(\/\).*/{
21248 s//\1/
21249 q
21250 }
21251 s/.*/./; q'`
21252
21253# CDPATH.
21254$as_unset CDPATH
21255
21256
21257
John Criswell451f67f2003-10-16 01:45:35 +000021258 as_lineno_1=$LINENO
21259 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021260 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021261 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021262
21263 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21264 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021265 # line-number line after each line using $LINENO; the second 'sed'
21266 # does the real work. The second script uses 'N' to pair each
21267 # line-number line with the line containing $LINENO, and appends
21268 # trailing '-' during substitution so that $LINENO is not a special
21269 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021270 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021271 # scripts with optimization help from Paolo Bonzini. Blame Lee
21272 # E. McMahon (1931-1989) for sed's syntax. :-)
21273 sed -n '
21274 p
21275 /[$]LINENO/=
21276 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021277 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021278 s/[$]LINENO.*/&-/
21279 t lineno
21280 b
21281 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021282 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021283 :loop
21284 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021285 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021286 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021287 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021288 chmod +x "$as_me.lineno" ||
21289 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021290 { (exit 1); exit 1; }; }
21291
21292 # Don't try to exec as it changes $[0], causing all sort of problems
21293 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021294 # original and so on. Autoconf is especially sensitive to this).
21295 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021296 # Exit status is that of the last command.
21297 exit
21298}
21299
21300
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021301if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21302 as_dirname=dirname
21303else
21304 as_dirname=false
21305fi
21306
21307ECHO_C= ECHO_N= ECHO_T=
21308case `echo -n x` in
21309-n*)
21310 case `echo 'x\c'` in
21311 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21312 *) ECHO_C='\c';;
21313 esac;;
21314*)
21315 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021316esac
21317
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021318if expr a : '\(a\)' >/dev/null 2>&1 &&
21319 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021320 as_expr=expr
21321else
21322 as_expr=false
21323fi
21324
21325rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021326if test -d conf$$.dir; then
21327 rm -f conf$$.dir/conf$$.file
21328else
21329 rm -f conf$$.dir
21330 mkdir conf$$.dir
21331fi
John Criswell451f67f2003-10-16 01:45:35 +000021332echo >conf$$.file
21333if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021334 as_ln_s='ln -s'
21335 # ... but there are two gotchas:
21336 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21337 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21338 # In both cases, we have to default to `cp -p'.
21339 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021340 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021341elif ln conf$$.file conf$$ 2>/dev/null; then
21342 as_ln_s=ln
21343else
21344 as_ln_s='cp -p'
21345fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021346rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21347rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021348
21349if mkdir -p . 2>/dev/null; then
21350 as_mkdir_p=:
21351else
Reid Spencer9964cd82005-01-01 09:26:55 +000021352 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021353 as_mkdir_p=false
21354fi
21355
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021356# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21357# systems may use methods other than mode bits to determine executability.
21358cat >conf$$.file <<_ASEOF
21359#! /bin/sh
21360exit 0
21361_ASEOF
21362chmod +x conf$$.file
21363if test -x conf$$.file >/dev/null 2>&1; then
21364 as_executable_p="test -x"
21365else
21366 as_executable_p=:
21367fi
21368rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021369
21370# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021371as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021372
21373# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021374as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021375
21376
John Criswell451f67f2003-10-16 01:45:35 +000021377exec 6>&1
21378
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021379# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021380# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021381# values after options handling.
21382ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021383This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021384generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021385
21386 CONFIG_FILES = $CONFIG_FILES
21387 CONFIG_HEADERS = $CONFIG_HEADERS
21388 CONFIG_LINKS = $CONFIG_LINKS
21389 CONFIG_COMMANDS = $CONFIG_COMMANDS
21390 $ $0 $@
21391
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021392on `(hostname || uname -n) 2>/dev/null | sed 1q`
21393"
21394
John Criswell451f67f2003-10-16 01:45:35 +000021395_ACEOF
21396
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021397cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021398# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021399config_files="$ac_config_files"
21400config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021401
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021402_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021403
21404cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021405ac_cs_usage="\
21406\`$as_me' instantiates files from templates according to the
21407current configuration.
21408
21409Usage: $0 [OPTIONS] [FILE]...
21410
21411 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021412 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021413 -q, --quiet do not print progress messages
21414 -d, --debug don't remove temporary files
21415 --recheck update $as_me by reconfiguring in the same conditions
21416 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021417 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021418
21419Configuration files:
21420$config_files
21421
21422Configuration commands:
21423$config_commands
21424
21425Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021426
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021427_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021428cat >>$CONFIG_STATUS <<_ACEOF
21429ac_cs_version="\\
21430[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021431configured by $0, generated by GNU Autoconf 2.60,
21432 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021433
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021434Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021435This config.status script is free software; the Free Software Foundation
21436gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021437
21438ac_pwd='$ac_pwd'
21439srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021440INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021441_ACEOF
21442
21443cat >>$CONFIG_STATUS <<\_ACEOF
21444# If no file are specified by the user, then we need to provide default
21445# value. By we need to know if files were specified by the user.
21446ac_need_defaults=:
21447while test $# != 0
21448do
21449 case $1 in
21450 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021451 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21452 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021453 ac_shift=:
21454 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021455 *)
John Criswell451f67f2003-10-16 01:45:35 +000021456 ac_option=$1
21457 ac_optarg=$2
21458 ac_shift=shift
21459 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021460 esac
21461
21462 case $ac_option in
21463 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21465 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21467 echo "$ac_cs_version"; exit ;;
21468 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021469 debug=: ;;
21470 --file | --fil | --fi | --f )
21471 $ac_shift
21472 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21473 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021474 --he | --h | --help | --hel | -h )
21475 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21477 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21478 ac_cs_silent=: ;;
21479
21480 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021481 -*) { echo "$as_me: error: unrecognized option: $1
21482Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021483 { (exit 1); exit 1; }; } ;;
21484
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021485 *) ac_config_targets="$ac_config_targets $1"
21486 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021487
21488 esac
21489 shift
21490done
21491
21492ac_configure_extra_args=
21493
21494if $ac_cs_silent; then
21495 exec 6>/dev/null
21496 ac_configure_extra_args="$ac_configure_extra_args --silent"
21497fi
21498
21499_ACEOF
21500cat >>$CONFIG_STATUS <<_ACEOF
21501if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021502 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21503 CONFIG_SHELL=$SHELL
21504 export CONFIG_SHELL
21505 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021506fi
21507
21508_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021509cat >>$CONFIG_STATUS <<\_ACEOF
21510exec 5>>config.log
21511{
21512 echo
21513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21514## Running $as_me. ##
21515_ASBOX
21516 echo "$ac_log"
21517} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021518
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021519_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021520cat >>$CONFIG_STATUS <<_ACEOF
21521#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021522# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021523#
Reid Spencer421ec052005-02-24 18:53:47 +000021524llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021525
21526_ACEOF
21527
Dan Gohman324f6082009-03-25 00:52:11 +000021528cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021529
21530# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021531for ac_config_target in $ac_config_targets
21532do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021533 case $ac_config_target in
21534 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21535 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021536 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021537 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21538 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21539 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21540 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21541 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21542
John Criswell451f67f2003-10-16 01:45:35 +000021543 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21544echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21545 { (exit 1); exit 1; }; };;
21546 esac
21547done
21548
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021549
John Criswell451f67f2003-10-16 01:45:35 +000021550# If the user did not use the arguments to specify the items to instantiate,
21551# then the envvar interface is used. Set only those that are not.
21552# We use the long form for the default assignment because of an extremely
21553# bizarre bug on SunOS 4.1.3.
21554if $ac_need_defaults; then
21555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21557fi
21558
21559# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021560# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021561# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021562# Hook for its removal unless debugging.
21563# Note that there is a small window in which the directory will not be cleaned:
21564# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021565$debug ||
21566{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021567 tmp=
21568 trap 'exit_status=$?
21569 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21570' 0
John Criswell451f67f2003-10-16 01:45:35 +000021571 trap '{ (exit 1); exit 1; }' 1 2 13 15
21572}
John Criswell451f67f2003-10-16 01:45:35 +000021573# Create a (secure) tmp directory for tmp files.
21574
21575{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021577 test -n "$tmp" && test -d "$tmp"
21578} ||
21579{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021580 tmp=./conf$$-$RANDOM
21581 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021582} ||
21583{
21584 echo "$me: cannot create a temporary directory in ." >&2
21585 { (exit 1); exit 1; }
21586}
21587
John Criswell451f67f2003-10-16 01:45:35 +000021588#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021589# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021590#
21591
21592# No need to generate the scripts if there are no CONFIG_FILES.
21593# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021594if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021595
21596_ACEOF
21597
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021598
21599
21600ac_delim='%!_!# '
21601for ac_last_try in false false false false false :; do
21602 cat >conf$$subs.sed <<_ACEOF
21603SHELL!$SHELL$ac_delim
21604PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21605PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21606PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21607PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21608PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21609PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21610exec_prefix!$exec_prefix$ac_delim
21611prefix!$prefix$ac_delim
21612program_transform_name!$program_transform_name$ac_delim
21613bindir!$bindir$ac_delim
21614sbindir!$sbindir$ac_delim
21615libexecdir!$libexecdir$ac_delim
21616datarootdir!$datarootdir$ac_delim
21617datadir!$datadir$ac_delim
21618sysconfdir!$sysconfdir$ac_delim
21619sharedstatedir!$sharedstatedir$ac_delim
21620localstatedir!$localstatedir$ac_delim
21621includedir!$includedir$ac_delim
21622oldincludedir!$oldincludedir$ac_delim
21623docdir!$docdir$ac_delim
21624infodir!$infodir$ac_delim
21625htmldir!$htmldir$ac_delim
21626dvidir!$dvidir$ac_delim
21627pdfdir!$pdfdir$ac_delim
21628psdir!$psdir$ac_delim
21629libdir!$libdir$ac_delim
21630localedir!$localedir$ac_delim
21631mandir!$mandir$ac_delim
21632DEFS!$DEFS$ac_delim
21633ECHO_C!$ECHO_C$ac_delim
21634ECHO_N!$ECHO_N$ac_delim
21635ECHO_T!$ECHO_T$ac_delim
21636LIBS!$LIBS$ac_delim
21637build_alias!$build_alias$ac_delim
21638host_alias!$host_alias$ac_delim
21639target_alias!$target_alias$ac_delim
21640LLVM_SRC!$LLVM_SRC$ac_delim
21641LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021642LLVM_VERSION!$LLVM_VERSION$ac_delim
21643CC!$CC$ac_delim
21644CFLAGS!$CFLAGS$ac_delim
21645LDFLAGS!$LDFLAGS$ac_delim
21646CPPFLAGS!$CPPFLAGS$ac_delim
21647ac_ct_CC!$ac_ct_CC$ac_delim
21648EXEEXT!$EXEEXT$ac_delim
21649OBJEXT!$OBJEXT$ac_delim
21650CXX!$CXX$ac_delim
21651CXXFLAGS!$CXXFLAGS$ac_delim
21652ac_ct_CXX!$ac_ct_CXX$ac_delim
21653CPP!$CPP$ac_delim
21654ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21655LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21656subdirs!$subdirs$ac_delim
21657build!$build$ac_delim
21658build_cpu!$build_cpu$ac_delim
21659build_vendor!$build_vendor$ac_delim
21660build_os!$build_os$ac_delim
21661host!$host$ac_delim
21662host_cpu!$host_cpu$ac_delim
21663host_vendor!$host_vendor$ac_delim
21664host_os!$host_os$ac_delim
21665target!$target$ac_delim
21666target_cpu!$target_cpu$ac_delim
21667target_vendor!$target_vendor$ac_delim
21668target_os!$target_os$ac_delim
21669OS!$OS$ac_delim
21670HOST_OS!$HOST_OS$ac_delim
21671TARGET_OS!$TARGET_OS$ac_delim
21672LINKALL!$LINKALL$ac_delim
21673NOLINKALL!$NOLINKALL$ac_delim
21674LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21675LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21676ARCH!$ARCH$ac_delim
21677ENDIAN!$ENDIAN$ac_delim
21678GREP!$GREP$ac_delim
21679EGREP!$EGREP$ac_delim
21680LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21681BUILD_CC!$BUILD_CC$ac_delim
21682BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21683BUILD_CXX!$BUILD_CXX$ac_delim
21684CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021685ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Craig Topper8ee39632012-11-12 06:11:12 +000021686ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021687ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21688ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21689DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Craig Topper8ee39632012-11-12 06:11:12 +000021690ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021691ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21692EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21693DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21694DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21695JIT!$JIT$ac_delim
21696TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21697ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21698ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21699ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021700_ACEOF
21701
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021702 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021703 break
21704 elif $ac_last_try; then
21705 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21706echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21707 { (exit 1); exit 1; }; }
21708 else
21709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021710 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021711done
21712
21713ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21714if test -n "$ac_eof"; then
21715 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21716 ac_eof=`expr $ac_eof + 1`
21717fi
21718
21719cat >>$CONFIG_STATUS <<_ACEOF
21720cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021721/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21722_ACEOF
21723sed '
21724s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21725s/^/s,@/; s/!/@,|#_!!_#|/
21726:n
21727t n
21728s/'"$ac_delim"'$/,g/; t
21729s/$/\\/; p
21730N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21731' >>$CONFIG_STATUS <conf$$subs.sed
21732rm -f conf$$subs.sed
21733cat >>$CONFIG_STATUS <<_ACEOF
21734CEOF$ac_eof
21735_ACEOF
21736
21737
21738ac_delim='%!_!# '
21739for ac_last_try in false false false false false :; do
21740 cat >conf$$subs.sed <<_ACEOF
Craig Topper8ee39632012-11-12 06:11:12 +000021741ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21742ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021743ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021744ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21745ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21746TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21747LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21748LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21749LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21750LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021751OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21752EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21753EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21754BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21755NM!$NM$ac_delim
21756ifGNUmake!$ifGNUmake$ac_delim
21757LN_S!$LN_S$ac_delim
21758CMP!$CMP$ac_delim
21759CP!$CP$ac_delim
21760DATE!$DATE$ac_delim
21761FIND!$FIND$ac_delim
21762MKDIR!$MKDIR$ac_delim
21763MV!$MV$ac_delim
21764RANLIB!$RANLIB$ac_delim
21765AR!$AR$ac_delim
21766RM!$RM$ac_delim
21767SED!$SED$ac_delim
21768TAR!$TAR$ac_delim
21769BINPWD!$BINPWD$ac_delim
21770GRAPHVIZ!$GRAPHVIZ$ac_delim
21771DOT!$DOT$ac_delim
21772FDP!$FDP$ac_delim
21773NEATO!$NEATO$ac_delim
21774TWOPI!$TWOPI$ac_delim
21775CIRCO!$CIRCO$ac_delim
21776GV!$GV$ac_delim
21777DOTTY!$DOTTY$ac_delim
21778XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021779INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21780INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21781INSTALL_DATA!$INSTALL_DATA$ac_delim
21782BZIP2!$BZIP2$ac_delim
21783CAT!$CAT$ac_delim
21784DOXYGEN!$DOXYGEN$ac_delim
21785GROFF!$GROFF$ac_delim
21786GZIPBIN!$GZIPBIN$ac_delim
21787POD2HTML!$POD2HTML$ac_delim
21788POD2MAN!$POD2MAN$ac_delim
21789PDFROFF!$PDFROFF$ac_delim
21790RUNTEST!$RUNTEST$ac_delim
21791TCLSH!$TCLSH$ac_delim
21792ZIP!$ZIP$ac_delim
21793OCAMLC!$OCAMLC$ac_delim
21794OCAMLOPT!$OCAMLOPT$ac_delim
21795OCAMLDEP!$OCAMLDEP$ac_delim
21796OCAMLDOC!$OCAMLDOC$ac_delim
21797GAS!$GAS$ac_delim
21798HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21799INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21800INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21801CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21802CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21803LIBADD_DL!$LIBADD_DL$ac_delim
21804NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21805NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021806COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021807USE_UDIS86!$USE_UDIS86$ac_delim
21808USE_OPROFILE!$USE_OPROFILE$ac_delim
21809HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21810HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21811MMAP_FILE!$MMAP_FILE$ac_delim
21812SHLIBEXT!$SHLIBEXT$ac_delim
21813SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21814LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21815LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21816LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21817LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21818LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21819LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21820LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21821LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21822LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21823LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21824BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21825ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21826OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21827ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21828RPATH!$RPATH$ac_delim
21829RDYNAMIC!$RDYNAMIC$ac_delim
21830LIBOBJS!$LIBOBJS$ac_delim
21831LTLIBOBJS!$LTLIBOBJS$ac_delim
21832_ACEOF
21833
Craig Topper8ee39632012-11-12 06:11:12 +000021834 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021835 break
21836 elif $ac_last_try; then
21837 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21838echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21839 { (exit 1); exit 1; }; }
21840 else
21841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21842 fi
21843done
21844
21845ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21846if test -n "$ac_eof"; then
21847 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21848 ac_eof=`expr $ac_eof + 1`
21849fi
21850
21851cat >>$CONFIG_STATUS <<_ACEOF
21852cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021853/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21854_ACEOF
21855sed '
21856s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21857s/^/s,@/; s/!/@,|#_!!_#|/
21858:n
21859t n
21860s/'"$ac_delim"'$/,g/; t
21861s/$/\\/; p
21862N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21863' >>$CONFIG_STATUS <conf$$subs.sed
21864rm -f conf$$subs.sed
21865cat >>$CONFIG_STATUS <<_ACEOF
21866:end
21867s/|#_!!_#|//g
21868CEOF$ac_eof
21869_ACEOF
21870
21871
21872# VPATH may cause trouble with some makes, so we remove $(srcdir),
21873# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21874# trailing colons and then remove the whole line if VPATH becomes empty
21875# (actually we leave an empty line to preserve line numbers).
21876if test "x$srcdir" = x.; then
21877 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21878s/:*\$(srcdir):*/:/
21879s/:*\${srcdir}:*/:/
21880s/:*@srcdir@:*/:/
21881s/^\([^=]*=[ ]*\):*/\1/
21882s/:*$//
21883s/^[^=]*=[ ]*$//
21884}'
21885fi
21886
21887cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021888fi # test -n "$CONFIG_FILES"
21889
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021890
21891for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21892do
21893 case $ac_tag in
21894 :[FHLC]) ac_mode=$ac_tag; continue;;
21895 esac
21896 case $ac_mode$ac_tag in
21897 :[FHL]*:*);;
21898 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21899echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21900 { (exit 1); exit 1; }; };;
21901 :[FH]-) ac_tag=-:-;;
21902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21903 esac
21904 ac_save_IFS=$IFS
21905 IFS=:
21906 set x $ac_tag
21907 IFS=$ac_save_IFS
21908 shift
21909 ac_file=$1
21910 shift
21911
21912 case $ac_mode in
21913 :L) ac_source=$1;;
21914 :[FH])
21915 ac_file_inputs=
21916 for ac_f
21917 do
21918 case $ac_f in
21919 -) ac_f="$tmp/stdin";;
21920 *) # Look for the file first in the build tree, then in the source tree
21921 # (if the path is not absolute). The absolute path cannot be DOS-style,
21922 # because $ac_f cannot contain `:'.
21923 test -f "$ac_f" ||
21924 case $ac_f in
21925 [\\/$]*) false;;
21926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21927 esac ||
21928 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21929echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21930 { (exit 1); exit 1; }; };;
21931 esac
21932 ac_file_inputs="$ac_file_inputs $ac_f"
21933 done
21934
21935 # Let's still pretend it is `configure' which instantiates (i.e., don't
21936 # use $as_me), people would be surprised to read:
21937 # /* config.h. Generated by config.status. */
21938 configure_input="Generated from "`IFS=:
21939 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21940 if test x"$ac_file" != x-; then
21941 configure_input="$ac_file. $configure_input"
21942 { echo "$as_me:$LINENO: creating $ac_file" >&5
21943echo "$as_me: creating $ac_file" >&6;}
21944 fi
21945
21946 case $ac_tag in
21947 *:-:* | *:-) cat >"$tmp/stdin";;
21948 esac
21949 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021950 esac
21951
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021952 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021953$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021954 X"$ac_file" : 'X\(//\)[^/]' \| \
21955 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021956 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021957echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21959 s//\1/
21960 q
21961 }
21962 /^X\(\/\/\)[^/].*/{
21963 s//\1/
21964 q
21965 }
21966 /^X\(\/\/\)$/{
21967 s//\1/
21968 q
21969 }
21970 /^X\(\/\).*/{
21971 s//\1/
21972 q
21973 }
21974 s/.*/./; q'`
21975 { as_dir="$ac_dir"
21976 case $as_dir in #(
21977 -*) as_dir=./$as_dir;;
21978 esac
21979 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021980 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021981 while :; do
21982 case $as_dir in #(
21983 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21984 *) as_qdir=$as_dir;;
21985 esac
21986 as_dirs="'$as_qdir' $as_dirs"
21987 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021989 X"$as_dir" : 'X\(//\)[^/]' \| \
21990 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021992echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21994 s//\1/
21995 q
21996 }
21997 /^X\(\/\/\)[^/].*/{
21998 s//\1/
21999 q
22000 }
22001 /^X\(\/\/\)$/{
22002 s//\1/
22003 q
22004 }
22005 /^X\(\/\).*/{
22006 s//\1/
22007 q
22008 }
22009 s/.*/./; q'`
22010 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022011 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022012 test -z "$as_dirs" || eval "mkdir $as_dirs"
22013 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22014echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022015 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022016 ac_builddir=.
22017
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022018case "$ac_dir" in
22019.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22020*)
John Criswell451f67f2003-10-16 01:45:35 +000022021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022022 # A ".." for each directory in $ac_dir_suffix.
22023 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22024 case $ac_top_builddir_sub in
22025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22027 esac ;;
22028esac
22029ac_abs_top_builddir=$ac_pwd
22030ac_abs_builddir=$ac_pwd$ac_dir_suffix
22031# for backward compatibility:
22032ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022033
22034case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022035 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022036 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022037 ac_top_srcdir=$ac_top_builddir_sub
22038 ac_abs_top_srcdir=$ac_pwd ;;
22039 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022040 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022041 ac_top_srcdir=$srcdir
22042 ac_abs_top_srcdir=$srcdir ;;
22043 *) # Relative name.
22044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22045 ac_top_srcdir=$ac_top_build_prefix$srcdir
22046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022047esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022048ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022049
Dan Gohman324f6082009-03-25 00:52:11 +000022050
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022051 case $ac_mode in
22052 :F)
22053 #
22054 # CONFIG_FILE
22055 #
Dan Gohman324f6082009-03-25 00:52:11 +000022056
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022057 case $INSTALL in
22058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22060 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022061_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022062
22063cat >>$CONFIG_STATUS <<\_ACEOF
22064# If the template does not know about datarootdir, expand it.
22065# FIXME: This hack should be removed a few years after 2.60.
22066ac_datarootdir_hack=; ac_datarootdir_seen=
22067
22068case `sed -n '/datarootdir/ {
22069 p
22070 q
22071}
22072/@datadir@/p
22073/@docdir@/p
22074/@infodir@/p
22075/@localedir@/p
22076/@mandir@/p
22077' $ac_file_inputs` in
22078*datarootdir*) ac_datarootdir_seen=yes;;
22079*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22080 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22081echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22082_ACEOF
22083cat >>$CONFIG_STATUS <<_ACEOF
22084 ac_datarootdir_hack='
22085 s&@datadir@&$datadir&g
22086 s&@docdir@&$docdir&g
22087 s&@infodir@&$infodir&g
22088 s&@localedir@&$localedir&g
22089 s&@mandir@&$mandir&g
22090 s&\\\${datarootdir}&$datarootdir&g' ;;
22091esac
22092_ACEOF
22093
22094# Neutralize VPATH when `$srcdir' = `.'.
22095# Shell code in configure.ac might set extrasub.
22096# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022097cat >>$CONFIG_STATUS <<_ACEOF
22098 sed "$ac_vpsub
22099$extrasub
22100_ACEOF
22101cat >>$CONFIG_STATUS <<\_ACEOF
22102:t
22103/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022104s&@configure_input@&$configure_input&;t t
22105s&@top_builddir@&$ac_top_builddir_sub&;t t
22106s&@srcdir@&$ac_srcdir&;t t
22107s&@abs_srcdir@&$ac_abs_srcdir&;t t
22108s&@top_srcdir@&$ac_top_srcdir&;t t
22109s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22110s&@builddir@&$ac_builddir&;t t
22111s&@abs_builddir@&$ac_abs_builddir&;t t
22112s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022113s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022114$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022115" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022116
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022117test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22118 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22120 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22121which seems to be undefined. Please make sure it is defined." >&5
22122echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22123which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022124
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022125 rm -f "$tmp/stdin"
22126 case $ac_file in
22127 -) cat "$tmp/out"; rm -f "$tmp/out";;
22128 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022129 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022130 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022131
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022132
22133 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22134echo "$as_me: executing $ac_file commands" >&6;}
22135 ;;
22136 esac
22137
22138
22139 case $ac_file$ac_mode in
Benjamin Kramer00171802012-05-05 15:02:39 +000022140 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22141 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22142 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22143 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22144 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22145 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22146 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22147 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22148 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22149 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022150
22151 esac
22152done # for ac_tag
22153
John Criswell451f67f2003-10-16 01:45:35 +000022154
22155{ (exit 0); exit 0; }
22156_ACEOF
22157chmod +x $CONFIG_STATUS
22158ac_clean_files=$ac_clean_files_save
22159
22160
22161# configure is writing to config.log, and then calls config.status.
22162# config.status does its own redirection, appending to config.log.
22163# Unfortunately, on DOS this fails, as config.log is still kept open
22164# by configure, so config.status won't be able to write to it; its
22165# output is simply discarded. So we exec the FD to /dev/null,
22166# effectively closing config.log, so it can be properly (re)opened and
22167# appended to by config.status. When coming back to configure, we
22168# need to make the FD available again.
22169if test "$no_create" != yes; then
22170 ac_cs_success=:
22171 ac_config_status_args=
22172 test "$silent" = yes &&
22173 ac_config_status_args="$ac_config_status_args --quiet"
22174 exec 5>/dev/null
22175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22176 exec 5>>config.log
22177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22178 # would make configure fail if this is the last instruction.
22179 $ac_cs_success || { (exit 1); exit 1; }
22180fi
22181
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022182#
22183# CONFIG_SUBDIRS section.
22184#
22185if test "$no_recursion" != yes; then
22186
22187 # Remove --cache-file and --srcdir arguments so they do not pile up.
22188 ac_sub_configure_args=
22189 ac_prev=
22190 eval "set x $ac_configure_args"
22191 shift
22192 for ac_arg
22193 do
22194 if test -n "$ac_prev"; then
22195 ac_prev=
22196 continue
22197 fi
22198 case $ac_arg in
22199 -cache-file | --cache-file | --cache-fil | --cache-fi \
22200 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22201 ac_prev=cache_file ;;
22202 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22203 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22204 | --c=*)
22205 ;;
22206 --config-cache | -C)
22207 ;;
22208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22209 ac_prev=srcdir ;;
22210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22211 ;;
22212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22213 ac_prev=prefix ;;
22214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22215 ;;
22216 *)
22217 case $ac_arg in
22218 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22219 esac
22220 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22221 esac
22222 done
22223
22224 # Always prepend --prefix to ensure using the same prefix
22225 # in subdir configurations.
22226 ac_arg="--prefix=$prefix"
22227 case $ac_arg in
22228 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22229 esac
22230 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22231
22232 ac_popdir=`pwd`
22233 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22234
22235 # Do not complain, so a configure script can configure whichever
22236 # parts of a large source tree are present.
22237 test -d "$srcdir/$ac_dir" || continue
22238
22239 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22240 echo "$as_me:$LINENO: $ac_msg" >&5
22241 echo "$ac_msg" >&6
22242 { as_dir="$ac_dir"
22243 case $as_dir in #(
22244 -*) as_dir=./$as_dir;;
22245 esac
22246 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22247 as_dirs=
22248 while :; do
22249 case $as_dir in #(
22250 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22251 *) as_qdir=$as_dir;;
22252 esac
22253 as_dirs="'$as_qdir' $as_dirs"
22254 as_dir=`$as_dirname -- "$as_dir" ||
22255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22256 X"$as_dir" : 'X\(//\)[^/]' \| \
22257 X"$as_dir" : 'X\(//\)$' \| \
22258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22259echo X"$as_dir" |
22260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22261 s//\1/
22262 q
22263 }
22264 /^X\(\/\/\)[^/].*/{
22265 s//\1/
22266 q
22267 }
22268 /^X\(\/\/\)$/{
22269 s//\1/
22270 q
22271 }
22272 /^X\(\/\).*/{
22273 s//\1/
22274 q
22275 }
22276 s/.*/./; q'`
22277 test -d "$as_dir" && break
22278 done
22279 test -z "$as_dirs" || eval "mkdir $as_dirs"
22280 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22281echo "$as_me: error: cannot create directory $as_dir" >&2;}
22282 { (exit 1); exit 1; }; }; }
22283 ac_builddir=.
22284
22285case "$ac_dir" in
22286.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22287*)
22288 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22289 # A ".." for each directory in $ac_dir_suffix.
22290 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22291 case $ac_top_builddir_sub in
22292 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22293 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22294 esac ;;
22295esac
22296ac_abs_top_builddir=$ac_pwd
22297ac_abs_builddir=$ac_pwd$ac_dir_suffix
22298# for backward compatibility:
22299ac_top_builddir=$ac_top_build_prefix
22300
22301case $srcdir in
22302 .) # We are building in place.
22303 ac_srcdir=.
22304 ac_top_srcdir=$ac_top_builddir_sub
22305 ac_abs_top_srcdir=$ac_pwd ;;
22306 [\\/]* | ?:[\\/]* ) # Absolute name.
22307 ac_srcdir=$srcdir$ac_dir_suffix;
22308 ac_top_srcdir=$srcdir
22309 ac_abs_top_srcdir=$srcdir ;;
22310 *) # Relative name.
22311 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22312 ac_top_srcdir=$ac_top_build_prefix$srcdir
22313 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22314esac
22315ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22316
22317
22318 cd "$ac_dir"
22319
22320 # Check for guested configure; otherwise get Cygnus style configure.
22321 if test -f "$ac_srcdir/configure.gnu"; then
22322 ac_sub_configure=$ac_srcdir/configure.gnu
22323 elif test -f "$ac_srcdir/configure"; then
22324 ac_sub_configure=$ac_srcdir/configure
22325 elif test -f "$ac_srcdir/configure.in"; then
22326 # This should be Cygnus configure.
22327 ac_sub_configure=$ac_aux_dir/configure
22328 else
22329 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22330echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22331 ac_sub_configure=
22332 fi
22333
22334 # The recursion is here.
22335 if test -n "$ac_sub_configure"; then
22336 # Make the cache file name correct relative to the subdirectory.
22337 case $cache_file in
22338 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22339 *) # Relative name.
22340 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22341 esac
22342
22343 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22344echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22345 # The eval makes quoting arguments work.
22346 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22347 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22348 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22349echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22350 { (exit 1); exit 1; }; }
22351 fi
22352
22353 cd "$ac_popdir"
22354 done
22355fi
22356