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