]> jfr.im git - irc/evilnet/x3.git/blame - configure
sync all done, dont worry the language files for en_UK (now en_GB) are still there...
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
b8cb2a14 2# From configure.in Id: configure.in,v 1.6 2005/03/07 03:51:23 sirvulcan Exp .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
ceafd592 4# Generated by GNU Autoconf 2.59 for X3 1.4.
b3076f16 5#
ceafd592 6# Report bugs to <x2serv-general@lists.sourceforge.net>.
b3076f16 7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# 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
15# Be Bourne compatible
16if 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+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
ceafd592 271PACKAGE_NAME='X3'
272PACKAGE_TARNAME='x3'
273PACKAGE_VERSION='1.4'
274PACKAGE_STRING='X3 1.4'
275PACKAGE_BUGREPORT='x2serv-general@lists.sourceforge.net'
b3076f16 276
277ac_unique_file="src/opserv.c"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
ec1a68c8 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB LN_S CPP EGREP ALLOCA MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS LIBOBJS LTLIBOBJS'
b3076f16 316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
ceafd592 784\`configure' configures X3 1.4 to adapt to many kinds of systems.
b3076f16 785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833_ACEOF
834
835 cat <<\_ACEOF
836
837Program names:
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841
842System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 --target=TARGET configure for building compilers for TARGET [HOST]
846_ACEOF
847fi
848
849if test -n "$ac_init_help"; then
850 case $ac_init_help in
ceafd592 851 short | recursive ) echo "Configuration of X3 1.4:";;
b3076f16 852 esac
853 cat <<\_ACEOF
854
855Optional Features:
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
b3076f16 862 --disable-tokens Disables tokenization of P10 protocol output
863 (tokens required if linking to ircu 2.10.11)
864 --enable-debug Enables debugging behaviors
865 --enable-modules=list,of,modules Enable extra modules
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 871 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 872 --with-protocol=name Choose IRC dialect to support; one of:
873 p10 (the default), bahamut
874 --without-getopt Disables building of the GNU getopt library
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
ceafd592 888Report bugs to <x2serv-general@lists.sourceforge.net>.
b3076f16 889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921esac
922
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
961
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
b8cb2a14 977 cd "$ac_popdir"
b3076f16 978 done
979fi
980
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
ceafd592 984X3 configure 1.4
b3076f16 985generated by GNU Autoconf 2.59
986
987Copyright (C) 2003 Free Software Foundation, Inc.
988This configure script is free software; the Free Software Foundation
989gives unlimited permission to copy, distribute and modify it.
990_ACEOF
991 exit 0
992fi
993exec 5>config.log
994cat >&5 <<_ACEOF
995This file contains any messages produced by compilers while
996running configure, to aid debugging if configure makes a mistake.
997
ceafd592 998It was created by X3 $as_me 1.4, which was
b3076f16 999generated by GNU Autoconf 2.59. Invocation command line was
1000
1001 $ $0 $@
1002
1003_ACEOF
1004{
1005cat <<_ASUNAME
1006## --------- ##
1007## Platform. ##
1008## --------- ##
1009
1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018
1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026
1027_ASUNAME
1028
1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030for as_dir in $PATH
1031do
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035done
1036
1037} >&5
1038
1039cat >&5 <<_ACEOF
1040
1041
1042## ----------- ##
1043## Core tests. ##
1044## ----------- ##
1045
1046_ACEOF
1047
1048
1049# Keep a trace of the command line.
1050# Strip out --no-create and --no-recursion so they do not pile up.
1051# Strip out --silent because we don't want to record it for future runs.
1052# Also quote any args containing shell meta-characters.
1053# Make two passes to allow for proper duplicate-argument suppression.
1054ac_configure_args=
1055ac_configure_args0=
1056ac_configure_args1=
1057ac_sep=
1058ac_must_keep_next=false
1059for ac_pass in 1 2
1060do
1061 for ac_arg
1062 do
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 2)
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1086 ;;
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1089 fi
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1093 ;;
1094 esac
1095 done
1096done
1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099
1100# When interrupted or exit'd, cleanup temporary files, and complete
1101# config.log. We remove comments because anyway the quotes in there
1102# would cause problems or look ugly.
1103# WARNING: Be sure not to use single quotes in there, as some shells,
1104# such as our DU 5.0 friend, will then `close' the trap.
1105trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1107 {
1108 echo
1109
1110 cat <<\_ASBOX
1111## ---------------- ##
1112## Cache variables. ##
1113## ---------------- ##
1114_ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1117{
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 ;;
1125 *)
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ;;
1129 esac;
1130}
1131 echo
1132
1133 cat <<\_ASBOX
1134## ----------------- ##
1135## Output variables. ##
1136## ----------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148## ------------- ##
1149## Output files. ##
1150## ------------- ##
1151_ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159 fi
1160
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163## ----------- ##
1164## confdefs.h. ##
1165## ----------- ##
1166_ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1170 fi
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1178 ' 0
1179for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181done
1182ac_signal=0
1183
1184# confdefs.h avoids OS command line length limits that DEFS can exceed.
1185rm -rf conftest* confdefs.h
1186# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187echo >confdefs.h
1188
1189# Predefined preprocessor variables.
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_NAME "$PACKAGE_NAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_VERSION "$PACKAGE_VERSION"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_STRING "$PACKAGE_STRING"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213_ACEOF
1214
1215
1216# Let the site file select an alternate cache file if it wants to.
1217# Prefer explicitly selected file to automatically selected ones.
1218if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 fi
1224fi
1225for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1231 fi
1232done
1233
1234if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1244 fi
1245else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1249fi
1250
1251# Check that the precious variables saved in the cache have kept the same
1252# value.
1253ac_cache_corrupted=false
1254for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1270 *)
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1292 fi
1293done
1294if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300fi
1301
1302ac_ext=c
1303ac_cpp='$CPP $CPPFLAGS'
1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
ceafd592 1334CODENAME=X3
b3076f16 1335 ac_config_headers="$ac_config_headers src/config.h"
1336
1337
1338ac_aux_dir=
1339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353done
1354if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1358fi
1359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363# Make sure we can run config.sub.
1364$ac_config_sub sun4 >/dev/null 2>&1 ||
1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1366echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369echo "$as_me:$LINENO: checking build system type" >&5
1370echo $ECHO_N "checking build system type... $ECHO_C" >&6
1371if test "${ac_cv_build+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
1374 ac_cv_build_alias=$build_alias
1375test -z "$ac_cv_build_alias" &&
1376 ac_cv_build_alias=`$ac_config_guess`
1377test -z "$ac_cv_build_alias" &&
1378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1379echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380 { (exit 1); exit 1; }; }
1381ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1384 { (exit 1); exit 1; }; }
1385
1386fi
1387echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388echo "${ECHO_T}$ac_cv_build" >&6
1389build=$ac_cv_build
1390build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393
1394
1395echo "$as_me:$LINENO: checking host system type" >&5
1396echo $ECHO_N "checking host system type... $ECHO_C" >&6
1397if test "${ac_cv_host+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 ac_cv_host_alias=$host_alias
1401test -z "$ac_cv_host_alias" &&
1402 ac_cv_host_alias=$ac_cv_build_alias
1403ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408fi
1409echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410echo "${ECHO_T}$ac_cv_host" >&6
1411host=$ac_cv_host
1412host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415
1416
1417echo "$as_me:$LINENO: checking target system type" >&5
1418echo $ECHO_N "checking target system type... $ECHO_C" >&6
1419if test "${ac_cv_target+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421else
1422 ac_cv_target_alias=$target_alias
1423test "x$ac_cv_target_alias" = "x" &&
1424 ac_cv_target_alias=$ac_cv_host_alias
1425ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1427echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1429
1430fi
1431echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1432echo "${ECHO_T}$ac_cv_target" >&6
1433target=$ac_cv_target
1434target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437
1438
1439# The aliases save the names the user supplied, while $host etc.
1440# will get canonicalized.
1441test -n "$target_alias" &&
1442 test "$program_prefix$program_suffix$program_transform_name" = \
1443 NONENONEs,x,x, &&
1444 program_prefix=${target_alias}-
ec1a68c8 1445am__api_version="1.9"
b3076f16 1446# Find a good install program. We prefer a C program (faster),
1447# so one script is as good as another. But avoid the broken or
1448# incompatible versions:
1449# SysV /etc/install, /usr/sbin/install
1450# SunOS /usr/etc/install
1451# IRIX /sbin/install
1452# AIX /bin/install
1453# AmigaOS /C/install, which installs bootblocks on floppy discs
1454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1455# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1457# OS/2's system install, which has a completely different semantic
1458# ./install, which can be erroneously created by make from ./install.sh.
1459echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1460echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1461if test -z "$INSTALL"; then
1462if test "${ac_cv_path_install+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 # Account for people who put trailing slashes in PATH elements.
1471case $as_dir/ in
1472 ./ | .// | /cC/* | \
1473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1474 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1475 /usr/ucb/* ) ;;
1476 *)
1477 # OSF1 and SCO ODT 3.0 have their own names for install.
1478 # Don't use installbsd from OSF since it installs stuff as root
1479 # by default.
1480 for ac_prog in ginstall scoinst install; do
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1483 if test $ac_prog = install &&
1484 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1485 # AIX install. It has an incompatible calling convention.
1486 :
1487 elif test $ac_prog = install &&
1488 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1489 # program-specific install script used by HP pwplus--don't use.
1490 :
1491 else
1492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1493 break 3
1494 fi
1495 fi
1496 done
1497 done
1498 ;;
1499esac
1500done
1501
1502
1503fi
1504 if test "${ac_cv_path_install+set}" = set; then
1505 INSTALL=$ac_cv_path_install
1506 else
1507 # As a last resort, use the slow shell script. We don't cache a
1508 # path for INSTALL within a source directory, because that will
1509 # break other packages using the cache if that directory is
1510 # removed, or if the path is relative.
1511 INSTALL=$ac_install_sh
1512 fi
1513fi
1514echo "$as_me:$LINENO: result: $INSTALL" >&5
1515echo "${ECHO_T}$INSTALL" >&6
1516
1517# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1518# It thinks the first close brace ends the variable substitution.
1519test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1520
1521test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1522
1523test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1524
1525echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1526echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1527# Just in case
1528sleep 1
ec1a68c8 1529echo timestamp > conftest.file
b3076f16 1530# Do `set' in a subshell so we don't clobber the current shell's
1531# arguments. Must try -L first in case configure is actually a
1532# symlink; some systems play weird games with the mod time of symlinks
1533# (eg FreeBSD returns the mod time of the symlink's containing
1534# directory).
1535if (
ec1a68c8 1536 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 1537 if test "$*" = "X"; then
1538 # -L didn't work.
ec1a68c8 1539 set X `ls -t $srcdir/configure conftest.file`
b3076f16 1540 fi
ec1a68c8 1541 rm -f conftest.file
1542 if test "$*" != "X $srcdir/configure conftest.file" \
1543 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 1544
1545 # If neither matched, then we have a broken ls. This can happen
1546 # if, for instance, CONFIG_SHELL is bash and it inherits a
1547 # broken ls alias from the environment. This has actually
1548 # happened. Such a system could not be considered "sane".
1549 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1550alias in your environment" >&5
1551echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1552alias in your environment" >&2;}
1553 { (exit 1); exit 1; }; }
1554 fi
1555
ec1a68c8 1556 test "$2" = conftest.file
b3076f16 1557 )
1558then
1559 # Ok.
1560 :
1561else
1562 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1563Check your system clock" >&5
1564echo "$as_me: error: newly created file is older than distributed files!
1565Check your system clock" >&2;}
1566 { (exit 1); exit 1; }; }
1567fi
1568echo "$as_me:$LINENO: result: yes" >&5
1569echo "${ECHO_T}yes" >&6
1570test "$program_prefix" != NONE &&
1571 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1572# Use a double $ so make ignores it.
1573test "$program_suffix" != NONE &&
1574 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1575# Double any \ or $. echo might interpret backslashes.
1576# By default was `s,x,x', remove it if useless.
1577cat <<\_ACEOF >conftest.sed
1578s/[\\$]/&&/g;s/;s,x,x,$//
1579_ACEOF
1580program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1581rm conftest.sed
1582
ec1a68c8 1583# expand $ac_aux_dir to an absolute path
1584am_aux_dir=`cd $ac_aux_dir && pwd`
1585
1586test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1587# Use eval to expand $SHELL
1588if eval "$MISSING --run true"; then
1589 am_missing_run="$MISSING --run "
1590else
1591 am_missing_run=
1592 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1593echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1594fi
1595
1596if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1597 # We used to keeping the `.' as first argument, in order to
1598 # allow $(mkdir_p) to be used without argument. As in
1599 # $(mkdir_p) $(somedir)
1600 # where $(somedir) is conditionally defined. However this is wrong
1601 # for two reasons:
1602 # 1. if the package is installed by a user who cannot write `.'
1603 # make install will fail,
1604 # 2. the above comment should most certainly read
1605 # $(mkdir_p) $(DESTDIR)$(somedir)
1606 # so it does not work when $(somedir) is undefined and
1607 # $(DESTDIR) is not.
1608 # To support the latter case, we have to write
1609 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1610 # so the `.' trick is pointless.
1611 mkdir_p='mkdir -p --'
1612else
1613 # On NextStep and OpenStep, the `mkdir' command does not
1614 # recognize any option. It will interpret all options as
1615 # directories to create, and then abort because `.' already
1616 # exists.
1617 for d in ./-p ./--version;
1618 do
1619 test -d $d && rmdir $d
1620 done
1621 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622 if test -f "$ac_aux_dir/mkinstalldirs"; then
1623 mkdir_p='$(mkinstalldirs)'
1624 else
1625 mkdir_p='$(install_sh) -d'
1626 fi
1627fi
1628
1629for ac_prog in gawk mawk nawk awk
1630do
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_AWK+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$AWK"; then
1639 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_AWK="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652done
1653done
1654
1655fi
1656fi
1657AWK=$ac_cv_prog_AWK
1658if test -n "$AWK"; then
1659 echo "$as_me:$LINENO: result: $AWK" >&5
1660echo "${ECHO_T}$AWK" >&6
1661else
1662 echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666 test -n "$AWK" && break
1667done
1668
b3076f16 1669echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1672if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 cat >conftest.make <<\_ACEOF
1676all:
1677 @echo 'ac_maketemp="$(MAKE)"'
1678_ACEOF
1679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681if test -n "$ac_maketemp"; then
1682 eval ac_cv_prog_make_${ac_make}_set=yes
1683else
1684 eval ac_cv_prog_make_${ac_make}_set=no
1685fi
1686rm -f conftest.make
1687fi
1688if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689 echo "$as_me:$LINENO: result: yes" >&5
1690echo "${ECHO_T}yes" >&6
1691 SET_MAKE=
1692else
1693 echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695 SET_MAKE="MAKE=${MAKE-make}"
1696fi
1697
ec1a68c8 1698rm -rf .tst 2>/dev/null
1699mkdir .tst 2>/dev/null
1700if test -d .tst; then
1701 am__leading_dot=.
1702else
1703 am__leading_dot=_
1704fi
1705rmdir .tst 2>/dev/null
b3076f16 1706
ec1a68c8 1707# test to see if srcdir already configured
1708if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709 test -f $srcdir/config.status; then
b3076f16 1710 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712 { (exit 1); exit 1; }; }
1713fi
1714
ec1a68c8 1715# test whether we have cygpath
1716if test -z "$CYGPATH_W"; then
1717 if (cygpath --version) >/dev/null 2>/dev/null; then
1718 CYGPATH_W='cygpath -w'
1719 else
1720 CYGPATH_W=echo
1721 fi
1722fi
1723
1724
1725# Define the identity of the package.
ceafd592 1726 PACKAGE='x3'
1727 VERSION='1.4'
ec1a68c8 1728
1729
b3076f16 1730cat >>confdefs.h <<_ACEOF
1731#define PACKAGE "$PACKAGE"
1732_ACEOF
1733
1734
1735cat >>confdefs.h <<_ACEOF
1736#define VERSION "$VERSION"
1737_ACEOF
1738
ec1a68c8 1739# Some tools Automake needs.
b3076f16 1740
ec1a68c8 1741ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 1742
ec1a68c8 1743
1744AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1745
1746
1747AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1748
1749
1750AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1751
1752
1753MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1754
1755install_sh=${install_sh-"$am_aux_dir/install-sh"}
1756
1757# Installed binaries are usually stripped using `strip' when the user
1758# run `make install-strip'. However `strip' might not be the right
1759# tool to use in cross-compilation environments, therefore Automake
1760# will honor the `STRIP' environment variable to overrule this program.
1761if test "$cross_compiling" != no; then
1762 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764set dummy ${ac_tool_prefix}strip; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_STRIP+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 1769else
ec1a68c8 1770 if test -n "$STRIP"; then
1771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
1785done
b3076f16 1786
ec1a68c8 1787fi
1788fi
1789STRIP=$ac_cv_prog_STRIP
1790if test -n "$STRIP"; then
1791 echo "$as_me:$LINENO: result: $STRIP" >&5
1792echo "${ECHO_T}$STRIP" >&6
b3076f16 1793else
ec1a68c8 1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
b3076f16 1796fi
b2cf3d66 1797
b3076f16 1798fi
ec1a68c8 1799if test -z "$ac_cv_prog_STRIP"; then
1800 ac_ct_STRIP=$STRIP
1801 # Extract the first word of "strip", so it can be a program name with args.
1802set dummy strip; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 if test -n "$ac_ct_STRIP"; then
1809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_ac_ct_STRIP="strip"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822done
1823done
b3076f16 1824
ec1a68c8 1825 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1826fi
1827fi
1828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1829if test -n "$ac_ct_STRIP"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831echo "${ECHO_T}$ac_ct_STRIP" >&6
b3076f16 1832else
ec1a68c8 1833 echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
b3076f16 1835fi
1836
ec1a68c8 1837 STRIP=$ac_ct_STRIP
b2cf3d66 1838else
ec1a68c8 1839 STRIP="$ac_cv_prog_STRIP"
b3076f16 1840fi
b3076f16 1841
ec1a68c8 1842fi
1843INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1844
1845# We need awk for the "check" target. The system "awk" is bad on
1846# some platforms.
1847# Always define AMTAR for backward compatibility.
1848
1849AMTAR=${AMTAR-"${am_missing_run}tar"}
1850
1851am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1852
1853
1854
1855
b3076f16 1856
1857echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1858echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1859 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1860if test "${enable_maintainer_mode+set}" = set; then
1861 enableval="$enable_maintainer_mode"
1862 USE_MAINTAINER_MODE=$enableval
1863else
1864 USE_MAINTAINER_MODE=no
1865fi;
1866 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1867echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1868
1869
1870if test $USE_MAINTAINER_MODE = yes; then
1871 MAINTAINER_MODE_TRUE=
1872 MAINTAINER_MODE_FALSE='#'
1873else
1874 MAINTAINER_MODE_TRUE='#'
1875 MAINTAINER_MODE_FALSE=
1876fi
ec1a68c8 1877
b3076f16 1878 MAINT=$MAINTAINER_MODE_TRUE
1879
1880
1881
ec1a68c8 1882DEPDIR="${am__leading_dot}deps"
1883
1884 ac_config_commands="$ac_config_commands depfiles"
1885
1886
1887am_make=${MAKE-make}
1888cat > confinc << 'END'
1889am__doit:
1890 @echo done
1891.PHONY: am__doit
1892END
1893# If we don't find an include directive, just comment out the code.
1894echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1895echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1896am__include="#"
1897am__quote=
1898_am_result=none
1899# First try GNU make style include.
1900echo "include confinc" > confmf
1901# We grep out `Entering directory' and `Leaving directory'
1902# messages which can occur if `w' ends up in MAKEFLAGS.
1903# In particular we don't look at `^make:' because GNU make might
1904# be invoked under some other name (usually "gmake"), in which
1905# case it prints its new name instead of `make'.
1906if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1907 am__include=include
1908 am__quote=
1909 _am_result=GNU
1910fi
1911# Now try BSD make style include.
1912if test "$am__include" = "#"; then
1913 echo '.include "confinc"' > confmf
1914 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1915 am__include=.include
1916 am__quote="\""
1917 _am_result=BSD
1918 fi
1919fi
1920
1921
1922echo "$as_me:$LINENO: result: $_am_result" >&5
1923echo "${ECHO_T}$_am_result" >&6
1924rm -f confinc confmf
1925
1926# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1927if test "${enable_dependency_tracking+set}" = set; then
1928 enableval="$enable_dependency_tracking"
1929
1930fi;
1931if test "x$enable_dependency_tracking" != xno; then
1932 am_depcomp="$ac_aux_dir/depcomp"
1933 AMDEPBACKSLASH='\'
1934fi
1935
1936
1937if test "x$enable_dependency_tracking" != xno; then
1938 AMDEP_TRUE=
1939 AMDEP_FALSE='#'
1940else
1941 AMDEP_TRUE='#'
1942 AMDEP_FALSE=
1943fi
1944
1945
1946
b3076f16 1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954set dummy ${ac_tool_prefix}gcc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974done
1975done
1976
1977fi
1978fi
1979CC=$ac_cv_prog_CC
1980if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982echo "${ECHO_T}$CC" >&6
1983else
1984 echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6
1986fi
1987
1988fi
1989if test -z "$ac_cv_prog_CC"; then
1990 ac_ct_CC=$CC
1991 # Extract the first word of "gcc", so it can be a program name with args.
1992set dummy gcc; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC="gcc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2011 fi
2012done
2013done
2014
2015fi
2016fi
2017ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018if test -n "$ac_ct_CC"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020echo "${ECHO_T}$ac_ct_CC" >&6
2021else
2022 echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026 CC=$ac_ct_CC
2027else
2028 CC="$ac_cv_prog_CC"
2029fi
2030
2031if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034set dummy ${ac_tool_prefix}cc; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="${ac_tool_prefix}cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
2056
2057fi
2058fi
2059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
2063else
2064 echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068fi
2069if test -z "$ac_cv_prog_CC"; then
2070 ac_ct_CC=$CC
2071 # Extract the first word of "cc", so it can be a program name with args.
2072set dummy cc; ac_word=$2
2073echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC="cc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092done
2093done
2094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6
2101else
2102 echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6
2104fi
2105
2106 CC=$ac_ct_CC
2107else
2108 CC="$ac_cv_prog_CC"
2109fi
2110
2111fi
2112if test -z "$CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114set dummy cc; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122else
2123 ac_prog_rejected=no
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132 ac_prog_rejected=yes
2133 continue
2134 fi
2135 ac_cv_prog_CC="cc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2138 fi
2139done
2140done
2141
2142if test $ac_prog_rejected = yes; then
2143 # We found a bogon in the path, so make sure we never use it.
2144 set dummy $ac_cv_prog_CC
2145 shift
2146 if test $# != 0; then
2147 # We chose a different compiler from the bogus one.
2148 # However, it has the same basename, so the bogon will be chosen
2149 # first if we set CC to just the basename; use the full file name.
2150 shift
2151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152 fi
2153fi
2154fi
2155fi
2156CC=$ac_cv_prog_CC
2157if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159echo "${ECHO_T}$CC" >&6
2160else
2161 echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165fi
2166if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2168 for ac_prog in cl
2169 do
2170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2172echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179else
2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2190 fi
2191done
2192done
2193
2194fi
2195fi
2196CC=$ac_cv_prog_CC
2197if test -n "$CC"; then
2198 echo "$as_me:$LINENO: result: $CC" >&5
2199echo "${ECHO_T}$CC" >&6
2200else
2201 echo "$as_me:$LINENO: result: no" >&5
2202echo "${ECHO_T}no" >&6
2203fi
2204
2205 test -n "$CC" && break
2206 done
2207fi
2208if test -z "$CC"; then
2209 ac_ct_CC=$CC
2210 for ac_prog in cl
2211do
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213set dummy $ac_prog; ac_word=$2
2214echo "$as_me:$LINENO: checking for $ac_word" >&5
2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233done
2234done
2235
2236fi
2237fi
2238ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241echo "${ECHO_T}$ac_ct_CC" >&6
2242else
2243 echo "$as_me:$LINENO: result: no" >&5
2244echo "${ECHO_T}no" >&6
2245fi
2246
2247 test -n "$ac_ct_CC" && break
2248done
2249
2250 CC=$ac_ct_CC
2251fi
2252
2253fi
2254
2255
2256test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257See \`config.log' for more details." >&5
2258echo "$as_me: error: no acceptable C compiler found in \$PATH
2259See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261
2262# Provide some information about the compiler.
2263echo "$as_me:$LINENO:" \
2264 "checking for C compiler version" >&5
2265ac_compiler=`set X $ac_compile; echo $2`
2266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2267 (eval $ac_compiler --version </dev/null >&5) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2272 (eval $ac_compiler -v </dev/null >&5) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2277 (eval $ac_compiler -V </dev/null >&5) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
2288
2289int
2290main ()
2291{
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297ac_clean_files_save=$ac_clean_files
2298ac_clean_files="$ac_clean_files a.out a.exe b.out"
2299# Try to create an executable without -o first, disregard a.out.
2300# It will help us diagnose broken compilers, and finding out an intuition
2301# of exeext.
2302echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2304ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2306 (eval $ac_link_default) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # Find the output, starting from the most likely. This scheme is
2311# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2312# resort.
2313
2314# Be careful to initialize this variable, since it used to be cached.
2315# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2316ac_cv_exeext=
2317# b.out is created by i960 compilers.
2318for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2319do
2320 test -f "$ac_file" || continue
2321 case $ac_file in
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2323 ;;
2324 conftest.$ac_ext )
2325 # This is the source file.
2326 ;;
2327 [ab].out )
2328 # We found the default executable, but exeext='' is most
2329 # certainly right.
2330 break;;
2331 *.* )
2332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333 # FIXME: I believe we export ac_cv_exeext for Libtool,
2334 # but it would be cool to find out if it's true. Does anybody
2335 # maintain Libtool? --akim.
2336 export ac_cv_exeext
2337 break;;
2338 * )
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: C compiler cannot create executables
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: C compiler cannot create executables
2349See \`config.log' for more details." >&2;}
2350 { (exit 77); exit 77; }; }
2351fi
2352
2353ac_exeext=$ac_cv_exeext
2354echo "$as_me:$LINENO: result: $ac_file" >&5
2355echo "${ECHO_T}$ac_file" >&6
2356
2357# Check the compiler produces executables we can run. If not, either
2358# the compiler is broken, or we cross compile.
2359echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2361# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362# If not cross compiling, check that we can run a simple program.
2363if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 cross_compiling=no
2371 else
2372 if test "$cross_compiling" = maybe; then
2373 cross_compiling=yes
2374 else
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376If you meant to cross compile, use \`--host'.
2377See \`config.log' for more details." >&5
2378echo "$as_me: error: cannot run C compiled programs.
2379If you meant to cross compile, use \`--host'.
2380See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2382 fi
2383 fi
2384fi
2385echo "$as_me:$LINENO: result: yes" >&5
2386echo "${ECHO_T}yes" >&6
2387
2388rm -f a.out a.exe conftest$ac_cv_exeext b.out
2389ac_clean_files=$ac_clean_files_save
2390# Check the compiler produces executables we can run. If not, either
2391# the compiler is broken, or we cross compile.
2392echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2394echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395echo "${ECHO_T}$cross_compiling" >&6
2396
2397echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400 (eval $ac_link) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
2404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2405# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2406# work properly (i.e., refer to `conftest.exe'), while it won't with
2407# `rm'.
2408for ac_file in conftest.exe conftest conftest.*; do
2409 test -f "$ac_file" || continue
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 export ac_cv_exeext
2414 break;;
2415 * ) break;;
2416 esac
2417done
2418else
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2424fi
2425
2426rm -f conftest$ac_cv_exeext
2427echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428echo "${ECHO_T}$ac_cv_exeext" >&6
2429
2430rm -f conftest.$ac_ext
2431EXEEXT=$ac_cv_exeext
2432ac_exeext=$EXEEXT
2433echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2435if test "${ac_cv_objext+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.o conftest.obj
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463 break;;
2464 esac
2465done
2466else
2467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471See \`config.log' for more details." >&5
2472echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2475fi
2476
2477rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480echo "${ECHO_T}$ac_cv_objext" >&6
2481OBJEXT=$ac_cv_objext
2482ac_objext=$OBJEXT
2483echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498#ifndef __GNUC__
2499 choke me
2500#endif
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
b8cb2a14 2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 (eval $ac_try) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 ac_compiler_gnu=yes
2528else
2529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532ac_compiler_gnu=no
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536
2537fi
2538echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2540GCC=`test $ac_compiler_gnu = yes && echo yes`
2541ac_test_CFLAGS=${CFLAGS+set}
2542ac_save_CFLAGS=$CFLAGS
2543CFLAGS="-g"
2544echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2546if test "${ac_cv_prog_cc_g+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
b8cb2a14 2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_prog_cc_g=yes
2586else
2587 echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590ac_cv_prog_cc_g=no
2591fi
2592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593fi
2594echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2595echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2596if test "$ac_test_CFLAGS" = set; then
2597 CFLAGS=$ac_save_CFLAGS
2598elif test $ac_cv_prog_cc_g = yes; then
2599 if test "$GCC" = yes; then
2600 CFLAGS="-g -O2"
2601 else
2602 CFLAGS="-g"
2603 fi
2604else
2605 if test "$GCC" = yes; then
2606 CFLAGS="-O2"
2607 else
2608 CFLAGS=
2609 fi
2610fi
2611echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2612echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2613if test "${ac_cv_prog_cc_stdc+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 ac_cv_prog_cc_stdc=no
2617ac_save_CC=$CC
2618cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
2624#include <stdarg.h>
2625#include <stdio.h>
2626#include <sys/types.h>
2627#include <sys/stat.h>
2628/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2629struct buf { int x; };
2630FILE * (*rcsopen) (struct buf *, struct stat *, int);
2631static char *e (p, i)
2632 char **p;
2633 int i;
2634{
2635 return p[i];
2636}
2637static char *f (char * (*g) (char **, int), char **p, ...)
2638{
2639 char *s;
2640 va_list v;
2641 va_start (v,p);
2642 s = g (p, va_arg (v,int));
2643 va_end (v);
2644 return s;
2645}
2646
2647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2648 function prototypes and stuff, but not '\xHH' hex character constants.
2649 These don't provoke an error unfortunately, instead are silently treated
2650 as 'x'. The following induces an error, until -std1 is added to get
2651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2652 array size at least. It's necessary to write '\x00'==0 to get something
2653 that's true only with -std1. */
2654int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2655
2656int test (int i, double x);
2657struct s1 {int (*f) (int a);};
2658struct s2 {int (*f) (double a);};
2659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2660int argc;
2661char **argv;
2662int
2663main ()
2664{
2665return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670# Don't try gcc -ansi; that turns off useful extensions and
2671# breaks some systems' header files.
2672# AIX -qlanglvl=ansi
2673# Ultrix and OSF/1 -std1
2674# HP-UX 10.20 and later -Ae
2675# HP-UX older versions -Aa -D_HPUX_SOURCE
2676# SVR4 -Xc -D__EXTENSIONS__
2677for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678do
2679 CC="$ac_save_CC $ac_arg"
2680 rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
b8cb2a14 2689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 ac_cv_prog_cc_stdc=$ac_arg
2702break
2703else
2704 echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707fi
2708rm -f conftest.err conftest.$ac_objext
2709done
2710rm -f conftest.$ac_ext conftest.$ac_objext
2711CC=$ac_save_CC
2712
2713fi
2714
2715case "x$ac_cv_prog_cc_stdc" in
2716 x|xno)
2717 echo "$as_me:$LINENO: result: none needed" >&5
2718echo "${ECHO_T}none needed" >&6 ;;
2719 *)
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722 CC="$CC $ac_cv_prog_cc_stdc" ;;
2723esac
2724
2725# Some people use a C++ compiler to compile C. Since we use `exit',
2726# in C++ we need to declare it. In case someone uses the same compiler
2727# for both compiling C and C++ we need to have the C++ compiler decide
2728# the declaration of exit, since it's the most demanding environment.
2729cat >conftest.$ac_ext <<_ACEOF
2730#ifndef __cplusplus
2731 choke me
2732#endif
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
b8cb2a14 2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 for ac_declaration in \
2756 '' \
2757 'extern "C" void std::exit (int) throw (); using std::exit;' \
2758 'extern "C" void std::exit (int); using std::exit;' \
2759 'extern "C" void exit (int) throw ();' \
2760 'extern "C" void exit (int);' \
2761 'void exit (int);'
2762do
2763 cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769$ac_declaration
2770#include <stdlib.h>
2771int
2772main ()
2773{
2774exit (42);
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
b8cb2a14 2788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 :
2801else
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805continue
2806fi
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h. */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h. */
2814$ac_declaration
2815int
2816main ()
2817{
2818exit (42);
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
b8cb2a14 2832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 break
2845else
2846 echo "$as_me: failed program was:" >&5
2847sed 's/^/| /' conftest.$ac_ext >&5
2848
2849fi
2850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851done
2852rm -f conftest*
2853if test -n "$ac_declaration"; then
2854 echo '#ifdef __cplusplus' >>confdefs.h
2855 echo $ac_declaration >>confdefs.h
2856 echo '#endif' >>confdefs.h
2857fi
2858
2859else
2860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863fi
2864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865ac_ext=c
2866ac_cpp='$CPP $CPPFLAGS'
2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870
ec1a68c8 2871depcc="$CC" am_compiler_list=
2872
2873echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2874echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2875if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877else
2878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2879 # We make a subdir and do the tests there. Otherwise we can end up
2880 # making bogus files that we don't know about and never remove. For
2881 # instance it was reported that on HP-UX the gcc test will end up
2882 # making a dummy file named `D' -- because `-MD' means `put the output
2883 # in D'.
2884 mkdir conftest.dir
2885 # Copy depcomp to subdir because otherwise we won't find it if we're
2886 # using a relative directory.
2887 cp "$am_depcomp" conftest.dir
2888 cd conftest.dir
2889 # We will build objects and dependencies in a subdirectory because
2890 # it helps to detect inapplicable dependency modes. For instance
2891 # both Tru64's cc and ICC support -MD to output dependencies as a
2892 # side effect of compilation, but ICC will put the dependencies in
2893 # the current directory while Tru64 will put them in the object
2894 # directory.
2895 mkdir sub
2896
2897 am_cv_CC_dependencies_compiler_type=none
2898 if test "$am_compiler_list" = ""; then
2899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2900 fi
2901 for depmode in $am_compiler_list; do
2902 # Setup a source with many dependencies, because some compilers
2903 # like to wrap large dependency lists on column 80 (with \), and
2904 # we should not choose a depcomp mode which is confused by this.
2905 #
2906 # We need to recreate these files for each test, as the compiler may
2907 # overwrite some of them when testing with obscure command lines.
2908 # This happens at least with the AIX C compiler.
2909 : > sub/conftest.c
2910 for i in 1 2 3 4 5 6; do
2911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2913 # Solaris 8's {/usr,}/bin/sh.
2914 touch sub/conftst$i.h
2915 done
2916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2917
2918 case $depmode in
2919 nosideeffect)
2920 # after this tag, mechanisms are not by side-effect, so they'll
2921 # only be used when explicitly requested
2922 if test "x$enable_dependency_tracking" = xyes; then
2923 continue
2924 else
2925 break
2926 fi
2927 ;;
2928 none) break ;;
2929 esac
2930 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2931 # mode. It turns out that the SunPro C++ compiler does not properly
2932 # handle `-M -o', and we need to detect this.
2933 if depmode=$depmode \
2934 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2936 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2937 >/dev/null 2>conftest.err &&
2938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2939 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2941 # icc doesn't choke on unknown options, it will just issue warnings
2942 # or remarks (even with -Werror). So we grep stderr for any message
2943 # that says an option was ignored or not supported.
2944 # When given -MP, icc 7.0 and 7.1 complain thusly:
2945 # icc: Command line warning: ignoring option '-M'; no argument required
2946 # The diagnosis changed in icc 8.0:
2947 # icc: Command line remark: option '-MP' not supported
2948 if (grep 'ignoring option' conftest.err ||
2949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2950 am_cv_CC_dependencies_compiler_type=$depmode
2951 break
2952 fi
2953 fi
2954 done
2955
2956 cd ..
2957 rm -rf conftest.dir
2958else
2959 am_cv_CC_dependencies_compiler_type=none
2960fi
2961
2962fi
2963echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2964echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2965CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2966
2967
2968
2969if
2970 test "x$enable_dependency_tracking" != xno \
2971 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2972 am__fastdepCC_TRUE=
2973 am__fastdepCC_FALSE='#'
2974else
2975 am__fastdepCC_TRUE='#'
2976 am__fastdepCC_FALSE=
2977fi
2978
2979
b3076f16 2980
2981echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2982echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2983if test "${ac_cv_type_signal+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 cat >conftest.$ac_ext <<_ACEOF
2987/* confdefs.h. */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h. */
2992#include <sys/types.h>
2993#include <signal.h>
2994#ifdef signal
2995# undef signal
2996#endif
2997#ifdef __cplusplus
2998extern "C" void (*signal (int, void (*)(int)))(int);
2999#else
3000void (*signal ()) ();
3001#endif
3002
3003int
3004main ()
3005{
3006int i;
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
b8cb2a14 3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 ac_cv_type_signal=void
3033else
3034 echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037ac_cv_type_signal=int
3038fi
3039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040fi
3041echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3042echo "${ECHO_T}$ac_cv_type_signal" >&6
3043
3044cat >>confdefs.h <<_ACEOF
3045#define RETSIGTYPE $ac_cv_type_signal
3046_ACEOF
3047
3048
3049echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3050echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3051if test "${ac_cv_c_const+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
3060
3061int
3062main ()
3063{
3064/* FIXME: Include the comments suggested by Paul. */
3065#ifndef __cplusplus
3066 /* Ultrix mips cc rejects this. */
3067 typedef int charset[2];
3068 const charset x;
3069 /* SunOS 4.1.1 cc rejects this. */
3070 char const *const *ccp;
3071 char **p;
3072 /* NEC SVR4.0.2 mips cc rejects this. */
3073 struct point {int x, y;};
3074 static struct point const zero = {0,0};
3075 /* AIX XL C 1.02.0.0 rejects this.
3076 It does not let you subtract one const X* pointer from another in
3077 an arm of an if-expression whose if-part is not a constant
3078 expression */
3079 const char *g = "string";
3080 ccp = &g + (g ? g-g : 0);
3081 /* HPUX 7.0 cc rejects these. */
3082 ++ccp;
3083 p = (char**) ccp;
3084 ccp = (char const *const *) p;
3085 { /* SCO 3.2v4 cc rejects this. */
3086 char *t;
3087 char const *s = 0 ? (char *) 0 : (char const *) 0;
3088
3089 *t++ = 0;
3090 }
3091 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3092 int x[] = {25, 17};
3093 const int *foo = &x[0];
3094 ++foo;
3095 }
3096 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3097 typedef const int *iptr;
3098 iptr p = 0;
3099 ++p;
3100 }
3101 { /* AIX XL C 1.02.0.0 rejects this saying
3102 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3103 struct s { int j; const int *ap[3]; };
3104 struct s *b; b->j = 5;
3105 }
3106 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3107 const int foo = 10;
3108 }
3109#endif
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext
3116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
b8cb2a14 3124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 ac_cv_c_const=yes
3137else
3138 echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141ac_cv_c_const=no
3142fi
3143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3144fi
3145echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3146echo "${ECHO_T}$ac_cv_c_const" >&6
3147if test $ac_cv_c_const = no; then
3148
3149cat >>confdefs.h <<\_ACEOF
3150#define const
3151_ACEOF
3152
3153fi
3154
3155echo "$as_me:$LINENO: checking for inline" >&5
3156echo $ECHO_N "checking for inline... $ECHO_C" >&6
3157if test "${ac_cv_c_inline+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160 ac_cv_c_inline=no
3161for ac_kw in inline __inline__ __inline; do
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168#ifndef __cplusplus
3169typedef int foo_t;
3170static $ac_kw foo_t static_foo () {return 0; }
3171$ac_kw foo_t foo () {return 0; }
3172#endif
3173
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177 (eval $ac_compile) 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
b8cb2a14 3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 (eval $ac_try) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_c_inline=$ac_kw; break
3197else
3198 echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201fi
3202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203done
3204
3205fi
3206echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3207echo "${ECHO_T}$ac_cv_c_inline" >&6
3208
3209
3210case $ac_cv_c_inline in
3211 inline | yes) ;;
3212 *)
3213 case $ac_cv_c_inline in
3214 no) ac_val=;;
3215 *) ac_val=$ac_cv_c_inline;;
3216 esac
3217 cat >>confdefs.h <<_ACEOF
3218#ifndef __cplusplus
3219#define inline $ac_val
3220#endif
3221_ACEOF
3222 ;;
3223esac
3224
3225
3226for ac_prog in gawk mawk nawk awk
3227do
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229set dummy $ac_prog; ac_word=$2
3230echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232if test "${ac_cv_prog_AWK+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235 if test -n "$AWK"; then
3236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_AWK="$ac_prog"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249done
3250done
3251
3252fi
3253fi
3254AWK=$ac_cv_prog_AWK
3255if test -n "$AWK"; then
3256 echo "$as_me:$LINENO: result: $AWK" >&5
3257echo "${ECHO_T}$AWK" >&6
3258else
3259 echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263 test -n "$AWK" && break
3264done
3265
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274echo "$as_me:$LINENO: checking for $ac_word" >&5
3275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293done
3294done
3295
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301echo "${ECHO_T}$CC" >&6
3302else
3303 echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
3306
3307fi
3308if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311set dummy gcc; ac_word=$2
3312echo "$as_me:$LINENO: checking for $ac_word" >&5
3313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331done
3332done
3333
3334fi
3335fi
3336ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339echo "${ECHO_T}$ac_ct_CC" >&6
3340else
3341 echo "$as_me:$LINENO: result: no" >&5
3342echo "${ECHO_T}no" >&6
3343fi
3344
3345 CC=$ac_ct_CC
3346else
3347 CC="$ac_cv_prog_CC"
3348fi
3349
3350if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353set dummy ${ac_tool_prefix}cc; ac_word=$2
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374done
3375
3376fi
3377fi
3378CC=$ac_cv_prog_CC
3379if test -n "$CC"; then
3380 echo "$as_me:$LINENO: result: $CC" >&5
3381echo "${ECHO_T}$CC" >&6
3382else
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385fi
3386
3387fi
3388if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "cc", so it can be a program name with args.
3391set dummy cc; ac_word=$2
3392echo "$as_me:$LINENO: checking for $ac_word" >&5
3393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411done
3412done
3413
3414fi
3415fi
3416ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417if test -n "$ac_ct_CC"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419echo "${ECHO_T}$ac_ct_CC" >&6
3420else
3421 echo "$as_me:$LINENO: result: no" >&5
3422echo "${ECHO_T}no" >&6
3423fi
3424
3425 CC=$ac_ct_CC
3426else
3427 CC="$ac_cv_prog_CC"
3428fi
3429
3430fi
3431if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433set dummy cc; ac_word=$2
3434echo "$as_me:$LINENO: checking for $ac_word" >&5
3435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442 ac_prog_rejected=no
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3453 fi
3454 ac_cv_prog_CC="cc"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459done
3460
3461if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471 fi
3472fi
3473fi
3474fi
3475CC=$ac_cv_prog_CC
3476if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478echo "${ECHO_T}$CC" >&6
3479else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482fi
3483
3484fi
3485if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl
3488 do
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491echo "$as_me:$LINENO: checking for $ac_word" >&5
3492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510done
3511done
3512
3513fi
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517 echo "$as_me:$LINENO: result: $CC" >&5
3518echo "${ECHO_T}$CC" >&6
3519else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522fi
3523
3524 test -n "$CC" && break
3525 done
3526fi
3527if test -z "$CC"; then
3528 ac_ct_CC=$CC
3529 for ac_prog in cl
3530do
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532set dummy $ac_prog; ac_word=$2
3533echo "$as_me:$LINENO: checking for $ac_word" >&5
3534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552done
3553done
3554
3555fi
3556fi
3557ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558if test -n "$ac_ct_CC"; then
3559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560echo "${ECHO_T}$ac_ct_CC" >&6
3561else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564fi
3565
3566 test -n "$ac_ct_CC" && break
3567done
3568
3569 CC=$ac_ct_CC
3570fi
3571
3572fi
3573
3574
3575test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3576See \`config.log' for more details." >&5
3577echo "$as_me: error: no acceptable C compiler found in \$PATH
3578See \`config.log' for more details." >&2;}
3579 { (exit 1); exit 1; }; }
3580
3581# Provide some information about the compiler.
3582echo "$as_me:$LINENO:" \
3583 "checking for C compiler version" >&5
3584ac_compiler=`set X $ac_compile; echo $2`
3585{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3586 (eval $ac_compiler --version </dev/null >&5) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }
3590{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3591 (eval $ac_compiler -v </dev/null >&5) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3596 (eval $ac_compiler -V </dev/null >&5) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600
3601echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3602echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3603if test "${ac_cv_c_compiler_gnu+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612
3613int
3614main ()
3615{
3616#ifndef __GNUC__
3617 choke me
3618#endif
3619
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext
3625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
b8cb2a14 3633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; } &&
3639 { ac_try='test -s conftest.$ac_objext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_compiler_gnu=yes
3646else
3647 echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650ac_compiler_gnu=no
3651fi
3652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3653ac_cv_c_compiler_gnu=$ac_compiler_gnu
3654
3655fi
3656echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3657echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3658GCC=`test $ac_compiler_gnu = yes && echo yes`
3659ac_test_CFLAGS=${CFLAGS+set}
3660ac_save_CFLAGS=$CFLAGS
3661CFLAGS="-g"
3662echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3663echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3664if test "${ac_cv_prog_cc_g+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h. */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h. */
3673
3674int
3675main ()
3676{
3677
3678 ;
3679 return 0;
3680}
3681_ACEOF
3682rm -f conftest.$ac_objext
3683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
b8cb2a14 3691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_prog_cc_g=yes
3704else
3705 echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708ac_cv_prog_cc_g=no
3709fi
3710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711fi
3712echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3713echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3714if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3718 CFLAGS="-g -O2"
3719 else
3720 CFLAGS="-g"
3721 fi
3722else
3723 if test "$GCC" = yes; then
3724 CFLAGS="-O2"
3725 else
3726 CFLAGS=
3727 fi
3728fi
3729echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3730echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3731if test "${ac_cv_prog_cc_stdc+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 ac_cv_prog_cc_stdc=no
3735ac_save_CC=$CC
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */
3742#include <stdarg.h>
3743#include <stdio.h>
3744#include <sys/types.h>
3745#include <sys/stat.h>
3746/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747struct buf { int x; };
3748FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749static char *e (p, i)
3750 char **p;
3751 int i;
3752{
3753 return p[i];
3754}
3755static char *f (char * (*g) (char **, int), char **p, ...)
3756{
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3763}
3764
3765/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std1 is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std1. */
3772int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774int test (int i, double x);
3775struct s1 {int (*f) (int a);};
3776struct s2 {int (*f) (double a);};
3777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778int argc;
3779char **argv;
3780int
3781main ()
3782{
3783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788# Don't try gcc -ansi; that turns off useful extensions and
3789# breaks some systems' header files.
3790# AIX -qlanglvl=ansi
3791# Ultrix and OSF/1 -std1
3792# HP-UX 10.20 and later -Ae
3793# HP-UX older versions -Aa -D_HPUX_SOURCE
3794# SVR4 -Xc -D__EXTENSIONS__
3795for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796do
3797 CC="$ac_save_CC $ac_arg"
3798 rm -f conftest.$ac_objext
3799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
b8cb2a14 3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_prog_cc_stdc=$ac_arg
3820break
3821else
3822 echo "$as_me: failed program was:" >&5
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
3825fi
3826rm -f conftest.err conftest.$ac_objext
3827done
3828rm -f conftest.$ac_ext conftest.$ac_objext
3829CC=$ac_save_CC
3830
3831fi
3832
3833case "x$ac_cv_prog_cc_stdc" in
3834 x|xno)
3835 echo "$as_me:$LINENO: result: none needed" >&5
3836echo "${ECHO_T}none needed" >&6 ;;
3837 *)
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3839echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3840 CC="$CC $ac_cv_prog_cc_stdc" ;;
3841esac
3842
3843# Some people use a C++ compiler to compile C. Since we use `exit',
3844# in C++ we need to declare it. In case someone uses the same compiler
3845# for both compiling C and C++ we need to have the C++ compiler decide
3846# the declaration of exit, since it's the most demanding environment.
3847cat >conftest.$ac_ext <<_ACEOF
3848#ifndef __cplusplus
3849 choke me
3850#endif
3851_ACEOF
3852rm -f conftest.$ac_objext
3853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
b8cb2a14 3861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest.$ac_objext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 for ac_declaration in \
3874 '' \
3875 'extern "C" void std::exit (int) throw (); using std::exit;' \
3876 'extern "C" void std::exit (int); using std::exit;' \
3877 'extern "C" void exit (int) throw ();' \
3878 'extern "C" void exit (int);' \
3879 'void exit (int);'
3880do
3881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887$ac_declaration
3888#include <stdlib.h>
3889int
3890main ()
3891{
3892exit (42);
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897rm -f conftest.$ac_objext
3898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
b8cb2a14 3906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest.$ac_objext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 :
3919else
3920 echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923continue
3924fi
3925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
3931/* end confdefs.h. */
3932$ac_declaration
3933int
3934main ()
3935{
3936exit (42);
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941rm -f conftest.$ac_objext
3942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
b8cb2a14 3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 break
3963else
3964 echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969done
3970rm -f conftest*
3971if test -n "$ac_declaration"; then
3972 echo '#ifdef __cplusplus' >>confdefs.h
3973 echo $ac_declaration >>confdefs.h
3974 echo '#endif' >>confdefs.h
3975fi
3976
3977else
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981fi
3982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
ec1a68c8 3989depcc="$CC" am_compiler_list=
3990
3991echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3992echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3993if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3997 # We make a subdir and do the tests there. Otherwise we can end up
3998 # making bogus files that we don't know about and never remove. For
3999 # instance it was reported that on HP-UX the gcc test will end up
4000 # making a dummy file named `D' -- because `-MD' means `put the output
4001 # in D'.
4002 mkdir conftest.dir
4003 # Copy depcomp to subdir because otherwise we won't find it if we're
4004 # using a relative directory.
4005 cp "$am_depcomp" conftest.dir
4006 cd conftest.dir
4007 # We will build objects and dependencies in a subdirectory because
4008 # it helps to detect inapplicable dependency modes. For instance
4009 # both Tru64's cc and ICC support -MD to output dependencies as a
4010 # side effect of compilation, but ICC will put the dependencies in
4011 # the current directory while Tru64 will put them in the object
4012 # directory.
4013 mkdir sub
4014
4015 am_cv_CC_dependencies_compiler_type=none
4016 if test "$am_compiler_list" = ""; then
4017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018 fi
4019 for depmode in $am_compiler_list; do
4020 # Setup a source with many dependencies, because some compilers
4021 # like to wrap large dependency lists on column 80 (with \), and
4022 # we should not choose a depcomp mode which is confused by this.
4023 #
4024 # We need to recreate these files for each test, as the compiler may
4025 # overwrite some of them when testing with obscure command lines.
4026 # This happens at least with the AIX C compiler.
4027 : > sub/conftest.c
4028 for i in 1 2 3 4 5 6; do
4029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031 # Solaris 8's {/usr,}/bin/sh.
4032 touch sub/conftst$i.h
4033 done
4034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036 case $depmode in
4037 nosideeffect)
4038 # after this tag, mechanisms are not by side-effect, so they'll
4039 # only be used when explicitly requested
4040 if test "x$enable_dependency_tracking" = xyes; then
4041 continue
4042 else
4043 break
4044 fi
4045 ;;
4046 none) break ;;
4047 esac
4048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4049 # mode. It turns out that the SunPro C++ compiler does not properly
4050 # handle `-M -o', and we need to detect this.
4051 if depmode=$depmode \
4052 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4055 >/dev/null 2>conftest.err &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4070 fi
4071 fi
4072 done
4073
4074 cd ..
4075 rm -rf conftest.dir
4076else
4077 am_cv_CC_dependencies_compiler_type=none
4078fi
4079
4080fi
4081echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4082echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085
4086
4087if
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4090 am__fastdepCC_TRUE=
4091 am__fastdepCC_FALSE='#'
4092else
4093 am__fastdepCC_TRUE='#'
4094 am__fastdepCC_FALSE=
4095fi
4096
4097
b3076f16 4098if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4100set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4101echo "$as_me:$LINENO: checking for $ac_word" >&5
4102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103if test "${ac_cv_prog_RANLIB+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 if test -n "$RANLIB"; then
4107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4119 fi
4120done
4121done
4122
4123fi
4124fi
4125RANLIB=$ac_cv_prog_RANLIB
4126if test -n "$RANLIB"; then
4127 echo "$as_me:$LINENO: result: $RANLIB" >&5
4128echo "${ECHO_T}$RANLIB" >&6
4129else
4130 echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6
4132fi
4133
4134fi
4135if test -z "$ac_cv_prog_RANLIB"; then
4136 ac_ct_RANLIB=$RANLIB
4137 # Extract the first word of "ranlib", so it can be a program name with args.
4138set dummy ranlib; ac_word=$2
4139echo "$as_me:$LINENO: checking for $ac_word" >&5
4140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144 if test -n "$ac_ct_RANLIB"; then
4145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154 ac_cv_prog_ac_ct_RANLIB="ranlib"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158done
4159done
4160
4161 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4162fi
4163fi
4164ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4165if test -n "$ac_ct_RANLIB"; then
4166 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4167echo "${ECHO_T}$ac_ct_RANLIB" >&6
4168else
4169 echo "$as_me:$LINENO: result: no" >&5
4170echo "${ECHO_T}no" >&6
4171fi
4172
4173 RANLIB=$ac_ct_RANLIB
4174else
4175 RANLIB="$ac_cv_prog_RANLIB"
4176fi
4177
4178# Find a good install program. We prefer a C program (faster),
4179# so one script is as good as another. But avoid the broken or
4180# incompatible versions:
4181# SysV /etc/install, /usr/sbin/install
4182# SunOS /usr/etc/install
4183# IRIX /sbin/install
4184# AIX /bin/install
4185# AmigaOS /C/install, which installs bootblocks on floppy discs
4186# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4187# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4188# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4189# OS/2's system install, which has a completely different semantic
4190# ./install, which can be erroneously created by make from ./install.sh.
4191echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4192echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4193if test -z "$INSTALL"; then
4194if test "${ac_cv_path_install+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 # Account for people who put trailing slashes in PATH elements.
4203case $as_dir/ in
4204 ./ | .// | /cC/* | \
4205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4206 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4207 /usr/ucb/* ) ;;
4208 *)
4209 # OSF1 and SCO ODT 3.0 have their own names for install.
4210 # Don't use installbsd from OSF since it installs stuff as root
4211 # by default.
4212 for ac_prog in ginstall scoinst install; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4215 if test $ac_prog = install &&
4216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4217 # AIX install. It has an incompatible calling convention.
4218 :
4219 elif test $ac_prog = install &&
4220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4221 # program-specific install script used by HP pwplus--don't use.
4222 :
4223 else
4224 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4225 break 3
4226 fi
4227 fi
4228 done
4229 done
4230 ;;
4231esac
4232done
4233
4234
4235fi
4236 if test "${ac_cv_path_install+set}" = set; then
4237 INSTALL=$ac_cv_path_install
4238 else
4239 # As a last resort, use the slow shell script. We don't cache a
4240 # path for INSTALL within a source directory, because that will
4241 # break other packages using the cache if that directory is
4242 # removed, or if the path is relative.
4243 INSTALL=$ac_install_sh
4244 fi
4245fi
4246echo "$as_me:$LINENO: result: $INSTALL" >&5
4247echo "${ECHO_T}$INSTALL" >&6
4248
4249# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4250# It thinks the first close brace ends the variable substitution.
4251test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4252
4253test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4254
4255test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4256
4257echo "$as_me:$LINENO: checking whether ln -s works" >&5
4258echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4259LN_S=$as_ln_s
4260if test "$LN_S" = "ln -s"; then
4261 echo "$as_me:$LINENO: result: yes" >&5
4262echo "${ECHO_T}yes" >&6
4263else
4264 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4265echo "${ECHO_T}no, using $LN_S" >&6
4266fi
4267
4268echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4269echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4270set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4271if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274 cat >conftest.make <<\_ACEOF
4275all:
4276 @echo 'ac_maketemp="$(MAKE)"'
4277_ACEOF
4278# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4279eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4280if test -n "$ac_maketemp"; then
4281 eval ac_cv_prog_make_${ac_make}_set=yes
4282else
4283 eval ac_cv_prog_make_${ac_make}_set=no
4284fi
4285rm -f conftest.make
4286fi
4287if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4288 echo "$as_me:$LINENO: result: yes" >&5
4289echo "${ECHO_T}yes" >&6
4290 SET_MAKE=
4291else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294 SET_MAKE="MAKE=${MAKE-make}"
4295fi
4296
4297ac_ext=c
4298ac_cpp='$CPP $CPPFLAGS'
4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4303echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4304# On Suns, sometimes $CPP names a directory.
4305if test -n "$CPP" && test -d "$CPP"; then
4306 CPP=
4307fi
4308if test -z "$CPP"; then
4309 if test "${ac_cv_prog_CPP+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 # Double quotes because CPP needs to be expanded
4313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4314 do
4315 ac_preproc_ok=false
4316for ac_c_preproc_warn_flag in '' yes
4317do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
4330#ifdef __STDC__
4331# include <limits.h>
4332#else
4333# include <assert.h>
4334#endif
4335 Syntax error
4336_ACEOF
4337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null; then
4345 if test -s conftest.err; then
4346 ac_cpp_err=$ac_c_preproc_warn_flag
4347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4348 else
4349 ac_cpp_err=
4350 fi
4351else
4352 ac_cpp_err=yes
4353fi
4354if test -z "$ac_cpp_err"; then
4355 :
4356else
4357 echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 # Broken: fails on valid input.
4361continue
4362fi
4363rm -f conftest.err conftest.$ac_ext
4364
4365 # OK, works on sane cases. Now check whether non-existent headers
4366 # can be detected and how.
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <ac_nonexistent.h>
4374_ACEOF
4375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null; then
4383 if test -s conftest.err; then
4384 ac_cpp_err=$ac_c_preproc_warn_flag
4385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4386 else
4387 ac_cpp_err=
4388 fi
4389else
4390 ac_cpp_err=yes
4391fi
4392if test -z "$ac_cpp_err"; then
4393 # Broken: success on invalid input.
4394continue
4395else
4396 echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 # Passes both tests.
4400ac_preproc_ok=:
4401break
4402fi
4403rm -f conftest.err conftest.$ac_ext
4404
4405done
4406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407rm -f conftest.err conftest.$ac_ext
4408if $ac_preproc_ok; then
4409 break
4410fi
4411
4412 done
4413 ac_cv_prog_CPP=$CPP
4414
4415fi
4416 CPP=$ac_cv_prog_CPP
4417else
4418 ac_cv_prog_CPP=$CPP
4419fi
4420echo "$as_me:$LINENO: result: $CPP" >&5
4421echo "${ECHO_T}$CPP" >&6
4422ac_preproc_ok=false
4423for ac_c_preproc_warn_flag in '' yes
4424do
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437#ifdef __STDC__
4438# include <limits.h>
4439#else
4440# include <assert.h>
4441#endif
4442 Syntax error
4443_ACEOF
4444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
4454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455 else
4456 ac_cpp_err=
4457 fi
4458else
4459 ac_cpp_err=yes
4460fi
4461if test -z "$ac_cpp_err"; then
4462 :
4463else
4464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 # Broken: fails on valid input.
4468continue
4469fi
4470rm -f conftest.err conftest.$ac_ext
4471
4472 # OK, works on sane cases. Now check whether non-existent headers
4473 # can be detected and how.
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480#include <ac_nonexistent.h>
4481_ACEOF
4482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null; then
4490 if test -s conftest.err; then
4491 ac_cpp_err=$ac_c_preproc_warn_flag
4492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4493 else
4494 ac_cpp_err=
4495 fi
4496else
4497 ac_cpp_err=yes
4498fi
4499if test -z "$ac_cpp_err"; then
4500 # Broken: success on invalid input.
4501continue
4502else
4503 echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 # Passes both tests.
4507ac_preproc_ok=:
4508break
4509fi
4510rm -f conftest.err conftest.$ac_ext
4511
4512done
4513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514rm -f conftest.err conftest.$ac_ext
4515if $ac_preproc_ok; then
4516 :
4517else
4518 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4519See \`config.log' for more details." >&5
4520echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4521See \`config.log' for more details." >&2;}
4522 { (exit 1); exit 1; }; }
4523fi
4524
4525ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531
4532echo "$as_me:$LINENO: checking for egrep" >&5
4533echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4534if test "${ac_cv_prog_egrep+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4538 then ac_cv_prog_egrep='grep -E'
4539 else ac_cv_prog_egrep='egrep'
4540 fi
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4543echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4544 EGREP=$ac_cv_prog_egrep
4545
4546
4547if test $ac_cv_c_compiler_gnu = yes; then
4548 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4549echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4550if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553 ac_pattern="Autoconf.*'x'"
4554 cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */
4560#include <sgtty.h>
4561Autoconf TIOCGETP
4562_ACEOF
4563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4565 ac_cv_prog_gcc_traditional=yes
4566else
4567 ac_cv_prog_gcc_traditional=no
4568fi
4569rm -f conftest*
4570
4571
4572 if test $ac_cv_prog_gcc_traditional = no; then
4573 cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
4579#include <termio.h>
4580Autoconf TCGETA
4581_ACEOF
4582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4584 ac_cv_prog_gcc_traditional=yes
4585fi
4586rm -f conftest*
4587
4588 fi
4589fi
4590echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4591echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4592 if test $ac_cv_prog_gcc_traditional = yes; then
4593 CC="$CC -traditional"
4594 fi
4595fi
4596
4597
4598case $target in
4599 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
4600 ANSI_SRC=""
4601 ;;
4602 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
4603 ANSI_SRC=""
4604
4605cat >>confdefs.h <<\_ACEOF
4606#define BROKEN_REGEX 1
4607_ACEOF
4608
4609 BROKEN_REGEX=yes
4610 ;;
4611 *-solaris*)
4612 EXTRA_DEFINE="-D__SOLARIS__"
4613 ANSI_SRC="-fno-builtin"
4614 ;;
4615 *-cygwin)
4616 ANSI_SRC="-fno-builtin"
4617 ;;
4618 *-linux*)
4619 EXTRA_DEFINE="-D_GNU_SOURCE"
4620 ANSI_SRC=""
4621 ;;
4622 *)
4623 ANSI_SRC=""
4624 ;;
4625esac
4626CFLAGS="$CFLAGS $EXTRA_DEFINE"
4627
4628
4629echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4630echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4631if test "${ac_cv_lib_socket_socket+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634 ac_check_lib_save_LIBS=$LIBS
4635LIBS="-lsocket $LIBS"
4636cat >conftest.$ac_ext <<_ACEOF
4637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
4642
4643/* Override any gcc2 internal prototype to avoid an error. */
4644#ifdef __cplusplus
4645extern "C"
4646#endif
4647/* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649char socket ();
4650int
4651main ()
4652{
4653socket ();
4654 ;
4655 return 0;
4656}
4657_ACEOF
4658rm -f conftest.$ac_objext conftest$ac_exeext
4659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660 (eval $ac_link) 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
b8cb2a14 4667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_cv_lib_socket_socket=yes
4680else
4681 echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684ac_cv_lib_socket_socket=no
4685fi
4686rm -f conftest.err conftest.$ac_objext \
4687 conftest$ac_exeext conftest.$ac_ext
4688LIBS=$ac_check_lib_save_LIBS
4689fi
4690echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4691echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4692if test $ac_cv_lib_socket_socket = yes; then
4693 cat >>confdefs.h <<_ACEOF
4694#define HAVE_LIBSOCKET 1
4695_ACEOF
4696
4697 LIBS="-lsocket $LIBS"
4698
4699fi
4700
4701
4702echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4703echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4704if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707 ac_check_lib_save_LIBS=$LIBS
4708LIBS="-lnsl $LIBS"
4709cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h. */
4711_ACEOF
4712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
4714/* end confdefs.h. */
4715
4716/* Override any gcc2 internal prototype to avoid an error. */
4717#ifdef __cplusplus
4718extern "C"
4719#endif
4720/* We use char because int might match the return type of a gcc2
4721 builtin and then its argument prototype would still apply. */
4722char gethostbyname ();
4723int
4724main ()
4725{
4726gethostbyname ();
4727 ;
4728 return 0;
4729}
4730_ACEOF
4731rm -f conftest.$ac_objext conftest$ac_exeext
4732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
b8cb2a14 4740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest$ac_exeext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_lib_nsl_gethostbyname=yes
4753else
4754 echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757ac_cv_lib_nsl_gethostbyname=no
4758fi
4759rm -f conftest.err conftest.$ac_objext \
4760 conftest$ac_exeext conftest.$ac_ext
4761LIBS=$ac_check_lib_save_LIBS
4762fi
4763echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4764echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4765if test $ac_cv_lib_nsl_gethostbyname = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767#define HAVE_LIBNSL 1
4768_ACEOF
4769
4770 LIBS="-lnsl $LIBS"
4771
4772fi
4773
4774
4775echo "$as_me:$LINENO: checking for main in -lm" >&5
4776echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4777if test "${ac_cv_lib_m_main+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 ac_check_lib_save_LIBS=$LIBS
4781LIBS="-lm $LIBS"
4782cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788
4789
4790int
4791main ()
4792{
4793main ();
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798rm -f conftest.$ac_objext conftest$ac_exeext
4799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4800 (eval $ac_link) 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
b8cb2a14 4807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest$ac_exeext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 ac_cv_lib_m_main=yes
4820else
4821 echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824ac_cv_lib_m_main=no
4825fi
4826rm -f conftest.err conftest.$ac_objext \
4827 conftest$ac_exeext conftest.$ac_ext
4828LIBS=$ac_check_lib_save_LIBS
4829fi
4830echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4831echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4832if test $ac_cv_lib_m_main = yes; then
4833 cat >>confdefs.h <<_ACEOF
4834#define HAVE_LIBM 1
4835_ACEOF
4836
4837 LIBS="-lm $LIBS"
4838
4839fi
4840
4841
4842echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4843echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4844if test "${ac_cv_header_stdc+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847 cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
4853#include <stdlib.h>
4854#include <stdarg.h>
4855#include <string.h>
4856#include <float.h>
4857
4858int
4859main ()
4860{
4861
4862 ;
4863 return 0;
4864}
4865_ACEOF
4866rm -f conftest.$ac_objext
4867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
b8cb2a14 4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_header_stdc=yes
4888else
4889 echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892ac_cv_header_stdc=no
4893fi
4894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895
4896if test $ac_cv_header_stdc = yes; then
4897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include <string.h>
4905
4906_ACEOF
4907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908 $EGREP "memchr" >/dev/null 2>&1; then
4909 :
4910else
4911 ac_cv_header_stdc=no
4912fi
4913rm -f conftest*
4914
4915fi
4916
4917if test $ac_cv_header_stdc = yes; then
4918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4919 cat >conftest.$ac_ext <<_ACEOF
4920/* confdefs.h. */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h. */
4925#include <stdlib.h>
4926
4927_ACEOF
4928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "free" >/dev/null 2>&1; then
4930 :
4931else
4932 ac_cv_header_stdc=no
4933fi
4934rm -f conftest*
4935
4936fi
4937
4938if test $ac_cv_header_stdc = yes; then
4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940 if test "$cross_compiling" = yes; then
4941 :
4942else
4943 cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */
4949#include <ctype.h>
4950#if ((' ' & 0x0FF) == 0x020)
4951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953#else
4954# define ISLOWER(c) \
4955 (('a' <= (c) && (c) <= 'i') \
4956 || ('j' <= (c) && (c) <= 'r') \
4957 || ('s' <= (c) && (c) <= 'z'))
4958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4959#endif
4960
4961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4962int
4963main ()
4964{
4965 int i;
4966 for (i = 0; i < 256; i++)
4967 if (XOR (islower (i), ISLOWER (i))
4968 || toupper (i) != TOUPPER (i))
4969 exit(2);
4970 exit (0);
4971}
4972_ACEOF
4973rm -f conftest$ac_exeext
4974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 :
4985else
4986 echo "$as_me: program exited with status $ac_status" >&5
4987echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990( exit $ac_status )
4991ac_cv_header_stdc=no
4992fi
4993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994fi
4995fi
4996fi
4997echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4998echo "${ECHO_T}$ac_cv_header_stdc" >&6
4999if test $ac_cv_header_stdc = yes; then
5000
5001cat >>confdefs.h <<\_ACEOF
5002#define STDC_HEADERS 1
5003_ACEOF
5004
5005fi
5006
5007
5008echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5009echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5010if test "${ac_cv_header_time+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013 cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h. */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h. */
5019#include <sys/types.h>
5020#include <sys/time.h>
5021#include <time.h>
5022
5023int
5024main ()
5025{
5026if ((struct tm *) 0)
5027return 0;
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest.$ac_objext
5033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
b8cb2a14 5041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest.$ac_objext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_header_time=yes
5054else
5055 echo "$as_me: failed program was:" >&5
5056sed 's/^/| /' conftest.$ac_ext >&5
5057
5058ac_cv_header_time=no
5059fi
5060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061fi
5062echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5063echo "${ECHO_T}$ac_cv_header_time" >&6
5064if test $ac_cv_header_time = yes; then
5065
5066cat >>confdefs.h <<\_ACEOF
5067#define TIME_WITH_SYS_TIME 1
5068_ACEOF
5069
5070fi
5071
5072echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5073echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5074if test "${ac_cv_struct_tm+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h. */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
5083#include <sys/types.h>
5084#include <time.h>
5085
5086int
5087main ()
5088{
5089struct tm *tp; tp->tm_sec;
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
b8cb2a14 5103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_struct_tm=time.h
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120ac_cv_struct_tm=sys/time.h
5121fi
5122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123fi
5124echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5125echo "${ECHO_T}$ac_cv_struct_tm" >&6
5126if test $ac_cv_struct_tm = sys/time.h; then
5127
5128cat >>confdefs.h <<\_ACEOF
5129#define TM_IN_SYS_TIME 1
5130_ACEOF
5131
5132fi
5133
5134
5135# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5146 inttypes.h stdint.h unistd.h
5147do
5148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5149echo "$as_me:$LINENO: checking for $ac_header" >&5
5150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5151if eval "test \"\${$as_ac_Header+set}\" = set"; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160$ac_includes_default
5161
5162#include <$ac_header>
5163_ACEOF
5164rm -f conftest.$ac_objext
5165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
b8cb2a14 5173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 eval "$as_ac_Header=yes"
5186else
5187 echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190eval "$as_ac_Header=no"
5191fi
5192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5193fi
5194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5196if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197 cat >>confdefs.h <<_ACEOF
5198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5199_ACEOF
5200
5201fi
5202
5203done
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226for ac_header in fcntl.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
5227do
5228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229if eval "test \"\${$as_ac_Header+set}\" = set"; then
5230 echo "$as_me:$LINENO: checking for $ac_header" >&5
5231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5232if eval "test \"\${$as_ac_Header+set}\" = set"; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234fi
5235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5237else
5238 # Is the header compilable?
5239echo "$as_me:$LINENO: checking $ac_header usability" >&5
5240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5241cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h. */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h. */
5247$ac_includes_default
5248#include <$ac_header>
5249_ACEOF
5250rm -f conftest.$ac_objext
5251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5252 (eval $ac_compile) 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
b8cb2a14 5259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_header_compiler=yes
5272else
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276ac_header_compiler=no
5277fi
5278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5280echo "${ECHO_T}$ac_header_compiler" >&6
5281
5282# Is the header present?
5283echo "$as_me:$LINENO: checking $ac_header presence" >&5
5284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5285cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291#include <$ac_header>
5292_ACEOF
5293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } >/dev/null; then
5301 if test -s conftest.err; then
5302 ac_cpp_err=$ac_c_preproc_warn_flag
5303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5304 else
5305 ac_cpp_err=
5306 fi
5307else
5308 ac_cpp_err=yes
5309fi
5310if test -z "$ac_cpp_err"; then
5311 ac_header_preproc=yes
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ac_header_preproc=no
5317fi
5318rm -f conftest.err conftest.$ac_ext
5319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5320echo "${ECHO_T}$ac_header_preproc" >&6
5321
5322# So? What about this header?
5323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5324 yes:no: )
5325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5329 ac_header_preproc=yes
5330 ;;
5331 no:yes:* )
5332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5344 (
5345 cat <<\_ASBOX
ceafd592 5346## --------------------------------------------------- ##
5347## Report this to x2serv-general@lists.sourceforge.net ##
5348## --------------------------------------------------- ##
b3076f16 5349_ASBOX
5350 ) |
5351 sed "s/^/$as_me: WARNING: /" >&2
5352 ;;
5353esac
5354echo "$as_me:$LINENO: checking for $ac_header" >&5
5355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5356if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359 eval "$as_ac_Header=\$ac_header_preproc"
5360fi
5361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5363
5364fi
5365if test `eval echo '${'$as_ac_Header'}'` = yes; then
5366 cat >>confdefs.h <<_ACEOF
5367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368_ACEOF
5369
5370fi
5371
5372done
5373
5374
5375echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
5376echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6
5377if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380 cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h. */
5386#include <dirent.h>
5387
5388int
5389main ()
5390{
5391static struct dirent ac_aggr;
5392if (ac_aggr.d_type)
5393return 0;
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext
5399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
b8cb2a14 5407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_cv_member_struct_dirent_d_type=yes
5420else
5421 echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h. */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h. */
5430#include <dirent.h>
5431
5432int
5433main ()
5434{
5435static struct dirent ac_aggr;
5436if (sizeof ac_aggr.d_type)
5437return 0;
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext
5443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
b8cb2a14 5451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_member_struct_dirent_d_type=yes
5464else
5465 echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468ac_cv_member_struct_dirent_d_type=no
5469fi
5470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473fi
5474echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5
5475echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6
5476if test $ac_cv_member_struct_dirent_d_type = yes; then
5477
5478cat >>confdefs.h <<\_ACEOF
5479#define HAVE_DIRENT_D_TYPE 1
5480_ACEOF
5481
5482fi
5483
5484
5485
5486for ac_func in gettimeofday
5487do
5488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5489echo "$as_me:$LINENO: checking for $ac_func" >&5
5490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5491if eval "test \"\${$as_ac_var+set}\" = set"; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494 cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h. */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h. */
5500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5502#define $ac_func innocuous_$ac_func
5503
5504/* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char $ac_func (); below.
5506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 <limits.h> exists even on freestanding compilers. */
5508
5509#ifdef __STDC__
5510# include <limits.h>
5511#else
5512# include <assert.h>
5513#endif
5514
5515#undef $ac_func
5516
5517/* Override any gcc2 internal prototype to avoid an error. */
5518#ifdef __cplusplus
5519extern "C"
5520{
5521#endif
5522/* We use char because int might match the return type of a gcc2
5523 builtin and then its argument prototype would still apply. */
5524char $ac_func ();
5525/* The GNU C library defines this for functions which it implements
5526 to always fail with ENOSYS. Some functions are actually named
5527 something starting with __ and the normal name is an alias. */
5528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5529choke me
5530#else
5531char (*f) () = $ac_func;
5532#endif
5533#ifdef __cplusplus
5534}
5535#endif
5536
5537int
5538main ()
5539{
5540return f != $ac_func;
5541 ;
5542 return 0;
5543}
5544_ACEOF
5545rm -f conftest.$ac_objext conftest$ac_exeext
5546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
b8cb2a14 5554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest$ac_exeext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 eval "$as_ac_var=yes"
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571eval "$as_ac_var=no"
5572fi
5573rm -f conftest.err conftest.$ac_objext \
5574 conftest$ac_exeext conftest.$ac_ext
5575fi
5576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5577echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5578if test `eval echo '${'$as_ac_var'}'` = yes; then
5579 cat >>confdefs.h <<_ACEOF
5580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5581_ACEOF
5582
5583fi
5584done
5585
5586if test $ac_cv_func_gettimeofday = no; then
5587
5588for ac_func in ftime
5589do
5590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5591echo "$as_me:$LINENO: checking for $ac_func" >&5
5592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5593if eval "test \"\${$as_ac_var+set}\" = set"; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5604#define $ac_func innocuous_$ac_func
5605
5606/* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char $ac_func (); below.
5608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5609 <limits.h> exists even on freestanding compilers. */
5610
5611#ifdef __STDC__
5612# include <limits.h>
5613#else
5614# include <assert.h>
5615#endif
5616
5617#undef $ac_func
5618
5619/* Override any gcc2 internal prototype to avoid an error. */
5620#ifdef __cplusplus
5621extern "C"
5622{
5623#endif
5624/* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5626char $ac_func ();
5627/* The GNU C library defines this for functions which it implements
5628 to always fail with ENOSYS. Some functions are actually named
5629 something starting with __ and the normal name is an alias. */
5630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5631choke me
5632#else
5633char (*f) () = $ac_func;
5634#endif
5635#ifdef __cplusplus
5636}
5637#endif
5638
5639int
5640main ()
5641{
5642return f != $ac_func;
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647rm -f conftest.$ac_objext conftest$ac_exeext
5648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
b8cb2a14 5656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 eval "$as_ac_var=yes"
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673eval "$as_ac_var=no"
5674fi
5675rm -f conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677fi
5678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5680if test `eval echo '${'$as_ac_var'}'` = yes; then
5681 cat >>confdefs.h <<_ACEOF
5682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5683_ACEOF
5684
5685else
ceafd592 5686 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
5687echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
b3076f16 5688 { (exit 1); exit 1; }; }
5689fi
5690done
5691
5692fi
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
ceafd592 5709
5710for ac_func in bcopy getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf
b3076f16 5711do
5712as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5713echo "$as_me:$LINENO: checking for $ac_func" >&5
5714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5715if eval "test \"\${$as_ac_var+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5726#define $ac_func innocuous_$ac_func
5727
5728/* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func (); below.
5730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5731 <limits.h> exists even on freestanding compilers. */
5732
5733#ifdef __STDC__
5734# include <limits.h>
5735#else
5736# include <assert.h>
5737#endif
5738
5739#undef $ac_func
5740
5741/* Override any gcc2 internal prototype to avoid an error. */
5742#ifdef __cplusplus
5743extern "C"
5744{
5745#endif
5746/* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5748char $ac_func ();
5749/* The GNU C library defines this for functions which it implements
5750 to always fail with ENOSYS. Some functions are actually named
5751 something starting with __ and the normal name is an alias. */
5752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5753choke me
5754#else
5755char (*f) () = $ac_func;
5756#endif
5757#ifdef __cplusplus
5758}
5759#endif
5760
5761int
5762main ()
5763{
5764return f != $ac_func;
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769rm -f conftest.$ac_objext conftest$ac_exeext
5770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>conftest.er1
5772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
b8cb2a14 5778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest$ac_exeext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 eval "$as_ac_var=yes"
5791else
5792 echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795eval "$as_ac_var=no"
5796fi
5797rm -f conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
5799fi
5800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5801echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5802if test `eval echo '${'$as_ac_var'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5805_ACEOF
5806
5807fi
5808done
5809
5810
5811
5812
5813
5814
5815
5816
5817for ac_func in select socket strcspn strspn strtod strtoul
5818do
5819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5820echo "$as_me:$LINENO: checking for $ac_func" >&5
5821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5822if eval "test \"\${$as_ac_var+set}\" = set"; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5833#define $ac_func innocuous_$ac_func
5834
5835/* System header to define __stub macros and hopefully few prototypes,
5836 which can conflict with char $ac_func (); below.
5837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5838 <limits.h> exists even on freestanding compilers. */
5839
5840#ifdef __STDC__
5841# include <limits.h>
5842#else
5843# include <assert.h>
5844#endif
5845
5846#undef $ac_func
5847
5848/* Override any gcc2 internal prototype to avoid an error. */
5849#ifdef __cplusplus
5850extern "C"
5851{
5852#endif
5853/* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5855char $ac_func ();
5856/* The GNU C library defines this for functions which it implements
5857 to always fail with ENOSYS. Some functions are actually named
5858 something starting with __ and the normal name is an alias. */
5859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5860choke me
5861#else
5862char (*f) () = $ac_func;
5863#endif
5864#ifdef __cplusplus
5865}
5866#endif
5867
5868int
5869main ()
5870{
5871return f != $ac_func;
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876rm -f conftest.$ac_objext conftest$ac_exeext
5877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
b8cb2a14 5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest$ac_exeext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 eval "$as_ac_var=yes"
5898else
5899 echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902eval "$as_ac_var=no"
5903fi
5904rm -f conftest.err conftest.$ac_objext \
5905 conftest$ac_exeext conftest.$ac_ext
5906fi
5907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5909if test `eval echo '${'$as_ac_var'}'` = yes; then
5910 cat >>confdefs.h <<_ACEOF
5911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5912_ACEOF
5913
5914else
ceafd592 5915 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
5916echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 5917 { (exit 1); exit 1; }; }
5918fi
5919done
5920
5921
5922# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5923# for constant arguments. Useless!
5924echo "$as_me:$LINENO: checking for working alloca.h" >&5
5925echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5926if test "${ac_cv_working_alloca_h+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929 cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h. */
5935#include <alloca.h>
5936int
5937main ()
5938{
5939char *p = (char *) alloca (2 * sizeof (int));
5940 ;
5941 return 0;
5942}
5943_ACEOF
5944rm -f conftest.$ac_objext conftest$ac_exeext
5945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
b8cb2a14 5953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_working_alloca_h=yes
5966else
5967 echo "$as_me: failed program was:" >&5
5968sed 's/^/| /' conftest.$ac_ext >&5
5969
5970ac_cv_working_alloca_h=no
5971fi
5972rm -f conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974fi
5975echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5976echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5977if test $ac_cv_working_alloca_h = yes; then
5978
5979cat >>confdefs.h <<\_ACEOF
5980#define HAVE_ALLOCA_H 1
5981_ACEOF
5982
5983fi
5984
5985echo "$as_me:$LINENO: checking for alloca" >&5
5986echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5987if test "${ac_cv_func_alloca_works+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
5996#ifdef __GNUC__
5997# define alloca __builtin_alloca
5998#else
5999# ifdef _MSC_VER
6000# include <malloc.h>
6001# define alloca _alloca
6002# else
6003# if HAVE_ALLOCA_H
6004# include <alloca.h>
6005# else
6006# ifdef _AIX
6007 #pragma alloca
6008# else
6009# ifndef alloca /* predefined by HP cc +Olibcalls */
6010char *alloca ();
6011# endif
6012# endif
6013# endif
6014# endif
6015#endif
6016
6017int
6018main ()
6019{
6020char *p = (char *) alloca (1);
6021 ;
6022 return 0;
6023}
6024_ACEOF
6025rm -f conftest.$ac_objext conftest$ac_exeext
6026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
b8cb2a14 6034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest$ac_exeext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_cv_func_alloca_works=yes
6047else
6048 echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051ac_cv_func_alloca_works=no
6052fi
6053rm -f conftest.err conftest.$ac_objext \
6054 conftest$ac_exeext conftest.$ac_ext
6055fi
6056echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6057echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6058
6059if test $ac_cv_func_alloca_works = yes; then
6060
6061cat >>confdefs.h <<\_ACEOF
6062#define HAVE_ALLOCA 1
6063_ACEOF
6064
6065else
6066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6067# that cause trouble. Some versions do not even contain alloca or
6068# contain a buggy version. If you still want to use their alloca,
6069# use ar to extract alloca.o from them instead of compiling alloca.c.
6070
6071ALLOCA=alloca.$ac_objext
6072
6073cat >>confdefs.h <<\_ACEOF
6074#define C_ALLOCA 1
6075_ACEOF
6076
6077
6078echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6079echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6080if test "${ac_cv_os_cray+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089#if defined(CRAY) && ! defined(CRAY2)
6090webecray
6091#else
6092wenotbecray
6093#endif
6094
6095_ACEOF
6096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "webecray" >/dev/null 2>&1; then
6098 ac_cv_os_cray=yes
6099else
6100 ac_cv_os_cray=no
6101fi
6102rm -f conftest*
6103
6104fi
6105echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6106echo "${ECHO_T}$ac_cv_os_cray" >&6
6107if test $ac_cv_os_cray = yes; then
6108 for ac_func in _getb67 GETB67 getb67; do
6109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6110echo "$as_me:$LINENO: checking for $ac_func" >&5
6111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6112if eval "test \"\${$as_ac_var+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6123#define $ac_func innocuous_$ac_func
6124
6125/* System header to define __stub macros and hopefully few prototypes,
6126 which can conflict with char $ac_func (); below.
6127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6128 <limits.h> exists even on freestanding compilers. */
6129
6130#ifdef __STDC__
6131# include <limits.h>
6132#else
6133# include <assert.h>
6134#endif
6135
6136#undef $ac_func
6137
6138/* Override any gcc2 internal prototype to avoid an error. */
6139#ifdef __cplusplus
6140extern "C"
6141{
6142#endif
6143/* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6145char $ac_func ();
6146/* The GNU C library defines this for functions which it implements
6147 to always fail with ENOSYS. Some functions are actually named
6148 something starting with __ and the normal name is an alias. */
6149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6150choke me
6151#else
6152char (*f) () = $ac_func;
6153#endif
6154#ifdef __cplusplus
6155}
6156#endif
6157
6158int
6159main ()
6160{
6161return f != $ac_func;
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext conftest$ac_exeext
6167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
b8cb2a14 6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 eval "$as_ac_var=yes"
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192eval "$as_ac_var=no"
6193fi
6194rm -f conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196fi
6197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6198echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6199if test `eval echo '${'$as_ac_var'}'` = yes; then
6200
6201cat >>confdefs.h <<_ACEOF
6202#define CRAY_STACKSEG_END $ac_func
6203_ACEOF
6204
6205 break
6206fi
6207
6208 done
6209fi
6210
6211echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6212echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6213if test "${ac_cv_c_stack_direction+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216 if test "$cross_compiling" = yes; then
6217 ac_cv_c_stack_direction=0
6218else
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225int
6226find_stack_direction ()
6227{
6228 static char *addr = 0;
6229 auto char dummy;
6230 if (addr == 0)
6231 {
6232 addr = &dummy;
6233 return find_stack_direction ();
6234 }
6235 else
6236 return (&dummy > addr) ? 1 : -1;
6237}
6238
6239int
6240main ()
6241{
6242 exit (find_stack_direction () < 0);
6243}
6244_ACEOF
6245rm -f conftest$ac_exeext
6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_c_stack_direction=1
6257else
6258 echo "$as_me: program exited with status $ac_status" >&5
6259echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262( exit $ac_status )
6263ac_cv_c_stack_direction=-1
6264fi
6265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6266fi
6267fi
6268echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6269echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6270
6271cat >>confdefs.h <<_ACEOF
6272#define STACK_DIRECTION $ac_cv_c_stack_direction
6273_ACEOF
6274
6275
6276fi
6277
6278
6279
6280for ac_header in stdlib.h unistd.h
6281do
6282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283if eval "test \"\${$as_ac_Header+set}\" = set"; then
6284 echo "$as_me:$LINENO: checking for $ac_header" >&5
6285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6286if eval "test \"\${$as_ac_Header+set}\" = set"; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288fi
6289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6291else
6292 # Is the header compilable?
6293echo "$as_me:$LINENO: checking $ac_header usability" >&5
6294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6295cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
6301$ac_includes_default
6302#include <$ac_header>
6303_ACEOF
6304rm -f conftest.$ac_objext
6305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
b8cb2a14 6313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_header_compiler=yes
6326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330ac_header_compiler=no
6331fi
6332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6334echo "${ECHO_T}$ac_header_compiler" >&6
6335
6336# Is the header present?
6337echo "$as_me:$LINENO: checking $ac_header presence" >&5
6338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6339cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345#include <$ac_header>
6346_ACEOF
6347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null; then
6355 if test -s conftest.err; then
6356 ac_cpp_err=$ac_c_preproc_warn_flag
6357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6358 else
6359 ac_cpp_err=
6360 fi
6361else
6362 ac_cpp_err=yes
6363fi
6364if test -z "$ac_cpp_err"; then
6365 ac_header_preproc=yes
6366else
6367 echo "$as_me: failed program was:" >&5
6368sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_header_preproc=no
6371fi
6372rm -f conftest.err conftest.$ac_ext
6373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6374echo "${ECHO_T}$ac_header_preproc" >&6
6375
6376# So? What about this header?
6377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6378 yes:no: )
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6383 ac_header_preproc=yes
6384 ;;
6385 no:yes:* )
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6398 (
6399 cat <<\_ASBOX
ceafd592 6400## --------------------------------------------------- ##
6401## Report this to x2serv-general@lists.sourceforge.net ##
6402## --------------------------------------------------- ##
b3076f16 6403_ASBOX
6404 ) |
6405 sed "s/^/$as_me: WARNING: /" >&2
6406 ;;
6407esac
6408echo "$as_me:$LINENO: checking for $ac_header" >&5
6409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413 eval "$as_ac_Header=\$ac_header_preproc"
6414fi
6415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417
6418fi
6419if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420 cat >>confdefs.h <<_ACEOF
6421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422_ACEOF
6423
6424fi
6425
6426done
6427
6428
6429for ac_func in getpagesize
6430do
6431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6432echo "$as_me:$LINENO: checking for $ac_func" >&5
6433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6434if eval "test \"\${$as_ac_var+set}\" = set"; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437 cat >conftest.$ac_ext <<_ACEOF
6438/* confdefs.h. */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
6442/* end confdefs.h. */
6443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6445#define $ac_func innocuous_$ac_func
6446
6447/* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func (); below.
6449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6450 <limits.h> exists even on freestanding compilers. */
6451
6452#ifdef __STDC__
6453# include <limits.h>
6454#else
6455# include <assert.h>
6456#endif
6457
6458#undef $ac_func
6459
6460/* Override any gcc2 internal prototype to avoid an error. */
6461#ifdef __cplusplus
6462extern "C"
6463{
6464#endif
6465/* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467char $ac_func ();
6468/* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6472choke me
6473#else
6474char (*f) () = $ac_func;
6475#endif
6476#ifdef __cplusplus
6477}
6478#endif
6479
6480int
6481main ()
6482{
6483return f != $ac_func;
6484 ;
6485 return 0;
6486}
6487_ACEOF
6488rm -f conftest.$ac_objext conftest$ac_exeext
6489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490 (eval $ac_link) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
b8cb2a14 6497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 eval "$as_ac_var=yes"
6510else
6511 echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
6514eval "$as_ac_var=no"
6515fi
6516rm -f conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6518fi
6519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6521if test `eval echo '${'$as_ac_var'}'` = yes; then
6522 cat >>confdefs.h <<_ACEOF
6523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6524_ACEOF
6525
6526fi
6527done
6528
6529echo "$as_me:$LINENO: checking for working mmap" >&5
6530echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6531if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 if test "$cross_compiling" = yes; then
6535 ac_cv_func_mmap_fixed_mapped=no
6536else
6537 cat >conftest.$ac_ext <<_ACEOF
6538/* confdefs.h. */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
6542/* end confdefs.h. */
6543$ac_includes_default
6544/* malloc might have been renamed as rpl_malloc. */
6545#undef malloc
6546
6547/* Thanks to Mike Haertel and Jim Avera for this test.
6548 Here is a matrix of mmap possibilities:
6549 mmap private not fixed
6550 mmap private fixed at somewhere currently unmapped
6551 mmap private fixed at somewhere already mapped
6552 mmap shared not fixed
6553 mmap shared fixed at somewhere currently unmapped
6554 mmap shared fixed at somewhere already mapped
6555 For private mappings, we should verify that changes cannot be read()
6556 back from the file, nor mmap's back from the file at a different
6557 address. (There have been systems where private was not correctly
6558 implemented like the infamous i386 svr4.0, and systems where the
6559 VM page cache was not coherent with the file system buffer cache
6560 like early versions of FreeBSD and possibly contemporary NetBSD.)
6561 For shared mappings, we should conversely verify that changes get
6562 propagated back to all the places they're supposed to be.
6563
6564 Grep wants private fixed already mapped.
6565 The main things grep needs to know about mmap are:
6566 * does it exist and is it safe to write into the mmap'd area
6567 * how to use it (BSD variants) */
6568
6569#include <fcntl.h>
6570#include <sys/mman.h>
6571
6572#if !STDC_HEADERS && !HAVE_STDLIB_H
6573char *malloc ();
6574#endif
6575
6576/* This mess was copied from the GNU getpagesize.h. */
6577#if !HAVE_GETPAGESIZE
6578/* Assume that all systems that can run configure have sys/param.h. */
6579# if !HAVE_SYS_PARAM_H
6580# define HAVE_SYS_PARAM_H 1
6581# endif
6582
6583# ifdef _SC_PAGESIZE
6584# define getpagesize() sysconf(_SC_PAGESIZE)
6585# else /* no _SC_PAGESIZE */
6586# if HAVE_SYS_PARAM_H
6587# include <sys/param.h>
6588# ifdef EXEC_PAGESIZE
6589# define getpagesize() EXEC_PAGESIZE
6590# else /* no EXEC_PAGESIZE */
6591# ifdef NBPG
6592# define getpagesize() NBPG * CLSIZE
6593# ifndef CLSIZE
6594# define CLSIZE 1
6595# endif /* no CLSIZE */
6596# else /* no NBPG */
6597# ifdef NBPC
6598# define getpagesize() NBPC
6599# else /* no NBPC */
6600# ifdef PAGESIZE
6601# define getpagesize() PAGESIZE
6602# endif /* PAGESIZE */
6603# endif /* no NBPC */
6604# endif /* no NBPG */
6605# endif /* no EXEC_PAGESIZE */
6606# else /* no HAVE_SYS_PARAM_H */
6607# define getpagesize() 8192 /* punt totally */
6608# endif /* no HAVE_SYS_PARAM_H */
6609# endif /* no _SC_PAGESIZE */
6610
6611#endif /* no HAVE_GETPAGESIZE */
6612
6613int
6614main ()
6615{
6616 char *data, *data2, *data3;
6617 int i, pagesize;
6618 int fd;
6619
6620 pagesize = getpagesize ();
6621
6622 /* First, make a file with some known garbage in it. */
6623 data = (char *) malloc (pagesize);
6624 if (!data)
6625 exit (1);
6626 for (i = 0; i < pagesize; ++i)
6627 *(data + i) = rand ();
6628 umask (0);
6629 fd = creat ("conftest.mmap", 0600);
6630 if (fd < 0)
6631 exit (1);
6632 if (write (fd, data, pagesize) != pagesize)
6633 exit (1);
6634 close (fd);
6635
6636 /* Next, try to mmap the file at a fixed address which already has
6637 something else allocated at it. If we can, also make sure that
6638 we see the same garbage. */
6639 fd = open ("conftest.mmap", O_RDWR);
6640 if (fd < 0)
6641 exit (1);
6642 data2 = (char *) malloc (2 * pagesize);
6643 if (!data2)
6644 exit (1);
6645 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6646 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6647 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6648 exit (1);
6649 for (i = 0; i < pagesize; ++i)
6650 if (*(data + i) != *(data2 + i))
6651 exit (1);
6652
6653 /* Finally, make sure that changes to the mapped area do not
6654 percolate back to the file as seen by read(). (This is a bug on
6655 some variants of i386 svr4.0.) */
6656 for (i = 0; i < pagesize; ++i)
6657 *(data2 + i) = *(data2 + i) + 1;
6658 data3 = (char *) malloc (pagesize);
6659 if (!data3)
6660 exit (1);
6661 if (read (fd, data3, pagesize) != pagesize)
6662 exit (1);
6663 for (i = 0; i < pagesize; ++i)
6664 if (*(data + i) != *(data3 + i))
6665 exit (1);
6666 close (fd);
6667 exit (0);
6668}
6669_ACEOF
6670rm -f conftest$ac_exeext
6671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_func_mmap_fixed_mapped=yes
6682else
6683 echo "$as_me: program exited with status $ac_status" >&5
6684echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
6686
6687( exit $ac_status )
6688ac_cv_func_mmap_fixed_mapped=no
6689fi
6690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6691fi
6692fi
6693echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6694echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6695if test $ac_cv_func_mmap_fixed_mapped = yes; then
6696
6697cat >>confdefs.h <<\_ACEOF
6698#define HAVE_MMAP 1
6699_ACEOF
6700
6701fi
6702rm -f conftest.mmap
6703
6704
6705echo "$as_me:$LINENO: checking for sin_len" >&5
6706echo $ECHO_N "checking for sin_len... $ECHO_C" >&6
6707if test "${ac_cv_sin_len+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710 cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h. */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h. */
6716#include <sys/types.h>
6717#include <netinet/in.h>
6718int
6719main ()
6720{
6721struct sockaddr_in *sin; sin->sin_len = 0;
6722 ;
6723 return 0;
6724}
6725_ACEOF
6726rm -f conftest.$ac_objext
6727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
b8cb2a14 6735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_sin_len="yes"
6748else
6749 echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
6751
6752ac_cv_sin_len="no"
6753fi
6754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6755fi
6756echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
6757echo "${ECHO_T}$ac_cv_sin_len" >&6
6758if test $ac_cv_sin_len = yes ; then
6759
6760cat >>confdefs.h <<\_ACEOF
6761#define HAVE_SIN_LEN 1
6762_ACEOF
6763
6764fi
6765
6766OLD_CFLAGS=$CFLAGS
6767CFLAGS="$CFLAGS -W -Wall -Werror"
6768
6769echo "$as_me:$LINENO: checking for time_t format" >&5
6770echo $ECHO_N "checking for time_t format... $ECHO_C" >&6
6771if test "${ac_cv_fmt_time_t+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774
6775ac_cv_fmt_time_t=no
6776cat >conftest.$ac_ext <<_ACEOF
6777#include <sys/types.h>
6778#include <stdio.h>
6779void myfunc(void) {
6780 time_t test=0;
6781 printf("%li", test);
6782}
6783_ACEOF
6784rm -f conftest.$ac_objext
6785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786 (eval $ac_compile) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
b8cb2a14 6793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_fmt_time_t="\"%li\""
6806else
6807 echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
6810fi
6811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812if test $ac_cv_fmt_time_t = no; then
6813cat >conftest.$ac_ext <<_ACEOF
6814#include <sys/types.h>
6815#include <stdio.h>
6816void myfunc(void) {
6817 time_t test=0;
6818 printf("%i", test);
6819}
6820_ACEOF
6821rm -f conftest.$ac_objext
6822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
b8cb2a14 6830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest.$ac_objext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_fmt_time_t="\"%i\""
6843else
6844 echo "$as_me: failed program was:" >&5
6845sed 's/^/| /' conftest.$ac_ext >&5
6846
6847fi
6848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849fi
6850if test $ac_cv_fmt_time_t = no; then
6851{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
6852Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
6853echo "$as_me: error: Cannot detect format string for time_t
6854Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
6855 { (exit 1); exit 1; }; }
6856fi
6857
6858fi
6859
6860
6861cat >>confdefs.h <<_ACEOF
6862#define FMT_TIME_T $ac_cv_fmt_time_t
6863_ACEOF
6864
6865echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
6866echo "${ECHO_T}$ac_cv_fmt_time_t" >&6
6867
6868echo "$as_me:$LINENO: checking for va_copy" >&5
6869echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
6870if test "${ac_cv_c_va_copy+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
6879#include <stdarg.h>
6880int
6881main ()
6882{
6883va_list ap1, ap2; va_copy(ap1, ap2);
6884 ;
6885 return 0;
6886}
6887_ACEOF
6888rm -f conftest.$ac_objext conftest$ac_exeext
6889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
b8cb2a14 6897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_c_va_copy="yes"
6910else
6911 echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914ac_cv_c_va_copy="no"
6915
6916fi
6917rm -f conftest.err conftest.$ac_objext \
6918 conftest$ac_exeext conftest.$ac_ext
6919fi
6920echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
6921echo "${ECHO_T}$ac_cv_c_va_copy" >&6
6922if test "$ac_cv_c_va_copy" = "yes" ; then
6923
6924cat >>confdefs.h <<\_ACEOF
6925#define HAVE_VA_COPY 1
6926_ACEOF
6927
6928fi
6929
6930echo "$as_me:$LINENO: checking for __va_copy" >&5
6931echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
6932if test "${ac_cv_c___va_copy+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 cat >conftest.$ac_ext <<_ACEOF
6936/* confdefs.h. */
6937_ACEOF
6938cat confdefs.h >>conftest.$ac_ext
6939cat >>conftest.$ac_ext <<_ACEOF
6940/* end confdefs.h. */
6941#include <stdarg.h>
6942int
6943main ()
6944{
6945va_list ap1, ap2; __va_copy(ap1, ap2);
6946 ;
6947 return 0;
6948}
6949_ACEOF
6950rm -f conftest.$ac_objext conftest$ac_exeext
6951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952 (eval $ac_link) 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
b8cb2a14 6959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_c___va_copy="yes"
6972else
6973 echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976ac_cv_c___va_copy="no"
6977
6978fi
6979rm -f conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981fi
6982echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
6983echo "${ECHO_T}$ac_cv_c___va_copy" >&6
6984if test "$ac_cv_c___va_copy" = "yes" ; then
6985
6986cat >>confdefs.h <<\_ACEOF
6987#define HAVE___VA_COPY 1
6988_ACEOF
6989
6990fi
6991
6992CFLAGS=$OLD_CFLAGS
6993
6994echo "$as_me:$LINENO: checking which malloc to use" >&5
6995echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6
6996
6997# Check whether --with-malloc or --without-malloc was given.
6998if test "${with_malloc+set}" = set; then
6999 withval="$with_malloc"
7000
7001else
7002 withval="system"
7003fi;
7004if test "x$withval" = "xsystem" ; then
7005 echo "$as_me:$LINENO: result: system" >&5
7006echo "${ECHO_T}system" >&6
7007
7008cat >>confdefs.h <<\_ACEOF
7009#define WITH_MALLOC_SYSTEM 1
7010_ACEOF
7011
7012elif test "x$withval" = "xdmalloc" ; then
7013 echo "$as_me:$LINENO: result: dmalloc" >&5
7014echo "${ECHO_T}dmalloc" >&6
7015
7016for ac_header in dmalloc.h
7017do
7018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7019if eval "test \"\${$as_ac_Header+set}\" = set"; then
7020 echo "$as_me:$LINENO: checking for $ac_header" >&5
7021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7022if eval "test \"\${$as_ac_Header+set}\" = set"; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024fi
7025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7027else
7028 # Is the header compilable?
7029echo "$as_me:$LINENO: checking $ac_header usability" >&5
7030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7031cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h. */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h. */
7037$ac_includes_default
7038#include <$ac_header>
7039_ACEOF
7040rm -f conftest.$ac_objext
7041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
b8cb2a14 7049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_header_compiler=yes
7062else
7063 echo "$as_me: failed program was:" >&5
7064sed 's/^/| /' conftest.$ac_ext >&5
7065
7066ac_header_compiler=no
7067fi
7068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7070echo "${ECHO_T}$ac_header_compiler" >&6
7071
7072# Is the header present?
7073echo "$as_me:$LINENO: checking $ac_header presence" >&5
7074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7075cat >conftest.$ac_ext <<_ACEOF
7076/* confdefs.h. */
7077_ACEOF
7078cat confdefs.h >>conftest.$ac_ext
7079cat >>conftest.$ac_ext <<_ACEOF
7080/* end confdefs.h. */
7081#include <$ac_header>
7082_ACEOF
7083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } >/dev/null; then
7091 if test -s conftest.err; then
7092 ac_cpp_err=$ac_c_preproc_warn_flag
7093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7094 else
7095 ac_cpp_err=
7096 fi
7097else
7098 ac_cpp_err=yes
7099fi
7100if test -z "$ac_cpp_err"; then
7101 ac_header_preproc=yes
7102else
7103 echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106 ac_header_preproc=no
7107fi
7108rm -f conftest.err conftest.$ac_ext
7109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110echo "${ECHO_T}$ac_header_preproc" >&6
7111
7112# So? What about this header?
7113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7114 yes:no: )
7115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119 ac_header_preproc=yes
7120 ;;
7121 no:yes:* )
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7134 (
7135 cat <<\_ASBOX
ceafd592 7136## --------------------------------------------------- ##
7137## Report this to x2serv-general@lists.sourceforge.net ##
7138## --------------------------------------------------- ##
b3076f16 7139_ASBOX
7140 ) |
7141 sed "s/^/$as_me: WARNING: /" >&2
7142 ;;
7143esac
7144echo "$as_me:$LINENO: checking for $ac_header" >&5
7145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 eval "$as_ac_Header=\$ac_header_preproc"
7150fi
7151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7153
7154fi
7155if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156 cat >>confdefs.h <<_ACEOF
7157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158_ACEOF
7159
7160else
7161 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
7162echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
7163 { (exit 1); exit 1; }; }
7164fi
7165
7166done
7167
7168
7169echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
7170echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
7171if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 ac_check_lib_save_LIBS=$LIBS
7175LIBS="-ldmalloc $LIBS"
7176cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h. */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h. */
7182
7183/* Override any gcc2 internal prototype to avoid an error. */
7184#ifdef __cplusplus
7185extern "C"
7186#endif
7187/* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7189char malloc ();
7190int
7191main ()
7192{
7193malloc ();
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
b8cb2a14 7207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 ac_cv_lib_dmalloc_malloc=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224ac_cv_lib_dmalloc_malloc=no
7225fi
7226rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228LIBS=$ac_check_lib_save_LIBS
7229fi
7230echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
7231echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
7232if test $ac_cv_lib_dmalloc_malloc = yes; then
7233 cat >>confdefs.h <<_ACEOF
7234#define HAVE_LIBDMALLOC 1
7235_ACEOF
7236
7237 LIBS="-ldmalloc $LIBS"
7238
7239else
7240 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
7241echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
7242 { (exit 1); exit 1; }; }
7243fi
7244
7245
7246cat >>confdefs.h <<\_ACEOF
7247#define WITH_MALLOC_DMALLOC 1
7248_ACEOF
7249
7250elif test "x$withval" = "xmpatrol" ; then
7251 echo "$as_me:$LINENO: result: mpatrol" >&5
7252echo "${ECHO_T}mpatrol" >&6
7253
7254for ac_header in mpatrol.h
7255do
7256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7257if eval "test \"\${$as_ac_Header+set}\" = set"; then
7258 echo "$as_me:$LINENO: checking for $ac_header" >&5
7259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7260if eval "test \"\${$as_ac_Header+set}\" = set"; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262fi
7263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7265else
7266 # Is the header compilable?
7267echo "$as_me:$LINENO: checking $ac_header usability" >&5
7268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7269cat >conftest.$ac_ext <<_ACEOF
7270/* confdefs.h. */
7271_ACEOF
7272cat confdefs.h >>conftest.$ac_ext
7273cat >>conftest.$ac_ext <<_ACEOF
7274/* end confdefs.h. */
7275$ac_includes_default
7276#include <$ac_header>
7277_ACEOF
7278rm -f conftest.$ac_objext
7279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
b8cb2a14 7287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_header_compiler=yes
7300else
7301 echo "$as_me: failed program was:" >&5
7302sed 's/^/| /' conftest.$ac_ext >&5
7303
7304ac_header_compiler=no
7305fi
7306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7308echo "${ECHO_T}$ac_header_compiler" >&6
7309
7310# Is the header present?
7311echo "$as_me:$LINENO: checking $ac_header presence" >&5
7312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7313cat >conftest.$ac_ext <<_ACEOF
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
7319#include <$ac_header>
7320_ACEOF
7321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } >/dev/null; then
7329 if test -s conftest.err; then
7330 ac_cpp_err=$ac_c_preproc_warn_flag
7331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7332 else
7333 ac_cpp_err=
7334 fi
7335else
7336 ac_cpp_err=yes
7337fi
7338if test -z "$ac_cpp_err"; then
7339 ac_header_preproc=yes
7340else
7341 echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 ac_header_preproc=no
7345fi
7346rm -f conftest.err conftest.$ac_ext
7347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7348echo "${ECHO_T}$ac_header_preproc" >&6
7349
7350# So? What about this header?
7351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7352 yes:no: )
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7357 ac_header_preproc=yes
7358 ;;
7359 no:yes:* )
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7372 (
7373 cat <<\_ASBOX
ceafd592 7374## --------------------------------------------------- ##
7375## Report this to x2serv-general@lists.sourceforge.net ##
7376## --------------------------------------------------- ##
b3076f16 7377_ASBOX
7378 ) |
7379 sed "s/^/$as_me: WARNING: /" >&2
7380 ;;
7381esac
7382echo "$as_me:$LINENO: checking for $ac_header" >&5
7383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7384if eval "test \"\${$as_ac_Header+set}\" = set"; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387 eval "$as_ac_Header=\$ac_header_preproc"
7388fi
7389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391
7392fi
7393if test `eval echo '${'$as_ac_Header'}'` = yes; then
7394 cat >>confdefs.h <<_ACEOF
7395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7396_ACEOF
7397
7398else
7399 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
7400echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
7401 { (exit 1); exit 1; }; }
7402fi
7403
7404done
7405
7406
7407echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
7408echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7409if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411else
7412 ac_check_lib_save_LIBS=$LIBS
7413LIBS="-lelf $LIBS"
7414cat >conftest.$ac_ext <<_ACEOF
7415/* confdefs.h. */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h. */
7420
7421/* Override any gcc2 internal prototype to avoid an error. */
7422#ifdef __cplusplus
7423extern "C"
7424#endif
7425/* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7427char elf_begin ();
7428int
7429main ()
7430{
7431elf_begin ();
7432 ;
7433 return 0;
7434}
7435_ACEOF
7436rm -f conftest.$ac_objext conftest$ac_exeext
7437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
b8cb2a14 7445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_lib_elf_elf_begin=yes
7458else
7459 echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
7462ac_cv_lib_elf_elf_begin=no
7463fi
7464rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466LIBS=$ac_check_lib_save_LIBS
7467fi
7468echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
7469echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7470if test $ac_cv_lib_elf_elf_begin = yes; then
7471 cat >>confdefs.h <<_ACEOF
7472#define HAVE_LIBELF 1
7473_ACEOF
7474
7475 LIBS="-lelf $LIBS"
7476
7477fi
7478
7479
7480echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
7481echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6
7482if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 ac_check_lib_save_LIBS=$LIBS
7486LIBS="-lmpatrol $LIBS"
7487cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493
7494/* Override any gcc2 internal prototype to avoid an error. */
7495#ifdef __cplusplus
7496extern "C"
7497#endif
7498/* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500char __mp_atexit ();
7501int
7502main ()
7503{
7504__mp_atexit ();
7505 ;
7506 return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext conftest$ac_exeext
7510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
b8cb2a14 7518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_mpatrol___mp_atexit=yes
7531else
7532 echo "$as_me: failed program was:" >&5
7533sed 's/^/| /' conftest.$ac_ext >&5
7534
7535ac_cv_lib_mpatrol___mp_atexit=no
7536fi
7537rm -f conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539LIBS=$ac_check_lib_save_LIBS
7540fi
7541echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
7542echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6
7543if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545#define HAVE_LIBMPATROL 1
7546_ACEOF
7547
7548 LIBS="-lmpatrol $LIBS"
7549
7550else
7551 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
7552echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
7553 { (exit 1); exit 1; }; }
7554fi
7555
7556
7557cat >>confdefs.h <<\_ACEOF
7558#define WITH_MALLOC_MPATROL 1
7559_ACEOF
7560
7561elif test "x$withval" = "xboehm-gc" ; then
7562 echo "$as_me:$LINENO: result: boehm-gc" >&5
7563echo "${ECHO_T}boehm-gc" >&6
7564
7565for ac_header in gc/gc.h
7566do
7567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7568if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573fi
7574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7576else
7577 # Is the header compilable?
7578echo "$as_me:$LINENO: checking $ac_header usability" >&5
7579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7580cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586$ac_includes_default
7587#include <$ac_header>
7588_ACEOF
7589rm -f conftest.$ac_objext
7590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
b8cb2a14 7598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest.$ac_objext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_header_compiler=yes
7611else
7612 echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615ac_header_compiler=no
7616fi
7617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619echo "${ECHO_T}$ac_header_compiler" >&6
7620
7621# Is the header present?
7622echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7624cat >conftest.$ac_ext <<_ACEOF
7625/* confdefs.h. */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h. */
7630#include <$ac_header>
7631_ACEOF
7632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } >/dev/null; then
7640 if test -s conftest.err; then
7641 ac_cpp_err=$ac_c_preproc_warn_flag
7642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7643 else
7644 ac_cpp_err=
7645 fi
7646else
7647 ac_cpp_err=yes
7648fi
7649if test -z "$ac_cpp_err"; then
7650 ac_header_preproc=yes
7651else
7652 echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655 ac_header_preproc=no
7656fi
7657rm -f conftest.err conftest.$ac_ext
7658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7659echo "${ECHO_T}$ac_header_preproc" >&6
7660
7661# So? What about this header?
7662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7663 yes:no: )
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7668 ac_header_preproc=yes
7669 ;;
7670 no:yes:* )
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7683 (
7684 cat <<\_ASBOX
ceafd592 7685## --------------------------------------------------- ##
7686## Report this to x2serv-general@lists.sourceforge.net ##
7687## --------------------------------------------------- ##
b3076f16 7688_ASBOX
7689 ) |
7690 sed "s/^/$as_me: WARNING: /" >&2
7691 ;;
7692esac
7693echo "$as_me:$LINENO: checking for $ac_header" >&5
7694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7695if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698 eval "$as_ac_Header=\$ac_header_preproc"
7699fi
7700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7702
7703fi
7704if test `eval echo '${'$as_ac_Header'}'` = yes; then
7705 cat >>confdefs.h <<_ACEOF
7706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7707_ACEOF
7708
7709else
7710 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
7711echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
7712 { (exit 1); exit 1; }; }
7713fi
7714
7715done
7716
7717
7718echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7719echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7720if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 ac_check_lib_save_LIBS=$LIBS
7724LIBS="-ldl $LIBS"
7725cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h. */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h. */
7731
7732/* Override any gcc2 internal prototype to avoid an error. */
7733#ifdef __cplusplus
7734extern "C"
7735#endif
7736/* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738char dlopen ();
7739int
7740main ()
7741{
7742dlopen ();
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747rm -f conftest.$ac_objext conftest$ac_exeext
7748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749 (eval $ac_link) 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
b8cb2a14 7756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_lib_dl_dlopen=yes
7769else
7770 echo "$as_me: failed program was:" >&5
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
7773ac_cv_lib_dl_dlopen=no
7774fi
7775rm -f conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777LIBS=$ac_check_lib_save_LIBS
7778fi
7779echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7780echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7781if test $ac_cv_lib_dl_dlopen = yes; then
7782 cat >>confdefs.h <<_ACEOF
7783#define HAVE_LIBDL 1
7784_ACEOF
7785
7786 LIBS="-ldl $LIBS"
7787
7788else
7789 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
7790echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
7791 { (exit 1); exit 1; }; }
7792fi
7793
7794
7795echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
7796echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6
7797if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800 ac_check_lib_save_LIBS=$LIBS
7801LIBS="-lgc $LIBS"
7802cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808
7809/* Override any gcc2 internal prototype to avoid an error. */
7810#ifdef __cplusplus
7811extern "C"
7812#endif
7813/* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815char GC_gcollect ();
7816int
7817main ()
7818{
7819GC_gcollect ();
7820 ;
7821 return 0;
7822}
7823_ACEOF
7824rm -f conftest.$ac_objext conftest$ac_exeext
7825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
b8cb2a14 7833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b3076f16 7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_lib_gc_GC_gcollect=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850ac_cv_lib_gc_GC_gcollect=no
7851fi
7852rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
7857echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6
7858if test $ac_cv_lib_gc_GC_gcollect = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860#define HAVE_LIBGC 1
7861_ACEOF
7862
7863 LIBS="-lgc $LIBS"
7864
7865else
7866 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
7867echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
7868 { (exit 1); exit 1; }; }
7869fi
7870
7871
7872cat >>confdefs.h <<\_ACEOF
7873#define WITH_MALLOC_BOEHM_GC 1
7874_ACEOF
7875
b8cb2a14 7876elif test "x$withval" = "xx3" ; then
7877 echo "$as_me:$LINENO: result: x3" >&5
7878echo "${ECHO_T}x3" >&6
ec1a68c8 7879
7880cat >>confdefs.h <<\_ACEOF
b8cb2a14 7881#define WITH_MALLOC_X3 1
ec1a68c8 7882_ACEOF
7883
b8cb2a14 7884 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
ceafd592 7885elif test "x$withval" = "xslab" ; then
7886 echo "$as_me:$LINENO: result: slab" >&5
7887echo "${ECHO_T}slab" >&6
7888
7889cat >>confdefs.h <<\_ACEOF
7890#define WITH_MALLOC_SLAB 1
7891_ACEOF
7892
7893 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
b3076f16 7894else
7895 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
7896echo "$as_me: error: Unknown malloc type $withval" >&2;}
7897 { (exit 1); exit 1; }; }
7898fi
7899
7900echo "$as_me:$LINENO: checking which protocol to use" >&5
7901echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6
7902
7903# Check whether --with-protocol or --without-protocol was given.
7904if test "${with_protocol+set}" = set; then
7905 withval="$with_protocol"
7906
7907else
7908 withval="p10"
7909fi;
7910if test "x$withval" = "xp10" ; then
7911 echo "$as_me:$LINENO: result: P10" >&5
7912echo "${ECHO_T}P10" >&6
7913
7914cat >>confdefs.h <<\_ACEOF
7915#define WITH_PROTOCOL_P10 1
7916_ACEOF
7917
b2cf3d66 7918 MODULE_OBJS="$MODULE_OBJS proto-p10.o"
b3076f16 7919 PROTO_FILES=proto-p10.c
7920elif test "x$withval" = "xbahamut" ; then
7921 echo "$as_me:$LINENO: result: Bahamut" >&5
7922echo "${ECHO_T}Bahamut" >&6
7923
7924cat >>confdefs.h <<\_ACEOF
7925#define WITH_PROTOCOL_BAHAMUT 1
7926_ACEOF
7927
ec1a68c8 7928 MODULE_OBJS="$MODULE_OBJS proto-bahamut.o"
b3076f16 7929else
7930 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
7931echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
7932 { (exit 1); exit 1; }; }
7933fi
7934
7935
7936# Check whether --with-getopt or --without-getopt was given.
7937if test "${with_getopt+set}" = set; then
7938 withval="$with_getopt"
7939 if test "$withval" = no; then
7940
7941cat >>confdefs.h <<\_ACEOF
7942#define IGNORE_GETOPT 1
7943_ACEOF
7944
7945fi
7946fi;
7947
7948echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
7949echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6
7950# Check whether --enable-tokens or --disable-tokens was given.
7951if test "${enable_tokens+set}" = set; then
7952 enableval="$enable_tokens"
7953
7954else
7955 enableval=yes
7956fi;
7957if test "z$enableval" = zno ; then
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
7960else
7961
7962cat >>confdefs.h <<\_ACEOF
7963#define ENABLE_TOKENS 1
7964_ACEOF
7965
7966 echo "$as_me:$LINENO: result: yes" >&5
7967echo "${ECHO_T}yes" >&6
7968fi
7969
7970echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
7971echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6
7972# Check whether --enable-debug or --disable-debug was given.
7973if test "${enable_debug+set}" = set; then
7974 enableval="$enable_debug"
7975
7976 CPPFLAGS="$CPPFLAGS"
7977 echo "$as_me:$LINENO: result: yes" >&5
7978echo "${ECHO_T}yes" >&6
7979
7980else
7981
7982 CPPFLAGS="$CPPFLAGS -DNDEBUG"
7983 echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6
7985
7986fi;
7987
7988if test -e src ; then
7989 if test ! -d src ; then
7990 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
7991echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
7992 { (exit 1); exit 1; }; }
7993 fi
7994else
7995 mkdir src
7996fi
7997echo "$as_me:$LINENO: checking for extra module files" >&5
7998echo $ECHO_N "checking for extra module files... $ECHO_C" >&6
7999MODULE_DEFINES="src/modules-list.h"
8000echo > $MODULE_DEFINES
8001touch $MODULE_DEFINES
8002# Check whether --enable-modules or --disable-modules was given.
8003if test "${enable_modules+set}" = set; then
8004 enableval="$enable_modules"
8005
8006 OIFS="$IFS"
8007 IFS=','
8008 EXTRA_MODULE_OBJS=""
8009 module_list=""
8010 for module in $enableval ; do
8011 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
ec1a68c8 8012 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.o"
b3076f16 8013 module_list="$module_list $module"
8014 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8015 done
8016 IFS="$OIFS"
8017 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8018 echo "$as_me:$LINENO: result: $module_list" >&5
8019echo "${ECHO_T}$module_list" >&6
8020
8021else
8022
8023 echo "$as_me:$LINENO: result: none" >&5
8024echo "${ECHO_T}none" >&6
8025
8026fi;
8027
8028MY_SUBDIRS=""
8029RX_INCLUDES=""
8030RX_LIBS=""
8031if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
8032 MY_SUBDIRS="rx $MY_SUBDIRS"
8033 RX_INCLUDES="-I../rx"
8034 RX_LIBS="../rx/librx.a"
8035fi
8036MY_SUBDIRS="$MY_SUBDIRS src"
8037CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
8038if test "z$USE_MAINTAINER_MODE" = zyes ; then
8039 CFLAGS="$CFLAGS -Werror"
8040fi
8041
8042
8043cat >>confdefs.h <<_ACEOF
8044#define CODENAME "${CODENAME}"
8045_ACEOF
8046
8047
8048
8049
8050
8051 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
8052
8053cat >confcache <<\_ACEOF
8054# This file is a shell script that caches the results of configure
8055# tests run on this system so they can be shared between configure
8056# scripts and configure runs, see configure's option --config-cache.
8057# It is not useful on other systems. If it contains results you don't
8058# want to keep, you may remove or edit it.
8059#
8060# config.status only pays attention to the cache file if you give it
8061# the --recheck option to rerun configure.
8062#
8063# `ac_cv_env_foo' variables (set or unset) will be overridden when
8064# loading this file, other *unset* `ac_cv_foo' will be assigned the
8065# following values.
8066
8067_ACEOF
8068
8069# The following way of writing the cache mishandles newlines in values,
8070# but we know of no workaround that is simple, portable, and efficient.
8071# So, don't put newlines in cache variables' values.
8072# Ultrix sh set writes to stderr and can't be redirected directly,
8073# and sets the high bit in the cache file unless we assign to the vars.
8074{
8075 (set) 2>&1 |
8076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8077 *ac_space=\ *)
8078 # `set' does not quote correctly, so add quotes (double-quote
8079 # substitution turns \\\\ into \\, and sed turns \\ into \).
8080 sed -n \
8081 "s/'/'\\\\''/g;
8082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8083 ;;
8084 *)
8085 # `set' quotes correctly as required by POSIX, so do not add quotes.
8086 sed -n \
8087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8088 ;;
8089 esac;
8090} |
8091 sed '
8092 t clear
8093 : clear
8094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8095 t end
8096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8097 : end' >>confcache
8098if diff $cache_file confcache >/dev/null 2>&1; then :; else
8099 if test -w $cache_file; then
8100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8101 cat confcache >$cache_file
8102 else
8103 echo "not updating unwritable cache $cache_file"
8104 fi
8105fi
8106rm -f confcache
8107
8108test "x$prefix" = xNONE && prefix=$ac_default_prefix
8109# Let make expand exec_prefix.
8110test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8111
8112# VPATH may cause trouble with some makes, so we remove $(srcdir),
8113# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8114# trailing colons and then remove the whole line if VPATH becomes empty
8115# (actually we leave an empty line to preserve line numbers).
8116if test "x$srcdir" = x.; then
8117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8118s/:*\$(srcdir):*/:/;
8119s/:*\${srcdir}:*/:/;
8120s/:*@srcdir@:*/:/;
8121s/^\([^=]*=[ ]*\):*/\1/;
8122s/:*$//;
8123s/^[^=]*=[ ]*$//;
8124}'
8125fi
8126
8127DEFS=-DHAVE_CONFIG_H
8128
8129ac_libobjs=
8130ac_ltlibobjs=
8131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8132 # 1. Remove the extension, and $U if already installed.
8133 ac_i=`echo "$ac_i" |
8134 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8135 # 2. Add them.
8136 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8137 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8138done
8139LIBOBJS=$ac_libobjs
8140
8141LTLIBOBJS=$ac_ltlibobjs
8142
8143
ec1a68c8 8144if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8145 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8146Usually this means the macro was only invoked conditionally." >&5
8147echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8148Usually this means the macro was only invoked conditionally." >&2;}
8149 { (exit 1); exit 1; }; }
8150fi
8151if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8152 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8153Usually this means the macro was only invoked conditionally." >&5
8154echo "$as_me: error: conditional \"AMDEP\" was never defined.
8155Usually this means the macro was only invoked conditionally." >&2;}
8156 { (exit 1); exit 1; }; }
8157fi
8158if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8159 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8160Usually this means the macro was only invoked conditionally." >&5
8161echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8162Usually this means the macro was only invoked conditionally." >&2;}
8163 { (exit 1); exit 1; }; }
8164fi
8165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8166 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8167Usually this means the macro was only invoked conditionally." >&5
8168echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8169Usually this means the macro was only invoked conditionally." >&2;}
8170 { (exit 1); exit 1; }; }
8171fi
b3076f16 8172
8173: ${CONFIG_STATUS=./config.status}
8174ac_clean_files_save=$ac_clean_files
8175ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8176{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8177echo "$as_me: creating $CONFIG_STATUS" >&6;}
8178cat >$CONFIG_STATUS <<_ACEOF
8179#! $SHELL
8180# Generated by $as_me.
8181# Run this file to recreate the current configuration.
8182# Compiler output produced by configure, useful for debugging
8183# configure, is in config.log if it exists.
8184
8185debug=false
8186ac_cs_recheck=false
8187ac_cs_silent=false
8188SHELL=\${CONFIG_SHELL-$SHELL}
8189_ACEOF
8190
8191cat >>$CONFIG_STATUS <<\_ACEOF
8192## --------------------- ##
8193## M4sh Initialization. ##
8194## --------------------- ##
8195
8196# Be Bourne compatible
8197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8198 emulate sh
8199 NULLCMD=:
8200 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8201 # is contrary to our usage. Disable this feature.
8202 alias -g '${1+"$@"}'='"$@"'
8203elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8204 set -o posix
8205fi
8206DUALCASE=1; export DUALCASE # for MKS sh
8207
8208# Support unset when possible.
8209if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8210 as_unset=unset
8211else
8212 as_unset=false
8213fi
8214
8215
8216# Work around bugs in pre-3.0 UWIN ksh.
8217$as_unset ENV MAIL MAILPATH
8218PS1='$ '
8219PS2='> '
8220PS4='+ '
8221
8222# NLS nuisances.
8223for as_var in \
8224 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8225 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8226 LC_TELEPHONE LC_TIME
8227do
8228 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8229 eval $as_var=C; export $as_var
8230 else
8231 $as_unset $as_var
8232 fi
8233done
8234
8235# Required to use basename.
8236if expr a : '\(a\)' >/dev/null 2>&1; then
8237 as_expr=expr
8238else
8239 as_expr=false
8240fi
8241
8242if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8243 as_basename=basename
8244else
8245 as_basename=false
8246fi
8247
8248
8249# Name of the executable.
8250as_me=`$as_basename "$0" ||
8251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8252 X"$0" : 'X\(//\)$' \| \
8253 X"$0" : 'X\(/\)$' \| \
8254 . : '\(.\)' 2>/dev/null ||
8255echo X/"$0" |
8256 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8257 /^X\/\(\/\/\)$/{ s//\1/; q; }
8258 /^X\/\(\/\).*/{ s//\1/; q; }
8259 s/.*/./; q'`
8260
8261
8262# PATH needs CR, and LINENO needs CR and PATH.
8263# Avoid depending upon Character Ranges.
8264as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8265as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8266as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8267as_cr_digits='0123456789'
8268as_cr_alnum=$as_cr_Letters$as_cr_digits
8269
8270# The user is always right.
8271if test "${PATH_SEPARATOR+set}" != set; then
8272 echo "#! /bin/sh" >conf$$.sh
8273 echo "exit 0" >>conf$$.sh
8274 chmod +x conf$$.sh
8275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8276 PATH_SEPARATOR=';'
8277 else
8278 PATH_SEPARATOR=:
8279 fi
8280 rm -f conf$$.sh
8281fi
8282
8283
8284 as_lineno_1=$LINENO
8285 as_lineno_2=$LINENO
8286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8287 test "x$as_lineno_1" != "x$as_lineno_2" &&
8288 test "x$as_lineno_3" = "x$as_lineno_2" || {
8289 # Find who we are. Look in the path if we contain no path at all
8290 # relative or not.
8291 case $0 in
8292 *[\\/]* ) as_myself=$0 ;;
8293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8299done
8300
8301 ;;
8302 esac
8303 # We did not find ourselves, most probably we were run as `sh COMMAND'
8304 # in which case we are not to be found in the path.
8305 if test "x$as_myself" = x; then
8306 as_myself=$0
8307 fi
8308 if test ! -f "$as_myself"; then
8309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8310echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8311 { (exit 1); exit 1; }; }
8312 fi
8313 case $CONFIG_SHELL in
8314 '')
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for as_base in sh bash ksh sh5; do
8321 case $as_dir in
8322 /*)
8323 if ("$as_dir/$as_base" -c '
8324 as_lineno_1=$LINENO
8325 as_lineno_2=$LINENO
8326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8327 test "x$as_lineno_1" != "x$as_lineno_2" &&
8328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8329 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8330 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8331 CONFIG_SHELL=$as_dir/$as_base
8332 export CONFIG_SHELL
8333 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8334 fi;;
8335 esac
8336 done
8337done
8338;;
8339 esac
8340
8341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8342 # uniformly replaced by the line number. The first 'sed' inserts a
8343 # line-number line before each line; the second 'sed' does the real
8344 # work. The second script uses 'N' to pair each line-number line
8345 # with the numbered line, and appends trailing '-' during
8346 # substitution so that $LINENO is not a special case at line end.
8347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8348 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8349 sed '=' <$as_myself |
8350 sed '
8351 N
8352 s,$,-,
8353 : loop
8354 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8355 t loop
8356 s,-$,,
8357 s,^['$as_cr_digits']*\n,,
8358 ' >$as_me.lineno &&
8359 chmod +x $as_me.lineno ||
8360 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8361echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8362 { (exit 1); exit 1; }; }
8363
8364 # Don't try to exec as it changes $[0], causing all sort of problems
8365 # (the dirname of $[0] is not the place where we might find the
8366 # original and so on. Autoconf is especially sensible to this).
8367 . ./$as_me.lineno
8368 # Exit status is that of the last command.
8369 exit
8370}
8371
8372
8373case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8374 *c*,-n*) ECHO_N= ECHO_C='
8375' ECHO_T=' ' ;;
8376 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8377 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8378esac
8379
8380if expr a : '\(a\)' >/dev/null 2>&1; then
8381 as_expr=expr
8382else
8383 as_expr=false
8384fi
8385
8386rm -f conf$$ conf$$.exe conf$$.file
8387echo >conf$$.file
8388if ln -s conf$$.file conf$$ 2>/dev/null; then
8389 # We could just check for DJGPP; but this test a) works b) is more generic
8390 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8391 if test -f conf$$.exe; then
8392 # Don't use ln at all; we don't have any links
8393 as_ln_s='cp -p'
8394 else
8395 as_ln_s='ln -s'
8396 fi
8397elif ln conf$$.file conf$$ 2>/dev/null; then
8398 as_ln_s=ln
8399else
8400 as_ln_s='cp -p'
8401fi
8402rm -f conf$$ conf$$.exe conf$$.file
8403
8404if mkdir -p . 2>/dev/null; then
8405 as_mkdir_p=:
8406else
8407 test -d ./-p && rmdir ./-p
8408 as_mkdir_p=false
8409fi
8410
8411as_executable_p="test -f"
8412
8413# Sed expression to map a string onto a valid CPP name.
8414as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8415
8416# Sed expression to map a string onto a valid variable name.
8417as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8418
8419
8420# IFS
8421# We need space, tab and new line, in precisely that order.
8422as_nl='
8423'
8424IFS=" $as_nl"
8425
8426# CDPATH.
8427$as_unset CDPATH
8428
8429exec 6>&1
8430
8431# Open the log real soon, to keep \$[0] and so on meaningful, and to
8432# report actual input values of CONFIG_FILES etc. instead of their
8433# values after options handling. Logging --version etc. is OK.
8434exec 5>>config.log
8435{
8436 echo
8437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8438## Running $as_me. ##
8439_ASBOX
8440} >&5
8441cat >&5 <<_CSEOF
8442
ceafd592 8443This file was extended by X3 $as_me 1.4, which was
b3076f16 8444generated by GNU Autoconf 2.59. Invocation command line was
8445
8446 CONFIG_FILES = $CONFIG_FILES
8447 CONFIG_HEADERS = $CONFIG_HEADERS
8448 CONFIG_LINKS = $CONFIG_LINKS
8449 CONFIG_COMMANDS = $CONFIG_COMMANDS
8450 $ $0 $@
8451
8452_CSEOF
8453echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8454echo >&5
8455_ACEOF
8456
8457# Files that config.status was made for.
8458if test -n "$ac_config_files"; then
8459 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8460fi
8461
8462if test -n "$ac_config_headers"; then
8463 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8464fi
8465
8466if test -n "$ac_config_links"; then
8467 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8468fi
8469
8470if test -n "$ac_config_commands"; then
8471 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8472fi
8473
8474cat >>$CONFIG_STATUS <<\_ACEOF
8475
8476ac_cs_usage="\
8477\`$as_me' instantiates files from templates according to the
8478current configuration.
8479
8480Usage: $0 [OPTIONS] [FILE]...
8481
8482 -h, --help print this help, then exit
8483 -V, --version print version number, then exit
8484 -q, --quiet do not print progress messages
8485 -d, --debug don't remove temporary files
8486 --recheck update $as_me by reconfiguring in the same conditions
8487 --file=FILE[:TEMPLATE]
8488 instantiate the configuration file FILE
8489 --header=FILE[:TEMPLATE]
8490 instantiate the configuration header FILE
8491
8492Configuration files:
8493$config_files
8494
8495Configuration headers:
8496$config_headers
8497
ec1a68c8 8498Configuration commands:
8499$config_commands
8500
b3076f16 8501Report bugs to <bug-autoconf@gnu.org>."
8502_ACEOF
8503
8504cat >>$CONFIG_STATUS <<_ACEOF
8505ac_cs_version="\\
ceafd592 8506X3 config.status 1.4
b3076f16 8507configured by $0, generated by GNU Autoconf 2.59,
8508 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8509
8510Copyright (C) 2003 Free Software Foundation, Inc.
8511This config.status script is free software; the Free Software Foundation
8512gives unlimited permission to copy, distribute and modify it."
8513srcdir=$srcdir
8514INSTALL="$INSTALL"
8515_ACEOF
8516
8517cat >>$CONFIG_STATUS <<\_ACEOF
8518# If no file are specified by the user, then we need to provide default
8519# value. By we need to know if files were specified by the user.
8520ac_need_defaults=:
8521while test $# != 0
8522do
8523 case $1 in
8524 --*=*)
8525 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8526 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8527 ac_shift=:
8528 ;;
8529 -*)
8530 ac_option=$1
8531 ac_optarg=$2
8532 ac_shift=shift
8533 ;;
8534 *) # This is not an option, so the user has probably given explicit
8535 # arguments.
8536 ac_option=$1
8537 ac_need_defaults=false;;
8538 esac
8539
8540 case $ac_option in
8541 # Handling of the options.
8542_ACEOF
8543cat >>$CONFIG_STATUS <<\_ACEOF
8544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8545 ac_cs_recheck=: ;;
8546 --version | --vers* | -V )
8547 echo "$ac_cs_version"; exit 0 ;;
8548 --he | --h)
8549 # Conflict between --help and --header
8550 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8551Try \`$0 --help' for more information." >&5
8552echo "$as_me: error: ambiguous option: $1
8553Try \`$0 --help' for more information." >&2;}
8554 { (exit 1); exit 1; }; };;
8555 --help | --hel | -h )
8556 echo "$ac_cs_usage"; exit 0 ;;
8557 --debug | --d* | -d )
8558 debug=: ;;
8559 --file | --fil | --fi | --f )
8560 $ac_shift
8561 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8562 ac_need_defaults=false;;
8563 --header | --heade | --head | --hea )
8564 $ac_shift
8565 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8566 ac_need_defaults=false;;
8567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8569 ac_cs_silent=: ;;
8570
8571 # This is an error.
8572 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8573Try \`$0 --help' for more information." >&5
8574echo "$as_me: error: unrecognized option: $1
8575Try \`$0 --help' for more information." >&2;}
8576 { (exit 1); exit 1; }; } ;;
8577
8578 *) ac_config_targets="$ac_config_targets $1" ;;
8579
8580 esac
8581 shift
8582done
8583
8584ac_configure_extra_args=
8585
8586if $ac_cs_silent; then
8587 exec 6>/dev/null
8588 ac_configure_extra_args="$ac_configure_extra_args --silent"
8589fi
8590
8591_ACEOF
8592cat >>$CONFIG_STATUS <<_ACEOF
8593if \$ac_cs_recheck; then
8594 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8595 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8596fi
8597
8598_ACEOF
8599
ec1a68c8 8600cat >>$CONFIG_STATUS <<_ACEOF
8601#
8602# INIT-COMMANDS section.
8603#
b3076f16 8604
ec1a68c8 8605AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8606
8607_ACEOF
b3076f16 8608
8609
8610
8611cat >>$CONFIG_STATUS <<\_ACEOF
8612for ac_config_target in $ac_config_targets
8613do
8614 case "$ac_config_target" in
8615 # Handling of arguments.
8616 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8617 "rx/Makefile" ) CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
8618 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
ec1a68c8 8619 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b3076f16 8620 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8621 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8622echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8623 { (exit 1); exit 1; }; };;
8624 esac
8625done
8626
8627# If the user did not use the arguments to specify the items to instantiate,
8628# then the envvar interface is used. Set only those that are not.
8629# We use the long form for the default assignment because of an extremely
8630# bizarre bug on SunOS 4.1.3.
8631if $ac_need_defaults; then
8632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 8634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 8635fi
8636
8637# Have a temporary directory for convenience. Make it in the build tree
8638# simply because there is no reason to put it here, and in addition,
8639# creating and moving files from /tmp can sometimes cause problems.
8640# Create a temporary directory, and hook for its removal unless debugging.
8641$debug ||
8642{
8643 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8644 trap '{ (exit 1); exit 1; }' 1 2 13 15
8645}
8646
8647# Create a (secure) tmp directory for tmp files.
8648
8649{
8650 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8651 test -n "$tmp" && test -d "$tmp"
8652} ||
8653{
8654 tmp=./confstat$$-$RANDOM
8655 (umask 077 && mkdir $tmp)
8656} ||
8657{
8658 echo "$me: cannot create a temporary directory in ." >&2
8659 { (exit 1); exit 1; }
8660}
8661
8662_ACEOF
8663
8664cat >>$CONFIG_STATUS <<_ACEOF
8665
8666#
8667# CONFIG_FILES section.
8668#
8669
8670# No need to generate the scripts if there are no CONFIG_FILES.
8671# This happens for instance when ./config.status config.h
8672if test -n "\$CONFIG_FILES"; then
8673 # Protect against being on the right side of a sed subst in config.status.
8674 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8675 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8676s,@SHELL@,$SHELL,;t t
8677s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8678s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8679s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8680s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8681s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8682s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8683s,@exec_prefix@,$exec_prefix,;t t
8684s,@prefix@,$prefix,;t t
8685s,@program_transform_name@,$program_transform_name,;t t
8686s,@bindir@,$bindir,;t t
8687s,@sbindir@,$sbindir,;t t
8688s,@libexecdir@,$libexecdir,;t t
8689s,@datadir@,$datadir,;t t
8690s,@sysconfdir@,$sysconfdir,;t t
8691s,@sharedstatedir@,$sharedstatedir,;t t
8692s,@localstatedir@,$localstatedir,;t t
8693s,@libdir@,$libdir,;t t
8694s,@includedir@,$includedir,;t t
8695s,@oldincludedir@,$oldincludedir,;t t
8696s,@infodir@,$infodir,;t t
8697s,@mandir@,$mandir,;t t
8698s,@build_alias@,$build_alias,;t t
8699s,@host_alias@,$host_alias,;t t
8700s,@target_alias@,$target_alias,;t t
8701s,@DEFS@,$DEFS,;t t
8702s,@ECHO_C@,$ECHO_C,;t t
8703s,@ECHO_N@,$ECHO_N,;t t
8704s,@ECHO_T@,$ECHO_T,;t t
8705s,@LIBS@,$LIBS,;t t
8706s,@build@,$build,;t t
8707s,@build_cpu@,$build_cpu,;t t
8708s,@build_vendor@,$build_vendor,;t t
8709s,@build_os@,$build_os,;t t
8710s,@host@,$host,;t t
8711s,@host_cpu@,$host_cpu,;t t
8712s,@host_vendor@,$host_vendor,;t t
8713s,@host_os@,$host_os,;t t
8714s,@target@,$target,;t t
8715s,@target_cpu@,$target_cpu,;t t
8716s,@target_vendor@,$target_vendor,;t t
8717s,@target_os@,$target_os,;t t
8718s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8719s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8720s,@INSTALL_DATA@,$INSTALL_DATA,;t t
ec1a68c8 8721s,@CYGPATH_W@,$CYGPATH_W,;t t
b3076f16 8722s,@PACKAGE@,$PACKAGE,;t t
8723s,@VERSION@,$VERSION,;t t
8724s,@ACLOCAL@,$ACLOCAL,;t t
8725s,@AUTOCONF@,$AUTOCONF,;t t
8726s,@AUTOMAKE@,$AUTOMAKE,;t t
8727s,@AUTOHEADER@,$AUTOHEADER,;t t
8728s,@MAKEINFO@,$MAKEINFO,;t t
ec1a68c8 8729s,@install_sh@,$install_sh,;t t
8730s,@STRIP@,$STRIP,;t t
8731s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8732s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8733s,@mkdir_p@,$mkdir_p,;t t
8734s,@AWK@,$AWK,;t t
b3076f16 8735s,@SET_MAKE@,$SET_MAKE,;t t
ec1a68c8 8736s,@am__leading_dot@,$am__leading_dot,;t t
8737s,@AMTAR@,$AMTAR,;t t
8738s,@am__tar@,$am__tar,;t t
8739s,@am__untar@,$am__untar,;t t
b3076f16 8740s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8741s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8742s,@MAINT@,$MAINT,;t t
8743s,@CC@,$CC,;t t
8744s,@CFLAGS@,$CFLAGS,;t t
8745s,@LDFLAGS@,$LDFLAGS,;t t
8746s,@CPPFLAGS@,$CPPFLAGS,;t t
8747s,@ac_ct_CC@,$ac_ct_CC,;t t
8748s,@EXEEXT@,$EXEEXT,;t t
8749s,@OBJEXT@,$OBJEXT,;t t
ec1a68c8 8750s,@DEPDIR@,$DEPDIR,;t t
8751s,@am__include@,$am__include,;t t
8752s,@am__quote@,$am__quote,;t t
8753s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8754s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8755s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8756s,@CCDEPMODE@,$CCDEPMODE,;t t
8757s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8758s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
b3076f16 8759s,@RANLIB@,$RANLIB,;t t
8760s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8761s,@LN_S@,$LN_S,;t t
8762s,@CPP@,$CPP,;t t
8763s,@EGREP@,$EGREP,;t t
8764s,@ALLOCA@,$ALLOCA,;t t
8765s,@MODULE_OBJS@,$MODULE_OBJS,;t t
8766s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
8767s,@RX_INCLUDES@,$RX_INCLUDES,;t t
8768s,@RX_LIBS@,$RX_LIBS,;t t
8769s,@LIBOBJS@,$LIBOBJS,;t t
8770s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8771CEOF
8772
8773_ACEOF
8774
8775 cat >>$CONFIG_STATUS <<\_ACEOF
8776 # Split the substitutions into bite-sized pieces for seds with
8777 # small command number limits, like on Digital OSF/1 and HP-UX.
8778 ac_max_sed_lines=48
8779 ac_sed_frag=1 # Number of current file.
8780 ac_beg=1 # First line for current file.
8781 ac_end=$ac_max_sed_lines # Line after last line for current file.
8782 ac_more_lines=:
8783 ac_sed_cmds=
8784 while $ac_more_lines; do
8785 if test $ac_beg -gt 1; then
8786 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8787 else
8788 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8789 fi
8790 if test ! -s $tmp/subs.frag; then
8791 ac_more_lines=false
8792 else
8793 # The purpose of the label and of the branching condition is to
8794 # speed up the sed processing (if there are no `@' at all, there
8795 # is no need to browse any of the substitutions).
8796 # These are the two extra sed commands mentioned above.
8797 (echo ':t
8798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8799 if test -z "$ac_sed_cmds"; then
8800 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8801 else
8802 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8803 fi
8804 ac_sed_frag=`expr $ac_sed_frag + 1`
8805 ac_beg=$ac_end
8806 ac_end=`expr $ac_end + $ac_max_sed_lines`
8807 fi
8808 done
8809 if test -z "$ac_sed_cmds"; then
8810 ac_sed_cmds=cat
8811 fi
8812fi # test -n "$CONFIG_FILES"
8813
8814_ACEOF
8815cat >>$CONFIG_STATUS <<\_ACEOF
8816for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8817 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8818 case $ac_file in
8819 - | *:- | *:-:* ) # input from stdin
8820 cat >$tmp/stdin
8821 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8822 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8823 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8825 * ) ac_file_in=$ac_file.in ;;
8826 esac
8827
8828 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8829 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8830$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8831 X"$ac_file" : 'X\(//\)[^/]' \| \
8832 X"$ac_file" : 'X\(//\)$' \| \
8833 X"$ac_file" : 'X\(/\)' \| \
8834 . : '\(.\)' 2>/dev/null ||
8835echo X"$ac_file" |
8836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8838 /^X\(\/\/\)$/{ s//\1/; q; }
8839 /^X\(\/\).*/{ s//\1/; q; }
8840 s/.*/./; q'`
8841 { if $as_mkdir_p; then
8842 mkdir -p "$ac_dir"
8843 else
8844 as_dir="$ac_dir"
8845 as_dirs=
8846 while test ! -d "$as_dir"; do
8847 as_dirs="$as_dir $as_dirs"
8848 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8849$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8850 X"$as_dir" : 'X\(//\)[^/]' \| \
8851 X"$as_dir" : 'X\(//\)$' \| \
8852 X"$as_dir" : 'X\(/\)' \| \
8853 . : '\(.\)' 2>/dev/null ||
8854echo X"$as_dir" |
8855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8857 /^X\(\/\/\)$/{ s//\1/; q; }
8858 /^X\(\/\).*/{ s//\1/; q; }
8859 s/.*/./; q'`
8860 done
8861 test ! -n "$as_dirs" || mkdir $as_dirs
8862 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8863echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8864 { (exit 1); exit 1; }; }; }
8865
8866 ac_builddir=.
8867
8868if test "$ac_dir" != .; then
8869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8870 # A "../" for each directory in $ac_dir_suffix.
8871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8872else
8873 ac_dir_suffix= ac_top_builddir=
8874fi
8875
8876case $srcdir in
8877 .) # No --srcdir option. We are building in place.
8878 ac_srcdir=.
8879 if test -z "$ac_top_builddir"; then
8880 ac_top_srcdir=.
8881 else
8882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8883 fi ;;
8884 [\\/]* | ?:[\\/]* ) # Absolute path.
8885 ac_srcdir=$srcdir$ac_dir_suffix;
8886 ac_top_srcdir=$srcdir ;;
8887 *) # Relative path.
8888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8890esac
8891
8892# Do not use `cd foo && pwd` to compute absolute paths, because
8893# the directories may not exist.
8894case `pwd` in
8895.) ac_abs_builddir="$ac_dir";;
8896*)
8897 case "$ac_dir" in
8898 .) ac_abs_builddir=`pwd`;;
8899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8900 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8901 esac;;
8902esac
8903case $ac_abs_builddir in
8904.) ac_abs_top_builddir=${ac_top_builddir}.;;
8905*)
8906 case ${ac_top_builddir}. in
8907 .) ac_abs_top_builddir=$ac_abs_builddir;;
8908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8910 esac;;
8911esac
8912case $ac_abs_builddir in
8913.) ac_abs_srcdir=$ac_srcdir;;
8914*)
8915 case $ac_srcdir in
8916 .) ac_abs_srcdir=$ac_abs_builddir;;
8917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8919 esac;;
8920esac
8921case $ac_abs_builddir in
8922.) ac_abs_top_srcdir=$ac_top_srcdir;;
8923*)
8924 case $ac_top_srcdir in
8925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8928 esac;;
8929esac
8930
8931
8932 case $INSTALL in
8933 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8934 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8935 esac
8936
8937 # Let's still pretend it is `configure' which instantiates (i.e., don't
8938 # use $as_me), people would be surprised to read:
8939 # /* config.h. Generated by config.status. */
8940 if test x"$ac_file" = x-; then
8941 configure_input=
8942 else
8943 configure_input="$ac_file. "
8944 fi
8945 configure_input=$configure_input"Generated from `echo $ac_file_in |
8946 sed 's,.*/,,'` by configure."
8947
8948 # First look for the input files in the build tree, otherwise in the
8949 # src tree.
8950 ac_file_inputs=`IFS=:
8951 for f in $ac_file_in; do
8952 case $f in
8953 -) echo $tmp/stdin ;;
8954 [\\/$]*)
8955 # Absolute (can't be DOS-style, as IFS=:)
8956 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8957echo "$as_me: error: cannot find input file: $f" >&2;}
8958 { (exit 1); exit 1; }; }
8959 echo "$f";;
8960 *) # Relative
8961 if test -f "$f"; then
8962 # Build tree
8963 echo "$f"
8964 elif test -f "$srcdir/$f"; then
8965 # Source tree
8966 echo "$srcdir/$f"
8967 else
8968 # /dev/null tree
8969 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8970echo "$as_me: error: cannot find input file: $f" >&2;}
8971 { (exit 1); exit 1; }; }
8972 fi;;
8973 esac
8974 done` || { (exit 1); exit 1; }
b8cb2a14 8975
8976 if test x"$ac_file" != x-; then
8977 { echo "$as_me:$LINENO: creating $ac_file" >&5
8978echo "$as_me: creating $ac_file" >&6;}
8979 rm -f "$ac_file"
8980 fi
b3076f16 8981_ACEOF
8982cat >>$CONFIG_STATUS <<_ACEOF
8983 sed "$ac_vpsub
8984$extrasub
8985_ACEOF
8986cat >>$CONFIG_STATUS <<\_ACEOF
8987:t
8988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8989s,@configure_input@,$configure_input,;t t
8990s,@srcdir@,$ac_srcdir,;t t
8991s,@abs_srcdir@,$ac_abs_srcdir,;t t
8992s,@top_srcdir@,$ac_top_srcdir,;t t
8993s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8994s,@builddir@,$ac_builddir,;t t
8995s,@abs_builddir@,$ac_abs_builddir,;t t
8996s,@top_builddir@,$ac_top_builddir,;t t
8997s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8998s,@INSTALL@,$ac_INSTALL,;t t
8999" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9000 rm -f $tmp/stdin
9001 if test x"$ac_file" != x-; then
9002 mv $tmp/out $ac_file
9003 else
9004 cat $tmp/out
9005 rm -f $tmp/out
9006 fi
9007
9008done
9009_ACEOF
9010cat >>$CONFIG_STATUS <<\_ACEOF
9011
9012#
9013# CONFIG_HEADER section.
9014#
9015
9016# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9017# NAME is the cpp macro being defined and VALUE is the value it is being given.
9018#
9019# ac_d sets the value in "#define NAME VALUE" lines.
9020ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9021ac_dB='[ ].*$,\1#\2'
9022ac_dC=' '
9023ac_dD=',;t'
9024# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9025ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9026ac_uB='$,\1#\2define\3'
9027ac_uC=' '
9028ac_uD=',;t'
9029
9030for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9032 case $ac_file in
9033 - | *:- | *:-:* ) # input from stdin
9034 cat >$tmp/stdin
9035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9039 * ) ac_file_in=$ac_file.in ;;
9040 esac
9041
9042 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9043echo "$as_me: creating $ac_file" >&6;}
9044
9045 # First look for the input files in the build tree, otherwise in the
9046 # src tree.
9047 ac_file_inputs=`IFS=:
9048 for f in $ac_file_in; do
9049 case $f in
9050 -) echo $tmp/stdin ;;
9051 [\\/$]*)
9052 # Absolute (can't be DOS-style, as IFS=:)
9053 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9054echo "$as_me: error: cannot find input file: $f" >&2;}
9055 { (exit 1); exit 1; }; }
9056 # Do quote $f, to prevent DOS paths from being IFS'd.
9057 echo "$f";;
9058 *) # Relative
9059 if test -f "$f"; then
9060 # Build tree
9061 echo "$f"
9062 elif test -f "$srcdir/$f"; then
9063 # Source tree
9064 echo "$srcdir/$f"
9065 else
9066 # /dev/null tree
9067 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9068echo "$as_me: error: cannot find input file: $f" >&2;}
9069 { (exit 1); exit 1; }; }
9070 fi;;
9071 esac
9072 done` || { (exit 1); exit 1; }
9073 # Remove the trailing spaces.
9074 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9075
9076_ACEOF
9077
9078# Transform confdefs.h into two sed scripts, `conftest.defines' and
9079# `conftest.undefs', that substitutes the proper values into
9080# config.h.in to produce config.h. The first handles `#define'
9081# templates, and the second `#undef' templates.
9082# And first: Protect against being on the right side of a sed subst in
9083# config.status. Protect against being in an unquoted here document
9084# in config.status.
9085rm -f conftest.defines conftest.undefs
9086# Using a here document instead of a string reduces the quoting nightmare.
9087# Putting comments in sed scripts is not portable.
9088#
9089# `end' is used to avoid that the second main sed command (meant for
9090# 0-ary CPP macros) applies to n-ary macro definitions.
9091# See the Autoconf documentation for `clear'.
9092cat >confdef2sed.sed <<\_ACEOF
9093s/[\\&,]/\\&/g
9094s,[\\$`],\\&,g
9095t clear
9096: clear
9097s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9098t end
9099s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9100: end
9101_ACEOF
9102# If some macros were called several times there might be several times
9103# the same #defines, which is useless. Nevertheless, we may not want to
9104# sort them, since we want the *last* AC-DEFINE to be honored.
9105uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9106sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9107rm -f confdef2sed.sed
9108
9109# This sed command replaces #undef with comments. This is necessary, for
9110# example, in the case of _POSIX_SOURCE, which is predefined and required
9111# on some systems where configure will not decide to define it.
9112cat >>conftest.undefs <<\_ACEOF
9113s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9114_ACEOF
9115
9116# Break up conftest.defines because some shells have a limit on the size
9117# of here documents, and old seds have small limits too (100 cmds).
9118echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9119echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9120echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9121echo ' :' >>$CONFIG_STATUS
9122rm -f conftest.tail
9123while grep . conftest.defines >/dev/null
9124do
9125 # Write a limited-size here document to $tmp/defines.sed.
9126 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9127 # Speed up: don't consider the non `#define' lines.
9128 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9129 # Work around the forget-to-reset-the-flag bug.
9130 echo 't clr' >>$CONFIG_STATUS
9131 echo ': clr' >>$CONFIG_STATUS
9132 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9133 echo 'CEOF
9134 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9135 rm -f $tmp/in
9136 mv $tmp/out $tmp/in
9137' >>$CONFIG_STATUS
9138 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9139 rm -f conftest.defines
9140 mv conftest.tail conftest.defines
9141done
9142rm -f conftest.defines
9143echo ' fi # grep' >>$CONFIG_STATUS
9144echo >>$CONFIG_STATUS
9145
9146# Break up conftest.undefs because some shells have a limit on the size
9147# of here documents, and old seds have small limits too (100 cmds).
9148echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9149rm -f conftest.tail
9150while grep . conftest.undefs >/dev/null
9151do
9152 # Write a limited-size here document to $tmp/undefs.sed.
9153 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9154 # Speed up: don't consider the non `#undef'
9155 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9156 # Work around the forget-to-reset-the-flag bug.
9157 echo 't clr' >>$CONFIG_STATUS
9158 echo ': clr' >>$CONFIG_STATUS
9159 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9160 echo 'CEOF
9161 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9162 rm -f $tmp/in
9163 mv $tmp/out $tmp/in
9164' >>$CONFIG_STATUS
9165 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9166 rm -f conftest.undefs
9167 mv conftest.tail conftest.undefs
9168done
9169rm -f conftest.undefs
9170
9171cat >>$CONFIG_STATUS <<\_ACEOF
9172 # Let's still pretend it is `configure' which instantiates (i.e., don't
9173 # use $as_me), people would be surprised to read:
9174 # /* config.h. Generated by config.status. */
9175 if test x"$ac_file" = x-; then
9176 echo "/* Generated by configure. */" >$tmp/config.h
9177 else
9178 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9179 fi
9180 cat $tmp/in >>$tmp/config.h
9181 rm -f $tmp/in
9182 if test x"$ac_file" != x-; then
9183 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9184 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9185echo "$as_me: $ac_file is unchanged" >&6;}
9186 else
9187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9189 X"$ac_file" : 'X\(//\)[^/]' \| \
9190 X"$ac_file" : 'X\(//\)$' \| \
9191 X"$ac_file" : 'X\(/\)' \| \
9192 . : '\(.\)' 2>/dev/null ||
9193echo X"$ac_file" |
9194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9196 /^X\(\/\/\)$/{ s//\1/; q; }
9197 /^X\(\/\).*/{ s//\1/; q; }
9198 s/.*/./; q'`
9199 { if $as_mkdir_p; then
9200 mkdir -p "$ac_dir"
9201 else
9202 as_dir="$ac_dir"
9203 as_dirs=
9204 while test ! -d "$as_dir"; do
9205 as_dirs="$as_dir $as_dirs"
9206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9208 X"$as_dir" : 'X\(//\)[^/]' \| \
9209 X"$as_dir" : 'X\(//\)$' \| \
9210 X"$as_dir" : 'X\(/\)' \| \
9211 . : '\(.\)' 2>/dev/null ||
9212echo X"$as_dir" |
9213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9215 /^X\(\/\/\)$/{ s//\1/; q; }
9216 /^X\(\/\).*/{ s//\1/; q; }
9217 s/.*/./; q'`
9218 done
9219 test ! -n "$as_dirs" || mkdir $as_dirs
9220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9221echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9222 { (exit 1); exit 1; }; }; }
9223
9224 rm -f $ac_file
9225 mv $tmp/config.h $ac_file
9226 fi
9227 else
9228 cat $tmp/config.h
9229 rm -f $tmp/config.h
9230 fi
ec1a68c8 9231# Compute $ac_file's index in $config_headers.
9232_am_stamp_count=1
9233for _am_header in $config_headers :; do
9234 case $_am_header in
9235 $ac_file | $ac_file:* )
9236 break ;;
9237 * )
9238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9239 esac
9240done
9241echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9242$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9243 X$ac_file : 'X\(//\)[^/]' \| \
9244 X$ac_file : 'X\(//\)$' \| \
9245 X$ac_file : 'X\(/\)' \| \
9246 . : '\(.\)' 2>/dev/null ||
9247echo X$ac_file |
9248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9250 /^X\(\/\/\)$/{ s//\1/; q; }
9251 /^X\(\/\).*/{ s//\1/; q; }
9252 s/.*/./; q'`/stamp-h$_am_stamp_count
9253done
9254_ACEOF
9255cat >>$CONFIG_STATUS <<\_ACEOF
9256
9257#
9258# CONFIG_COMMANDS section.
9259#
9260for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9261 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9262 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9263 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9264$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9265 X"$ac_dest" : 'X\(//\)[^/]' \| \
9266 X"$ac_dest" : 'X\(//\)$' \| \
9267 X"$ac_dest" : 'X\(/\)' \| \
9268 . : '\(.\)' 2>/dev/null ||
9269echo X"$ac_dest" |
9270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9272 /^X\(\/\/\)$/{ s//\1/; q; }
9273 /^X\(\/\).*/{ s//\1/; q; }
9274 s/.*/./; q'`
9275 { if $as_mkdir_p; then
9276 mkdir -p "$ac_dir"
9277 else
9278 as_dir="$ac_dir"
9279 as_dirs=
9280 while test ! -d "$as_dir"; do
9281 as_dirs="$as_dir $as_dirs"
9282 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9284 X"$as_dir" : 'X\(//\)[^/]' \| \
9285 X"$as_dir" : 'X\(//\)$' \| \
9286 X"$as_dir" : 'X\(/\)' \| \
9287 . : '\(.\)' 2>/dev/null ||
9288echo X"$as_dir" |
9289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9291 /^X\(\/\/\)$/{ s//\1/; q; }
9292 /^X\(\/\).*/{ s//\1/; q; }
9293 s/.*/./; q'`
9294 done
9295 test ! -n "$as_dirs" || mkdir $as_dirs
9296 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9297echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9298 { (exit 1); exit 1; }; }; }
9299
9300 ac_builddir=.
9301
9302if test "$ac_dir" != .; then
9303 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9304 # A "../" for each directory in $ac_dir_suffix.
9305 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9306else
9307 ac_dir_suffix= ac_top_builddir=
9308fi
9309
9310case $srcdir in
9311 .) # No --srcdir option. We are building in place.
9312 ac_srcdir=.
9313 if test -z "$ac_top_builddir"; then
9314 ac_top_srcdir=.
9315 else
9316 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9317 fi ;;
9318 [\\/]* | ?:[\\/]* ) # Absolute path.
9319 ac_srcdir=$srcdir$ac_dir_suffix;
9320 ac_top_srcdir=$srcdir ;;
9321 *) # Relative path.
9322 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9323 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9324esac
9325
9326# Do not use `cd foo && pwd` to compute absolute paths, because
9327# the directories may not exist.
9328case `pwd` in
9329.) ac_abs_builddir="$ac_dir";;
9330*)
9331 case "$ac_dir" in
9332 .) ac_abs_builddir=`pwd`;;
9333 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9334 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9335 esac;;
9336esac
9337case $ac_abs_builddir in
9338.) ac_abs_top_builddir=${ac_top_builddir}.;;
9339*)
9340 case ${ac_top_builddir}. in
9341 .) ac_abs_top_builddir=$ac_abs_builddir;;
9342 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9343 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9344 esac;;
9345esac
9346case $ac_abs_builddir in
9347.) ac_abs_srcdir=$ac_srcdir;;
9348*)
9349 case $ac_srcdir in
9350 .) ac_abs_srcdir=$ac_abs_builddir;;
9351 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9352 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9353 esac;;
9354esac
9355case $ac_abs_builddir in
9356.) ac_abs_top_srcdir=$ac_top_srcdir;;
9357*)
9358 case $ac_top_srcdir in
9359 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9360 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9361 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9362 esac;;
9363esac
9364
9365
9366 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9367echo "$as_me: executing $ac_dest commands" >&6;}
9368 case $ac_dest in
9369 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9370 # Strip MF so we end up with the name of the file.
9371 mf=`echo "$mf" | sed -e 's/:.*$//'`
9372 # Check whether this is an Automake generated Makefile or not.
9373 # We used to match only the files named `Makefile.in', but
9374 # some people rename them; so instead we look at the file content.
9375 # Grep'ing the first line is not enough: some people post-process
9376 # each Makefile.in and add a new line on top of each file to say so.
9377 # So let's grep whole file.
9378 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9379 dirpart=`(dirname "$mf") 2>/dev/null ||
9380$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9381 X"$mf" : 'X\(//\)[^/]' \| \
9382 X"$mf" : 'X\(//\)$' \| \
9383 X"$mf" : 'X\(/\)' \| \
9384 . : '\(.\)' 2>/dev/null ||
9385echo X"$mf" |
9386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9388 /^X\(\/\/\)$/{ s//\1/; q; }
9389 /^X\(\/\).*/{ s//\1/; q; }
9390 s/.*/./; q'`
9391 else
9392 continue
9393 fi
9394 # Extract the definition of DEPDIR, am__include, and am__quote
9395 # from the Makefile without running `make'.
9396 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9397 test -z "$DEPDIR" && continue
9398 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9399 test -z "am__include" && continue
9400 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9401 # When using ansi2knr, U may be empty or an underscore; expand it
9402 U=`sed -n 's/^U = //p' < "$mf"`
9403 # Find all dependency output files, they are included files with
9404 # $(DEPDIR) in their names. We invoke sed twice because it is the
9405 # simplest approach to changing $(DEPDIR) to its actual value in the
9406 # expansion.
9407 for file in `sed -n "
9408 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9409 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9410 # Make sure the directory exists.
9411 test -f "$dirpart/$file" && continue
9412 fdir=`(dirname "$file") 2>/dev/null ||
9413$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9414 X"$file" : 'X\(//\)[^/]' \| \
9415 X"$file" : 'X\(//\)$' \| \
9416 X"$file" : 'X\(/\)' \| \
9417 . : '\(.\)' 2>/dev/null ||
9418echo X"$file" |
9419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9421 /^X\(\/\/\)$/{ s//\1/; q; }
9422 /^X\(\/\).*/{ s//\1/; q; }
9423 s/.*/./; q'`
9424 { if $as_mkdir_p; then
9425 mkdir -p $dirpart/$fdir
9426 else
9427 as_dir=$dirpart/$fdir
9428 as_dirs=
9429 while test ! -d "$as_dir"; do
9430 as_dirs="$as_dir $as_dirs"
9431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9433 X"$as_dir" : 'X\(//\)[^/]' \| \
9434 X"$as_dir" : 'X\(//\)$' \| \
9435 X"$as_dir" : 'X\(/\)' \| \
9436 . : '\(.\)' 2>/dev/null ||
9437echo X"$as_dir" |
9438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9440 /^X\(\/\/\)$/{ s//\1/; q; }
9441 /^X\(\/\).*/{ s//\1/; q; }
9442 s/.*/./; q'`
9443 done
9444 test ! -n "$as_dirs" || mkdir $as_dirs
9445 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9446echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9447 { (exit 1); exit 1; }; }; }
9448
9449 # echo "creating $dirpart/$file"
9450 echo '# dummy' > "$dirpart/$file"
9451 done
9452done
9453 ;;
9454 esac
b3076f16 9455done
9456_ACEOF
9457
9458cat >>$CONFIG_STATUS <<\_ACEOF
9459
9460{ (exit 0); exit 0; }
9461_ACEOF
9462chmod +x $CONFIG_STATUS
9463ac_clean_files=$ac_clean_files_save
9464
9465
9466# configure is writing to config.log, and then calls config.status.
9467# config.status does its own redirection, appending to config.log.
9468# Unfortunately, on DOS this fails, as config.log is still kept open
9469# by configure, so config.status won't be able to write to it; its
9470# output is simply discarded. So we exec the FD to /dev/null,
9471# effectively closing config.log, so it can be properly (re)opened and
9472# appended to by config.status. When coming back to configure, we
9473# need to make the FD available again.
9474if test "$no_create" != yes; then
9475 ac_cs_success=:
9476 ac_config_status_args=
9477 test "$silent" = yes &&
9478 ac_config_status_args="$ac_config_status_args --quiet"
9479 exec 5>/dev/null
9480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9481 exec 5>>config.log
9482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9483 # would make configure fail if this is the last instruction.
9484 $ac_cs_success || { (exit 1); exit 1; }
9485fi
9486