]> jfr.im git - irc/evilnet/x3.git/blob - configure
fixing delpeon bug
[irc/evilnet/x3.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 1829 2006-12-12 10:50:48Z sirvulcan .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for X3 1.5.
5 #
6 # Report bugs to <evilnet-devel@lists.sourceforge.net>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275 (exit $1)
276 }
277 as_func_success () {
278 as_func_return 0
279 }
280 as_func_failure () {
281 as_func_return 1
282 }
283 as_func_ret_success () {
284 return 0
285 }
286 as_func_ret_failure () {
287 return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292 :
293 else
294 exitcode=1
295 echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304 :
305 else
306 exitcode=1
307 echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 :
317 else
318 exitcode=1
319 echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332 break
333 fi
334
335 fi
336
337 done
338
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364 (exit \$1)
365 }
366 as_func_success () {
367 as_func_return 0
368 }
369 as_func_failure () {
370 as_func_return 1
371 }
372 as_func_ret_success () {
373 return 0
374 }
375 as_func_ret_failure () {
376 return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381 :
382 else
383 exitcode=1
384 echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393 :
394 else
395 exitcode=1
396 echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 :
406 else
407 exitcode=1
408 echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
416 }
417
418
419
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
482 as_expr=expr
483 else
484 as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490 else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527 else
528 as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME='X3'
562 PACKAGE_TARNAME='x3'
563 PACKAGE_VERSION='1.5'
564 PACKAGE_STRING='X3 1.5'
565 PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
566
567 ac_unique_file="src/opserv.c"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #if HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #if HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #if STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # if HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #if HAVE_STRING_H
586 # if !STDC_HEADERS && HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #if HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #if HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #if HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #if HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='SHELL
605 PATH_SEPARATOR
606 PACKAGE_NAME
607 PACKAGE_TARNAME
608 PACKAGE_VERSION
609 PACKAGE_STRING
610 PACKAGE_BUGREPORT
611 exec_prefix
612 prefix
613 program_transform_name
614 bindir
615 sbindir
616 libexecdir
617 datarootdir
618 datadir
619 sysconfdir
620 sharedstatedir
621 localstatedir
622 includedir
623 oldincludedir
624 docdir
625 infodir
626 htmldir
627 dvidir
628 pdfdir
629 psdir
630 libdir
631 localedir
632 mandir
633 DEFS
634 ECHO_C
635 ECHO_N
636 ECHO_T
637 LIBS
638 build_alias
639 host_alias
640 target_alias
641 build
642 build_cpu
643 build_vendor
644 build_os
645 host
646 host_cpu
647 host_vendor
648 host_os
649 target
650 target_cpu
651 target_vendor
652 target_os
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 MAINTAINER_MODE_TRUE
675 MAINTAINER_MODE_FALSE
676 MAINT
677 CC
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CCDEPMODE
691 am__fastdepCC_TRUE
692 am__fastdepCC_FALSE
693 RANLIB
694 LN_S
695 CPP
696 GREP
697 EGREP
698 MAKER
699 ALLOCA
700 MODULE_OBJS
701 MY_SUBDIRS
702 RX_INCLUDES
703 RX_LIBS
704 TRACK
705 LIBOBJS
706 LTLIBOBJS'
707 ac_subst_files=''
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 CPPFLAGS
715 CPP'
716
717
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 # The variables have the same names as the options, with
722 # dashes changed to underlines.
723 cache_file=/dev/null
724 exec_prefix=NONE
725 no_create=
726 no_recursion=
727 prefix=NONE
728 program_prefix=NONE
729 program_suffix=NONE
730 program_transform_name=s,x,x,
731 silent=
732 site=
733 srcdir=
734 verbose=
735 x_includes=NONE
736 x_libraries=NONE
737
738 # Installation directory options.
739 # These are left unexpanded so users can "make install exec_prefix=/foo"
740 # and all the variables that are supposed to be based on exec_prefix
741 # by default will actually change.
742 # Use braces instead of parens because sh, perl, etc. also accept them.
743 # (The list follows the same order as the GNU Coding Standards.)
744 bindir='${exec_prefix}/bin'
745 sbindir='${exec_prefix}/sbin'
746 libexecdir='${exec_prefix}/libexec'
747 datarootdir='${prefix}/share'
748 datadir='${datarootdir}'
749 sysconfdir='${prefix}/etc'
750 sharedstatedir='${prefix}/com'
751 localstatedir='${prefix}/var'
752 includedir='${prefix}/include'
753 oldincludedir='/usr/include'
754 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755 infodir='${datarootdir}/info'
756 htmldir='${docdir}'
757 dvidir='${docdir}'
758 pdfdir='${docdir}'
759 psdir='${docdir}'
760 libdir='${exec_prefix}/lib'
761 localedir='${datarootdir}/locale'
762 mandir='${datarootdir}/man'
763
764 ac_prev=
765 ac_dashdash=
766 for ac_option
767 do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
770 eval $ac_prev=\$ac_option
771 ac_prev=
772 continue
773 fi
774
775 case $ac_option in
776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
778 esac
779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
806 -datadir | --datadir | --datadi | --datad)
807 ac_prev=datadir ;;
808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
809 datadir=$ac_optarg ;;
810
811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
818 -disable-* | --disable-*)
819 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
825 eval enable_$ac_feature=no ;;
826
827 -docdir | --docdir | --docdi | --doc | --do)
828 ac_prev=docdir ;;
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 docdir=$ac_optarg ;;
831
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 ac_prev=dvidir ;;
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 dvidir=$ac_optarg ;;
836
837 -enable-* | --enable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
844 eval enable_$ac_feature=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid package name: $ac_package" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_package=`echo $ac_package| sed 's/-/_/g'`
1041 eval with_$ac_package=\$ac_optarg ;;
1042
1043 -without-* | --without-*)
1044 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package | sed 's/-/_/g'`
1050 eval with_$ac_package=no ;;
1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) { echo "$as_me: error: unrecognized option: $ac_option
1071 Try \`$0 --help' for more information." >&2
1072 { (exit 1); exit 1; }; }
1073 ;;
1074
1075 *=*)
1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080 { (exit 1); exit 1; }; }
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 ;;
1091
1092 esac
1093 done
1094
1095 if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 { echo "$as_me: error: missing argument to $ac_option" >&2
1098 { (exit 1); exit 1; }; }
1099 fi
1100
1101 # Be sure to have absolute directory names.
1102 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
1106 do
1107 eval ac_val=\$$ac_var
1108 case $ac_val in
1109 [\\/$]* | ?:[\\/]* ) continue;;
1110 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1111 esac
1112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
1114 done
1115
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1119 build=$build_alias
1120 host=$host_alias
1121 target=$target_alias
1122
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132 fi
1133
1134 ac_tool_prefix=
1135 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137 test "$silent" = yes && exec 6>/dev/null
1138
1139
1140 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141 ac_ls_di=`ls -di .` &&
1142 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146 { echo "$as_me: error: pwd does not report name of working directory" >&2
1147 { (exit 1); exit 1; }; }
1148
1149
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$0" ||
1155 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
1158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1159 echo X"$0" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\).*/{
1173 s//\1/
1174 q
1175 }
1176 s/.*/./; q'`
1177 srcdir=$ac_confdir
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 srcdir=..
1180 fi
1181 else
1182 ac_srcdir_defaulted=no
1183 fi
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1187 { (exit 1); exit 1; }; }
1188 fi
1189 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1192 { (exit 1); exit 1; }; }
1193 pwd)`
1194 # When building in place, set srcdir=.
1195 if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197 fi
1198 # Remove unnecessary trailing slashes from srcdir.
1199 # Double slashes in file names in object file debugging info
1200 # mess up M-x gdb in Emacs.
1201 case $srcdir in
1202 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 esac
1204 for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209 done
1210
1211 #
1212 # Report the --help message.
1213 #
1214 if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1217 cat <<_ACEOF
1218 \`configure' configures X3 1.5 to adapt to many kinds of systems.
1219
1220 Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223 VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225 Defaults for the options are specified in brackets.
1226
1227 Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
1238 Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
1240 [$ac_default_prefix]
1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 [PREFIX]
1243
1244 By default, \`make install' will install all the files in
1245 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247 for instance \`--prefix=\$HOME'.
1248
1249 For better control, use the options below.
1250
1251 Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
1271 _ACEOF
1272
1273 cat <<\_ACEOF
1274
1275 Program names:
1276 --program-prefix=PREFIX prepend PREFIX to installed program names
1277 --program-suffix=SUFFIX append SUFFIX to installed program names
1278 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1279
1280 System types:
1281 --build=BUILD configure for building on BUILD [guessed]
1282 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1283 --target=TARGET configure for building compilers for TARGET [HOST]
1284 _ACEOF
1285 fi
1286
1287 if test -n "$ac_init_help"; then
1288 case $ac_init_help in
1289 short | recursive ) echo "Configuration of X3 1.5:";;
1290 esac
1291 cat <<\_ACEOF
1292
1293 Optional Features:
1294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1296 --enable-maintainer-mode enable make rules and dependencies not useful
1297 (and sometimes confusing) to the casual installer
1298 --disable-dependency-tracking speeds up one-time build
1299 --enable-dependency-tracking do not reject slow dependency extractors
1300 --disable-tokens Disables tokenization of P10 protocol output
1301 (tokens required if linking to ircu 2.10.11)
1302 --enable-debug Enables debugging behaviors
1303 --enable-modules=list,of,modules Enable extra modules
1304
1305 Optional Packages:
1306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308 --with-malloc=type Enables use of a special malloc library; one of:
1309 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
1310 --with-protocol=name Choose IRC dialect to support; one of:
1311 p10 (the default)
1312 --without-getopt Disables building of the GNU getopt library
1313 --with-tre=PATH Base path to where libtre is installed, such that
1314 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1315 --with-coredumper=PATH Base path to where core dumper is installed, such
1316 that PATH/lib/libcoredumper.so and
1317 PATH/include/google/coredumper.h exist.
1318
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
1326 CPP C preprocessor
1327
1328 Use these variables to override the choices made by `configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1330
1331 Report bugs to <evilnet-devel@lists.sourceforge.net>.
1332 _ACEOF
1333 ac_status=$?
1334 fi
1335
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" || continue
1340 ac_builddir=.
1341
1342 case "$ac_dir" in
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *)
1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352 esac
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1357
1358 case $srcdir in
1359 .) # We are building in place.
1360 ac_srcdir=.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 esac
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1382 else
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1386 done
1387 fi
1388
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1391 cat <<\_ACEOF
1392 X3 configure 1.5
1393 generated by GNU Autoconf 2.60
1394
1395 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1399 _ACEOF
1400 exit
1401 fi
1402 cat >config.log <<_ACEOF
1403 This file contains any messages produced by compilers while
1404 running configure, to aid debugging if configure makes a mistake.
1405
1406 It was created by X3 $as_me 1.5, which was
1407 generated by GNU Autoconf 2.60. Invocation command line was
1408
1409 $ $0 $@
1410
1411 _ACEOF
1412 exec 5>>config.log
1413 {
1414 cat <<_ASUNAME
1415 ## --------- ##
1416 ## Platform. ##
1417 ## --------- ##
1418
1419 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424
1425 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427
1428 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1431 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1432 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435
1436 _ASUNAME
1437
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1444 done
1445 IFS=$as_save_IFS
1446
1447 } >&5
1448
1449 cat >&5 <<_ACEOF
1450
1451
1452 ## ----------- ##
1453 ## Core tests. ##
1454 ## ----------- ##
1455
1456 _ACEOF
1457
1458
1459 # Keep a trace of the command line.
1460 # Strip out --no-create and --no-recursion so they do not pile up.
1461 # Strip out --silent because we don't want to record it for future runs.
1462 # Also quote any args containing shell meta-characters.
1463 # Make two passes to allow for proper duplicate-argument suppression.
1464 ac_configure_args=
1465 ac_configure_args0=
1466 ac_configure_args1=
1467 ac_must_keep_next=false
1468 for ac_pass in 1 2
1469 do
1470 for ac_arg
1471 do
1472 case $ac_arg in
1473 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 continue ;;
1477 *\'*)
1478 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 esac
1480 case $ac_pass in
1481 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482 2)
1483 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true; then
1485 ac_must_keep_next=false # Got value, back to normal.
1486 else
1487 case $ac_arg in
1488 *=* | --config-cache | -C | -disable-* | --disable-* \
1489 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491 | -with-* | --with-* | -without-* | --without-* | --x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494 esac
1495 ;;
1496 -* ) ac_must_keep_next=true ;;
1497 esac
1498 fi
1499 ac_configure_args="$ac_configure_args '$ac_arg'"
1500 ;;
1501 esac
1502 done
1503 done
1504 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506
1507 # When interrupted or exit'd, cleanup temporary files, and complete
1508 # config.log. We remove comments because anyway the quotes in there
1509 # would cause problems or look ugly.
1510 # WARNING: Use '\'' to represent an apostrophe within the trap.
1511 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1512 trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1514 {
1515 echo
1516
1517 cat <<\_ASBOX
1518 ## ---------------- ##
1519 ## Cache variables. ##
1520 ## ---------------- ##
1521 _ASBOX
1522 echo
1523 # The following way of writing the cache mishandles newlines in values,
1524 (
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1527 case $ac_val in #(
1528 *${as_nl}*)
1529 case $ac_var in #(
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532 esac
1533 case $ac_var in #(
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1536 esac ;;
1537 esac
1538 done
1539 (set) 2>&1 |
1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
1542 sed -n \
1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545 ;; #(
1546 *)
1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1548 ;;
1549 esac |
1550 sort
1551 )
1552 echo
1553
1554 cat <<\_ASBOX
1555 ## ----------------- ##
1556 ## Output variables. ##
1557 ## ----------------- ##
1558 _ASBOX
1559 echo
1560 for ac_var in $ac_subst_vars
1561 do
1562 eval ac_val=\$$ac_var
1563 case $ac_val in
1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 esac
1566 echo "$ac_var='\''$ac_val'\''"
1567 done | sort
1568 echo
1569
1570 if test -n "$ac_subst_files"; then
1571 cat <<\_ASBOX
1572 ## ------------------- ##
1573 ## File substitutions. ##
1574 ## ------------------- ##
1575 _ASBOX
1576 echo
1577 for ac_var in $ac_subst_files
1578 do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
1584 done | sort
1585 echo
1586 fi
1587
1588 if test -s confdefs.h; then
1589 cat <<\_ASBOX
1590 ## ----------- ##
1591 ## confdefs.h. ##
1592 ## ----------- ##
1593 _ASBOX
1594 echo
1595 cat confdefs.h
1596 echo
1597 fi
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1601 } >&5
1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1604 exit $exit_status
1605 ' 0
1606 for ac_signal in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608 done
1609 ac_signal=0
1610
1611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1612 rm -f -r conftest* confdefs.h
1613
1614 # Predefined preprocessor variables.
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_NAME "$PACKAGE_NAME"
1618 _ACEOF
1619
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623 _ACEOF
1624
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1628 _ACEOF
1629
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_STRING "$PACKAGE_STRING"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638 _ACEOF
1639
1640
1641 # Let the site file select an alternate cache file if it wants to.
1642 # Prefer explicitly selected file to automatically selected ones.
1643 if test -n "$CONFIG_SITE"; then
1644 set x "$CONFIG_SITE"
1645 elif test "x$prefix" != xNONE; then
1646 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647 else
1648 set x "$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
1650 fi
1651 shift
1652 for ac_site_file
1653 do
1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656 echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1658 . "$ac_site_file"
1659 fi
1660 done
1661
1662 if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667 echo "$as_me: loading cache $cache_file" >&6;}
1668 case $cache_file in
1669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670 *) . "./$cache_file";;
1671 esac
1672 fi
1673 else
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675 echo "$as_me: creating cache $cache_file" >&6;}
1676 >$cache_file
1677 fi
1678
1679 # Check that the precious variables saved in the cache have kept the same
1680 # value.
1681 ac_cache_corrupted=false
1682 for ac_var in $ac_precious_vars; do
1683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684 eval ac_new_set=\$ac_env_${ac_var}_set
1685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686 eval ac_new_val=\$ac_env_${ac_var}_value
1687 case $ac_old_set,$ac_new_set in
1688 set,)
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,set)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,);;
1697 *)
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702 echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704 echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted=:
1706 fi;;
1707 esac
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1710 case $ac_new_val in
1711 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 *) ac_arg=$ac_var=$ac_new_val ;;
1713 esac
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717 esac
1718 fi
1719 done
1720 if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1726 fi
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752 ac_ext=c
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757
1758
1759 CODENAME=X3
1760 ac_config_headers="$ac_config_headers src/config.h"
1761
1762
1763 ac_aux_dir=
1764 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1765 if test -f "$ac_dir/install-sh"; then
1766 ac_aux_dir=$ac_dir
1767 ac_install_sh="$ac_aux_dir/install-sh -c"
1768 break
1769 elif test -f "$ac_dir/install.sh"; then
1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/install.sh -c"
1772 break
1773 elif test -f "$ac_dir/shtool"; then
1774 ac_aux_dir=$ac_dir
1775 ac_install_sh="$ac_aux_dir/shtool install -c"
1776 break
1777 fi
1778 done
1779 if test -z "$ac_aux_dir"; then
1780 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1781 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1782 { (exit 1); exit 1; }; }
1783 fi
1784
1785 # These three variables are undocumented and unsupported,
1786 # and are intended to be withdrawn in a future Autoconf release.
1787 # They can cause serious problems if a builder's source tree is in a directory
1788 # whose full name contains unusual characters.
1789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1792
1793
1794 # Make sure we can run config.sub.
1795 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1796 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1797 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1798 { (exit 1); exit 1; }; }
1799
1800 { echo "$as_me:$LINENO: checking build system type" >&5
1801 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1802 if test "${ac_cv_build+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 ac_build_alias=$build_alias
1806 test "x$ac_build_alias" = x &&
1807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1808 test "x$ac_build_alias" = x &&
1809 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1810 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1811 { (exit 1); exit 1; }; }
1812 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1813 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1814 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1815 { (exit 1); exit 1; }; }
1816
1817 fi
1818 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1819 echo "${ECHO_T}$ac_cv_build" >&6; }
1820 case $ac_cv_build in
1821 *-*-*) ;;
1822 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1823 echo "$as_me: error: invalid value of canonical build" >&2;}
1824 { (exit 1); exit 1; }; };;
1825 esac
1826 build=$ac_cv_build
1827 ac_save_IFS=$IFS; IFS='-'
1828 set x $ac_cv_build
1829 shift
1830 build_cpu=$1
1831 build_vendor=$2
1832 shift; shift
1833 # Remember, the first character of IFS is used to create $*,
1834 # except with old shells:
1835 build_os=$*
1836 IFS=$ac_save_IFS
1837 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1838
1839
1840 { echo "$as_me:$LINENO: checking host system type" >&5
1841 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1842 if test "${ac_cv_host+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test "x$host_alias" = x; then
1846 ac_cv_host=$ac_cv_build
1847 else
1848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1849 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1850 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1851 { (exit 1); exit 1; }; }
1852 fi
1853
1854 fi
1855 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856 echo "${ECHO_T}$ac_cv_host" >&6; }
1857 case $ac_cv_host in
1858 *-*-*) ;;
1859 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1860 echo "$as_me: error: invalid value of canonical host" >&2;}
1861 { (exit 1); exit 1; }; };;
1862 esac
1863 host=$ac_cv_host
1864 ac_save_IFS=$IFS; IFS='-'
1865 set x $ac_cv_host
1866 shift
1867 host_cpu=$1
1868 host_vendor=$2
1869 shift; shift
1870 # Remember, the first character of IFS is used to create $*,
1871 # except with old shells:
1872 host_os=$*
1873 IFS=$ac_save_IFS
1874 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1875
1876
1877 { echo "$as_me:$LINENO: checking target system type" >&5
1878 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1879 if test "${ac_cv_target+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test "x$target_alias" = x; then
1883 ac_cv_target=$ac_cv_host
1884 else
1885 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1887 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1888 { (exit 1); exit 1; }; }
1889 fi
1890
1891 fi
1892 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1893 echo "${ECHO_T}$ac_cv_target" >&6; }
1894 case $ac_cv_target in
1895 *-*-*) ;;
1896 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1897 echo "$as_me: error: invalid value of canonical target" >&2;}
1898 { (exit 1); exit 1; }; };;
1899 esac
1900 target=$ac_cv_target
1901 ac_save_IFS=$IFS; IFS='-'
1902 set x $ac_cv_target
1903 shift
1904 target_cpu=$1
1905 target_vendor=$2
1906 shift; shift
1907 # Remember, the first character of IFS is used to create $*,
1908 # except with old shells:
1909 target_os=$*
1910 IFS=$ac_save_IFS
1911 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1912
1913
1914 # The aliases save the names the user supplied, while $host etc.
1915 # will get canonicalized.
1916 test -n "$target_alias" &&
1917 test "$program_prefix$program_suffix$program_transform_name" = \
1918 NONENONEs,x,x, &&
1919 program_prefix=${target_alias}-
1920 am__api_version="1.9"
1921 # Find a good install program. We prefer a C program (faster),
1922 # so one script is as good as another. But avoid the broken or
1923 # incompatible versions:
1924 # SysV /etc/install, /usr/sbin/install
1925 # SunOS /usr/etc/install
1926 # IRIX /sbin/install
1927 # AIX /bin/install
1928 # AmigaOS /C/install, which installs bootblocks on floppy discs
1929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1932 # OS/2's system install, which has a completely different semantic
1933 # ./install, which can be erroneously created by make from ./install.sh.
1934 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1936 if test -z "$INSTALL"; then
1937 if test "${ac_cv_path_install+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 # Account for people who put trailing slashes in PATH elements.
1946 case $as_dir/ in
1947 ./ | .// | /cC/* | \
1948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1950 /usr/ucb/* ) ;;
1951 *)
1952 # OSF1 and SCO ODT 3.0 have their own names for install.
1953 # Don't use installbsd from OSF since it installs stuff as root
1954 # by default.
1955 for ac_prog in ginstall scoinst install; do
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1958 if test $ac_prog = install &&
1959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1960 # AIX install. It has an incompatible calling convention.
1961 :
1962 elif test $ac_prog = install &&
1963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1964 # program-specific install script used by HP pwplus--don't use.
1965 :
1966 else
1967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1968 break 3
1969 fi
1970 fi
1971 done
1972 done
1973 ;;
1974 esac
1975 done
1976 IFS=$as_save_IFS
1977
1978
1979 fi
1980 if test "${ac_cv_path_install+set}" = set; then
1981 INSTALL=$ac_cv_path_install
1982 else
1983 # As a last resort, use the slow shell script. Don't cache a
1984 # value for INSTALL within a source directory, because that will
1985 # break other packages using the cache if that directory is
1986 # removed, or if the value is a relative name.
1987 INSTALL=$ac_install_sh
1988 fi
1989 fi
1990 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1991 echo "${ECHO_T}$INSTALL" >&6; }
1992
1993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1994 # It thinks the first close brace ends the variable substitution.
1995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1996
1997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1998
1999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2000
2001 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2002 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2003 # Just in case
2004 sleep 1
2005 echo timestamp > conftest.file
2006 # Do `set' in a subshell so we don't clobber the current shell's
2007 # arguments. Must try -L first in case configure is actually a
2008 # symlink; some systems play weird games with the mod time of symlinks
2009 # (eg FreeBSD returns the mod time of the symlink's containing
2010 # directory).
2011 if (
2012 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2013 if test "$*" = "X"; then
2014 # -L didn't work.
2015 set X `ls -t $srcdir/configure conftest.file`
2016 fi
2017 rm -f conftest.file
2018 if test "$*" != "X $srcdir/configure conftest.file" \
2019 && test "$*" != "X conftest.file $srcdir/configure"; then
2020
2021 # If neither matched, then we have a broken ls. This can happen
2022 # if, for instance, CONFIG_SHELL is bash and it inherits a
2023 # broken ls alias from the environment. This has actually
2024 # happened. Such a system could not be considered "sane".
2025 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2026 alias in your environment" >&5
2027 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2028 alias in your environment" >&2;}
2029 { (exit 1); exit 1; }; }
2030 fi
2031
2032 test "$2" = conftest.file
2033 )
2034 then
2035 # Ok.
2036 :
2037 else
2038 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2039 Check your system clock" >&5
2040 echo "$as_me: error: newly created file is older than distributed files!
2041 Check your system clock" >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044 { echo "$as_me:$LINENO: result: yes" >&5
2045 echo "${ECHO_T}yes" >&6; }
2046 test "$program_prefix" != NONE &&
2047 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE &&
2050 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2051 # Double any \ or $. echo might interpret backslashes.
2052 # By default was `s,x,x', remove it if useless.
2053 cat <<\_ACEOF >conftest.sed
2054 s/[\\$]/&&/g;s/;s,x,x,$//
2055 _ACEOF
2056 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2057 rm -f conftest.sed
2058
2059 # expand $ac_aux_dir to an absolute path
2060 am_aux_dir=`cd $ac_aux_dir && pwd`
2061
2062 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2063 # Use eval to expand $SHELL
2064 if eval "$MISSING --run true"; then
2065 am_missing_run="$MISSING --run "
2066 else
2067 am_missing_run=
2068 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2069 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2070 fi
2071
2072 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2073 # We used to keeping the `.' as first argument, in order to
2074 # allow $(mkdir_p) to be used without argument. As in
2075 # $(mkdir_p) $(somedir)
2076 # where $(somedir) is conditionally defined. However this is wrong
2077 # for two reasons:
2078 # 1. if the package is installed by a user who cannot write `.'
2079 # make install will fail,
2080 # 2. the above comment should most certainly read
2081 # $(mkdir_p) $(DESTDIR)$(somedir)
2082 # so it does not work when $(somedir) is undefined and
2083 # $(DESTDIR) is not.
2084 # To support the latter case, we have to write
2085 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2086 # so the `.' trick is pointless.
2087 mkdir_p='mkdir -p --'
2088 else
2089 # On NextStep and OpenStep, the `mkdir' command does not
2090 # recognize any option. It will interpret all options as
2091 # directories to create, and then abort because `.' already
2092 # exists.
2093 for d in ./-p ./--version;
2094 do
2095 test -d $d && rmdir $d
2096 done
2097 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2098 if test -f "$ac_aux_dir/mkinstalldirs"; then
2099 mkdir_p='$(mkinstalldirs)'
2100 else
2101 mkdir_p='$(install_sh) -d'
2102 fi
2103 fi
2104
2105 for ac_prog in gawk mawk nawk awk
2106 do
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108 set dummy $ac_prog; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_AWK+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$AWK"; then
2115 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_AWK="$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2127 fi
2128 done
2129 done
2130 IFS=$as_save_IFS
2131
2132 fi
2133 fi
2134 AWK=$ac_cv_prog_AWK
2135 if test -n "$AWK"; then
2136 { echo "$as_me:$LINENO: result: $AWK" >&5
2137 echo "${ECHO_T}$AWK" >&6; }
2138 else
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2141 fi
2142
2143
2144 test -n "$AWK" && break
2145 done
2146
2147 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2148 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2149 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2150 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 cat >conftest.make <<\_ACEOF
2154 SHELL = /bin/sh
2155 all:
2156 @echo '@@@%%%=$(MAKE)=@@@%%%'
2157 _ACEOF
2158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2159 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2160 *@@@%%%=?*=@@@%%%*)
2161 eval ac_cv_prog_make_${ac_make}_set=yes;;
2162 *)
2163 eval ac_cv_prog_make_${ac_make}_set=no;;
2164 esac
2165 rm -f conftest.make
2166 fi
2167 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2168 { echo "$as_me:$LINENO: result: yes" >&5
2169 echo "${ECHO_T}yes" >&6; }
2170 SET_MAKE=
2171 else
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2174 SET_MAKE="MAKE=${MAKE-make}"
2175 fi
2176
2177 rm -rf .tst 2>/dev/null
2178 mkdir .tst 2>/dev/null
2179 if test -d .tst; then
2180 am__leading_dot=.
2181 else
2182 am__leading_dot=_
2183 fi
2184 rmdir .tst 2>/dev/null
2185
2186 # test to see if srcdir already configured
2187 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2188 test -f $srcdir/config.status; then
2189 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2190 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2191 { (exit 1); exit 1; }; }
2192 fi
2193
2194 # test whether we have cygpath
2195 if test -z "$CYGPATH_W"; then
2196 if (cygpath --version) >/dev/null 2>/dev/null; then
2197 CYGPATH_W='cygpath -w'
2198 else
2199 CYGPATH_W=echo
2200 fi
2201 fi
2202
2203
2204 # Define the identity of the package.
2205 PACKAGE='x3'
2206 VERSION='1.5'
2207
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE "$PACKAGE"
2211 _ACEOF
2212
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define VERSION "$VERSION"
2216 _ACEOF
2217
2218 # Some tools Automake needs.
2219
2220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2221
2222
2223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2224
2225
2226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2227
2228
2229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2230
2231
2232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2233
2234 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2235
2236 # Installed binaries are usually stripped using `strip' when the user
2237 # run `make install-strip'. However `strip' might not be the right
2238 # tool to use in cross-compilation environments, therefore Automake
2239 # will honor the `STRIP' environment variable to overrule this program.
2240 if test "$cross_compiling" != no; then
2241 if test -n "$ac_tool_prefix"; then
2242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2243 set dummy ${ac_tool_prefix}strip; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_prog_STRIP+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 if test -n "$STRIP"; then
2250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263 done
2264 done
2265 IFS=$as_save_IFS
2266
2267 fi
2268 fi
2269 STRIP=$ac_cv_prog_STRIP
2270 if test -n "$STRIP"; then
2271 { echo "$as_me:$LINENO: result: $STRIP" >&5
2272 echo "${ECHO_T}$STRIP" >&6; }
2273 else
2274 { echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6; }
2276 fi
2277
2278
2279 fi
2280 if test -z "$ac_cv_prog_STRIP"; then
2281 ac_ct_STRIP=$STRIP
2282 # Extract the first word of "strip", so it can be a program name with args.
2283 set dummy strip; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$ac_ct_STRIP"; then
2290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_ac_ct_STRIP="strip"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303 done
2304 done
2305 IFS=$as_save_IFS
2306
2307 fi
2308 fi
2309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2310 if test -n "$ac_ct_STRIP"; then
2311 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2312 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2313 else
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2316 fi
2317
2318 if test "x$ac_ct_STRIP" = x; then
2319 STRIP=":"
2320 else
2321 case $cross_compiling:$ac_tool_warned in
2322 yes:)
2323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet. If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&5
2326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329 ac_tool_warned=yes ;;
2330 esac
2331 STRIP=$ac_ct_STRIP
2332 fi
2333 else
2334 STRIP="$ac_cv_prog_STRIP"
2335 fi
2336
2337 fi
2338 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2339
2340 # We need awk for the "check" target. The system "awk" is bad on
2341 # some platforms.
2342 # Always define AMTAR for backward compatibility.
2343
2344 AMTAR=${AMTAR-"${am_missing_run}tar"}
2345
2346 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2347
2348
2349
2350
2351
2352 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2353 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2354 # Check whether --enable-maintainer-mode was given.
2355 if test "${enable_maintainer_mode+set}" = set; then
2356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2357 else
2358 USE_MAINTAINER_MODE=no
2359 fi
2360
2361 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2362 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2363
2364
2365 if test $USE_MAINTAINER_MODE = yes; then
2366 MAINTAINER_MODE_TRUE=
2367 MAINTAINER_MODE_FALSE='#'
2368 else
2369 MAINTAINER_MODE_TRUE='#'
2370 MAINTAINER_MODE_FALSE=
2371 fi
2372
2373 MAINT=$MAINTAINER_MODE_TRUE
2374
2375
2376
2377 DEPDIR="${am__leading_dot}deps"
2378
2379 ac_config_commands="$ac_config_commands depfiles"
2380
2381
2382 am_make=${MAKE-make}
2383 cat > confinc << 'END'
2384 am__doit:
2385 @echo done
2386 .PHONY: am__doit
2387 END
2388 # If we don't find an include directive, just comment out the code.
2389 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2390 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2391 am__include="#"
2392 am__quote=
2393 _am_result=none
2394 # First try GNU make style include.
2395 echo "include confinc" > confmf
2396 # We grep out `Entering directory' and `Leaving directory'
2397 # messages which can occur if `w' ends up in MAKEFLAGS.
2398 # In particular we don't look at `^make:' because GNU make might
2399 # be invoked under some other name (usually "gmake"), in which
2400 # case it prints its new name instead of `make'.
2401 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2402 am__include=include
2403 am__quote=
2404 _am_result=GNU
2405 fi
2406 # Now try BSD make style include.
2407 if test "$am__include" = "#"; then
2408 echo '.include "confinc"' > confmf
2409 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2410 am__include=.include
2411 am__quote="\""
2412 _am_result=BSD
2413 fi
2414 fi
2415
2416
2417 { echo "$as_me:$LINENO: result: $_am_result" >&5
2418 echo "${ECHO_T}$_am_result" >&6; }
2419 rm -f confinc confmf
2420
2421 # Check whether --enable-dependency-tracking was given.
2422 if test "${enable_dependency_tracking+set}" = set; then
2423 enableval=$enable_dependency_tracking;
2424 fi
2425
2426 if test "x$enable_dependency_tracking" != xno; then
2427 am_depcomp="$ac_aux_dir/depcomp"
2428 AMDEPBACKSLASH='\'
2429 fi
2430
2431
2432 if test "x$enable_dependency_tracking" != xno; then
2433 AMDEP_TRUE=
2434 AMDEP_FALSE='#'
2435 else
2436 AMDEP_TRUE='#'
2437 AMDEP_FALSE=
2438 fi
2439
2440
2441
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2452 if test "${ac_cv_prog_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469 done
2470 done
2471 IFS=$as_save_IFS
2472
2473 fi
2474 fi
2475 CC=$ac_cv_prog_CC
2476 if test -n "$CC"; then
2477 { echo "$as_me:$LINENO: result: $CC" >&5
2478 echo "${ECHO_T}$CC" >&6; }
2479 else
2480 { echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6; }
2482 fi
2483
2484
2485 fi
2486 if test -z "$ac_cv_prog_CC"; then
2487 ac_ct_CC=$CC
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489 set dummy gcc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_ac_ct_CC="gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509 done
2510 done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2516 if test -n "$ac_ct_CC"; then
2517 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2518 echo "${ECHO_T}$ac_ct_CC" >&6; }
2519 else
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522 fi
2523
2524 if test "x$ac_ct_CC" = x; then
2525 CC=""
2526 else
2527 case $cross_compiling:$ac_tool_warned in
2528 yes:)
2529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&5
2532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2533 whose name does not start with the host triplet. If you think this
2534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2535 ac_tool_warned=yes ;;
2536 esac
2537 CC=$ac_ct_CC
2538 fi
2539 else
2540 CC="$ac_cv_prog_CC"
2541 fi
2542
2543 if test -z "$CC"; then
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}cc; ac_word=$2
2547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_CC="${ac_tool_prefix}cc"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 CC=$ac_cv_prog_CC
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2576 else
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2579 fi
2580
2581
2582 fi
2583 fi
2584 if test -z "$CC"; then
2585 # Extract the first word of "cc", so it can be a program name with args.
2586 set dummy cc; ac_word=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595 ac_prog_rejected=no
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2604 ac_prog_rejected=yes
2605 continue
2606 fi
2607 ac_cv_prog_CC="cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 if test $ac_prog_rejected = yes; then
2616 # We found a bogon in the path, so make sure we never use it.
2617 set dummy $ac_cv_prog_CC
2618 shift
2619 if test $# != 0; then
2620 # We chose a different compiler from the bogus one.
2621 # However, it has the same basename, so the bogon will be chosen
2622 # first if we set CC to just the basename; use the full file name.
2623 shift
2624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2625 fi
2626 fi
2627 fi
2628 fi
2629 CC=$ac_cv_prog_CC
2630 if test -n "$CC"; then
2631 { echo "$as_me:$LINENO: result: $CC" >&5
2632 echo "${ECHO_T}$CC" >&6; }
2633 else
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2636 fi
2637
2638
2639 fi
2640 if test -z "$CC"; then
2641 if test -n "$ac_tool_prefix"; then
2642 for ac_prog in cl.exe
2643 do
2644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { echo "$as_me:$LINENO: result: $CC" >&5
2674 echo "${ECHO_T}$CC" >&6; }
2675 else
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 fi
2679
2680
2681 test -n "$CC" && break
2682 done
2683 fi
2684 if test -z "$CC"; then
2685 ac_ct_CC=$CC
2686 for ac_prog in cl.exe
2687 do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 if test -n "$ac_ct_CC"; then
2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_ac_ct_CC="$ac_prog"
2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716 if test -n "$ac_ct_CC"; then
2717 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2718 echo "${ECHO_T}$ac_ct_CC" >&6; }
2719 else
2720 { echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6; }
2722 fi
2723
2724
2725 test -n "$ac_ct_CC" && break
2726 done
2727
2728 if test "x$ac_ct_CC" = x; then
2729 CC=""
2730 else
2731 case $cross_compiling:$ac_tool_warned in
2732 yes:)
2733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to autoconf@gnu.org." >&5
2736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2737 whose name does not start with the host triplet. If you think this
2738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741 CC=$ac_ct_CC
2742 fi
2743 fi
2744
2745 fi
2746
2747
2748 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: no acceptable C compiler found in \$PATH
2751 See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2753
2754 # Provide some information about the compiler.
2755 echo "$as_me:$LINENO: checking for C compiler version" >&5
2756 ac_compiler=`set X $ac_compile; echo $2`
2757 { (ac_try="$ac_compiler --version >&5"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler --version >&5") 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767 { (ac_try="$ac_compiler -v >&5"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -v >&5") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777 { (ac_try="$ac_compiler -V >&5"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -V >&5") 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794
2795 int
2796 main ()
2797 {
2798
2799 ;
2800 return 0;
2801 }
2802 _ACEOF
2803 ac_clean_files_save=$ac_clean_files
2804 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2805 # Try to create an executable without -o first, disregard a.out.
2806 # It will help us diagnose broken compilers, and finding out an intuition
2807 # of exeext.
2808 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2809 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2810 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2811 #
2812 # List of possible output files, starting from the most likely.
2813 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2814 # only as a last resort. b.out is created by i960 compilers.
2815 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2816 #
2817 # The IRIX 6 linker writes into existing files which may not be
2818 # executable, retaining their permissions. Remove them first so a
2819 # subsequent execution test works.
2820 ac_rmfiles=
2821 for ac_file in $ac_files
2822 do
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2825 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2826 esac
2827 done
2828 rm -f $ac_rmfiles
2829
2830 if { (ac_try="$ac_link_default"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link_default") 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2841 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2842 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2843 # so that the user can short-circuit this test for compilers unknown to
2844 # Autoconf.
2845 for ac_file in $ac_files
2846 do
2847 test -f "$ac_file" || continue
2848 case $ac_file in
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2850 ;;
2851 [ab].out )
2852 # We found the default executable, but exeext='' is most
2853 # certainly right.
2854 break;;
2855 *.* )
2856 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2857 then :; else
2858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2859 fi
2860 # We set ac_cv_exeext here because the later test for it is not
2861 # safe: cross compilers may not add the suffix if given an `-o'
2862 # argument, so we may need to know it at that point already.
2863 # Even if this section looks crufty: it has the advantage of
2864 # actually working.
2865 break;;
2866 * )
2867 break;;
2868 esac
2869 done
2870 test "$ac_cv_exeext" = no && ac_cv_exeext=
2871
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: C compiler cannot create executables
2879 See \`config.log' for more details." >&2;}
2880 { (exit 77); exit 77; }; }
2881 fi
2882
2883 ac_exeext=$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_file" >&5
2885 echo "${ECHO_T}$ac_file" >&6; }
2886
2887 # Check that the compiler produces executables we can run. If not, either
2888 # the compiler is broken, or we cross compile.
2889 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2891 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892 # If not cross compiling, check that we can run a simple program.
2893 if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
2895 { (case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_try") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 cross_compiling=no
2905 else
2906 if test "$cross_compiling" = maybe; then
2907 cross_compiling=yes
2908 else
2909 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&5
2912 echo "$as_me: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2916 fi
2917 fi
2918 fi
2919 { echo "$as_me:$LINENO: result: yes" >&5
2920 echo "${ECHO_T}yes" >&6; }
2921
2922 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2923 ac_clean_files=$ac_clean_files_save
2924 # Check that the compiler produces executables we can run. If not, either
2925 # the compiler is broken, or we cross compile.
2926 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2928 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929 echo "${ECHO_T}$cross_compiling" >&6; }
2930
2931 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2933 if { (ac_try="$ac_link"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_link") 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2945 # work properly (i.e., refer to `conftest.exe'), while it won't with
2946 # `rm'.
2947 for ac_file in conftest.exe conftest conftest.*; do
2948 test -f "$ac_file" || continue
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 break;;
2953 * ) break;;
2954 esac
2955 done
2956 else
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2962 fi
2963
2964 rm -f conftest$ac_cv_exeext
2965 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2967
2968 rm -f conftest.$ac_ext
2969 EXEEXT=$ac_cv_exeext
2970 ac_exeext=$EXEEXT
2971 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2973 if test "${ac_cv_objext+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982
2983 int
2984 main ()
2985 {
2986
2987 ;
2988 return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.o conftest.obj
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compile") 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; then
3002 for ac_file in conftest.o conftest.obj conftest.*; do
3003 test -f "$ac_file" || continue;
3004 case $ac_file in
3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007 break;;
3008 esac
3009 done
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3015 See \`config.log' for more details." >&5
3016 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3019 fi
3020
3021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3022 fi
3023 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3024 echo "${ECHO_T}$ac_cv_objext" >&6; }
3025 OBJEXT=$ac_cv_objext
3026 ac_objext=$OBJEXT
3027 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038
3039 int
3040 main ()
3041 {
3042 #ifndef __GNUC__
3043 choke me
3044 #endif
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_compiler_gnu=yes
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 ac_compiler_gnu=no
3090 fi
3091
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095 fi
3096 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3098 GCC=`test $ac_compiler_gnu = yes && echo yes`
3099 ac_test_CFLAGS=${CFLAGS+set}
3100 ac_save_CFLAGS=$CFLAGS
3101 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_cc_g+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 ac_save_c_werror_flag=$ac_c_werror_flag
3107 ac_c_werror_flag=yes
3108 ac_cv_prog_cc_g=no
3109 CFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_prog_cc_g=yes
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 CFLAGS=""
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 :
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_try") 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cc_g=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275
3276 fi
3277
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3286 fi
3287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3293 CFLAGS="-g -O2"
3294 else
3295 CFLAGS="-g"
3296 fi
3297 else
3298 if test "$GCC" = yes; then
3299 CFLAGS="-O2"
3300 else
3301 CFLAGS=
3302 fi
3303 fi
3304 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_cc_c89+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 ac_cv_prog_cc_c89=no
3310 ac_save_CC=$CC
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <stdarg.h>
3318 #include <stdio.h>
3319 #include <sys/types.h>
3320 #include <sys/stat.h>
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3325 char **p;
3326 int i;
3327 {
3328 return p[i];
3329 }
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3331 {
3332 char *s;
3333 va_list v;
3334 va_start (v,p);
3335 s = g (p, va_arg (v,int));
3336 va_end (v);
3337 return s;
3338 }
3339
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
3343 as 'x'. The following induces an error, until -std is added to get
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
3346 that's true only with -std. */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3351 #define FOO(x) 'x'
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 int argc;
3359 char **argv;
3360 int
3361 main ()
3362 {
3363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3370 do
3371 CC="$ac_save_CC $ac_arg"
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_compile") 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; } &&
3396 { ac_try='test -s conftest.$ac_objext'
3397 { (case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_prog_cc_c89=$ac_arg
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411
3412 fi
3413
3414 rm -f core conftest.err conftest.$ac_objext
3415 test "x$ac_cv_prog_cc_c89" != "xno" && break
3416 done
3417 rm -f conftest.$ac_ext
3418 CC=$ac_save_CC
3419
3420 fi
3421 # AC_CACHE_VAL
3422 case "x$ac_cv_prog_cc_c89" in
3423 x)
3424 { echo "$as_me:$LINENO: result: none needed" >&5
3425 echo "${ECHO_T}none needed" >&6; } ;;
3426 xno)
3427 { echo "$as_me:$LINENO: result: unsupported" >&5
3428 echo "${ECHO_T}unsupported" >&6; } ;;
3429 *)
3430 CC="$CC $ac_cv_prog_cc_c89"
3431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3432 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3433 esac
3434
3435
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
3442 depcc="$CC" am_compiler_list=
3443
3444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3446 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450 # We make a subdir and do the tests there. Otherwise we can end up
3451 # making bogus files that we don't know about and never remove. For
3452 # instance it was reported that on HP-UX the gcc test will end up
3453 # making a dummy file named `D' -- because `-MD' means `put the output
3454 # in D'.
3455 mkdir conftest.dir
3456 # Copy depcomp to subdir because otherwise we won't find it if we're
3457 # using a relative directory.
3458 cp "$am_depcomp" conftest.dir
3459 cd conftest.dir
3460 # We will build objects and dependencies in a subdirectory because
3461 # it helps to detect inapplicable dependency modes. For instance
3462 # both Tru64's cc and ICC support -MD to output dependencies as a
3463 # side effect of compilation, but ICC will put the dependencies in
3464 # the current directory while Tru64 will put them in the object
3465 # directory.
3466 mkdir sub
3467
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3471 fi
3472 for depmode in $am_compiler_list; do
3473 # Setup a source with many dependencies, because some compilers
3474 # like to wrap large dependency lists on column 80 (with \), and
3475 # we should not choose a depcomp mode which is confused by this.
3476 #
3477 # We need to recreate these files for each test, as the compiler may
3478 # overwrite some of them when testing with obscure command lines.
3479 # This happens at least with the AIX C compiler.
3480 : > sub/conftest.c
3481 for i in 1 2 3 4 5 6; do
3482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484 # Solaris 8's {/usr,}/bin/sh.
3485 touch sub/conftst$i.h
3486 done
3487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3488
3489 case $depmode in
3490 nosideeffect)
3491 # after this tag, mechanisms are not by side-effect, so they'll
3492 # only be used when explicitly requested
3493 if test "x$enable_dependency_tracking" = xyes; then
3494 continue
3495 else
3496 break
3497 fi
3498 ;;
3499 none) break ;;
3500 esac
3501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle `-M -o', and we need to detect this.
3504 if depmode=$depmode \
3505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508 >/dev/null 2>conftest.err &&
3509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3512 # icc doesn't choke on unknown options, it will just issue warnings
3513 # or remarks (even with -Werror). So we grep stderr for any message
3514 # that says an option was ignored or not supported.
3515 # When given -MP, icc 7.0 and 7.1 complain thusly:
3516 # icc: Command line warning: ignoring option '-M'; no argument required
3517 # The diagnosis changed in icc 8.0:
3518 # icc: Command line remark: option '-MP' not supported
3519 if (grep 'ignoring option' conftest.err ||
3520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3521 am_cv_CC_dependencies_compiler_type=$depmode
3522 break
3523 fi
3524 fi
3525 done
3526
3527 cd ..
3528 rm -rf conftest.dir
3529 else
3530 am_cv_CC_dependencies_compiler_type=none
3531 fi
3532
3533 fi
3534 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3535 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3536 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3537
3538
3539
3540 if
3541 test "x$enable_dependency_tracking" != xno \
3542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3543 am__fastdepCC_TRUE=
3544 am__fastdepCC_FALSE='#'
3545 else
3546 am__fastdepCC_TRUE='#'
3547 am__fastdepCC_FALSE=
3548 fi
3549
3550
3551
3552 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3553 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3554 if test "${ac_cv_type_signal+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563 #include <sys/types.h>
3564 #include <signal.h>
3565
3566 int
3567 main ()
3568 {
3569 return *(signal (0, 0)) (0) == 1;
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3589 { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_try") 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
3599 { (case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_try") 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
3608 ac_cv_type_signal=int
3609 else
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613 ac_cv_type_signal=void
3614 fi
3615
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3619 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3620
3621 cat >>confdefs.h <<_ACEOF
3622 #define RETSIGTYPE $ac_cv_type_signal
3623 _ACEOF
3624
3625
3626 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3628 if test "${ac_cv_c_const+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641 /* FIXME: Include the comments suggested by Paul. */
3642 #ifndef __cplusplus
3643 /* Ultrix mips cc rejects this. */
3644 typedef int charset[2];
3645 const charset x;
3646 /* SunOS 4.1.1 cc rejects this. */
3647 char const *const *ccp;
3648 char **p;
3649 /* NEC SVR4.0.2 mips cc rejects this. */
3650 struct point {int x, y;};
3651 static struct point const zero = {0,0};
3652 /* AIX XL C 1.02.0.0 rejects this.
3653 It does not let you subtract one const X* pointer from another in
3654 an arm of an if-expression whose if-part is not a constant
3655 expression */
3656 const char *g = "string";
3657 ccp = &g + (g ? g-g : 0);
3658 /* HPUX 7.0 cc rejects these. */
3659 ++ccp;
3660 p = (char**) ccp;
3661 ccp = (char const *const *) p;
3662 { /* SCO 3.2v4 cc rejects this. */
3663 char *t;
3664 char const *s = 0 ? (char *) 0 : (char const *) 0;
3665
3666 *t++ = 0;
3667 if (s) return 0;
3668 }
3669 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3670 int x[] = {25, 17};
3671 const int *foo = &x[0];
3672 ++foo;
3673 }
3674 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3675 typedef const int *iptr;
3676 iptr p = 0;
3677 ++p;
3678 }
3679 { /* AIX XL C 1.02.0.0 rejects this saying
3680 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3681 struct s { int j; const int *ap[3]; };
3682 struct s *b; b->j = 5;
3683 }
3684 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3685 const int foo = 10;
3686 if (!foo) return 0;
3687 }
3688 return !x[0] && !zero.x;
3689 #endif
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3710 { (case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3715 (eval "$ac_try") 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest.$ac_objext'
3720 { (case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_try") 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_c_const=yes
3730 else
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 ac_cv_c_const=no
3735 fi
3736
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3740 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3741 if test $ac_cv_c_const = no; then
3742
3743 cat >>confdefs.h <<\_ACEOF
3744 #define const
3745 _ACEOF
3746
3747 fi
3748
3749 { echo "$as_me:$LINENO: checking for inline" >&5
3750 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3751 if test "${ac_cv_c_inline+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 ac_cv_c_inline=no
3755 for ac_kw in inline __inline__ __inline; do
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #ifndef __cplusplus
3763 typedef int foo_t;
3764 static $ac_kw foo_t static_foo () {return 0; }
3765 $ac_kw foo_t foo () {return 0; }
3766 #endif
3767
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_try") 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
3794 { (case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_try") 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_cv_c_inline=$ac_kw
3804 else
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808
3809 fi
3810
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 test "$ac_cv_c_inline" != no && break
3813 done
3814
3815 fi
3816 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3817 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3818
3819
3820 case $ac_cv_c_inline in
3821 inline | yes) ;;
3822 *)
3823 case $ac_cv_c_inline in
3824 no) ac_val=;;
3825 *) ac_val=$ac_cv_c_inline;;
3826 esac
3827 cat >>confdefs.h <<_ACEOF
3828 #ifndef __cplusplus
3829 #define inline $ac_val
3830 #endif
3831 _ACEOF
3832 ;;
3833 esac
3834
3835
3836 for ac_prog in gawk mawk nawk awk
3837 do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3842 if test "${ac_cv_prog_AWK+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 if test -n "$AWK"; then
3846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3855 ac_cv_prog_AWK="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859 done
3860 done
3861 IFS=$as_save_IFS
3862
3863 fi
3864 fi
3865 AWK=$ac_cv_prog_AWK
3866 if test -n "$AWK"; then
3867 { echo "$as_me:$LINENO: result: $AWK" >&5
3868 echo "${ECHO_T}$AWK" >&6; }
3869 else
3870 { echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6; }
3872 fi
3873
3874
3875 test -n "$AWK" && break
3876 done
3877
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3888 if test "${ac_cv_prog_CC+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905 done
3906 done
3907 IFS=$as_save_IFS
3908
3909 fi
3910 fi
3911 CC=$ac_cv_prog_CC
3912 if test -n "$CC"; then
3913 { echo "$as_me:$LINENO: result: $CC" >&5
3914 echo "${ECHO_T}$CC" >&6; }
3915 else
3916 { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3918 fi
3919
3920
3921 fi
3922 if test -z "$ac_cv_prog_CC"; then
3923 ac_ct_CC=$CC
3924 # Extract the first word of "gcc", so it can be a program name with args.
3925 set dummy gcc; ac_word=$2
3926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 if test -n "$ac_ct_CC"; then
3932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3936 do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3941 ac_cv_prog_ac_ct_CC="gcc"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945 done
3946 done
3947 IFS=$as_save_IFS
3948
3949 fi
3950 fi
3951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3952 if test -n "$ac_ct_CC"; then
3953 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3954 echo "${ECHO_T}$ac_ct_CC" >&6; }
3955 else
3956 { echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6; }
3958 fi
3959
3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966 whose name does not start with the host triplet. If you think this
3967 configuration is useful to you, please write to autoconf@gnu.org." >&5
3968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971 ac_tool_warned=yes ;;
3972 esac
3973 CC=$ac_ct_CC
3974 fi
3975 else
3976 CC="$ac_cv_prog_CC"
3977 fi
3978
3979 if test -z "$CC"; then
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}cc; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_prog_CC+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_CC="${ac_tool_prefix}cc"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 CC=$ac_cv_prog_CC
4009 if test -n "$CC"; then
4010 { echo "$as_me:$LINENO: result: $CC" >&5
4011 echo "${ECHO_T}$CC" >&6; }
4012 else
4013 { echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6; }
4015 fi
4016
4017
4018 fi
4019 fi
4020 if test -z "$CC"; then
4021 # Extract the first word of "cc", so it can be a program name with args.
4022 set dummy cc; ac_word=$2
4023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4025 if test "${ac_cv_prog_CC+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 ac_prog_rejected=no
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4040 ac_prog_rejected=yes
4041 continue
4042 fi
4043 ac_cv_prog_CC="cc"
4044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047 done
4048 done
4049 IFS=$as_save_IFS
4050
4051 if test $ac_prog_rejected = yes; then
4052 # We found a bogon in the path, so make sure we never use it.
4053 set dummy $ac_cv_prog_CC
4054 shift
4055 if test $# != 0; then
4056 # We chose a different compiler from the bogus one.
4057 # However, it has the same basename, so the bogon will be chosen
4058 # first if we set CC to just the basename; use the full file name.
4059 shift
4060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4061 fi
4062 fi
4063 fi
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067 { echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6; }
4069 else
4070 { echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6; }
4072 fi
4073
4074
4075 fi
4076 if test -z "$CC"; then
4077 if test -n "$ac_tool_prefix"; then
4078 for ac_prog in cl.exe
4079 do
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4084 if test "${ac_cv_prog_CC+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109 { echo "$as_me:$LINENO: result: $CC" >&5
4110 echo "${ECHO_T}$CC" >&6; }
4111 else
4112 { echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6; }
4114 fi
4115
4116
4117 test -n "$CC" && break
4118 done
4119 fi
4120 if test -z "$CC"; then
4121 ac_ct_CC=$CC
4122 for ac_prog in cl.exe
4123 do
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125 set dummy $ac_prog; ac_word=$2
4126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_ac_ct_CC="$ac_prog"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152 if test -n "$ac_ct_CC"; then
4153 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4154 echo "${ECHO_T}$ac_ct_CC" >&6; }
4155 else
4156 { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4158 fi
4159
4160
4161 test -n "$ac_ct_CC" && break
4162 done
4163
4164 if test "x$ac_ct_CC" = x; then
4165 CC=""
4166 else
4167 case $cross_compiling:$ac_tool_warned in
4168 yes:)
4169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4170 whose name does not start with the host triplet. If you think this
4171 configuration is useful to you, please write to autoconf@gnu.org." >&5
4172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4173 whose name does not start with the host triplet. If you think this
4174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4175 ac_tool_warned=yes ;;
4176 esac
4177 CC=$ac_ct_CC
4178 fi
4179 fi
4180
4181 fi
4182
4183
4184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4185 See \`config.log' for more details." >&5
4186 echo "$as_me: error: no acceptable C compiler found in \$PATH
4187 See \`config.log' for more details." >&2;}
4188 { (exit 1); exit 1; }; }
4189
4190 # Provide some information about the compiler.
4191 echo "$as_me:$LINENO: checking for C compiler version" >&5
4192 ac_compiler=`set X $ac_compile; echo $2`
4193 { (ac_try="$ac_compiler --version >&5"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compiler --version >&5") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }
4203 { (ac_try="$ac_compiler -v >&5"
4204 case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compiler -v >&5") 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213 { (ac_try="$ac_compiler -V >&5"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compiler -V >&5") 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223
4224 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235
4236 int
4237 main ()
4238 {
4239 #ifndef __GNUC__
4240 choke me
4241 #endif
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (ac_try="$ac_compile"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_compiler_gnu=yes
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_compiler_gnu=no
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4291
4292 fi
4293 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4295 GCC=`test $ac_compiler_gnu = yes && echo yes`
4296 ac_test_CFLAGS=${CFLAGS+set}
4297 ac_save_CFLAGS=$CFLAGS
4298 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4299 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_cc_g+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 ac_save_c_werror_flag=$ac_c_werror_flag
4304 ac_c_werror_flag=yes
4305 ac_cv_prog_cc_g=no
4306 CFLAGS="-g"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313
4314 int
4315 main ()
4316 {
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4337 { (case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_prog_cc_g=yes
4357 else
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 CFLAGS=""
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368
4369 int
4370 main ()
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 :
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_c_werror_flag=$ac_save_c_werror_flag
4417 CFLAGS="-g"
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424
4425 int
4426 main ()
4427 {
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 rm -f conftest.$ac_objext
4434 if { (ac_try="$ac_compile"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_compile") 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4448 { (case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_try") 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_prog_cc_g=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472
4473 fi
4474
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 fi
4477
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_c_werror_flag=$ac_save_c_werror_flag
4483 fi
4484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4486 if test "$ac_test_CFLAGS" = set; then
4487 CFLAGS=$ac_save_CFLAGS
4488 elif test $ac_cv_prog_cc_g = yes; then
4489 if test "$GCC" = yes; then
4490 CFLAGS="-g -O2"
4491 else
4492 CFLAGS="-g"
4493 fi
4494 else
4495 if test "$GCC" = yes; then
4496 CFLAGS="-O2"
4497 else
4498 CFLAGS=
4499 fi
4500 fi
4501 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4502 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4503 if test "${ac_cv_prog_cc_c89+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 ac_cv_prog_cc_c89=no
4507 ac_save_CC=$CC
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <stdarg.h>
4515 #include <stdio.h>
4516 #include <sys/types.h>
4517 #include <sys/stat.h>
4518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4519 struct buf { int x; };
4520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4521 static char *e (p, i)
4522 char **p;
4523 int i;
4524 {
4525 return p[i];
4526 }
4527 static char *f (char * (*g) (char **, int), char **p, ...)
4528 {
4529 char *s;
4530 va_list v;
4531 va_start (v,p);
4532 s = g (p, va_arg (v,int));
4533 va_end (v);
4534 return s;
4535 }
4536
4537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4538 function prototypes and stuff, but not '\xHH' hex character constants.
4539 These don't provoke an error unfortunately, instead are silently treated
4540 as 'x'. The following induces an error, until -std is added to get
4541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4542 array size at least. It's necessary to write '\x00'==0 to get something
4543 that's true only with -std. */
4544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4545
4546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4547 inside strings and character constants. */
4548 #define FOO(x) 'x'
4549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4550
4551 int test (int i, double x);
4552 struct s1 {int (*f) (int a);};
4553 struct s2 {int (*f) (double a);};
4554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4555 int argc;
4556 char **argv;
4557 int
4558 main ()
4559 {
4560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4567 do
4568 CC="$ac_save_CC $ac_arg"
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4571 case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_prog_cc_c89=$ac_arg
4604 else
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608
4609 fi
4610
4611 rm -f core conftest.err conftest.$ac_objext
4612 test "x$ac_cv_prog_cc_c89" != "xno" && break
4613 done
4614 rm -f conftest.$ac_ext
4615 CC=$ac_save_CC
4616
4617 fi
4618 # AC_CACHE_VAL
4619 case "x$ac_cv_prog_cc_c89" in
4620 x)
4621 { echo "$as_me:$LINENO: result: none needed" >&5
4622 echo "${ECHO_T}none needed" >&6; } ;;
4623 xno)
4624 { echo "$as_me:$LINENO: result: unsupported" >&5
4625 echo "${ECHO_T}unsupported" >&6; } ;;
4626 *)
4627 CC="$CC $ac_cv_prog_cc_c89"
4628 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4629 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4630 esac
4631
4632
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639 depcc="$CC" am_compiler_list=
4640
4641 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4643 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4647 # We make a subdir and do the tests there. Otherwise we can end up
4648 # making bogus files that we don't know about and never remove. For
4649 # instance it was reported that on HP-UX the gcc test will end up
4650 # making a dummy file named `D' -- because `-MD' means `put the output
4651 # in D'.
4652 mkdir conftest.dir
4653 # Copy depcomp to subdir because otherwise we won't find it if we're
4654 # using a relative directory.
4655 cp "$am_depcomp" conftest.dir
4656 cd conftest.dir
4657 # We will build objects and dependencies in a subdirectory because
4658 # it helps to detect inapplicable dependency modes. For instance
4659 # both Tru64's cc and ICC support -MD to output dependencies as a
4660 # side effect of compilation, but ICC will put the dependencies in
4661 # the current directory while Tru64 will put them in the object
4662 # directory.
4663 mkdir sub
4664
4665 am_cv_CC_dependencies_compiler_type=none
4666 if test "$am_compiler_list" = ""; then
4667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4668 fi
4669 for depmode in $am_compiler_list; do
4670 # Setup a source with many dependencies, because some compilers
4671 # like to wrap large dependency lists on column 80 (with \), and
4672 # we should not choose a depcomp mode which is confused by this.
4673 #
4674 # We need to recreate these files for each test, as the compiler may
4675 # overwrite some of them when testing with obscure command lines.
4676 # This happens at least with the AIX C compiler.
4677 : > sub/conftest.c
4678 for i in 1 2 3 4 5 6; do
4679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4681 # Solaris 8's {/usr,}/bin/sh.
4682 touch sub/conftst$i.h
4683 done
4684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4685
4686 case $depmode in
4687 nosideeffect)
4688 # after this tag, mechanisms are not by side-effect, so they'll
4689 # only be used when explicitly requested
4690 if test "x$enable_dependency_tracking" = xyes; then
4691 continue
4692 else
4693 break
4694 fi
4695 ;;
4696 none) break ;;
4697 esac
4698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4699 # mode. It turns out that the SunPro C++ compiler does not properly
4700 # handle `-M -o', and we need to detect this.
4701 if depmode=$depmode \
4702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4705 >/dev/null 2>conftest.err &&
4706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4709 # icc doesn't choke on unknown options, it will just issue warnings
4710 # or remarks (even with -Werror). So we grep stderr for any message
4711 # that says an option was ignored or not supported.
4712 # When given -MP, icc 7.0 and 7.1 complain thusly:
4713 # icc: Command line warning: ignoring option '-M'; no argument required
4714 # The diagnosis changed in icc 8.0:
4715 # icc: Command line remark: option '-MP' not supported
4716 if (grep 'ignoring option' conftest.err ||
4717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4718 am_cv_CC_dependencies_compiler_type=$depmode
4719 break
4720 fi
4721 fi
4722 done
4723
4724 cd ..
4725 rm -rf conftest.dir
4726 else
4727 am_cv_CC_dependencies_compiler_type=none
4728 fi
4729
4730 fi
4731 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4732 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4733 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4734
4735
4736
4737 if
4738 test "x$enable_dependency_tracking" != xno \
4739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4740 am__fastdepCC_TRUE=
4741 am__fastdepCC_FALSE='#'
4742 else
4743 am__fastdepCC_TRUE='#'
4744 am__fastdepCC_FALSE=
4745 fi
4746
4747
4748 # Find a good install program. We prefer a C program (faster),
4749 # so one script is as good as another. But avoid the broken or
4750 # incompatible versions:
4751 # SysV /etc/install, /usr/sbin/install
4752 # SunOS /usr/etc/install
4753 # IRIX /sbin/install
4754 # AIX /bin/install
4755 # AmigaOS /C/install, which installs bootblocks on floppy discs
4756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759 # OS/2's system install, which has a completely different semantic
4760 # ./install, which can be erroneously created by make from ./install.sh.
4761 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4762 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4763 if test -z "$INSTALL"; then
4764 if test "${ac_cv_path_install+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 # Account for people who put trailing slashes in PATH elements.
4773 case $as_dir/ in
4774 ./ | .// | /cC/* | \
4775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4776 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4777 /usr/ucb/* ) ;;
4778 *)
4779 # OSF1 and SCO ODT 3.0 have their own names for install.
4780 # Don't use installbsd from OSF since it installs stuff as root
4781 # by default.
4782 for ac_prog in ginstall scoinst install; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4785 if test $ac_prog = install &&
4786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787 # AIX install. It has an incompatible calling convention.
4788 :
4789 elif test $ac_prog = install &&
4790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791 # program-specific install script used by HP pwplus--don't use.
4792 :
4793 else
4794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4795 break 3
4796 fi
4797 fi
4798 done
4799 done
4800 ;;
4801 esac
4802 done
4803 IFS=$as_save_IFS
4804
4805
4806 fi
4807 if test "${ac_cv_path_install+set}" = set; then
4808 INSTALL=$ac_cv_path_install
4809 else
4810 # As a last resort, use the slow shell script. Don't cache a
4811 # value for INSTALL within a source directory, because that will
4812 # break other packages using the cache if that directory is
4813 # removed, or if the value is a relative name.
4814 INSTALL=$ac_install_sh
4815 fi
4816 fi
4817 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4818 echo "${ECHO_T}$INSTALL" >&6; }
4819
4820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4821 # It thinks the first close brace ends the variable substitution.
4822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4823
4824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4825
4826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4827
4828
4829 if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_RANLIB+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 if test -n "$RANLIB"; then
4838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4850 fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 RANLIB=$ac_cv_prog_RANLIB
4858 if test -n "$RANLIB"; then
4859 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4860 echo "${ECHO_T}$RANLIB" >&6; }
4861 else
4862 { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4864 fi
4865
4866
4867 fi
4868 if test -z "$ac_cv_prog_RANLIB"; then
4869 ac_ct_RANLIB=$RANLIB
4870 # Extract the first word of "ranlib", so it can be a program name with args.
4871 set dummy ranlib; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 if test -n "$ac_ct_RANLIB"; then
4878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_ac_ct_RANLIB="ranlib"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4898 if test -n "$ac_ct_RANLIB"; then
4899 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4900 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4901 else
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4904 fi
4905
4906 if test "x$ac_ct_RANLIB" = x; then
4907 RANLIB=":"
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910 yes:)
4911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4912 whose name does not start with the host triplet. If you think this
4913 configuration is useful to you, please write to autoconf@gnu.org." >&5
4914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4915 whose name does not start with the host triplet. If you think this
4916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4917 ac_tool_warned=yes ;;
4918 esac
4919 RANLIB=$ac_ct_RANLIB
4920 fi
4921 else
4922 RANLIB="$ac_cv_prog_RANLIB"
4923 fi
4924
4925
4926 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4927 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4928 LN_S=$as_ln_s
4929 if test "$LN_S" = "ln -s"; then
4930 { echo "$as_me:$LINENO: result: yes" >&5
4931 echo "${ECHO_T}yes" >&6; }
4932 else
4933 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4934 echo "${ECHO_T}no, using $LN_S" >&6; }
4935 fi
4936
4937 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4938 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4939 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4940 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 cat >conftest.make <<\_ACEOF
4944 SHELL = /bin/sh
4945 all:
4946 @echo '@@@%%%=$(MAKE)=@@@%%%'
4947 _ACEOF
4948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4950 *@@@%%%=?*=@@@%%%*)
4951 eval ac_cv_prog_make_${ac_make}_set=yes;;
4952 *)
4953 eval ac_cv_prog_make_${ac_make}_set=no;;
4954 esac
4955 rm -f conftest.make
4956 fi
4957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4958 { echo "$as_me:$LINENO: result: yes" >&5
4959 echo "${ECHO_T}yes" >&6; }
4960 SET_MAKE=
4961 else
4962 { echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6; }
4964 SET_MAKE="MAKE=${MAKE-make}"
4965 fi
4966
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4974 # On Suns, sometimes $CPP names a directory.
4975 if test -n "$CPP" && test -d "$CPP"; then
4976 CPP=
4977 fi
4978 if test -z "$CPP"; then
4979 if test "${ac_cv_prog_CPP+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 # Double quotes because CPP needs to be expanded
4983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4984 do
4985 ac_preproc_ok=false
4986 for ac_c_preproc_warn_flag in '' yes
4987 do
4988 # Use a header file that comes with gcc, so configuring glibc
4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #ifdef __STDC__
5001 # include <limits.h>
5002 #else
5003 # include <assert.h>
5004 #endif
5005 Syntax error
5006 _ACEOF
5007 if { (ac_try="$ac_cpp conftest.$ac_ext"
5008 case "(($ac_try" in
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5011 esac
5012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } >/dev/null; then
5020 if test -s conftest.err; then
5021 ac_cpp_err=$ac_c_preproc_warn_flag
5022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5023 else
5024 ac_cpp_err=
5025 fi
5026 else
5027 ac_cpp_err=yes
5028 fi
5029 if test -z "$ac_cpp_err"; then
5030 :
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 # Broken: fails on valid input.
5036 continue
5037 fi
5038
5039 rm -f conftest.err conftest.$ac_ext
5040
5041 # OK, works on sane cases. Now check whether nonexistent headers
5042 # can be detected and how.
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #include <ac_nonexistent.h>
5050 _ACEOF
5051 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_c_preproc_warn_flag
5066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5067 else
5068 ac_cpp_err=
5069 fi
5070 else
5071 ac_cpp_err=yes
5072 fi
5073 if test -z "$ac_cpp_err"; then
5074 # Broken: success on invalid input.
5075 continue
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Passes both tests.
5081 ac_preproc_ok=:
5082 break
5083 fi
5084
5085 rm -f conftest.err conftest.$ac_ext
5086
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then
5091 break
5092 fi
5093
5094 done
5095 ac_cv_prog_CPP=$CPP
5096
5097 fi
5098 CPP=$ac_cv_prog_CPP
5099 else
5100 ac_cv_prog_CPP=$CPP
5101 fi
5102 { echo "$as_me:$LINENO: result: $CPP" >&5
5103 echo "${ECHO_T}$CPP" >&6; }
5104 ac_preproc_ok=false
5105 for ac_c_preproc_warn_flag in '' yes
5106 do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #ifdef __STDC__
5120 # include <limits.h>
5121 #else
5122 # include <assert.h>
5123 #endif
5124 Syntax error
5125 _ACEOF
5126 if { (ac_try="$ac_cpp conftest.$ac_ext"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null; then
5139 if test -s conftest.err; then
5140 ac_cpp_err=$ac_c_preproc_warn_flag
5141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5142 else
5143 ac_cpp_err=
5144 fi
5145 else
5146 ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149 :
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 # Broken: fails on valid input.
5155 continue
5156 fi
5157
5158 rm -f conftest.err conftest.$ac_ext
5159
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if { (ac_try="$ac_cpp conftest.$ac_ext"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_c_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5186 else
5187 ac_cpp_err=
5188 fi
5189 else
5190 ac_cpp_err=yes
5191 fi
5192 if test -z "$ac_cpp_err"; then
5193 # Broken: success on invalid input.
5194 continue
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5202 fi
5203
5204 rm -f conftest.err conftest.$ac_ext
5205
5206 done
5207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208 rm -f conftest.err conftest.$ac_ext
5209 if $ac_preproc_ok; then
5210 :
5211 else
5212 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5213 See \`config.log' for more details." >&5
5214 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5215 See \`config.log' for more details." >&2;}
5216 { (exit 1); exit 1; }; }
5217 fi
5218
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225
5226 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5227 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5228 if test "${ac_cv_path_GREP+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 # Extract the first word of "grep ggrep" to use in msg output
5232 if test -z "$GREP"; then
5233 set dummy grep ggrep; ac_prog_name=$2
5234 if test "${ac_cv_path_GREP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 ac_path_GREP_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5248 # Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250 case `"$ac_path_GREP" --version 2>&1` in
5251 *GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253 *)
5254 ac_count=0
5255 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 ac_count=`expr $ac_count + 1`
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5275
5276
5277 $ac_path_GREP_found && break 3
5278 done
5279 done
5280
5281 done
5282 IFS=$as_save_IFS
5283
5284
5285 fi
5286
5287 GREP="$ac_cv_path_GREP"
5288 if test -z "$GREP"; then
5289 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5290 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5291 { (exit 1); exit 1; }; }
5292 fi
5293
5294 else
5295 ac_cv_path_GREP=$GREP
5296 fi
5297
5298
5299 fi
5300 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5301 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5302 GREP="$ac_cv_path_GREP"
5303
5304
5305 { echo "$as_me:$LINENO: checking for egrep" >&5
5306 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5307 if test "${ac_cv_path_EGREP+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5311 then ac_cv_path_EGREP="$GREP -E"
5312 else
5313 # Extract the first word of "egrep" to use in msg output
5314 if test -z "$EGREP"; then
5315 set dummy egrep; ac_prog_name=$2
5316 if test "${ac_cv_path_EGREP+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 ac_path_EGREP_found=false
5320 # Loop through the user's path and test for each of PROGNAME-LIST
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_prog in egrep; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5329 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5330 # Check for GNU ac_path_EGREP and select it if it is found.
5331 # Check for GNU $ac_path_EGREP
5332 case `"$ac_path_EGREP" --version 2>&1` in
5333 *GNU*)
5334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5335 *)
5336 ac_count=0
5337 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5338 while :
5339 do
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 echo 'EGREP' >> "conftest.nl"
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346 ac_count=`expr $ac_count + 1`
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_EGREP="$ac_path_EGREP"
5350 ac_path_EGREP_max=$ac_count
5351 fi
5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5354 done
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 esac
5357
5358
5359 $ac_path_EGREP_found && break 3
5360 done
5361 done
5362
5363 done
5364 IFS=$as_save_IFS
5365
5366
5367 fi
5368
5369 EGREP="$ac_cv_path_EGREP"
5370 if test -z "$EGREP"; then
5371 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5372 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5373 { (exit 1); exit 1; }; }
5374 fi
5375
5376 else
5377 ac_cv_path_EGREP=$EGREP
5378 fi
5379
5380
5381 fi
5382 fi
5383 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5384 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
5386
5387
5388 if test $ac_cv_c_compiler_gnu = yes; then
5389 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5390 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5391 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 ac_pattern="Autoconf.*'x'"
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <sgtty.h>
5402 Autoconf TIOCGETP
5403 _ACEOF
5404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5405 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5406 ac_cv_prog_gcc_traditional=yes
5407 else
5408 ac_cv_prog_gcc_traditional=no
5409 fi
5410 rm -f conftest*
5411
5412
5413 if test $ac_cv_prog_gcc_traditional = no; then
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <termio.h>
5421 Autoconf TCGETA
5422 _ACEOF
5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5425 ac_cv_prog_gcc_traditional=yes
5426 fi
5427 rm -f conftest*
5428
5429 fi
5430 fi
5431 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5432 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5433 if test $ac_cv_prog_gcc_traditional = yes; then
5434 CC="$CC -traditional"
5435 fi
5436 fi
5437
5438 # Extract the first word of "gmake", so it can be a program name with args.
5439 set dummy gmake; ac_word=$2
5440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442 if test "${ac_cv_prog_MAKER+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 if test -n "$MAKER"; then
5446 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_MAKER="gmake"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459 done
5460 done
5461 IFS=$as_save_IFS
5462
5463 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5464 fi
5465 fi
5466 MAKER=$ac_cv_prog_MAKER
5467 if test -n "$MAKER"; then
5468 { echo "$as_me:$LINENO: result: $MAKER" >&5
5469 echo "${ECHO_T}$MAKER" >&6; }
5470 else
5471 { echo "$as_me:$LINENO: result: no" >&5
5472 echo "${ECHO_T}no" >&6; }
5473 fi
5474
5475
5476
5477 case $target in
5478 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5479 ANSI_SRC=""
5480 ;;
5481 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5482 ANSI_SRC=""
5483 ;;
5484 *-solaris*)
5485 EXTRA_DEFINE="-D__SOLARIS__"
5486 ANSI_SRC="-fno-builtin"
5487 ;;
5488 *-cygwin)
5489 ANSI_SRC="-fno-builtin"
5490 ;;
5491 *-linux*)
5492 EXTRA_DEFINE="-D_GNU_SOURCE"
5493 ANSI_SRC=""
5494 ;;
5495 *)
5496 ANSI_SRC=""
5497 ;;
5498 esac
5499 CFLAGS="$CFLAGS $EXTRA_DEFINE"
5500
5501
5502 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5503 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5504 if test "${ac_cv_lib_socket_socket+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 ac_check_lib_save_LIBS=$LIBS
5508 LIBS="-lsocket $LIBS"
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515
5516 /* Override any GCC internal prototype to avoid an error.
5517 Use char because int might match the return type of a GCC
5518 builtin and then its argument prototype would still apply. */
5519 #ifdef __cplusplus
5520 extern "C"
5521 #endif
5522 char socket ();
5523 int
5524 main ()
5525 {
5526 return socket ();
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext conftest$ac_exeext
5532 if { (ac_try="$ac_link"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_link") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546 { (case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549 esac
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_try") 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 ac_cv_lib_socket_socket=yes
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 ac_cv_lib_socket_socket=no
5571 fi
5572
5573 rm -f core conftest.err conftest.$ac_objext \
5574 conftest$ac_exeext conftest.$ac_ext
5575 LIBS=$ac_check_lib_save_LIBS
5576 fi
5577 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5578 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5579 if test $ac_cv_lib_socket_socket = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define HAVE_LIBSOCKET 1
5582 _ACEOF
5583
5584 LIBS="-lsocket $LIBS"
5585
5586 fi
5587
5588
5589 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5590 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5591 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 ac_check_lib_save_LIBS=$LIBS
5595 LIBS="-lnsl $LIBS"
5596 cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602
5603 /* Override any GCC internal prototype to avoid an error.
5604 Use char because int might match the return type of a GCC
5605 builtin and then its argument prototype would still apply. */
5606 #ifdef __cplusplus
5607 extern "C"
5608 #endif
5609 char gethostbyname ();
5610 int
5611 main ()
5612 {
5613 return gethostbyname ();
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext conftest$ac_exeext
5619 if { (ac_try="$ac_link"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_link") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5633 { (case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_try") 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest$ac_exeext'
5643 { (case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_try") 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_lib_nsl_gethostbyname=yes
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657 ac_cv_lib_nsl_gethostbyname=no
5658 fi
5659
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 LIBS=$ac_check_lib_save_LIBS
5663 fi
5664 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5665 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5666 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE_LIBNSL 1
5669 _ACEOF
5670
5671 LIBS="-lnsl $LIBS"
5672
5673 fi
5674
5675
5676 { echo "$as_me:$LINENO: checking for main in -lm" >&5
5677 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5678 if test "${ac_cv_lib_m_main+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 ac_check_lib_save_LIBS=$LIBS
5682 LIBS="-lm $LIBS"
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689
5690
5691 int
5692 main ()
5693 {
5694 return main ();
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext conftest$ac_exeext
5700 if { (ac_try="$ac_link"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_link") 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest$ac_exeext'
5724 { (case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_try") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_lib_m_main=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cv_lib_m_main=no
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS
5744 fi
5745 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5746 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5747 if test $ac_cv_lib_m_main = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define HAVE_LIBM 1
5750 _ACEOF
5751
5752 LIBS="-lm $LIBS"
5753
5754 fi
5755
5756
5757 { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5758 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
5759 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 ac_check_lib_save_LIBS=$LIBS
5763 LIBS="-lGeoIP $LIBS"
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770
5771 /* Override any GCC internal prototype to avoid an error.
5772 Use char because int might match the return type of a GCC
5773 builtin and then its argument prototype would still apply. */
5774 #ifdef __cplusplus
5775 extern "C"
5776 #endif
5777 char GeoIP_open ();
5778 int
5779 main ()
5780 {
5781 return GeoIP_open ();
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (ac_try="$ac_link"
5788 case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_link") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest$ac_exeext'
5811 { (case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_try") 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_lib_GeoIP_GeoIP_open=yes
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 ac_cv_lib_GeoIP_GeoIP_open=no
5826 fi
5827
5828 rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5830 LIBS=$ac_check_lib_save_LIBS
5831 fi
5832 { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5833 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
5834 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5835 cat >>confdefs.h <<_ACEOF
5836 #define HAVE_LIBGEOIP 1
5837 _ACEOF
5838
5839 LIBS="-lGeoIP $LIBS"
5840
5841 fi
5842
5843
5844 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5846 if test "${ac_cv_header_stdc+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <stdlib.h>
5856 #include <stdarg.h>
5857 #include <string.h>
5858 #include <float.h>
5859
5860 int
5861 main ()
5862 {
5863
5864 ;
5865 return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_header_stdc=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_cv_header_stdc=no
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911
5912 if test $ac_cv_header_stdc = yes; then
5913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <string.h>
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "memchr" >/dev/null 2>&1; then
5925 :
5926 else
5927 ac_cv_header_stdc=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932
5933 if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <stdlib.h>
5942
5943 _ACEOF
5944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5945 $EGREP "free" >/dev/null 2>&1; then
5946 :
5947 else
5948 ac_cv_header_stdc=no
5949 fi
5950 rm -f conftest*
5951
5952 fi
5953
5954 if test $ac_cv_header_stdc = yes; then
5955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5956 if test "$cross_compiling" = yes; then
5957 :
5958 else
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #include <ctype.h>
5966 #include <stdlib.h>
5967 #if ((' ' & 0x0FF) == 0x020)
5968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970 #else
5971 # define ISLOWER(c) \
5972 (('a' <= (c) && (c) <= 'i') \
5973 || ('j' <= (c) && (c) <= 'r') \
5974 || ('s' <= (c) && (c) <= 'z'))
5975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976 #endif
5977
5978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5979 int
5980 main ()
5981 {
5982 int i;
5983 for (i = 0; i < 256; i++)
5984 if (XOR (islower (i), ISLOWER (i))
5985 || toupper (i) != TOUPPER (i))
5986 return 2;
5987 return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6001 { (case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_try") 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 :
6011 else
6012 echo "$as_me: program exited with status $ac_status" >&5
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 ( exit $ac_status )
6017 ac_cv_header_stdc=no
6018 fi
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6020 fi
6021
6022
6023 fi
6024 fi
6025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6027 if test $ac_cv_header_stdc = yes; then
6028
6029 cat >>confdefs.h <<\_ACEOF
6030 #define STDC_HEADERS 1
6031 _ACEOF
6032
6033 fi
6034
6035
6036 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6037 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6038 if test "${ac_cv_header_time+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <sys/types.h>
6048 #include <sys/time.h>
6049 #include <time.h>
6050
6051 int
6052 main ()
6053 {
6054 if ((struct tm *) 0)
6055 return 0;
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_header_time=yes
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_header_time=no
6100 fi
6101
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6105 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6106 if test $ac_cv_header_time = yes; then
6107
6108 cat >>confdefs.h <<\_ACEOF
6109 #define TIME_WITH_SYS_TIME 1
6110 _ACEOF
6111
6112 fi
6113
6114 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6115 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6116 if test "${ac_cv_struct_tm+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 #include <time.h>
6127
6128 int
6129 main ()
6130 {
6131 struct tm *tp; tp->tm_sec;
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_struct_tm=time.h
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 ac_cv_struct_tm=sys/time.h
6176 fi
6177
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 fi
6180 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6181 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6182 if test $ac_cv_struct_tm = sys/time.h; then
6183
6184 cat >>confdefs.h <<\_ACEOF
6185 #define TM_IN_SYS_TIME 1
6186 _ACEOF
6187
6188 fi
6189
6190
6191 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6202 inttypes.h stdint.h unistd.h
6203 do
6204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h. */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 $ac_includes_default
6217
6218 #include <$ac_header>
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_try") 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 eval "$as_ac_Header=yes"
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 eval "$as_ac_Header=no"
6260 fi
6261
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 ac_res=`eval echo '${'$as_ac_Header'}'`
6265 { echo "$as_me:$LINENO: result: $ac_res" >&5
6266 echo "${ECHO_T}$ac_res" >&6; }
6267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6270 _ACEOF
6271
6272 fi
6273
6274 done
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 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
6300 do
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 fi
6308 ac_res=`eval echo '${'$as_ac_Header'}'`
6309 { echo "$as_me:$LINENO: result: $ac_res" >&5
6310 echo "${ECHO_T}$ac_res" >&6; }
6311 else
6312 # Is the header compilable?
6313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6322 #include <$ac_header>
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (ac_try="$ac_compile"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_header_compiler=yes
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ac_header_compiler=no
6364 fi
6365
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6368 echo "${ECHO_T}$ac_header_compiler" >&6; }
6369
6370 # Is the header present?
6371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <$ac_header>
6380 _ACEOF
6381 if { (ac_try="$ac_cpp conftest.$ac_ext"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null; then
6394 if test -s conftest.err; then
6395 ac_cpp_err=$ac_c_preproc_warn_flag
6396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6397 else
6398 ac_cpp_err=
6399 fi
6400 else
6401 ac_cpp_err=yes
6402 fi
6403 if test -z "$ac_cpp_err"; then
6404 ac_header_preproc=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_preproc=no
6410 fi
6411
6412 rm -f conftest.err conftest.$ac_ext
6413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6414 echo "${ECHO_T}$ac_header_preproc" >&6; }
6415
6416 # So? What about this header?
6417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6418 yes:no: )
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6423 ac_header_preproc=yes
6424 ;;
6425 no:yes:* )
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6438 ( cat <<\_ASBOX
6439 ## -------------------------------------------------- ##
6440 ## Report this to evilnet-devel@lists.sourceforge.net ##
6441 ## -------------------------------------------------- ##
6442 _ASBOX
6443 ) | sed "s/^/$as_me: WARNING: /" >&2
6444 ;;
6445 esac
6446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 eval "$as_ac_Header=\$ac_header_preproc"
6452 fi
6453 ac_res=`eval echo '${'$as_ac_Header'}'`
6454 { echo "$as_me:$LINENO: result: $ac_res" >&5
6455 echo "${ECHO_T}$ac_res" >&6; }
6456
6457 fi
6458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6461 _ACEOF
6462
6463 fi
6464
6465 done
6466
6467
6468 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6469 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
6470 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/socket.h>
6481
6482 int
6483 main ()
6484 {
6485 static struct sockaddr ac_aggr;
6486 if (ac_aggr.sa_len)
6487 return 0;
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compile") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6507 { (case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_try") 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; } &&
6516 { ac_try='test -s conftest.$ac_objext'
6517 { (case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_try") 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 ac_cv_member_struct_sockaddr_sa_len=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #include <sys/types.h>
6538 #include <sys/socket.h>
6539
6540 int
6541 main ()
6542 {
6543 static struct sockaddr ac_aggr;
6544 if (sizeof ac_aggr.sa_len)
6545 return 0;
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (ac_try="$ac_compile"
6552 case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6565 { (case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6568 esac
6569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_try") 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest.$ac_objext'
6575 { (case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_member_struct_sockaddr_sa_len=yes
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 ac_cv_member_struct_sockaddr_sa_len=no
6590 fi
6591
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 fi
6594
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6598 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
6599 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6600
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_SOCKADDR_SA_LEN
6603 _ACEOF
6604
6605 fi
6606
6607 { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6608 echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
6609 if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <sys/types.h>
6619 #include <sys/socket.h>
6620 #include <netdb.h>
6621
6622 int
6623 main ()
6624 {
6625 static struct addrinfo ac_aggr;
6626 if (ac_aggr.ai_flags)
6627 return 0;
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650 esac
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_try") 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660 esac
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_try") 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_member_struct_addrinfo_ai_flags=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 #include <sys/socket.h>
6679 #include <netdb.h>
6680
6681 int
6682 main ()
6683 {
6684 static struct addrinfo ac_aggr;
6685 if (sizeof ac_aggr.ai_flags)
6686 return 0;
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (ac_try="$ac_compile"
6693 case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696 esac
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6706 { (case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_try") 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719 esac
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_try") 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_member_struct_addrinfo_ai_flags=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_cv_member_struct_addrinfo_ai_flags=no
6731 fi
6732
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 fi
6735
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6739 echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
6740 if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6741
6742 cat >>confdefs.h <<\_ACEOF
6743 #define HAVE_STRUCT_ADDRINFO
6744 _ACEOF
6745
6746 fi
6747
6748
6749
6750 for ac_func in gettimeofday
6751 do
6752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6766 #define $ac_func innocuous_$ac_func
6767
6768 /* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func (); below.
6770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771 <limits.h> exists even on freestanding compilers. */
6772
6773 #ifdef __STDC__
6774 # include <limits.h>
6775 #else
6776 # include <assert.h>
6777 #endif
6778
6779 #undef $ac_func
6780
6781 /* Override any GCC internal prototype to avoid an error.
6782 Use char because int might match the return type of a GCC
6783 builtin and then its argument prototype would still apply. */
6784 #ifdef __cplusplus
6785 extern "C"
6786 #endif
6787 char $ac_func ();
6788 /* The GNU C library defines this for functions which it implements
6789 to always fail with ENOSYS. Some functions are actually named
6790 something starting with __ and the normal name is an alias. */
6791 #if defined __stub_$ac_func || defined __stub___$ac_func
6792 choke me
6793 #endif
6794
6795 int
6796 main ()
6797 {
6798 return $ac_func ();
6799 ;
6800 return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (ac_try="$ac_link"
6805 case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808 esac
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_link") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6818 { (case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_try") 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_try") 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 eval "$as_ac_var=yes"
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 eval "$as_ac_var=no"
6843 fi
6844
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 fi
6848 ac_res=`eval echo '${'$as_ac_var'}'`
6849 { echo "$as_me:$LINENO: result: $ac_res" >&5
6850 echo "${ECHO_T}$ac_res" >&6; }
6851 if test `eval echo '${'$as_ac_var'}'` = yes; then
6852 cat >>confdefs.h <<_ACEOF
6853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6854 _ACEOF
6855
6856 fi
6857 done
6858
6859 if test $ac_cv_func_gettimeofday = no; then
6860
6861 for ac_func in ftime
6862 do
6863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6877 #define $ac_func innocuous_$ac_func
6878
6879 /* System header to define __stub macros and hopefully few prototypes,
6880 which can conflict with char $ac_func (); below.
6881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6882 <limits.h> exists even on freestanding compilers. */
6883
6884 #ifdef __STDC__
6885 # include <limits.h>
6886 #else
6887 # include <assert.h>
6888 #endif
6889
6890 #undef $ac_func
6891
6892 /* Override any GCC internal prototype to avoid an error.
6893 Use char because int might match the return type of a GCC
6894 builtin and then its argument prototype would still apply. */
6895 #ifdef __cplusplus
6896 extern "C"
6897 #endif
6898 char $ac_func ();
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined __stub_$ac_func || defined __stub___$ac_func
6903 choke me
6904 #endif
6905
6906 int
6907 main ()
6908 {
6909 return $ac_func ();
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929 { (case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_try") 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest$ac_exeext'
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 eval "$as_ac_var=yes"
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 eval "$as_ac_var=no"
6954 fi
6955
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext conftest.$ac_ext
6958 fi
6959 ac_res=`eval echo '${'$as_ac_var'}'`
6960 { echo "$as_me:$LINENO: result: $ac_res" >&5
6961 echo "${ECHO_T}$ac_res" >&6; }
6962 if test `eval echo '${'$as_ac_var'}'` = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6965 _ACEOF
6966
6967 else
6968 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6969 echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6970 { (exit 1); exit 1; }; }
6971 fi
6972 done
6973
6974 fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990 for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
6991 do
6992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7006 #define $ac_func innocuous_$ac_func
7007
7008 /* System header to define __stub macros and hopefully few prototypes,
7009 which can conflict with char $ac_func (); below.
7010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7011 <limits.h> exists even on freestanding compilers. */
7012
7013 #ifdef __STDC__
7014 # include <limits.h>
7015 #else
7016 # include <assert.h>
7017 #endif
7018
7019 #undef $ac_func
7020
7021 /* Override any GCC internal prototype to avoid an error.
7022 Use char because int might match the return type of a GCC
7023 builtin and then its argument prototype would still apply. */
7024 #ifdef __cplusplus
7025 extern "C"
7026 #endif
7027 char $ac_func ();
7028 /* The GNU C library defines this for functions which it implements
7029 to always fail with ENOSYS. Some functions are actually named
7030 something starting with __ and the normal name is an alias. */
7031 #if defined __stub_$ac_func || defined __stub___$ac_func
7032 choke me
7033 #endif
7034
7035 int
7036 main ()
7037 {
7038 return $ac_func ();
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (ac_try="$ac_link"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_link") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7058 { (case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_try") 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
7068 { (case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_try") 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 eval "$as_ac_var=yes"
7078 else
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 eval "$as_ac_var=no"
7083 fi
7084
7085 rm -f core conftest.err conftest.$ac_objext \
7086 conftest$ac_exeext conftest.$ac_ext
7087 fi
7088 ac_res=`eval echo '${'$as_ac_var'}'`
7089 { echo "$as_me:$LINENO: result: $ac_res" >&5
7090 echo "${ECHO_T}$ac_res" >&6; }
7091 if test `eval echo '${'$as_ac_var'}'` = yes; then
7092 cat >>confdefs.h <<_ACEOF
7093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7094 _ACEOF
7095
7096 fi
7097 done
7098
7099
7100
7101
7102
7103
7104
7105
7106 for ac_func in select socket strcspn strspn strtod strtoul
7107 do
7108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7122 #define $ac_func innocuous_$ac_func
7123
7124 /* System header to define __stub macros and hopefully few prototypes,
7125 which can conflict with char $ac_func (); below.
7126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7127 <limits.h> exists even on freestanding compilers. */
7128
7129 #ifdef __STDC__
7130 # include <limits.h>
7131 #else
7132 # include <assert.h>
7133 #endif
7134
7135 #undef $ac_func
7136
7137 /* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
7140 #ifdef __cplusplus
7141 extern "C"
7142 #endif
7143 char $ac_func ();
7144 /* The GNU C library defines this for functions which it implements
7145 to always fail with ENOSYS. Some functions are actually named
7146 something starting with __ and the normal name is an alias. */
7147 #if defined __stub_$ac_func || defined __stub___$ac_func
7148 choke me
7149 #endif
7150
7151 int
7152 main ()
7153 {
7154 return $ac_func ();
7155 ;
7156 return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext conftest$ac_exeext
7160 if { (ac_try="$ac_link"
7161 case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_link") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7174 { (case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_try") 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; } &&
7183 { ac_try='test -s conftest$ac_exeext'
7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_try") 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 eval "$as_ac_var=yes"
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 eval "$as_ac_var=no"
7199 fi
7200
7201 rm -f core conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 fi
7204 ac_res=`eval echo '${'$as_ac_var'}'`
7205 { echo "$as_me:$LINENO: result: $ac_res" >&5
7206 echo "${ECHO_T}$ac_res" >&6; }
7207 if test `eval echo '${'$as_ac_var'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7210 _ACEOF
7211
7212 else
7213 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
7214 echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
7215 { (exit 1); exit 1; }; }
7216 fi
7217 done
7218
7219
7220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7221 # for constant arguments. Useless!
7222 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7223 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7224 if test "${ac_cv_working_alloca_h+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #include <alloca.h>
7234 int
7235 main ()
7236 {
7237 char *p = (char *) alloca (2 * sizeof (int));
7238 if (p) return 0;
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (ac_try="$ac_link"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_link") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7258 { (case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261 esac
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_try") 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_try") 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_working_alloca_h=yes
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_cv_working_alloca_h=no
7283 fi
7284
7285 rm -f core conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7287 fi
7288 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7289 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7290 if test $ac_cv_working_alloca_h = yes; then
7291
7292 cat >>confdefs.h <<\_ACEOF
7293 #define HAVE_ALLOCA_H 1
7294 _ACEOF
7295
7296 fi
7297
7298 { echo "$as_me:$LINENO: checking for alloca" >&5
7299 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7300 if test "${ac_cv_func_alloca_works+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #ifdef __GNUC__
7310 # define alloca __builtin_alloca
7311 #else
7312 # ifdef _MSC_VER
7313 # include <malloc.h>
7314 # define alloca _alloca
7315 # else
7316 # if HAVE_ALLOCA_H
7317 # include <alloca.h>
7318 # else
7319 # ifdef _AIX
7320 #pragma alloca
7321 # else
7322 # ifndef alloca /* predefined by HP cc +Olibcalls */
7323 char *alloca ();
7324 # endif
7325 # endif
7326 # endif
7327 # endif
7328 #endif
7329
7330 int
7331 main ()
7332 {
7333 char *p = (char *) alloca (1);
7334 if (p) return 0;
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7354 { (case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_try") 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try='test -s conftest$ac_exeext'
7364 { (case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
7368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7369 (eval "$ac_try") 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_func_alloca_works=yes
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7377
7378 ac_cv_func_alloca_works=no
7379 fi
7380
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 fi
7384 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7385 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7386
7387 if test $ac_cv_func_alloca_works = yes; then
7388
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_ALLOCA 1
7391 _ACEOF
7392
7393 else
7394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7395 # that cause trouble. Some versions do not even contain alloca or
7396 # contain a buggy version. If you still want to use their alloca,
7397 # use ar to extract alloca.o from them instead of compiling alloca.c.
7398
7399 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7400
7401 cat >>confdefs.h <<\_ACEOF
7402 #define C_ALLOCA 1
7403 _ACEOF
7404
7405
7406 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7407 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7408 if test "${ac_cv_os_cray+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 #if defined CRAY && ! defined CRAY2
7418 webecray
7419 #else
7420 wenotbecray
7421 #endif
7422
7423 _ACEOF
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 $EGREP "webecray" >/dev/null 2>&1; then
7426 ac_cv_os_cray=yes
7427 else
7428 ac_cv_os_cray=no
7429 fi
7430 rm -f conftest*
7431
7432 fi
7433 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7434 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7435 if test $ac_cv_os_cray = yes; then
7436 for ac_func in _getb67 GETB67 getb67; do
7437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7451 #define $ac_func innocuous_$ac_func
7452
7453 /* System header to define __stub macros and hopefully few prototypes,
7454 which can conflict with char $ac_func (); below.
7455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7456 <limits.h> exists even on freestanding compilers. */
7457
7458 #ifdef __STDC__
7459 # include <limits.h>
7460 #else
7461 # include <assert.h>
7462 #endif
7463
7464 #undef $ac_func
7465
7466 /* Override any GCC internal prototype to avoid an error.
7467 Use char because int might match the return type of a GCC
7468 builtin and then its argument prototype would still apply. */
7469 #ifdef __cplusplus
7470 extern "C"
7471 #endif
7472 char $ac_func ();
7473 /* The GNU C library defines this for functions which it implements
7474 to always fail with ENOSYS. Some functions are actually named
7475 something starting with __ and the normal name is an alias. */
7476 #if defined __stub_$ac_func || defined __stub___$ac_func
7477 choke me
7478 #endif
7479
7480 int
7481 main ()
7482 {
7483 return $ac_func ();
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (ac_try="$ac_link"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7503 { (case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_try") 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_try") 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 eval "$as_ac_var=yes"
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527 eval "$as_ac_var=no"
7528 fi
7529
7530 rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 fi
7533 ac_res=`eval echo '${'$as_ac_var'}'`
7534 { echo "$as_me:$LINENO: result: $ac_res" >&5
7535 echo "${ECHO_T}$ac_res" >&6; }
7536 if test `eval echo '${'$as_ac_var'}'` = yes; then
7537
7538 cat >>confdefs.h <<_ACEOF
7539 #define CRAY_STACKSEG_END $ac_func
7540 _ACEOF
7541
7542 break
7543 fi
7544
7545 done
7546 fi
7547
7548 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7549 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7550 if test "${ac_cv_c_stack_direction+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 if test "$cross_compiling" = yes; then
7554 ac_cv_c_stack_direction=0
7555 else
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 $ac_includes_default
7563 int
7564 find_stack_direction ()
7565 {
7566 static char *addr = 0;
7567 auto char dummy;
7568 if (addr == 0)
7569 {
7570 addr = &dummy;
7571 return find_stack_direction ();
7572 }
7573 else
7574 return (&dummy > addr) ? 1 : -1;
7575 }
7576
7577 int
7578 main ()
7579 {
7580 return find_stack_direction () < 0;
7581 }
7582 _ACEOF
7583 rm -f conftest$ac_exeext
7584 if { (ac_try="$ac_link"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_link") 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7594 { (case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_try") 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_c_stack_direction=1
7604 else
7605 echo "$as_me: program exited with status $ac_status" >&5
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 ( exit $ac_status )
7610 ac_cv_c_stack_direction=-1
7611 fi
7612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7613 fi
7614
7615
7616 fi
7617 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7618 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define STACK_DIRECTION $ac_cv_c_stack_direction
7622 _ACEOF
7623
7624
7625 fi
7626
7627
7628
7629 for ac_header in stdlib.h unistd.h
7630 do
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 fi
7638 ac_res=`eval echo '${'$as_ac_Header'}'`
7639 { echo "$as_me:$LINENO: result: $ac_res" >&5
7640 echo "${ECHO_T}$ac_res" >&6; }
7641 else
7642 # Is the header compilable?
7643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7651 $ac_includes_default
7652 #include <$ac_header>
7653 _ACEOF
7654 rm -f conftest.$ac_objext
7655 if { (ac_try="$ac_compile"
7656 case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659 esac
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_compile") 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest.$ac_objext'
7679 { (case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_try") 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_header_compiler=yes
7689 else
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ac_header_compiler=no
7694 fi
7695
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7698 echo "${ECHO_T}$ac_header_compiler" >&6; }
7699
7700 # Is the header present?
7701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <$ac_header>
7710 _ACEOF
7711 if { (ac_try="$ac_cpp conftest.$ac_ext"
7712 case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7727 else
7728 ac_cpp_err=
7729 fi
7730 else
7731 ac_cpp_err=yes
7732 fi
7733 if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_header_preproc=no
7740 fi
7741
7742 rm -f conftest.err conftest.$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7744 echo "${ECHO_T}$ac_header_preproc" >&6; }
7745
7746 # So? What about this header?
7747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748 yes:no: )
7749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7753 ac_header_preproc=yes
7754 ;;
7755 no:yes:* )
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7768 ( cat <<\_ASBOX
7769 ## -------------------------------------------------- ##
7770 ## Report this to evilnet-devel@lists.sourceforge.net ##
7771 ## -------------------------------------------------- ##
7772 _ASBOX
7773 ) | sed "s/^/$as_me: WARNING: /" >&2
7774 ;;
7775 esac
7776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 eval "$as_ac_Header=\$ac_header_preproc"
7782 fi
7783 ac_res=`eval echo '${'$as_ac_Header'}'`
7784 { echo "$as_me:$LINENO: result: $ac_res" >&5
7785 echo "${ECHO_T}$ac_res" >&6; }
7786
7787 fi
7788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791 _ACEOF
7792
7793 fi
7794
7795 done
7796
7797
7798 for ac_func in getpagesize
7799 do
7800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7814 #define $ac_func innocuous_$ac_func
7815
7816 /* System header to define __stub macros and hopefully few prototypes,
7817 which can conflict with char $ac_func (); below.
7818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7819 <limits.h> exists even on freestanding compilers. */
7820
7821 #ifdef __STDC__
7822 # include <limits.h>
7823 #else
7824 # include <assert.h>
7825 #endif
7826
7827 #undef $ac_func
7828
7829 /* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply. */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 char $ac_func ();
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined __stub_$ac_func || defined __stub___$ac_func
7840 choke me
7841 #endif
7842
7843 int
7844 main ()
7845 {
7846 return $ac_func ();
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 eval "$as_ac_var=yes"
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 eval "$as_ac_var=no"
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 fi
7896 ac_res=`eval echo '${'$as_ac_var'}'`
7897 { echo "$as_me:$LINENO: result: $ac_res" >&5
7898 echo "${ECHO_T}$ac_res" >&6; }
7899 if test `eval echo '${'$as_ac_var'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7902 _ACEOF
7903
7904 fi
7905 done
7906
7907 { echo "$as_me:$LINENO: checking for working mmap" >&5
7908 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7909 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912 if test "$cross_compiling" = yes; then
7913 ac_cv_func_mmap_fixed_mapped=no
7914 else
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 /* malloc might have been renamed as rpl_malloc. */
7923 #undef malloc
7924
7925 /* Thanks to Mike Haertel and Jim Avera for this test.
7926 Here is a matrix of mmap possibilities:
7927 mmap private not fixed
7928 mmap private fixed at somewhere currently unmapped
7929 mmap private fixed at somewhere already mapped
7930 mmap shared not fixed
7931 mmap shared fixed at somewhere currently unmapped
7932 mmap shared fixed at somewhere already mapped
7933 For private mappings, we should verify that changes cannot be read()
7934 back from the file, nor mmap's back from the file at a different
7935 address. (There have been systems where private was not correctly
7936 implemented like the infamous i386 svr4.0, and systems where the
7937 VM page cache was not coherent with the file system buffer cache
7938 like early versions of FreeBSD and possibly contemporary NetBSD.)
7939 For shared mappings, we should conversely verify that changes get
7940 propagated back to all the places they're supposed to be.
7941
7942 Grep wants private fixed already mapped.
7943 The main things grep needs to know about mmap are:
7944 * does it exist and is it safe to write into the mmap'd area
7945 * how to use it (BSD variants) */
7946
7947 #include <fcntl.h>
7948 #include <sys/mman.h>
7949
7950 #if !STDC_HEADERS && !HAVE_STDLIB_H
7951 char *malloc ();
7952 #endif
7953
7954 /* This mess was copied from the GNU getpagesize.h. */
7955 #if !HAVE_GETPAGESIZE
7956 /* Assume that all systems that can run configure have sys/param.h. */
7957 # if !HAVE_SYS_PARAM_H
7958 # define HAVE_SYS_PARAM_H 1
7959 # endif
7960
7961 # ifdef _SC_PAGESIZE
7962 # define getpagesize() sysconf(_SC_PAGESIZE)
7963 # else /* no _SC_PAGESIZE */
7964 # if HAVE_SYS_PARAM_H
7965 # include <sys/param.h>
7966 # ifdef EXEC_PAGESIZE
7967 # define getpagesize() EXEC_PAGESIZE
7968 # else /* no EXEC_PAGESIZE */
7969 # ifdef NBPG
7970 # define getpagesize() NBPG * CLSIZE
7971 # ifndef CLSIZE
7972 # define CLSIZE 1
7973 # endif /* no CLSIZE */
7974 # else /* no NBPG */
7975 # ifdef NBPC
7976 # define getpagesize() NBPC
7977 # else /* no NBPC */
7978 # ifdef PAGESIZE
7979 # define getpagesize() PAGESIZE
7980 # endif /* PAGESIZE */
7981 # endif /* no NBPC */
7982 # endif /* no NBPG */
7983 # endif /* no EXEC_PAGESIZE */
7984 # else /* no HAVE_SYS_PARAM_H */
7985 # define getpagesize() 8192 /* punt totally */
7986 # endif /* no HAVE_SYS_PARAM_H */
7987 # endif /* no _SC_PAGESIZE */
7988
7989 #endif /* no HAVE_GETPAGESIZE */
7990
7991 int
7992 main ()
7993 {
7994 char *data, *data2, *data3;
7995 int i, pagesize;
7996 int fd;
7997
7998 pagesize = getpagesize ();
7999
8000 /* First, make a file with some known garbage in it. */
8001 data = (char *) malloc (pagesize);
8002 if (!data)
8003 return 1;
8004 for (i = 0; i < pagesize; ++i)
8005 *(data + i) = rand ();
8006 umask (0);
8007 fd = creat ("conftest.mmap", 0600);
8008 if (fd < 0)
8009 return 1;
8010 if (write (fd, data, pagesize) != pagesize)
8011 return 1;
8012 close (fd);
8013
8014 /* Next, try to mmap the file at a fixed address which already has
8015 something else allocated at it. If we can, also make sure that
8016 we see the same garbage. */
8017 fd = open ("conftest.mmap", O_RDWR);
8018 if (fd < 0)
8019 return 1;
8020 data2 = (char *) malloc (2 * pagesize);
8021 if (!data2)
8022 return 1;
8023 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8024 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8025 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8026 return 1;
8027 for (i = 0; i < pagesize; ++i)
8028 if (*(data + i) != *(data2 + i))
8029 return 1;
8030
8031 /* Finally, make sure that changes to the mapped area do not
8032 percolate back to the file as seen by read(). (This is a bug on
8033 some variants of i386 svr4.0.) */
8034 for (i = 0; i < pagesize; ++i)
8035 *(data2 + i) = *(data2 + i) + 1;
8036 data3 = (char *) malloc (pagesize);
8037 if (!data3)
8038 return 1;
8039 if (read (fd, data3, pagesize) != pagesize)
8040 return 1;
8041 for (i = 0; i < pagesize; ++i)
8042 if (*(data + i) != *(data3 + i))
8043 return 1;
8044 close (fd);
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest$ac_exeext
8049 if { (ac_try="$ac_link"
8050 case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062 esac
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_func_mmap_fixed_mapped=yes
8069 else
8070 echo "$as_me: program exited with status $ac_status" >&5
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 ( exit $ac_status )
8075 ac_cv_func_mmap_fixed_mapped=no
8076 fi
8077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8078 fi
8079
8080
8081 fi
8082 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8083 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8084 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8085
8086 cat >>confdefs.h <<\_ACEOF
8087 #define HAVE_MMAP 1
8088 _ACEOF
8089
8090 fi
8091 rm -f conftest.mmap
8092
8093
8094 { echo "$as_me:$LINENO: checking for sin_len" >&5
8095 echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
8096 if test "${ac_cv_sin_len+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h. */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 #include <sys/types.h>
8106 #include <netinet/in.h>
8107 int
8108 main ()
8109 {
8110 struct sockaddr_in *sin; sin->sin_len = 0;
8111 ;
8112 return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_sin_len="yes"
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 ac_cv_sin_len="no"
8155 fi
8156
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 fi
8159 { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
8160 echo "${ECHO_T}$ac_cv_sin_len" >&6; }
8161 if test $ac_cv_sin_len = yes ; then
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_SIN_LEN 1
8165 _ACEOF
8166
8167 fi
8168
8169 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8170 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8171 if test "${ac_cv_type_socklen_t+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h. */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8181 #include<sys/socket.h>
8182
8183 typedef socklen_t ac__type_new_;
8184 int
8185 main ()
8186 {
8187 if ((ac__type_new_ *) 0)
8188 return 0;
8189 if (sizeof (ac__type_new_))
8190 return 0;
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_type_socklen_t=yes
8230 else
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 ac_cv_type_socklen_t=no
8235 fi
8236
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 fi
8239 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8240 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8241 if test $ac_cv_type_socklen_t = yes; then
8242 :
8243 else
8244
8245 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8246 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8247 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250
8251 curl_cv_socklen_t_equiv=
8252 for arg2 in "struct sockaddr" void ; do
8253 for t in int size_t unsigned long "unsigned long" ; do
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #include <sys/types.h>
8261 #include <sys/socket.h>
8262 int getpeername (int $arg2 *, $t *);
8263 int
8264 main ()
8265 {
8266 $t len;
8267 getpeername(0, 0, &len);
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (ac_try="$ac_compile"
8274 case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 curl_cv_socklen_t_equiv="$t"
8307 break
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312
8313 fi
8314
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 done
8317 done
8318
8319 fi
8320
8321 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8322 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
8323
8324 cat >>confdefs.h <<_ACEOF
8325 #define socklen_t $curl_cv_socklen_t_equiv
8326 _ACEOF
8327
8328 fi
8329
8330
8331 OLD_CFLAGS=$CFLAGS
8332 CFLAGS="$CFLAGS -W -Wall -Werror"
8333
8334 { echo "$as_me:$LINENO: checking for time_t format" >&5
8335 echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
8336 if test "${ac_cv_fmt_time_t+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339
8340 ac_cv_fmt_time_t=no
8341 cat >conftest.$ac_ext <<_ACEOF
8342 #include <sys/types.h>
8343 #include <stdio.h>
8344 void myfunc(void) {
8345 time_t test=0;
8346 printf("%li", test);
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest.$ac_objext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_fmt_time_t="\"%li\""
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 if test $ac_cv_fmt_time_t = no; then
8393 cat >conftest.$ac_ext <<_ACEOF
8394 #include <sys/types.h>
8395 #include <stdio.h>
8396 void myfunc(void) {
8397 time_t test=0;
8398 printf("%i", test);
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest.$ac_objext'
8426 { (case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_try") 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_fmt_time_t="\"%i\""
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440
8441 fi
8442
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 if test $ac_cv_fmt_time_t = no; then
8446 { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
8447 Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
8448 echo "$as_me: error: Cannot detect format string for time_t
8449 Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
8450 { (exit 1); exit 1; }; }
8451 fi
8452
8453 fi
8454
8455
8456 cat >>confdefs.h <<_ACEOF
8457 #define FMT_TIME_T $ac_cv_fmt_time_t
8458 _ACEOF
8459
8460 { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
8461 echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
8462
8463 { echo "$as_me:$LINENO: checking for va_copy" >&5
8464 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
8465 if test "${ac_cv_c_va_copy+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <stdarg.h>
8475 int
8476 main ()
8477 {
8478 va_list ap1, ap2; va_copy(ap1, ap2);
8479 ;
8480 return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8485 case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_c_va_copy="yes"
8518 else
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 ac_cv_c_va_copy="no"
8523
8524 fi
8525
8526 rm -f core conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 fi
8529 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8530 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
8531 if test "$ac_cv_c_va_copy" = "yes" ; then
8532
8533 cat >>confdefs.h <<\_ACEOF
8534 #define HAVE_VA_COPY 1
8535 _ACEOF
8536
8537 fi
8538
8539 { echo "$as_me:$LINENO: checking for __va_copy" >&5
8540 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
8541 if test "${ac_cv_c___va_copy+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 #include <stdarg.h>
8551 int
8552 main ()
8553 {
8554 va_list ap1, ap2; __va_copy(ap1, ap2);
8555 ;
8556 return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext conftest$ac_exeext
8560 if { (ac_try="$ac_link"
8561 case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_link") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8574 { (case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_try") 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest$ac_exeext'
8584 { (case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_try") 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_c___va_copy="yes"
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598 ac_cv_c___va_copy="no"
8599
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8604 fi
8605 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8606 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
8607 if test "$ac_cv_c___va_copy" = "yes" ; then
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE___VA_COPY 1
8611 _ACEOF
8612
8613 fi
8614
8615 CFLAGS=$OLD_CFLAGS
8616
8617 { echo "$as_me:$LINENO: checking which malloc to use" >&5
8618 echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
8619
8620 # Check whether --with-malloc was given.
8621 if test "${with_malloc+set}" = set; then
8622 withval=$with_malloc;
8623 else
8624 withval="system"
8625 fi
8626
8627 if test "x$withval" = "xsystem" ; then
8628 { echo "$as_me:$LINENO: result: system" >&5
8629 echo "${ECHO_T}system" >&6; }
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define WITH_MALLOC_SYSTEM 1
8633 _ACEOF
8634
8635 x3_malloc="System"
8636 elif test "x$withval" = "xdmalloc" ; then
8637 { echo "$as_me:$LINENO: result: dmalloc" >&5
8638 echo "${ECHO_T}dmalloc" >&6; }
8639
8640 for ac_header in dmalloc.h
8641 do
8642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 fi
8649 ac_res=`eval echo '${'$as_ac_Header'}'`
8650 { echo "$as_me:$LINENO: result: $ac_res" >&5
8651 echo "${ECHO_T}$ac_res" >&6; }
8652 else
8653 # Is the header compilable?
8654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8663 #include <$ac_header>
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (ac_try="$ac_compile"
8667 case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_compile") 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8680 { (case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683 esac
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_try") 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest.$ac_objext'
8690 { (case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_try") 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 ac_header_compiler=no
8705 fi
8706
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6; }
8710
8711 # Is the header present?
8712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h. */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 #include <$ac_header>
8721 _ACEOF
8722 if { (ac_try="$ac_cpp conftest.$ac_ext"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } >/dev/null; then
8735 if test -s conftest.err; then
8736 ac_cpp_err=$ac_c_preproc_warn_flag
8737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738 else
8739 ac_cpp_err=
8740 fi
8741 else
8742 ac_cpp_err=yes
8743 fi
8744 if test -z "$ac_cpp_err"; then
8745 ac_header_preproc=yes
8746 else
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_header_preproc=no
8751 fi
8752
8753 rm -f conftest.err conftest.$ac_ext
8754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755 echo "${ECHO_T}$ac_header_preproc" >&6; }
8756
8757 # So? What about this header?
8758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8759 yes:no: )
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc=yes
8765 ;;
8766 no:yes:* )
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8779 ( cat <<\_ASBOX
8780 ## -------------------------------------------------- ##
8781 ## Report this to evilnet-devel@lists.sourceforge.net ##
8782 ## -------------------------------------------------- ##
8783 _ASBOX
8784 ) | sed "s/^/$as_me: WARNING: /" >&2
8785 ;;
8786 esac
8787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792 eval "$as_ac_Header=\$ac_header_preproc"
8793 fi
8794 ac_res=`eval echo '${'$as_ac_Header'}'`
8795 { echo "$as_me:$LINENO: result: $ac_res" >&5
8796 echo "${ECHO_T}$ac_res" >&6; }
8797
8798 fi
8799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8800 cat >>confdefs.h <<_ACEOF
8801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802 _ACEOF
8803
8804 else
8805 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8806 echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8807 { (exit 1); exit 1; }; }
8808 fi
8809
8810 done
8811
8812
8813 { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8814 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
8815 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 ac_check_lib_save_LIBS=$LIBS
8819 LIBS="-ldmalloc $LIBS"
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char malloc ();
8834 int
8835 main ()
8836 {
8837 return malloc ();
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_link") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_lib_dmalloc_malloc=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_cv_lib_dmalloc_malloc=no
8882 fi
8883
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8887 fi
8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8889 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
8890 if test $ac_cv_lib_dmalloc_malloc = yes; then
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_LIBDMALLOC 1
8893 _ACEOF
8894
8895 LIBS="-ldmalloc $LIBS"
8896
8897 else
8898 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8899 echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8900 { (exit 1); exit 1; }; }
8901 fi
8902
8903
8904 cat >>confdefs.h <<\_ACEOF
8905 #define WITH_MALLOC_DMALLOC 1
8906 _ACEOF
8907
8908 x3_malloc="DMalloc"
8909 elif test "x$withval" = "xmpatrol" ; then
8910 { echo "$as_me:$LINENO: result: mpatrol" >&5
8911 echo "${ECHO_T}mpatrol" >&6; }
8912
8913 for ac_header in mpatrol.h
8914 do
8915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 fi
8922 ac_res=`eval echo '${'$as_ac_Header'}'`
8923 { echo "$as_me:$LINENO: result: $ac_res" >&5
8924 echo "${ECHO_T}$ac_res" >&6; }
8925 else
8926 # Is the header compilable?
8927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 $ac_includes_default
8936 #include <$ac_header>
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (ac_try="$ac_compile"
8940 case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943 esac
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_compile") 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest.$ac_objext'
8963 { (case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_try") 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_header_compiler=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_header_compiler=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6; }
8983
8984 # Is the header present?
8985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <$ac_header>
8994 _ACEOF
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null; then
9008 if test -s conftest.err; then
9009 ac_cpp_err=$ac_c_preproc_warn_flag
9010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9011 else
9012 ac_cpp_err=
9013 fi
9014 else
9015 ac_cpp_err=yes
9016 fi
9017 if test -z "$ac_cpp_err"; then
9018 ac_header_preproc=yes
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ac_header_preproc=no
9024 fi
9025
9026 rm -f conftest.err conftest.$ac_ext
9027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028 echo "${ECHO_T}$ac_header_preproc" >&6; }
9029
9030 # So? What about this header?
9031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9032 yes:no: )
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9037 ac_header_preproc=yes
9038 ;;
9039 no:yes:* )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9052 ( cat <<\_ASBOX
9053 ## -------------------------------------------------- ##
9054 ## Report this to evilnet-devel@lists.sourceforge.net ##
9055 ## -------------------------------------------------- ##
9056 _ASBOX
9057 ) | sed "s/^/$as_me: WARNING: /" >&2
9058 ;;
9059 esac
9060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 eval "$as_ac_Header=\$ac_header_preproc"
9066 fi
9067 ac_res=`eval echo '${'$as_ac_Header'}'`
9068 { echo "$as_me:$LINENO: result: $ac_res" >&5
9069 echo "${ECHO_T}$ac_res" >&6; }
9070
9071 fi
9072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9073 cat >>confdefs.h <<_ACEOF
9074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075 _ACEOF
9076
9077 else
9078 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
9079 echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
9080 { (exit 1); exit 1; }; }
9081 fi
9082
9083 done
9084
9085
9086 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9087 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
9088 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lelf $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char elf_begin ();
9107 int
9108 main ()
9109 {
9110 return elf_begin ();
9111 ;
9112 return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9130 { (case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_try") 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_try") 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_elf_elf_begin=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_cv_lib_elf_elf_begin=no
9155 fi
9156
9157 rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
9159 LIBS=$ac_check_lib_save_LIBS
9160 fi
9161 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9162 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
9163 if test $ac_cv_lib_elf_elf_begin = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_LIBELF 1
9166 _ACEOF
9167
9168 LIBS="-lelf $LIBS"
9169
9170 fi
9171
9172
9173 { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
9174 echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
9175 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lmpatrol $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9190 #ifdef __cplusplus
9191 extern "C"
9192 #endif
9193 char __mp_atexit ();
9194 int
9195 main ()
9196 {
9197 return __mp_atexit ();
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (ac_try="$ac_link"
9204 case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_link") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9217 { (case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220 esac
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_try") 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest$ac_exeext'
9227 { (case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_try") 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_lib_mpatrol___mp_atexit=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_cv_lib_mpatrol___mp_atexit=no
9242 fi
9243
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 LIBS=$ac_check_lib_save_LIBS
9247 fi
9248 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
9249 echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
9250 if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252 #define HAVE_LIBMPATROL 1
9253 _ACEOF
9254
9255 LIBS="-lmpatrol $LIBS"
9256
9257 else
9258 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
9259 echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
9260 { (exit 1); exit 1; }; }
9261 fi
9262
9263
9264 cat >>confdefs.h <<\_ACEOF
9265 #define WITH_MALLOC_MPATROL 1
9266 _ACEOF
9267
9268 x3_malloc="MPatrol"
9269 elif test "x$withval" = "xboehm-gc" ; then
9270 { echo "$as_me:$LINENO: result: boehm-gc" >&5
9271 echo "${ECHO_T}boehm-gc" >&6; }
9272
9273 for ac_header in gc/gc.h
9274 do
9275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 fi
9282 ac_res=`eval echo '${'$as_ac_Header'}'`
9283 { echo "$as_me:$LINENO: result: $ac_res" >&5
9284 echo "${ECHO_T}$ac_res" >&6; }
9285 else
9286 # Is the header compilable?
9287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 $ac_includes_default
9296 #include <$ac_header>
9297 _ACEOF
9298 rm -f conftest.$ac_objext
9299 if { (ac_try="$ac_compile"
9300 case "(($ac_try" in
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9303 esac
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest.$ac_objext'
9323 { (case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_try") 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_header_compiler=yes
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 ac_header_compiler=no
9338 fi
9339
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9342 echo "${ECHO_T}$ac_header_compiler" >&6; }
9343
9344 # Is the header present?
9345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 #include <$ac_header>
9354 _ACEOF
9355 if { (ac_try="$ac_cpp conftest.$ac_ext"
9356 case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359 esac
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371 else
9372 ac_cpp_err=
9373 fi
9374 else
9375 ac_cpp_err=yes
9376 fi
9377 if test -z "$ac_cpp_err"; then
9378 ac_header_preproc=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 ac_header_preproc=no
9384 fi
9385
9386 rm -f conftest.err conftest.$ac_ext
9387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9388 echo "${ECHO_T}$ac_header_preproc" >&6; }
9389
9390 # So? What about this header?
9391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 yes:no: )
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9397 ac_header_preproc=yes
9398 ;;
9399 no:yes:* )
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9412 ( cat <<\_ASBOX
9413 ## -------------------------------------------------- ##
9414 ## Report this to evilnet-devel@lists.sourceforge.net ##
9415 ## -------------------------------------------------- ##
9416 _ASBOX
9417 ) | sed "s/^/$as_me: WARNING: /" >&2
9418 ;;
9419 esac
9420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 eval "$as_ac_Header=\$ac_header_preproc"
9426 fi
9427 ac_res=`eval echo '${'$as_ac_Header'}'`
9428 { echo "$as_me:$LINENO: result: $ac_res" >&5
9429 echo "${ECHO_T}$ac_res" >&6; }
9430
9431 fi
9432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435 _ACEOF
9436
9437 else
9438 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
9439 echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
9440 { (exit 1); exit 1; }; }
9441 fi
9442
9443 done
9444
9445
9446 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9447 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451 ac_check_lib_save_LIBS=$LIBS
9452 LIBS="-ldl $LIBS"
9453 cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h. */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 char dlopen ();
9467 int
9468 main ()
9469 {
9470 return dlopen ();
9471 ;
9472 return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (ac_try="$ac_link"
9477 case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_link") 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_lib_dl_dlopen=yes
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 ac_cv_lib_dl_dlopen=no
9515 fi
9516
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 LIBS=$ac_check_lib_save_LIBS
9520 fi
9521 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9523 if test $ac_cv_lib_dl_dlopen = yes; then
9524 cat >>confdefs.h <<_ACEOF
9525 #define HAVE_LIBDL 1
9526 _ACEOF
9527
9528 LIBS="-ldl $LIBS"
9529
9530 else
9531 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
9532 echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
9533 { (exit 1); exit 1; }; }
9534 fi
9535
9536
9537 { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
9538 echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
9539 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 ac_check_lib_save_LIBS=$LIBS
9543 LIBS="-lgc $LIBS"
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char GC_gcollect ();
9558 int
9559 main ()
9560 {
9561 return GC_gcollect ();
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (ac_try="$ac_link"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581 { (case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_try") 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest$ac_exeext'
9591 { (case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_gc_GC_gcollect=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 ac_cv_lib_gc_GC_gcollect=no
9606 fi
9607
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9611 fi
9612 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
9613 echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
9614 if test $ac_cv_lib_gc_GC_gcollect = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_LIBGC 1
9617 _ACEOF
9618
9619 LIBS="-lgc $LIBS"
9620
9621 else
9622 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
9623 echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
9624 { (exit 1); exit 1; }; }
9625 fi
9626
9627
9628 cat >>confdefs.h <<\_ACEOF
9629 #define WITH_MALLOC_BOEHM_GC 1
9630 _ACEOF
9631
9632 x3_malloc="Boehm"
9633 elif test "x$withval" = "xx3" ; then
9634 { echo "$as_me:$LINENO: result: x3" >&5
9635 echo "${ECHO_T}x3" >&6; }
9636
9637 cat >>confdefs.h <<\_ACEOF
9638 #define WITH_MALLOC_X3 1
9639 _ACEOF
9640
9641 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
9642 x3_malloc="X3"
9643 elif test "x$withval" = "xslab" ; then
9644 { echo "$as_me:$LINENO: result: slab" >&5
9645 echo "${ECHO_T}slab" >&6; }
9646
9647 cat >>confdefs.h <<\_ACEOF
9648 #define WITH_MALLOC_SLAB 1
9649 _ACEOF
9650
9651 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
9652 x3_malloc="Slab"
9653 else
9654 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
9655 echo "$as_me: error: Unknown malloc type $withval" >&2;}
9656 { (exit 1); exit 1; }; }
9657 fi
9658
9659 { echo "$as_me:$LINENO: checking which protocol to use" >&5
9660 echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
9661
9662 # Check whether --with-protocol was given.
9663 if test "${with_protocol+set}" = set; then
9664 withval=$with_protocol;
9665 else
9666 withval="p10"
9667 fi
9668
9669 if test "x$withval" = "xp10" ; then
9670 { echo "$as_me:$LINENO: result: P10" >&5
9671 echo "${ECHO_T}P10" >&6; }
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define WITH_PROTOCOL_P10 1
9675 _ACEOF
9676
9677 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
9678 PROTO_FILES=proto-p10.c
9679 x3_ircd="P10"
9680 else
9681 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
9682 echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
9683 { (exit 1); exit 1; }; }
9684 fi
9685
9686
9687 # Check whether --with-getopt was given.
9688 if test "${with_getopt+set}" = set; then
9689 withval=$with_getopt; if test "$withval" = no; then
9690
9691 cat >>confdefs.h <<\_ACEOF
9692 #define IGNORE_GETOPT 1
9693 _ACEOF
9694
9695 fi
9696 fi
9697
9698
9699 { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
9700 echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
9701 # Check whether --enable-tokens was given.
9702 if test "${enable_tokens+set}" = set; then
9703 enableval=$enable_tokens;
9704 else
9705 enableval=yes
9706 fi
9707
9708 if test "z$enableval" = zno ; then
9709 { echo "$as_me:$LINENO: result: no" >&5
9710 echo "${ECHO_T}no" >&6; }
9711 else
9712
9713 cat >>confdefs.h <<\_ACEOF
9714 #define ENABLE_TOKENS 1
9715 _ACEOF
9716
9717 { echo "$as_me:$LINENO: result: yes" >&5
9718 echo "${ECHO_T}yes" >&6; }
9719 fi
9720
9721 { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
9722 echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
9723 # Check whether --enable-debug was given.
9724 if test "${enable_debug+set}" = set; then
9725 enableval=$enable_debug;
9726 CPPFLAGS="$CPPFLAGS"
9727 { echo "$as_me:$LINENO: result: yes" >&5
9728 echo "${ECHO_T}yes" >&6; }
9729 x3_debug="Enabled"
9730
9731 else
9732
9733 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9734 { echo "$as_me:$LINENO: result: no" >&5
9735 echo "${ECHO_T}no" >&6; }
9736 x3_debug="Disabled"
9737
9738 fi
9739
9740
9741 if test -e src ; then
9742 if test ! -d src ; then
9743 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
9744 echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
9745 { (exit 1); exit 1; }; }
9746 fi
9747 else
9748 mkdir src
9749 fi
9750 { echo "$as_me:$LINENO: checking for extra module files" >&5
9751 echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
9752 MODULE_DEFINES="src/modules-list.h"
9753 echo > $MODULE_DEFINES
9754 touch $MODULE_DEFINES
9755 # Check whether --enable-modules was given.
9756 if test "${enable_modules+set}" = set; then
9757 enableval=$enable_modules;
9758 OIFS="$IFS"
9759 IFS=','
9760 EXTRA_MODULE_OBJS=""
9761 module_list=""
9762 for module in $enableval ; do
9763 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
9764 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
9765 module_list="$module_list $module"
9766 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
9767 if test "x$module" = "xtrack" ; then
9768 TRACK="-D HAVE_TRACK"
9769 fi
9770 done
9771 IFS="$OIFS"
9772 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
9773 { echo "$as_me:$LINENO: result: $module_list" >&5
9774 echo "${ECHO_T}$module_list" >&6; }
9775
9776 else
9777
9778 { echo "$as_me:$LINENO: result: none" >&5
9779 echo "${ECHO_T}none" >&6; }
9780
9781 fi
9782
9783
9784 MY_SUBDIRS=""
9785 RX_INCLUDES=""
9786 RX_LIBS=""
9787 if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9788 MY_SUBDIRS="rx $MY_SUBDIRS"
9789 RX_INCLUDES="-I../rx"
9790 RX_LIBS="../rx/librx.a"
9791 fi
9792 MY_SUBDIRS="$MY_SUBDIRS src"
9793 CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9794 if test "z$USE_MAINTAINER_MODE" = zyes ; then
9795 CFLAGS="$CFLAGS -Werror"
9796 fi
9797
9798
9799 tre_version="0.7.5"
9800 withval=''
9801
9802 # Check whether --with-tre was given.
9803 if test "${with_tre+set}" = set; then
9804 withval=$with_tre;
9805 fi
9806
9807 if test "x$withval" != "x"; then
9808 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9809 echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
9810 CPPFLAGS="-I$withval/include -L$withval/lib"
9811 LIBS="$LIBS -L$withval/lib"
9812 else
9813 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9814 echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
9815 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
9816 LIBS="$LIBS -L${HOME}/lib"
9817 fi
9818 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9819 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9820 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9821 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 fi
9824 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9825 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9826 else
9827 # Is the header compilable?
9828 { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9829 echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 $ac_includes_default
9837 #include <tre/regex.h>
9838 _ACEOF
9839 rm -f conftest.$ac_objext
9840 if { (ac_try="$ac_compile"
9841 case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_compile") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_header_compiler=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_header_compiler=no
9879 fi
9880
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9883 echo "${ECHO_T}$ac_header_compiler" >&6; }
9884
9885 # Is the header present?
9886 { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9887 echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 #include <tre/regex.h>
9895 _ACEOF
9896 if { (ac_try="$ac_cpp conftest.$ac_ext"
9897 case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } >/dev/null; then
9909 if test -s conftest.err; then
9910 ac_cpp_err=$ac_c_preproc_warn_flag
9911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9912 else
9913 ac_cpp_err=
9914 fi
9915 else
9916 ac_cpp_err=yes
9917 fi
9918 if test -z "$ac_cpp_err"; then
9919 ac_header_preproc=yes
9920 else
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ac_header_preproc=no
9925 fi
9926
9927 rm -f conftest.err conftest.$ac_ext
9928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9929 echo "${ECHO_T}$ac_header_preproc" >&6; }
9930
9931 # So? What about this header?
9932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9933 yes:no: )
9934 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9935 echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9937 echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
9938 ac_header_preproc=yes
9939 ;;
9940 no:yes:* )
9941 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9942 echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9944 echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9946 echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9948 echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9950 echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9952 echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
9953 ( cat <<\_ASBOX
9954 ## -------------------------------------------------- ##
9955 ## Report this to evilnet-devel@lists.sourceforge.net ##
9956 ## -------------------------------------------------- ##
9957 _ASBOX
9958 ) | sed "s/^/$as_me: WARNING: /" >&2
9959 ;;
9960 esac
9961 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9962 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9963 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966 ac_cv_header_tre_regex_h=$ac_header_preproc
9967 fi
9968 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9969 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9970
9971 fi
9972 if test $ac_cv_header_tre_regex_h = yes; then
9973 :
9974 else
9975 { { 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
9976 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;}
9977 { (exit 1); exit 1; }; }
9978 fi
9979
9980
9981
9982 { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9983 echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9984 if test "${ac_cv_lib_tre_regexec+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 ac_check_lib_save_LIBS=$LIBS
9988 LIBS="-ltre $LIBS"
9989 cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 char regexec ();
10003 int
10004 main ()
10005 {
10006 return regexec ();
10007 ;
10008 return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (ac_try="$ac_link"
10013 case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_link") 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_try") 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try='test -s conftest$ac_exeext'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_tre_regexec=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_cv_lib_tre_regexec=no
10051 fi
10052
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10056 fi
10057 { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
10058 echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
10059 if test $ac_cv_lib_tre_regexec = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_LIBTRE 1
10062 _ACEOF
10063
10064 LIBS="-ltre $LIBS"
10065
10066 else
10067 { { 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
10068 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;}
10069 { (exit 1); exit 1; }; }
10070 fi
10071
10072
10073 core_version="0.2"
10074 withval=''
10075
10076 # Check whether --with-coredumper was given.
10077 if test "${with_coredumper+set}" = set; then
10078 withval=$with_coredumper;
10079 fi
10080
10081 if test "x$withval" != "x"; then
10082 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
10083 echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
10084 CPPFLAGS="-I$withval/include -L$withval/lib"
10085 LIBS="$LIBS -L$withval/lib"
10086 else
10087 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
10088 echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
10089 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
10090 LIBS="$LIBS -L${HOME}/lib"
10091 fi
10092 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10093 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10094 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10095 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 fi
10098 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10099 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10100 else
10101 # Is the header compilable?
10102 { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
10103 echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 $ac_includes_default
10111 #include <google/coredumper.h>
10112 _ACEOF
10113 rm -f conftest.$ac_objext
10114 if { (ac_try="$ac_compile"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_compile") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_header_compiler=yes
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_header_compiler=no
10153 fi
10154
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 echo "${ECHO_T}$ac_header_compiler" >&6; }
10158
10159 # Is the header present?
10160 { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
10161 echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <google/coredumper.h>
10169 _ACEOF
10170 if { (ac_try="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } >/dev/null; then
10183 if test -s conftest.err; then
10184 ac_cpp_err=$ac_c_preproc_warn_flag
10185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10186 else
10187 ac_cpp_err=
10188 fi
10189 else
10190 ac_cpp_err=yes
10191 fi
10192 if test -z "$ac_cpp_err"; then
10193 ac_header_preproc=yes
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 ac_header_preproc=no
10199 fi
10200
10201 rm -f conftest.err conftest.$ac_ext
10202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10203 echo "${ECHO_T}$ac_header_preproc" >&6; }
10204
10205 # So? What about this header?
10206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10207 yes:no: )
10208 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
10209 echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
10211 echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
10212 ac_header_preproc=yes
10213 ;;
10214 no:yes:* )
10215 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
10216 echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
10218 echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
10220 echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
10222 echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
10224 echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
10226 echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
10227 ( cat <<\_ASBOX
10228 ## -------------------------------------------------- ##
10229 ## Report this to evilnet-devel@lists.sourceforge.net ##
10230 ## -------------------------------------------------- ##
10231 _ASBOX
10232 ) | sed "s/^/$as_me: WARNING: /" >&2
10233 ;;
10234 esac
10235 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10236 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10237 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 ac_cv_header_google_coredumper_h=$ac_header_preproc
10241 fi
10242 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10243 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10244
10245 fi
10246 if test $ac_cv_header_google_coredumper_h = yes; then
10247 :
10248 else
10249 { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10250 echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
10251 fi
10252
10253
10254
10255 { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
10256 echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
10257 if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 ac_check_lib_save_LIBS=$LIBS
10261 LIBS="-lcoredumper $LIBS"
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268
10269 /* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 char WriteCoreDump ();
10276 int
10277 main ()
10278 {
10279 return WriteCoreDump ();
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_link") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299 { (case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_try") 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_coredumper_WriteCoreDump=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 ac_cv_lib_coredumper_WriteCoreDump=no
10324 fi
10325
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
10331 echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
10332 if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334 #define HAVE_LIBCOREDUMPER 1
10335 _ACEOF
10336
10337 LIBS="-lcoredumper $LIBS"
10338
10339 else
10340 { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10341 echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
10342 fi
10343
10344
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define CODENAME "${CODENAME}"
10348 _ACEOF
10349
10350
10351
10352
10353
10354
10355 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10356
10357 cat >confcache <<\_ACEOF
10358 # This file is a shell script that caches the results of configure
10359 # tests run on this system so they can be shared between configure
10360 # scripts and configure runs, see configure's option --config-cache.
10361 # It is not useful on other systems. If it contains results you don't
10362 # want to keep, you may remove or edit it.
10363 #
10364 # config.status only pays attention to the cache file if you give it
10365 # the --recheck option to rerun configure.
10366 #
10367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10369 # following values.
10370
10371 _ACEOF
10372
10373 # The following way of writing the cache mishandles newlines in values,
10374 # but we know of no workaround that is simple, portable, and efficient.
10375 # So, we kill variables containing newlines.
10376 # Ultrix sh set writes to stderr and can't be redirected directly,
10377 # and sets the high bit in the cache file unless we assign to the vars.
10378 (
10379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10380 eval ac_val=\$$ac_var
10381 case $ac_val in #(
10382 *${as_nl}*)
10383 case $ac_var in #(
10384 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10385 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10386 esac
10387 case $ac_var in #(
10388 _ | IFS | as_nl) ;; #(
10389 *) $as_unset $ac_var ;;
10390 esac ;;
10391 esac
10392 done
10393
10394 (set) 2>&1 |
10395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10396 *${as_nl}ac_space=\ *)
10397 # `set' does not quote correctly, so add quotes (double-quote
10398 # substitution turns \\\\ into \\, and sed turns \\ into \).
10399 sed -n \
10400 "s/'/'\\\\''/g;
10401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10402 ;; #(
10403 *)
10404 # `set' quotes correctly as required by POSIX, so do not add quotes.
10405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10406 ;;
10407 esac |
10408 sort
10409 ) |
10410 sed '
10411 /^ac_cv_env_/b end
10412 t clear
10413 :clear
10414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10415 t end
10416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10417 :end' >>confcache
10418 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10419 if test -w "$cache_file"; then
10420 test "x$cache_file" != "x/dev/null" &&
10421 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10422 echo "$as_me: updating cache $cache_file" >&6;}
10423 cat confcache >$cache_file
10424 else
10425 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10426 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10427 fi
10428 fi
10429 rm -f confcache
10430
10431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10432 # Let make expand exec_prefix.
10433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10434
10435 DEFS=-DHAVE_CONFIG_H
10436
10437 ac_libobjs=
10438 ac_ltlibobjs=
10439 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10440 # 1. Remove the extension, and $U if already installed.
10441 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10442 ac_i=`echo "$ac_i" | sed "$ac_script"`
10443 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10444 # will be set to the directory where LIBOBJS objects are built.
10445 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10446 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10447 done
10448 LIBOBJS=$ac_libobjs
10449
10450 LTLIBOBJS=$ac_ltlibobjs
10451
10452
10453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10454 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10455 Usually this means the macro was only invoked conditionally." >&5
10456 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10457 Usually this means the macro was only invoked conditionally." >&2;}
10458 { (exit 1); exit 1; }; }
10459 fi
10460 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10461 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10462 Usually this means the macro was only invoked conditionally." >&5
10463 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10464 Usually this means the macro was only invoked conditionally." >&2;}
10465 { (exit 1); exit 1; }; }
10466 fi
10467 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10468 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10469 Usually this means the macro was only invoked conditionally." >&5
10470 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10471 Usually this means the macro was only invoked conditionally." >&2;}
10472 { (exit 1); exit 1; }; }
10473 fi
10474 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10475 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10476 Usually this means the macro was only invoked conditionally." >&5
10477 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10478 Usually this means the macro was only invoked conditionally." >&2;}
10479 { (exit 1); exit 1; }; }
10480 fi
10481
10482 : ${CONFIG_STATUS=./config.status}
10483 ac_clean_files_save=$ac_clean_files
10484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10485 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10486 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10487 cat >$CONFIG_STATUS <<_ACEOF
10488 #! $SHELL
10489 # Generated by $as_me.
10490 # Run this file to recreate the current configuration.
10491 # Compiler output produced by configure, useful for debugging
10492 # configure, is in config.log if it exists.
10493
10494 debug=false
10495 ac_cs_recheck=false
10496 ac_cs_silent=false
10497 SHELL=\${CONFIG_SHELL-$SHELL}
10498 _ACEOF
10499
10500 cat >>$CONFIG_STATUS <<\_ACEOF
10501 ## --------------------- ##
10502 ## M4sh Initialization. ##
10503 ## --------------------- ##
10504
10505 # Be Bourne compatible
10506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10507 emulate sh
10508 NULLCMD=:
10509 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10510 # is contrary to our usage. Disable this feature.
10511 alias -g '${1+"$@"}'='"$@"'
10512 setopt NO_GLOB_SUBST
10513 else
10514 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
10515 fi
10516 BIN_SH=xpg4; export BIN_SH # for Tru64
10517 DUALCASE=1; export DUALCASE # for MKS sh
10518
10519
10520 # PATH needs CR
10521 # Avoid depending upon Character Ranges.
10522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10525 as_cr_digits='0123456789'
10526 as_cr_alnum=$as_cr_Letters$as_cr_digits
10527
10528 # The user is always right.
10529 if test "${PATH_SEPARATOR+set}" != set; then
10530 echo "#! /bin/sh" >conf$$.sh
10531 echo "exit 0" >>conf$$.sh
10532 chmod +x conf$$.sh
10533 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10534 PATH_SEPARATOR=';'
10535 else
10536 PATH_SEPARATOR=:
10537 fi
10538 rm -f conf$$.sh
10539 fi
10540
10541 # Support unset when possible.
10542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10543 as_unset=unset
10544 else
10545 as_unset=false
10546 fi
10547
10548
10549 # IFS
10550 # We need space, tab and new line, in precisely that order. Quoting is
10551 # there to prevent editors from complaining about space-tab.
10552 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10553 # splitting by setting IFS to empty value.)
10554 as_nl='
10555 '
10556 IFS=" "" $as_nl"
10557
10558 # Find who we are. Look in the path if we contain no directory separator.
10559 case $0 in
10560 *[\\/]* ) as_myself=$0 ;;
10561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10563 do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10567 done
10568 IFS=$as_save_IFS
10569
10570 ;;
10571 esac
10572 # We did not find ourselves, most probably we were run as `sh COMMAND'
10573 # in which case we are not to be found in the path.
10574 if test "x$as_myself" = x; then
10575 as_myself=$0
10576 fi
10577 if test ! -f "$as_myself"; then
10578 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10579 { (exit 1); exit 1; }
10580 fi
10581
10582 # Work around bugs in pre-3.0 UWIN ksh.
10583 for as_var in ENV MAIL MAILPATH
10584 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10585 done
10586 PS1='$ '
10587 PS2='> '
10588 PS4='+ '
10589
10590 # NLS nuisances.
10591 for as_var in \
10592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10594 LC_TELEPHONE LC_TIME
10595 do
10596 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10597 eval $as_var=C; export $as_var
10598 else
10599 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10600 fi
10601 done
10602
10603 # Required to use basename.
10604 if expr a : '\(a\)' >/dev/null 2>&1 &&
10605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10606 as_expr=expr
10607 else
10608 as_expr=false
10609 fi
10610
10611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10612 as_basename=basename
10613 else
10614 as_basename=false
10615 fi
10616
10617
10618 # Name of the executable.
10619 as_me=`$as_basename -- "$0" ||
10620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10621 X"$0" : 'X\(//\)$' \| \
10622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10623 echo X/"$0" |
10624 sed '/^.*\/\([^/][^/]*\)\/*$/{
10625 s//\1/
10626 q
10627 }
10628 /^X\/\(\/\/\)$/{
10629 s//\1/
10630 q
10631 }
10632 /^X\/\(\/\).*/{
10633 s//\1/
10634 q
10635 }
10636 s/.*/./; q'`
10637
10638 # CDPATH.
10639 $as_unset CDPATH
10640
10641
10642
10643 as_lineno_1=$LINENO
10644 as_lineno_2=$LINENO
10645 test "x$as_lineno_1" != "x$as_lineno_2" &&
10646 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10647
10648 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10649 # uniformly replaced by the line number. The first 'sed' inserts a
10650 # line-number line after each line using $LINENO; the second 'sed'
10651 # does the real work. The second script uses 'N' to pair each
10652 # line-number line with the line containing $LINENO, and appends
10653 # trailing '-' during substitution so that $LINENO is not a special
10654 # case at line end.
10655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10656 # scripts with optimization help from Paolo Bonzini. Blame Lee
10657 # E. McMahon (1931-1989) for sed's syntax. :-)
10658 sed -n '
10659 p
10660 /[$]LINENO/=
10661 ' <$as_myself |
10662 sed '
10663 s/[$]LINENO.*/&-/
10664 t lineno
10665 b
10666 :lineno
10667 N
10668 :loop
10669 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10670 t loop
10671 s/-\n.*//
10672 ' >$as_me.lineno &&
10673 chmod +x "$as_me.lineno" ||
10674 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10675 { (exit 1); exit 1; }; }
10676
10677 # Don't try to exec as it changes $[0], causing all sort of problems
10678 # (the dirname of $[0] is not the place where we might find the
10679 # original and so on. Autoconf is especially sensitive to this).
10680 . "./$as_me.lineno"
10681 # Exit status is that of the last command.
10682 exit
10683 }
10684
10685
10686 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10687 as_dirname=dirname
10688 else
10689 as_dirname=false
10690 fi
10691
10692 ECHO_C= ECHO_N= ECHO_T=
10693 case `echo -n x` in
10694 -n*)
10695 case `echo 'x\c'` in
10696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10697 *) ECHO_C='\c';;
10698 esac;;
10699 *)
10700 ECHO_N='-n';;
10701 esac
10702
10703 if expr a : '\(a\)' >/dev/null 2>&1 &&
10704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10705 as_expr=expr
10706 else
10707 as_expr=false
10708 fi
10709
10710 rm -f conf$$ conf$$.exe conf$$.file
10711 if test -d conf$$.dir; then
10712 rm -f conf$$.dir/conf$$.file
10713 else
10714 rm -f conf$$.dir
10715 mkdir conf$$.dir
10716 fi
10717 echo >conf$$.file
10718 if ln -s conf$$.file conf$$ 2>/dev/null; then
10719 as_ln_s='ln -s'
10720 # ... but there are two gotchas:
10721 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10722 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10723 # In both cases, we have to default to `cp -p'.
10724 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10725 as_ln_s='cp -p'
10726 elif ln conf$$.file conf$$ 2>/dev/null; then
10727 as_ln_s=ln
10728 else
10729 as_ln_s='cp -p'
10730 fi
10731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10732 rmdir conf$$.dir 2>/dev/null
10733
10734 if mkdir -p . 2>/dev/null; then
10735 as_mkdir_p=:
10736 else
10737 test -d ./-p && rmdir ./-p
10738 as_mkdir_p=false
10739 fi
10740
10741 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
10742 # systems may use methods other than mode bits to determine executability.
10743 cat >conf$$.file <<_ASEOF
10744 #! /bin/sh
10745 exit 0
10746 _ASEOF
10747 chmod +x conf$$.file
10748 if test -x conf$$.file >/dev/null 2>&1; then
10749 as_executable_p="test -x"
10750 else
10751 as_executable_p=:
10752 fi
10753 rm -f conf$$.file
10754
10755 # Sed expression to map a string onto a valid CPP name.
10756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10757
10758 # Sed expression to map a string onto a valid variable name.
10759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10760
10761
10762 exec 6>&1
10763
10764 # Save the log message, to keep $[0] and so on meaningful, and to
10765 # report actual input values of CONFIG_FILES etc. instead of their
10766 # values after options handling.
10767 ac_log="
10768 This file was extended by X3 $as_me 1.5, which was
10769 generated by GNU Autoconf 2.60. Invocation command line was
10770
10771 CONFIG_FILES = $CONFIG_FILES
10772 CONFIG_HEADERS = $CONFIG_HEADERS
10773 CONFIG_LINKS = $CONFIG_LINKS
10774 CONFIG_COMMANDS = $CONFIG_COMMANDS
10775 $ $0 $@
10776
10777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10778 "
10779
10780 _ACEOF
10781
10782 cat >>$CONFIG_STATUS <<_ACEOF
10783 # Files that config.status was made for.
10784 config_files="$ac_config_files"
10785 config_headers="$ac_config_headers"
10786 config_commands="$ac_config_commands"
10787
10788 _ACEOF
10789
10790 cat >>$CONFIG_STATUS <<\_ACEOF
10791 ac_cs_usage="\
10792 \`$as_me' instantiates files from templates according to the
10793 current configuration.
10794
10795 Usage: $0 [OPTIONS] [FILE]...
10796
10797 -h, --help print this help, then exit
10798 -V, --version print version number, then exit
10799 -q, --quiet do not print progress messages
10800 -d, --debug don't remove temporary files
10801 --recheck update $as_me by reconfiguring in the same conditions
10802 --file=FILE[:TEMPLATE]
10803 instantiate the configuration file FILE
10804 --header=FILE[:TEMPLATE]
10805 instantiate the configuration header FILE
10806
10807 Configuration files:
10808 $config_files
10809
10810 Configuration headers:
10811 $config_headers
10812
10813 Configuration commands:
10814 $config_commands
10815
10816 Report bugs to <bug-autoconf@gnu.org>."
10817
10818 _ACEOF
10819 cat >>$CONFIG_STATUS <<_ACEOF
10820 ac_cs_version="\\
10821 X3 config.status 1.5
10822 configured by $0, generated by GNU Autoconf 2.60,
10823 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10824
10825 Copyright (C) 2006 Free Software Foundation, Inc.
10826 This config.status script is free software; the Free Software Foundation
10827 gives unlimited permission to copy, distribute and modify it."
10828
10829 ac_pwd='$ac_pwd'
10830 srcdir='$srcdir'
10831 INSTALL='$INSTALL'
10832 _ACEOF
10833
10834 cat >>$CONFIG_STATUS <<\_ACEOF
10835 # If no file are specified by the user, then we need to provide default
10836 # value. By we need to know if files were specified by the user.
10837 ac_need_defaults=:
10838 while test $# != 0
10839 do
10840 case $1 in
10841 --*=*)
10842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10844 ac_shift=:
10845 ;;
10846 *)
10847 ac_option=$1
10848 ac_optarg=$2
10849 ac_shift=shift
10850 ;;
10851 esac
10852
10853 case $ac_option in
10854 # Handling of the options.
10855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10856 ac_cs_recheck=: ;;
10857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10858 echo "$ac_cs_version"; exit ;;
10859 --debug | --debu | --deb | --de | --d | -d )
10860 debug=: ;;
10861 --file | --fil | --fi | --f )
10862 $ac_shift
10863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10864 ac_need_defaults=false;;
10865 --header | --heade | --head | --hea )
10866 $ac_shift
10867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10868 ac_need_defaults=false;;
10869 --he | --h)
10870 # Conflict between --help and --header
10871 { echo "$as_me: error: ambiguous option: $1
10872 Try \`$0 --help' for more information." >&2
10873 { (exit 1); exit 1; }; };;
10874 --help | --hel | -h )
10875 echo "$ac_cs_usage"; exit ;;
10876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10877 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10878 ac_cs_silent=: ;;
10879
10880 # This is an error.
10881 -*) { echo "$as_me: error: unrecognized option: $1
10882 Try \`$0 --help' for more information." >&2
10883 { (exit 1); exit 1; }; } ;;
10884
10885 *) ac_config_targets="$ac_config_targets $1"
10886 ac_need_defaults=false ;;
10887
10888 esac
10889 shift
10890 done
10891
10892 ac_configure_extra_args=
10893
10894 if $ac_cs_silent; then
10895 exec 6>/dev/null
10896 ac_configure_extra_args="$ac_configure_extra_args --silent"
10897 fi
10898
10899 _ACEOF
10900 cat >>$CONFIG_STATUS <<_ACEOF
10901 if \$ac_cs_recheck; then
10902 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10903 CONFIG_SHELL=$SHELL
10904 export CONFIG_SHELL
10905 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10906 fi
10907
10908 _ACEOF
10909 cat >>$CONFIG_STATUS <<\_ACEOF
10910 exec 5>>config.log
10911 {
10912 echo
10913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10914 ## Running $as_me. ##
10915 _ASBOX
10916 echo "$ac_log"
10917 } >&5
10918
10919 _ACEOF
10920 cat >>$CONFIG_STATUS <<_ACEOF
10921 #
10922 # INIT-COMMANDS
10923 #
10924 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10925
10926 _ACEOF
10927
10928 cat >>$CONFIG_STATUS <<\_ACEOF
10929
10930 # Handling of arguments.
10931 for ac_config_target in $ac_config_targets
10932 do
10933 case $ac_config_target in
10934 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10935 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10937 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10938 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10939
10940 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10941 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10942 { (exit 1); exit 1; }; };;
10943 esac
10944 done
10945
10946
10947 # If the user did not use the arguments to specify the items to instantiate,
10948 # then the envvar interface is used. Set only those that are not.
10949 # We use the long form for the default assignment because of an extremely
10950 # bizarre bug on SunOS 4.1.3.
10951 if $ac_need_defaults; then
10952 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10953 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10954 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10955 fi
10956
10957 # Have a temporary directory for convenience. Make it in the build tree
10958 # simply because there is no reason against having it here, and in addition,
10959 # creating and moving files from /tmp can sometimes cause problems.
10960 # Hook for its removal unless debugging.
10961 # Note that there is a small window in which the directory will not be cleaned:
10962 # after its creation but before its name has been assigned to `$tmp'.
10963 $debug ||
10964 {
10965 tmp=
10966 trap 'exit_status=$?
10967 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10968 ' 0
10969 trap '{ (exit 1); exit 1; }' 1 2 13 15
10970 }
10971 # Create a (secure) tmp directory for tmp files.
10972
10973 {
10974 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10975 test -n "$tmp" && test -d "$tmp"
10976 } ||
10977 {
10978 tmp=./conf$$-$RANDOM
10979 (umask 077 && mkdir "$tmp")
10980 } ||
10981 {
10982 echo "$me: cannot create a temporary directory in ." >&2
10983 { (exit 1); exit 1; }
10984 }
10985
10986 #
10987 # Set up the sed scripts for CONFIG_FILES section.
10988 #
10989
10990 # No need to generate the scripts if there are no CONFIG_FILES.
10991 # This happens for instance when ./config.status config.h
10992 if test -n "$CONFIG_FILES"; then
10993
10994 _ACEOF
10995
10996
10997
10998 ac_delim='%!_!# '
10999 for ac_last_try in false false false false false :; do
11000 cat >conf$$subs.sed <<_ACEOF
11001 SHELL!$SHELL$ac_delim
11002 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11003 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11004 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11005 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11006 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11007 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11008 exec_prefix!$exec_prefix$ac_delim
11009 prefix!$prefix$ac_delim
11010 program_transform_name!$program_transform_name$ac_delim
11011 bindir!$bindir$ac_delim
11012 sbindir!$sbindir$ac_delim
11013 libexecdir!$libexecdir$ac_delim
11014 datarootdir!$datarootdir$ac_delim
11015 datadir!$datadir$ac_delim
11016 sysconfdir!$sysconfdir$ac_delim
11017 sharedstatedir!$sharedstatedir$ac_delim
11018 localstatedir!$localstatedir$ac_delim
11019 includedir!$includedir$ac_delim
11020 oldincludedir!$oldincludedir$ac_delim
11021 docdir!$docdir$ac_delim
11022 infodir!$infodir$ac_delim
11023 htmldir!$htmldir$ac_delim
11024 dvidir!$dvidir$ac_delim
11025 pdfdir!$pdfdir$ac_delim
11026 psdir!$psdir$ac_delim
11027 libdir!$libdir$ac_delim
11028 localedir!$localedir$ac_delim
11029 mandir!$mandir$ac_delim
11030 DEFS!$DEFS$ac_delim
11031 ECHO_C!$ECHO_C$ac_delim
11032 ECHO_N!$ECHO_N$ac_delim
11033 ECHO_T!$ECHO_T$ac_delim
11034 LIBS!$LIBS$ac_delim
11035 build_alias!$build_alias$ac_delim
11036 host_alias!$host_alias$ac_delim
11037 target_alias!$target_alias$ac_delim
11038 build!$build$ac_delim
11039 build_cpu!$build_cpu$ac_delim
11040 build_vendor!$build_vendor$ac_delim
11041 build_os!$build_os$ac_delim
11042 host!$host$ac_delim
11043 host_cpu!$host_cpu$ac_delim
11044 host_vendor!$host_vendor$ac_delim
11045 host_os!$host_os$ac_delim
11046 target!$target$ac_delim
11047 target_cpu!$target_cpu$ac_delim
11048 target_vendor!$target_vendor$ac_delim
11049 target_os!$target_os$ac_delim
11050 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11051 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11052 INSTALL_DATA!$INSTALL_DATA$ac_delim
11053 CYGPATH_W!$CYGPATH_W$ac_delim
11054 PACKAGE!$PACKAGE$ac_delim
11055 VERSION!$VERSION$ac_delim
11056 ACLOCAL!$ACLOCAL$ac_delim
11057 AUTOCONF!$AUTOCONF$ac_delim
11058 AUTOMAKE!$AUTOMAKE$ac_delim
11059 AUTOHEADER!$AUTOHEADER$ac_delim
11060 MAKEINFO!$MAKEINFO$ac_delim
11061 install_sh!$install_sh$ac_delim
11062 STRIP!$STRIP$ac_delim
11063 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11064 mkdir_p!$mkdir_p$ac_delim
11065 AWK!$AWK$ac_delim
11066 SET_MAKE!$SET_MAKE$ac_delim
11067 am__leading_dot!$am__leading_dot$ac_delim
11068 AMTAR!$AMTAR$ac_delim
11069 am__tar!$am__tar$ac_delim
11070 am__untar!$am__untar$ac_delim
11071 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11072 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11073 MAINT!$MAINT$ac_delim
11074 CC!$CC$ac_delim
11075 CFLAGS!$CFLAGS$ac_delim
11076 LDFLAGS!$LDFLAGS$ac_delim
11077 CPPFLAGS!$CPPFLAGS$ac_delim
11078 ac_ct_CC!$ac_ct_CC$ac_delim
11079 EXEEXT!$EXEEXT$ac_delim
11080 OBJEXT!$OBJEXT$ac_delim
11081 DEPDIR!$DEPDIR$ac_delim
11082 am__include!$am__include$ac_delim
11083 am__quote!$am__quote$ac_delim
11084 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11085 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11086 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11087 CCDEPMODE!$CCDEPMODE$ac_delim
11088 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11089 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11090 RANLIB!$RANLIB$ac_delim
11091 LN_S!$LN_S$ac_delim
11092 CPP!$CPP$ac_delim
11093 GREP!$GREP$ac_delim
11094 EGREP!$EGREP$ac_delim
11095 MAKER!$MAKER$ac_delim
11096 ALLOCA!$ALLOCA$ac_delim
11097 MODULE_OBJS!$MODULE_OBJS$ac_delim
11098 _ACEOF
11099
11100 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11101 break
11102 elif $ac_last_try; then
11103 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11104 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11105 { (exit 1); exit 1; }; }
11106 else
11107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11108 fi
11109 done
11110
11111 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11112 if test -n "$ac_eof"; then
11113 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11114 ac_eof=`expr $ac_eof + 1`
11115 fi
11116
11117 cat >>$CONFIG_STATUS <<_ACEOF
11118 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11120 _ACEOF
11121 sed '
11122 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11123 s/^/s,@/; s/!/@,|#_!!_#|/
11124 :n
11125 t n
11126 s/'"$ac_delim"'$/,g/; t
11127 s/$/\\/; p
11128 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11129 ' >>$CONFIG_STATUS <conf$$subs.sed
11130 rm -f conf$$subs.sed
11131 cat >>$CONFIG_STATUS <<_ACEOF
11132 CEOF$ac_eof
11133 _ACEOF
11134
11135
11136 ac_delim='%!_!# '
11137 for ac_last_try in false false false false false :; do
11138 cat >conf$$subs.sed <<_ACEOF
11139 MY_SUBDIRS!$MY_SUBDIRS$ac_delim
11140 RX_INCLUDES!$RX_INCLUDES$ac_delim
11141 RX_LIBS!$RX_LIBS$ac_delim
11142 TRACK!$TRACK$ac_delim
11143 LIBOBJS!$LIBOBJS$ac_delim
11144 LTLIBOBJS!$LTLIBOBJS$ac_delim
11145 _ACEOF
11146
11147 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
11148 break
11149 elif $ac_last_try; then
11150 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11152 { (exit 1); exit 1; }; }
11153 else
11154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11155 fi
11156 done
11157
11158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11159 if test -n "$ac_eof"; then
11160 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11161 ac_eof=`expr $ac_eof + 1`
11162 fi
11163
11164 cat >>$CONFIG_STATUS <<_ACEOF
11165 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11167 _ACEOF
11168 sed '
11169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11170 s/^/s,@/; s/!/@,|#_!!_#|/
11171 :n
11172 t n
11173 s/'"$ac_delim"'$/,g/; t
11174 s/$/\\/; p
11175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11176 ' >>$CONFIG_STATUS <conf$$subs.sed
11177 rm -f conf$$subs.sed
11178 cat >>$CONFIG_STATUS <<_ACEOF
11179 :end
11180 s/|#_!!_#|//g
11181 CEOF$ac_eof
11182 _ACEOF
11183
11184
11185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11187 # trailing colons and then remove the whole line if VPATH becomes empty
11188 # (actually we leave an empty line to preserve line numbers).
11189 if test "x$srcdir" = x.; then
11190 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11191 s/:*\$(srcdir):*/:/
11192 s/:*\${srcdir}:*/:/
11193 s/:*@srcdir@:*/:/
11194 s/^\([^=]*=[ ]*\):*/\1/
11195 s/:*$//
11196 s/^[^=]*=[ ]*$//
11197 }'
11198 fi
11199
11200 cat >>$CONFIG_STATUS <<\_ACEOF
11201 fi # test -n "$CONFIG_FILES"
11202
11203
11204 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11205 do
11206 case $ac_tag in
11207 :[FHLC]) ac_mode=$ac_tag; continue;;
11208 esac
11209 case $ac_mode$ac_tag in
11210 :[FHL]*:*);;
11211 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11212 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11213 { (exit 1); exit 1; }; };;
11214 :[FH]-) ac_tag=-:-;;
11215 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11216 esac
11217 ac_save_IFS=$IFS
11218 IFS=:
11219 set x $ac_tag
11220 IFS=$ac_save_IFS
11221 shift
11222 ac_file=$1
11223 shift
11224
11225 case $ac_mode in
11226 :L) ac_source=$1;;
11227 :[FH])
11228 ac_file_inputs=
11229 for ac_f
11230 do
11231 case $ac_f in
11232 -) ac_f="$tmp/stdin";;
11233 *) # Look for the file first in the build tree, then in the source tree
11234 # (if the path is not absolute). The absolute path cannot be DOS-style,
11235 # because $ac_f cannot contain `:'.
11236 test -f "$ac_f" ||
11237 case $ac_f in
11238 [\\/$]*) false;;
11239 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11240 esac ||
11241 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11242 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11243 { (exit 1); exit 1; }; };;
11244 esac
11245 ac_file_inputs="$ac_file_inputs $ac_f"
11246 done
11247
11248 # Let's still pretend it is `configure' which instantiates (i.e., don't
11249 # use $as_me), people would be surprised to read:
11250 # /* config.h. Generated by config.status. */
11251 configure_input="Generated from "`IFS=:
11252 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11253 if test x"$ac_file" != x-; then
11254 configure_input="$ac_file. $configure_input"
11255 { echo "$as_me:$LINENO: creating $ac_file" >&5
11256 echo "$as_me: creating $ac_file" >&6;}
11257 fi
11258
11259 case $ac_tag in
11260 *:-:* | *:-) cat >"$tmp/stdin";;
11261 esac
11262 ;;
11263 esac
11264
11265 ac_dir=`$as_dirname -- "$ac_file" ||
11266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11267 X"$ac_file" : 'X\(//\)[^/]' \| \
11268 X"$ac_file" : 'X\(//\)$' \| \
11269 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11270 echo X"$ac_file" |
11271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11272 s//\1/
11273 q
11274 }
11275 /^X\(\/\/\)[^/].*/{
11276 s//\1/
11277 q
11278 }
11279 /^X\(\/\/\)$/{
11280 s//\1/
11281 q
11282 }
11283 /^X\(\/\).*/{
11284 s//\1/
11285 q
11286 }
11287 s/.*/./; q'`
11288 { as_dir="$ac_dir"
11289 case $as_dir in #(
11290 -*) as_dir=./$as_dir;;
11291 esac
11292 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11293 as_dirs=
11294 while :; do
11295 case $as_dir in #(
11296 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11297 *) as_qdir=$as_dir;;
11298 esac
11299 as_dirs="'$as_qdir' $as_dirs"
11300 as_dir=`$as_dirname -- "$as_dir" ||
11301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11302 X"$as_dir" : 'X\(//\)[^/]' \| \
11303 X"$as_dir" : 'X\(//\)$' \| \
11304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11305 echo X"$as_dir" |
11306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11307 s//\1/
11308 q
11309 }
11310 /^X\(\/\/\)[^/].*/{
11311 s//\1/
11312 q
11313 }
11314 /^X\(\/\/\)$/{
11315 s//\1/
11316 q
11317 }
11318 /^X\(\/\).*/{
11319 s//\1/
11320 q
11321 }
11322 s/.*/./; q'`
11323 test -d "$as_dir" && break
11324 done
11325 test -z "$as_dirs" || eval "mkdir $as_dirs"
11326 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11327 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11328 { (exit 1); exit 1; }; }; }
11329 ac_builddir=.
11330
11331 case "$ac_dir" in
11332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11333 *)
11334 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11335 # A ".." for each directory in $ac_dir_suffix.
11336 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11337 case $ac_top_builddir_sub in
11338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11340 esac ;;
11341 esac
11342 ac_abs_top_builddir=$ac_pwd
11343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11344 # for backward compatibility:
11345 ac_top_builddir=$ac_top_build_prefix
11346
11347 case $srcdir in
11348 .) # We are building in place.
11349 ac_srcdir=.
11350 ac_top_srcdir=$ac_top_builddir_sub
11351 ac_abs_top_srcdir=$ac_pwd ;;
11352 [\\/]* | ?:[\\/]* ) # Absolute name.
11353 ac_srcdir=$srcdir$ac_dir_suffix;
11354 ac_top_srcdir=$srcdir
11355 ac_abs_top_srcdir=$srcdir ;;
11356 *) # Relative name.
11357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11358 ac_top_srcdir=$ac_top_build_prefix$srcdir
11359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11360 esac
11361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11362
11363
11364 case $ac_mode in
11365 :F)
11366 #
11367 # CONFIG_FILE
11368 #
11369
11370 case $INSTALL in
11371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11373 esac
11374 _ACEOF
11375
11376 cat >>$CONFIG_STATUS <<\_ACEOF
11377 # If the template does not know about datarootdir, expand it.
11378 # FIXME: This hack should be removed a few years after 2.60.
11379 ac_datarootdir_hack=; ac_datarootdir_seen=
11380
11381 case `sed -n '/datarootdir/ {
11382 p
11383 q
11384 }
11385 /@datadir@/p
11386 /@docdir@/p
11387 /@infodir@/p
11388 /@localedir@/p
11389 /@mandir@/p
11390 ' $ac_file_inputs` in
11391 *datarootdir*) ac_datarootdir_seen=yes;;
11392 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11393 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11394 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11395 _ACEOF
11396 cat >>$CONFIG_STATUS <<_ACEOF
11397 ac_datarootdir_hack='
11398 s&@datadir@&$datadir&g
11399 s&@docdir@&$docdir&g
11400 s&@infodir@&$infodir&g
11401 s&@localedir@&$localedir&g
11402 s&@mandir@&$mandir&g
11403 s&\\\${datarootdir}&$datarootdir&g' ;;
11404 esac
11405 _ACEOF
11406
11407 # Neutralize VPATH when `$srcdir' = `.'.
11408 # Shell code in configure.ac might set extrasub.
11409 # FIXME: do we really want to maintain this feature?
11410 cat >>$CONFIG_STATUS <<_ACEOF
11411 sed "$ac_vpsub
11412 $extrasub
11413 _ACEOF
11414 cat >>$CONFIG_STATUS <<\_ACEOF
11415 :t
11416 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11417 s&@configure_input@&$configure_input&;t t
11418 s&@top_builddir@&$ac_top_builddir_sub&;t t
11419 s&@srcdir@&$ac_srcdir&;t t
11420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11421 s&@top_srcdir@&$ac_top_srcdir&;t t
11422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11423 s&@builddir@&$ac_builddir&;t t
11424 s&@abs_builddir@&$ac_abs_builddir&;t t
11425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11426 s&@INSTALL@&$ac_INSTALL&;t t
11427 $ac_datarootdir_hack
11428 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11429
11430 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11431 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11433 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11434 which seems to be undefined. Please make sure it is defined." >&5
11435 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11436 which seems to be undefined. Please make sure it is defined." >&2;}
11437
11438 rm -f "$tmp/stdin"
11439 case $ac_file in
11440 -) cat "$tmp/out"; rm -f "$tmp/out";;
11441 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11442 esac
11443 ;;
11444 :H)
11445 #
11446 # CONFIG_HEADER
11447 #
11448 _ACEOF
11449
11450 # Transform confdefs.h into a sed script `conftest.defines', that
11451 # substitutes the proper values into config.h.in to produce config.h.
11452 rm -f conftest.defines conftest.tail
11453 # First, append a space to every undef/define line, to ease matching.
11454 echo 's/$/ /' >conftest.defines
11455 # Then, protect against being on the right side of a sed subst, or in
11456 # an unquoted here document, in config.status. If some macros were
11457 # called several times there might be several #defines for the same
11458 # symbol, which is useless. But do not sort them, since the last
11459 # AC_DEFINE must be honored.
11460 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11461 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11462 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11463 # PARAMS is the parameter list in the macro definition--in most cases, it's
11464 # just an empty string.
11465 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11466 ac_dB='\\)[ (].*,\\1define\\2'
11467 ac_dC=' '
11468 ac_dD=' ,'
11469
11470 uniq confdefs.h |
11471 sed -n '
11472 t rset
11473 :rset
11474 s/^[ ]*#[ ]*define[ ][ ]*//
11475 t ok
11476 d
11477 :ok
11478 s/[\\&,]/\\&/g
11479 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11480 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11481 ' >>conftest.defines
11482
11483 # Remove the space that was appended to ease matching.
11484 # Then replace #undef with comments. This is necessary, for
11485 # example, in the case of _POSIX_SOURCE, which is predefined and required
11486 # on some systems where configure will not decide to define it.
11487 # (The regexp can be short, since the line contains either #define or #undef.)
11488 echo 's/ $//
11489 s,^[ #]*u.*,/* & */,' >>conftest.defines
11490
11491 # Break up conftest.defines:
11492 ac_max_sed_lines=50
11493
11494 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11495 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11496 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11497 # et cetera.
11498 ac_in='$ac_file_inputs'
11499 ac_out='"$tmp/out1"'
11500 ac_nxt='"$tmp/out2"'
11501
11502 while :
11503 do
11504 # Write a here document:
11505 cat >>$CONFIG_STATUS <<_ACEOF
11506 # First, check the format of the line:
11507 cat >"\$tmp/defines.sed" <<\\CEOF
11508 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11509 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11510 b
11511 :def
11512 _ACEOF
11513 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11514 echo 'CEOF
11515 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11516 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11517 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11518 grep . conftest.tail >/dev/null || break
11519 rm -f conftest.defines
11520 mv conftest.tail conftest.defines
11521 done
11522 rm -f conftest.defines conftest.tail
11523
11524 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11525 cat >>$CONFIG_STATUS <<\_ACEOF
11526 if test x"$ac_file" != x-; then
11527 echo "/* $configure_input */" >"$tmp/config.h"
11528 cat "$ac_result" >>"$tmp/config.h"
11529 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11530 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11531 echo "$as_me: $ac_file is unchanged" >&6;}
11532 else
11533 rm -f $ac_file
11534 mv "$tmp/config.h" $ac_file
11535 fi
11536 else
11537 echo "/* $configure_input */"
11538 cat "$ac_result"
11539 fi
11540 rm -f "$tmp/out12"
11541 # Compute $ac_file's index in $config_headers.
11542 _am_stamp_count=1
11543 for _am_header in $config_headers :; do
11544 case $_am_header in
11545 $ac_file | $ac_file:* )
11546 break ;;
11547 * )
11548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11549 esac
11550 done
11551 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11552 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11553 X$ac_file : 'X\(//\)[^/]' \| \
11554 X$ac_file : 'X\(//\)$' \| \
11555 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11556 echo X$ac_file |
11557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11558 s//\1/
11559 q
11560 }
11561 /^X\(\/\/\)[^/].*/{
11562 s//\1/
11563 q
11564 }
11565 /^X\(\/\/\)$/{
11566 s//\1/
11567 q
11568 }
11569 /^X\(\/\).*/{
11570 s//\1/
11571 q
11572 }
11573 s/.*/./; q'`/stamp-h$_am_stamp_count
11574 ;;
11575
11576 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11577 echo "$as_me: executing $ac_file commands" >&6;}
11578 ;;
11579 esac
11580
11581
11582 case $ac_file$ac_mode in
11583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11584 # Strip MF so we end up with the name of the file.
11585 mf=`echo "$mf" | sed -e 's/:.*$//'`
11586 # Check whether this is an Automake generated Makefile or not.
11587 # We used to match only the files named `Makefile.in', but
11588 # some people rename them; so instead we look at the file content.
11589 # Grep'ing the first line is not enough: some people post-process
11590 # each Makefile.in and add a new line on top of each file to say so.
11591 # So let's grep whole file.
11592 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11593 dirpart=`$as_dirname -- "$mf" ||
11594 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11595 X"$mf" : 'X\(//\)[^/]' \| \
11596 X"$mf" : 'X\(//\)$' \| \
11597 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11598 echo X"$mf" |
11599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11600 s//\1/
11601 q
11602 }
11603 /^X\(\/\/\)[^/].*/{
11604 s//\1/
11605 q
11606 }
11607 /^X\(\/\/\)$/{
11608 s//\1/
11609 q
11610 }
11611 /^X\(\/\).*/{
11612 s//\1/
11613 q
11614 }
11615 s/.*/./; q'`
11616 else
11617 continue
11618 fi
11619 # Extract the definition of DEPDIR, am__include, and am__quote
11620 # from the Makefile without running `make'.
11621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11622 test -z "$DEPDIR" && continue
11623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11624 test -z "am__include" && continue
11625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11626 # When using ansi2knr, U may be empty or an underscore; expand it
11627 U=`sed -n 's/^U = //p' < "$mf"`
11628 # Find all dependency output files, they are included files with
11629 # $(DEPDIR) in their names. We invoke sed twice because it is the
11630 # simplest approach to changing $(DEPDIR) to its actual value in the
11631 # expansion.
11632 for file in `sed -n "
11633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11635 # Make sure the directory exists.
11636 test -f "$dirpart/$file" && continue
11637 fdir=`$as_dirname -- "$file" ||
11638 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11639 X"$file" : 'X\(//\)[^/]' \| \
11640 X"$file" : 'X\(//\)$' \| \
11641 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11642 echo X"$file" |
11643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11644 s//\1/
11645 q
11646 }
11647 /^X\(\/\/\)[^/].*/{
11648 s//\1/
11649 q
11650 }
11651 /^X\(\/\/\)$/{
11652 s//\1/
11653 q
11654 }
11655 /^X\(\/\).*/{
11656 s//\1/
11657 q
11658 }
11659 s/.*/./; q'`
11660 { as_dir=$dirpart/$fdir
11661 case $as_dir in #(
11662 -*) as_dir=./$as_dir;;
11663 esac
11664 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11665 as_dirs=
11666 while :; do
11667 case $as_dir in #(
11668 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11669 *) as_qdir=$as_dir;;
11670 esac
11671 as_dirs="'$as_qdir' $as_dirs"
11672 as_dir=`$as_dirname -- "$as_dir" ||
11673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11674 X"$as_dir" : 'X\(//\)[^/]' \| \
11675 X"$as_dir" : 'X\(//\)$' \| \
11676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11677 echo X"$as_dir" |
11678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11679 s//\1/
11680 q
11681 }
11682 /^X\(\/\/\)[^/].*/{
11683 s//\1/
11684 q
11685 }
11686 /^X\(\/\/\)$/{
11687 s//\1/
11688 q
11689 }
11690 /^X\(\/\).*/{
11691 s//\1/
11692 q
11693 }
11694 s/.*/./; q'`
11695 test -d "$as_dir" && break
11696 done
11697 test -z "$as_dirs" || eval "mkdir $as_dirs"
11698 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11699 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11700 { (exit 1); exit 1; }; }; }
11701 # echo "creating $dirpart/$file"
11702 echo '# dummy' > "$dirpart/$file"
11703 done
11704 done
11705 ;;
11706
11707 esac
11708 done # for ac_tag
11709
11710
11711 { (exit 0); exit 0; }
11712 _ACEOF
11713 chmod +x $CONFIG_STATUS
11714 ac_clean_files=$ac_clean_files_save
11715
11716
11717 # configure is writing to config.log, and then calls config.status.
11718 # config.status does its own redirection, appending to config.log.
11719 # Unfortunately, on DOS this fails, as config.log is still kept open
11720 # by configure, so config.status won't be able to write to it; its
11721 # output is simply discarded. So we exec the FD to /dev/null,
11722 # effectively closing config.log, so it can be properly (re)opened and
11723 # appended to by config.status. When coming back to configure, we
11724 # need to make the FD available again.
11725 if test "$no_create" != yes; then
11726 ac_cs_success=:
11727 ac_config_status_args=
11728 test "$silent" = yes &&
11729 ac_config_status_args="$ac_config_status_args --quiet"
11730 exec 5>/dev/null
11731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11732 exec 5>>config.log
11733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11734 # would make configure fail if this is the last instruction.
11735 $ac_cs_success || { (exit 1); exit 1; }
11736 fi
11737
11738
11739
11740
11741 cat <<EOF
11742
11743 Configuration summary
11744 =====================
11745
11746 X3 is now configured as follows:
11747
11748 * Compilation environment
11749
11750 CC = $CC
11751 CFLAGS = $CFLAGS
11752 CPP = $CPP
11753 CPPFLAGS = $CPPFLAGS
11754 LD = $LD
11755 LDFLAGS = $LDFLAGS
11756 LIBS = $LIBS
11757
11758 * X3 options
11759
11760 Debug: $x3_debug
11761 Extra Modules: $module_list
11762 Malloc: $x3_malloc
11763 Protocol: $x3_ircd
11764 Regexp Library TRE $tre_version
11765 Coredumper Library Coredumper $core_version
11766
11767 Install to: $prefix
11768
11769 Now you can proceed with compiling X3
11770
11771 EOF
11772