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