]> jfr.im git - irc/evilnet/x3.git/blob - configure
mod-python: generalised the setting of the PYTHONPATH environment variable
[irc/evilnet/x3.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 2427 2009-01-23 23:27:32Z rubin .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for X3 1.6.
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.6'
579 PACKAGE_STRING='X3 1.6'
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 INSTALL_PROGRAM
669 INSTALL_SCRIPT
670 INSTALL_DATA
671 am__isrc
672 CYGPATH_W
673 PACKAGE
674 VERSION
675 ACLOCAL
676 AUTOCONF
677 AUTOMAKE
678 AUTOHEADER
679 MAKEINFO
680 install_sh
681 STRIP
682 INSTALL_STRIP_PROGRAM
683 mkdir_p
684 AWK
685 SET_MAKE
686 am__leading_dot
687 AMTAR
688 am__tar
689 am__untar
690 MAINTAINER_MODE_TRUE
691 MAINTAINER_MODE_FALSE
692 MAINT
693 CC
694 CFLAGS
695 LDFLAGS
696 CPPFLAGS
697 ac_ct_CC
698 EXEEXT
699 OBJEXT
700 DEPDIR
701 am__include
702 am__quote
703 AMDEP_TRUE
704 AMDEP_FALSE
705 AMDEPBACKSLASH
706 CCDEPMODE
707 am__fastdepCC_TRUE
708 am__fastdepCC_FALSE
709 CP
710 RANLIB
711 LN_S
712 CPP
713 GREP
714 EGREP
715 MAKER
716 ALLOCA
717 pythonpath
718 DO_PYTHON_TRUE
719 DO_PYTHON_FALSE
720 MODULE_OBJS
721 MY_SUBDIRS
722 RX_INCLUDES
723 RX_LIBS
724 TRACK
725 PY_CFLAGS
726 PY_LIBS
727 LIBOBJS
728 LTLIBOBJS'
729 ac_subst_files=''
730 ac_precious_vars='build_alias
731 host_alias
732 target_alias
733 CC
734 CFLAGS
735 LDFLAGS
736 LIBS
737 CPPFLAGS
738 CPP'
739
740
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
786
787 ac_prev=
788 ac_dashdash=
789 for ac_option
790 do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122 fi
1123
1124 # Be sure to have absolute directory names.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129 do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137 done
1138
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1145
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155 fi
1156
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160 test "$silent" = yes && exec 6>/dev/null
1161
1162
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204 else
1205 ac_srcdir_defaulted=no
1206 fi
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211 fi
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220 fi
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1233
1234 #
1235 # Report the --help message.
1236 #
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures X3 1.6 to adapt to many kinds of systems.
1242
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248 Defaults for the options are specified in brackets.
1249
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1271
1272 For better control, use the options below.
1273
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297
1298 Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1302
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 --target=TARGET configure for building compilers for TARGET [HOST]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of X3 1.6:";;
1313 esac
1314 cat <<\_ACEOF
1315
1316 Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --disable-dependency-tracking speeds up one-time build
1322 --enable-dependency-tracking do not reject slow dependency extractors
1323 --disable-tokens Disables tokenization of P10 protocol output
1324 (tokens required if linking to ircu 2.10.11)
1325 --enable-debug Enables debugging behaviors
1326 --enable-modules=list,of,modules Enable extra modules
1327 --disable-python don't build the python plugin
1328
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --with-malloc=type Enables use of a special malloc library; one of:
1333 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
1334 --with-protocol=name Choose IRC dialect to support; one of:
1335 p10 (the default)
1336 --without-getopt Disables building of the GNU getopt library
1337 --with-tre=PATH Base path to where libtre is installed, such that
1338 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1339 --with-coredumper=PATH Base path to where core dumper is installed, such
1340 that PATH/lib/libcoredumper.so and
1341 PATH/include/google/coredumper.h exist.
1342 --with-ssl=PATH Base path to where openssl is installed
1343 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1344 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
1345
1346 Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
1351 LIBS libraries to pass to the linker, e.g. -l<library>
1352 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
1354 CPP C preprocessor
1355
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1358
1359 Report bugs to <evilnet-devel@lists.sourceforge.net>.
1360 _ACEOF
1361 ac_status=$?
1362 fi
1363
1364 if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" || continue
1368 ac_builddir=.
1369
1370 case "$ac_dir" in
1371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *)
1373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1379 esac ;;
1380 esac
1381 ac_abs_top_builddir=$ac_pwd
1382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383 # for backward compatibility:
1384 ac_top_builddir=$ac_top_build_prefix
1385
1386 case $srcdir in
1387 .) # We are building in place.
1388 ac_srcdir=.
1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
1392 ac_srcdir=$srcdir$ac_dir_suffix;
1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1395 *) # Relative name.
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1399 esac
1400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1401
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure" --help=recursive
1410 else
1411 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1412 fi || ac_status=$?
1413 cd "$ac_pwd" || { ac_status=$?; break; }
1414 done
1415 fi
1416
1417 test -n "$ac_init_help" && exit $ac_status
1418 if $ac_init_version; then
1419 cat <<\_ACEOF
1420 X3 configure 1.6
1421 generated by GNU Autoconf 2.61
1422
1423 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1424 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1425 This configure script is free software; the Free Software Foundation
1426 gives unlimited permission to copy, distribute and modify it.
1427 _ACEOF
1428 exit
1429 fi
1430 cat >config.log <<_ACEOF
1431 This file contains any messages produced by compilers while
1432 running configure, to aid debugging if configure makes a mistake.
1433
1434 It was created by X3 $as_me 1.6, which was
1435 generated by GNU Autoconf 2.61. Invocation command line was
1436
1437 $ $0 $@
1438
1439 _ACEOF
1440 exec 5>>config.log
1441 {
1442 cat <<_ASUNAME
1443 ## --------- ##
1444 ## Platform. ##
1445 ## --------- ##
1446
1447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1452
1453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1455
1456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
1464 _ASUNAME
1465
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 echo "PATH: $as_dir"
1472 done
1473 IFS=$as_save_IFS
1474
1475 } >&5
1476
1477 cat >&5 <<_ACEOF
1478
1479
1480 ## ----------- ##
1481 ## Core tests. ##
1482 ## ----------- ##
1483
1484 _ACEOF
1485
1486
1487 # Keep a trace of the command line.
1488 # Strip out --no-create and --no-recursion so they do not pile up.
1489 # Strip out --silent because we don't want to record it for future runs.
1490 # Also quote any args containing shell meta-characters.
1491 # Make two passes to allow for proper duplicate-argument suppression.
1492 ac_configure_args=
1493 ac_configure_args0=
1494 ac_configure_args1=
1495 ac_must_keep_next=false
1496 for ac_pass in 1 2
1497 do
1498 for ac_arg
1499 do
1500 case $ac_arg in
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 continue ;;
1505 *\'*)
1506 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 esac
1508 case $ac_pass in
1509 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1510 2)
1511 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1514 else
1515 case $ac_arg in
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1522 esac
1523 ;;
1524 -* ) ac_must_keep_next=true ;;
1525 esac
1526 fi
1527 ac_configure_args="$ac_configure_args '$ac_arg'"
1528 ;;
1529 esac
1530 done
1531 done
1532 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1533 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1534
1535 # When interrupted or exit'd, cleanup temporary files, and complete
1536 # config.log. We remove comments because anyway the quotes in there
1537 # would cause problems or look ugly.
1538 # WARNING: Use '\'' to represent an apostrophe within the trap.
1539 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540 trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1542 {
1543 echo
1544
1545 cat <<\_ASBOX
1546 ## ---------------- ##
1547 ## Cache variables. ##
1548 ## ---------------- ##
1549 _ASBOX
1550 echo
1551 # The following way of writing the cache mishandles newlines in values,
1552 (
1553 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1554 eval ac_val=\$$ac_var
1555 case $ac_val in #(
1556 *${as_nl}*)
1557 case $ac_var in #(
1558 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1559 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1560 esac
1561 case $ac_var in #(
1562 _ | IFS | as_nl) ;; #(
1563 *) $as_unset $ac_var ;;
1564 esac ;;
1565 esac
1566 done
1567 (set) 2>&1 |
1568 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1569 *${as_nl}ac_space=\ *)
1570 sed -n \
1571 "s/'\''/'\''\\\\'\'''\''/g;
1572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1573 ;; #(
1574 *)
1575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1576 ;;
1577 esac |
1578 sort
1579 )
1580 echo
1581
1582 cat <<\_ASBOX
1583 ## ----------------- ##
1584 ## Output variables. ##
1585 ## ----------------- ##
1586 _ASBOX
1587 echo
1588 for ac_var in $ac_subst_vars
1589 do
1590 eval ac_val=\$$ac_var
1591 case $ac_val in
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 esac
1594 echo "$ac_var='\''$ac_val'\''"
1595 done | sort
1596 echo
1597
1598 if test -n "$ac_subst_files"; then
1599 cat <<\_ASBOX
1600 ## ------------------- ##
1601 ## File substitutions. ##
1602 ## ------------------- ##
1603 _ASBOX
1604 echo
1605 for ac_var in $ac_subst_files
1606 do
1607 eval ac_val=\$$ac_var
1608 case $ac_val in
1609 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 esac
1611 echo "$ac_var='\''$ac_val'\''"
1612 done | sort
1613 echo
1614 fi
1615
1616 if test -s confdefs.h; then
1617 cat <<\_ASBOX
1618 ## ----------- ##
1619 ## confdefs.h. ##
1620 ## ----------- ##
1621 _ASBOX
1622 echo
1623 cat confdefs.h
1624 echo
1625 fi
1626 test "$ac_signal" != 0 &&
1627 echo "$as_me: caught signal $ac_signal"
1628 echo "$as_me: exit $exit_status"
1629 } >&5
1630 rm -f core *.core core.conftest.* &&
1631 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1632 exit $exit_status
1633 ' 0
1634 for ac_signal in 1 2 13 15; do
1635 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1636 done
1637 ac_signal=0
1638
1639 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1640 rm -f -r conftest* confdefs.h
1641
1642 # Predefined preprocessor variables.
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_NAME "$PACKAGE_NAME"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_STRING "$PACKAGE_STRING"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1666 _ACEOF
1667
1668
1669 # Let the site file select an alternate cache file if it wants to.
1670 # Prefer explicitly selected file to automatically selected ones.
1671 if test -n "$CONFIG_SITE"; then
1672 set x "$CONFIG_SITE"
1673 elif test "x$prefix" != xNONE; then
1674 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1675 else
1676 set x "$ac_default_prefix/share/config.site" \
1677 "$ac_default_prefix/etc/config.site"
1678 fi
1679 shift
1680 for ac_site_file
1681 do
1682 if test -r "$ac_site_file"; then
1683 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1684 echo "$as_me: loading site script $ac_site_file" >&6;}
1685 sed 's/^/| /' "$ac_site_file" >&5
1686 . "$ac_site_file"
1687 fi
1688 done
1689
1690 if test -r "$cache_file"; then
1691 # Some versions of bash will fail to source /dev/null (special
1692 # files actually), so we avoid doing that.
1693 if test -f "$cache_file"; then
1694 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1695 echo "$as_me: loading cache $cache_file" >&6;}
1696 case $cache_file in
1697 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1698 *) . "./$cache_file";;
1699 esac
1700 fi
1701 else
1702 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1703 echo "$as_me: creating cache $cache_file" >&6;}
1704 >$cache_file
1705 fi
1706
1707 # Check that the precious variables saved in the cache have kept the same
1708 # value.
1709 ac_cache_corrupted=false
1710 for ac_var in $ac_precious_vars; do
1711 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1712 eval ac_new_set=\$ac_env_${ac_var}_set
1713 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1714 eval ac_new_val=\$ac_env_${ac_var}_value
1715 case $ac_old_set,$ac_new_set in
1716 set,)
1717 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1718 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1719 ac_cache_corrupted=: ;;
1720 ,set)
1721 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1722 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,);;
1725 *)
1726 if test "x$ac_old_val" != "x$ac_new_val"; then
1727 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1728 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1729 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1730 echo "$as_me: former value: $ac_old_val" >&2;}
1731 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1732 echo "$as_me: current value: $ac_new_val" >&2;}
1733 ac_cache_corrupted=:
1734 fi;;
1735 esac
1736 # Pass precious variables to config.status.
1737 if test "$ac_new_set" = set; then
1738 case $ac_new_val in
1739 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 *) ac_arg=$ac_var=$ac_new_val ;;
1741 esac
1742 case " $ac_configure_args " in
1743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1744 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1745 esac
1746 fi
1747 done
1748 if $ac_cache_corrupted; then
1749 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1750 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1751 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1752 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1753 { (exit 1); exit 1; }; }
1754 fi
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787 CODENAME=X3
1788 ac_config_headers="$ac_config_headers src/config.h"
1789
1790
1791 ac_aux_dir=
1792 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1793 if test -f "$ac_dir/install-sh"; then
1794 ac_aux_dir=$ac_dir
1795 ac_install_sh="$ac_aux_dir/install-sh -c"
1796 break
1797 elif test -f "$ac_dir/install.sh"; then
1798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/install.sh -c"
1800 break
1801 elif test -f "$ac_dir/shtool"; then
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/shtool install -c"
1804 break
1805 fi
1806 done
1807 if test -z "$ac_aux_dir"; then
1808 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1809 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1810 { (exit 1); exit 1; }; }
1811 fi
1812
1813 # These three variables are undocumented and unsupported,
1814 # and are intended to be withdrawn in a future Autoconf release.
1815 # They can cause serious problems if a builder's source tree is in a directory
1816 # whose full name contains unusual characters.
1817 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1818 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1819 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1820
1821
1822 # Make sure we can run config.sub.
1823 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1824 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1825 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1826 { (exit 1); exit 1; }; }
1827
1828 { echo "$as_me:$LINENO: checking build system type" >&5
1829 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1830 if test "${ac_cv_build+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 ac_build_alias=$build_alias
1834 test "x$ac_build_alias" = x &&
1835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1836 test "x$ac_build_alias" = x &&
1837 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1838 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1839 { (exit 1); exit 1; }; }
1840 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1843 { (exit 1); exit 1; }; }
1844
1845 fi
1846 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1847 echo "${ECHO_T}$ac_cv_build" >&6; }
1848 case $ac_cv_build in
1849 *-*-*) ;;
1850 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1851 echo "$as_me: error: invalid value of canonical build" >&2;}
1852 { (exit 1); exit 1; }; };;
1853 esac
1854 build=$ac_cv_build
1855 ac_save_IFS=$IFS; IFS='-'
1856 set x $ac_cv_build
1857 shift
1858 build_cpu=$1
1859 build_vendor=$2
1860 shift; shift
1861 # Remember, the first character of IFS is used to create $*,
1862 # except with old shells:
1863 build_os=$*
1864 IFS=$ac_save_IFS
1865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1866
1867
1868 { echo "$as_me:$LINENO: checking host system type" >&5
1869 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1870 if test "${ac_cv_host+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test "x$host_alias" = x; then
1874 ac_cv_host=$ac_cv_build
1875 else
1876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1877 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1878 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1879 { (exit 1); exit 1; }; }
1880 fi
1881
1882 fi
1883 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1884 echo "${ECHO_T}$ac_cv_host" >&6; }
1885 case $ac_cv_host in
1886 *-*-*) ;;
1887 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1888 echo "$as_me: error: invalid value of canonical host" >&2;}
1889 { (exit 1); exit 1; }; };;
1890 esac
1891 host=$ac_cv_host
1892 ac_save_IFS=$IFS; IFS='-'
1893 set x $ac_cv_host
1894 shift
1895 host_cpu=$1
1896 host_vendor=$2
1897 shift; shift
1898 # Remember, the first character of IFS is used to create $*,
1899 # except with old shells:
1900 host_os=$*
1901 IFS=$ac_save_IFS
1902 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1903
1904
1905 { echo "$as_me:$LINENO: checking target system type" >&5
1906 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1907 if test "${ac_cv_target+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 if test "x$target_alias" = x; then
1911 ac_cv_target=$ac_cv_host
1912 else
1913 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1914 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1915 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1916 { (exit 1); exit 1; }; }
1917 fi
1918
1919 fi
1920 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1921 echo "${ECHO_T}$ac_cv_target" >&6; }
1922 case $ac_cv_target in
1923 *-*-*) ;;
1924 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1925 echo "$as_me: error: invalid value of canonical target" >&2;}
1926 { (exit 1); exit 1; }; };;
1927 esac
1928 target=$ac_cv_target
1929 ac_save_IFS=$IFS; IFS='-'
1930 set x $ac_cv_target
1931 shift
1932 target_cpu=$1
1933 target_vendor=$2
1934 shift; shift
1935 # Remember, the first character of IFS is used to create $*,
1936 # except with old shells:
1937 target_os=$*
1938 IFS=$ac_save_IFS
1939 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1940
1941
1942 # The aliases save the names the user supplied, while $host etc.
1943 # will get canonicalized.
1944 test -n "$target_alias" &&
1945 test "$program_prefix$program_suffix$program_transform_name" = \
1946 NONENONEs,x,x, &&
1947 program_prefix=${target_alias}-
1948 am__api_version='1.10'
1949
1950 # Find a good install program. We prefer a C program (faster),
1951 # so one script is as good as another. But avoid the broken or
1952 # incompatible versions:
1953 # SysV /etc/install, /usr/sbin/install
1954 # SunOS /usr/etc/install
1955 # IRIX /sbin/install
1956 # AIX /bin/install
1957 # AmigaOS /C/install, which installs bootblocks on floppy discs
1958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1961 # OS/2's system install, which has a completely different semantic
1962 # ./install, which can be erroneously created by make from ./install.sh.
1963 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1964 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1965 if test -z "$INSTALL"; then
1966 if test "${ac_cv_path_install+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 # Account for people who put trailing slashes in PATH elements.
1975 case $as_dir/ in
1976 ./ | .// | /cC/* | \
1977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1978 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1979 /usr/ucb/* ) ;;
1980 *)
1981 # OSF1 and SCO ODT 3.0 have their own names for install.
1982 # Don't use installbsd from OSF since it installs stuff as root
1983 # by default.
1984 for ac_prog in ginstall scoinst install; do
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1987 if test $ac_prog = install &&
1988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989 # AIX install. It has an incompatible calling convention.
1990 :
1991 elif test $ac_prog = install &&
1992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # program-specific install script used by HP pwplus--don't use.
1994 :
1995 else
1996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1997 break 3
1998 fi
1999 fi
2000 done
2001 done
2002 ;;
2003 esac
2004 done
2005 IFS=$as_save_IFS
2006
2007
2008 fi
2009 if test "${ac_cv_path_install+set}" = set; then
2010 INSTALL=$ac_cv_path_install
2011 else
2012 # As a last resort, use the slow shell script. Don't cache a
2013 # value for INSTALL within a source directory, because that will
2014 # break other packages using the cache if that directory is
2015 # removed, or if the value is a relative name.
2016 INSTALL=$ac_install_sh
2017 fi
2018 fi
2019 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2020 echo "${ECHO_T}$INSTALL" >&6; }
2021
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2025
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2027
2028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2029
2030 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2031 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2032 # Just in case
2033 sleep 1
2034 echo timestamp > conftest.file
2035 # Do `set' in a subshell so we don't clobber the current shell's
2036 # arguments. Must try -L first in case configure is actually a
2037 # symlink; some systems play weird games with the mod time of symlinks
2038 # (eg FreeBSD returns the mod time of the symlink's containing
2039 # directory).
2040 if (
2041 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2042 if test "$*" = "X"; then
2043 # -L didn't work.
2044 set X `ls -t $srcdir/configure conftest.file`
2045 fi
2046 rm -f conftest.file
2047 if test "$*" != "X $srcdir/configure conftest.file" \
2048 && test "$*" != "X conftest.file $srcdir/configure"; then
2049
2050 # If neither matched, then we have a broken ls. This can happen
2051 # if, for instance, CONFIG_SHELL is bash and it inherits a
2052 # broken ls alias from the environment. This has actually
2053 # happened. Such a system could not be considered "sane".
2054 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2055 alias in your environment" >&5
2056 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2057 alias in your environment" >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060
2061 test "$2" = conftest.file
2062 )
2063 then
2064 # Ok.
2065 :
2066 else
2067 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2068 Check your system clock" >&5
2069 echo "$as_me: error: newly created file is older than distributed files!
2070 Check your system clock" >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073 { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2075 test "$program_prefix" != NONE &&
2076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2077 # Use a double $ so make ignores it.
2078 test "$program_suffix" != NONE &&
2079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2080 # Double any \ or $. echo might interpret backslashes.
2081 # By default was `s,x,x', remove it if useless.
2082 cat <<\_ACEOF >conftest.sed
2083 s/[\\$]/&&/g;s/;s,x,x,$//
2084 _ACEOF
2085 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2086 rm -f conftest.sed
2087
2088 # expand $ac_aux_dir to an absolute path
2089 am_aux_dir=`cd $ac_aux_dir && pwd`
2090
2091 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2092 # Use eval to expand $SHELL
2093 if eval "$MISSING --run true"; then
2094 am_missing_run="$MISSING --run "
2095 else
2096 am_missing_run=
2097 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2098 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099 fi
2100
2101 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2102 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2103 if test -z "$MKDIR_P"; then
2104 if test "${ac_cv_path_mkdir+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2109 do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 for ac_prog in mkdir gmkdir; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2115 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2116 'mkdir (GNU coreutils) '* | \
2117 'mkdir (coreutils) '* | \
2118 'mkdir (fileutils) '4.1*)
2119 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2120 break 3;;
2121 esac
2122 done
2123 done
2124 done
2125 IFS=$as_save_IFS
2126
2127 fi
2128
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2130 MKDIR_P="$ac_cv_path_mkdir -p"
2131 else
2132 # As a last resort, use the slow shell script. Don't cache a
2133 # value for MKDIR_P within a source directory, because that will
2134 # break other packages using the cache if that directory is
2135 # removed, or if the value is a relative name.
2136 test -d ./--version && rmdir ./--version
2137 MKDIR_P="$ac_install_sh -d"
2138 fi
2139 fi
2140 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2141 echo "${ECHO_T}$MKDIR_P" >&6; }
2142
2143 mkdir_p="$MKDIR_P"
2144 case $mkdir_p in
2145 [\\/$]* | ?:[\\/]*) ;;
2146 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2147 esac
2148
2149 for ac_prog in gawk mawk nawk awk
2150 do
2151 # Extract the first word of "$ac_prog", so it can be a program name with args.
2152 set dummy $ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_AWK+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test -n "$AWK"; then
2159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_AWK="$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 AWK=$ac_cv_prog_AWK
2179 if test -n "$AWK"; then
2180 { echo "$as_me:$LINENO: result: $AWK" >&5
2181 echo "${ECHO_T}$AWK" >&6; }
2182 else
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188 test -n "$AWK" && break
2189 done
2190
2191 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2192 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2193 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2194 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 cat >conftest.make <<\_ACEOF
2198 SHELL = /bin/sh
2199 all:
2200 @echo '@@@%%%=$(MAKE)=@@@%%%'
2201 _ACEOF
2202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2204 *@@@%%%=?*=@@@%%%*)
2205 eval ac_cv_prog_make_${ac_make}_set=yes;;
2206 *)
2207 eval ac_cv_prog_make_${ac_make}_set=no;;
2208 esac
2209 rm -f conftest.make
2210 fi
2211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2212 { echo "$as_me:$LINENO: result: yes" >&5
2213 echo "${ECHO_T}yes" >&6; }
2214 SET_MAKE=
2215 else
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 SET_MAKE="MAKE=${MAKE-make}"
2219 fi
2220
2221 rm -rf .tst 2>/dev/null
2222 mkdir .tst 2>/dev/null
2223 if test -d .tst; then
2224 am__leading_dot=.
2225 else
2226 am__leading_dot=_
2227 fi
2228 rmdir .tst 2>/dev/null
2229
2230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2232 # is not polluted with repeated "-I."
2233 am__isrc=' -I$(srcdir)'
2234 # test to see if srcdir already configured
2235 if test -f $srcdir/config.status; then
2236 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2237 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2238 { (exit 1); exit 1; }; }
2239 fi
2240 fi
2241
2242 # test whether we have cygpath
2243 if test -z "$CYGPATH_W"; then
2244 if (cygpath --version) >/dev/null 2>/dev/null; then
2245 CYGPATH_W='cygpath -w'
2246 else
2247 CYGPATH_W=echo
2248 fi
2249 fi
2250
2251
2252 # Define the identity of the package.
2253 PACKAGE='x3'
2254 VERSION='1.6'
2255
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE "$PACKAGE"
2259 _ACEOF
2260
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define VERSION "$VERSION"
2264 _ACEOF
2265
2266 # Some tools Automake needs.
2267
2268 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2269
2270
2271 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2272
2273
2274 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2275
2276
2277 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2278
2279
2280 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2281
2282 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2283
2284 # Installed binaries are usually stripped using `strip' when the user
2285 # run `make install-strip'. However `strip' might not be the right
2286 # tool to use in cross-compilation environments, therefore Automake
2287 # will honor the `STRIP' environment variable to overrule this program.
2288 if test "$cross_compiling" != no; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}strip; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_STRIP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$STRIP"; then
2298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316 fi
2317 STRIP=$ac_cv_prog_STRIP
2318 if test -n "$STRIP"; then
2319 { echo "$as_me:$LINENO: result: $STRIP" >&5
2320 echo "${ECHO_T}$STRIP" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 fi
2325
2326
2327 fi
2328 if test -z "$ac_cv_prog_STRIP"; then
2329 ac_ct_STRIP=$STRIP
2330 # Extract the first word of "strip", so it can be a program name with args.
2331 set dummy strip; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_STRIP"; then
2338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_STRIP="strip"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351 done
2352 done
2353 IFS=$as_save_IFS
2354
2355 fi
2356 fi
2357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358 if test -n "$ac_ct_STRIP"; then
2359 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2361 else
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 fi
2365
2366 if test "x$ac_ct_STRIP" = x; then
2367 STRIP=":"
2368 else
2369 case $cross_compiling:$ac_tool_warned in
2370 yes:)
2371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372 whose name does not start with the host triplet. If you think this
2373 configuration is useful to you, please write to autoconf@gnu.org." >&5
2374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377 ac_tool_warned=yes ;;
2378 esac
2379 STRIP=$ac_ct_STRIP
2380 fi
2381 else
2382 STRIP="$ac_cv_prog_STRIP"
2383 fi
2384
2385 fi
2386 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2387
2388 # We need awk for the "check" target. The system "awk" is bad on
2389 # some platforms.
2390 # Always define AMTAR for backward compatibility.
2391
2392 AMTAR=${AMTAR-"${am_missing_run}tar"}
2393
2394 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2395
2396
2397
2398
2399
2400 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2401 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2402 # Check whether --enable-maintainer-mode was given.
2403 if test "${enable_maintainer_mode+set}" = set; then
2404 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2405 else
2406 USE_MAINTAINER_MODE=no
2407 fi
2408
2409 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2410 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2411 if test $USE_MAINTAINER_MODE = yes; then
2412 MAINTAINER_MODE_TRUE=
2413 MAINTAINER_MODE_FALSE='#'
2414 else
2415 MAINTAINER_MODE_TRUE='#'
2416 MAINTAINER_MODE_FALSE=
2417 fi
2418
2419 MAINT=$MAINTAINER_MODE_TRUE
2420
2421
2422
2423 DEPDIR="${am__leading_dot}deps"
2424
2425 ac_config_commands="$ac_config_commands depfiles"
2426
2427
2428 am_make=${MAKE-make}
2429 cat > confinc << 'END'
2430 am__doit:
2431 @echo done
2432 .PHONY: am__doit
2433 END
2434 # If we don't find an include directive, just comment out the code.
2435 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2436 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2437 am__include="#"
2438 am__quote=
2439 _am_result=none
2440 # First try GNU make style include.
2441 echo "include confinc" > confmf
2442 # We grep out `Entering directory' and `Leaving directory'
2443 # messages which can occur if `w' ends up in MAKEFLAGS.
2444 # In particular we don't look at `^make:' because GNU make might
2445 # be invoked under some other name (usually "gmake"), in which
2446 # case it prints its new name instead of `make'.
2447 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2448 am__include=include
2449 am__quote=
2450 _am_result=GNU
2451 fi
2452 # Now try BSD make style include.
2453 if test "$am__include" = "#"; then
2454 echo '.include "confinc"' > confmf
2455 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2456 am__include=.include
2457 am__quote="\""
2458 _am_result=BSD
2459 fi
2460 fi
2461
2462
2463 { echo "$as_me:$LINENO: result: $_am_result" >&5
2464 echo "${ECHO_T}$_am_result" >&6; }
2465 rm -f confinc confmf
2466
2467 # Check whether --enable-dependency-tracking was given.
2468 if test "${enable_dependency_tracking+set}" = set; then
2469 enableval=$enable_dependency_tracking;
2470 fi
2471
2472 if test "x$enable_dependency_tracking" != xno; then
2473 am_depcomp="$ac_aux_dir/depcomp"
2474 AMDEPBACKSLASH='\'
2475 fi
2476 if test "x$enable_dependency_tracking" != xno; then
2477 AMDEP_TRUE=
2478 AMDEP_FALSE='#'
2479 else
2480 AMDEP_TRUE='#'
2481 AMDEP_FALSE=
2482 fi
2483
2484
2485 ac_ext=c
2486 ac_cpp='$CPP $CPPFLAGS'
2487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2522 else
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527
2528 fi
2529 if test -z "$ac_cv_prog_CC"; then
2530 ac_ct_CC=$CC
2531 # Extract the first word of "gcc", so it can be a program name with args.
2532 set dummy gcc; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$ac_ct_CC"; then
2539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_ac_ct_CC="gcc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552 done
2553 done
2554 IFS=$as_save_IFS
2555
2556 fi
2557 fi
2558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2559 if test -n "$ac_ct_CC"; then
2560 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2561 echo "${ECHO_T}$ac_ct_CC" >&6; }
2562 else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2565 fi
2566
2567 if test "x$ac_ct_CC" = x; then
2568 CC=""
2569 else
2570 case $cross_compiling:$ac_tool_warned in
2571 yes:)
2572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2573 whose name does not start with the host triplet. If you think this
2574 configuration is useful to you, please write to autoconf@gnu.org." >&5
2575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2576 whose name does not start with the host triplet. If you think this
2577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2578 ac_tool_warned=yes ;;
2579 esac
2580 CC=$ac_ct_CC
2581 fi
2582 else
2583 CC="$ac_cv_prog_CC"
2584 fi
2585
2586 if test -z "$CC"; then
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}cc; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="${ac_tool_prefix}cc"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2622 fi
2623
2624
2625 fi
2626 fi
2627 if test -z "$CC"; then
2628 # Extract the first word of "cc", so it can be a program name with args.
2629 set dummy cc; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 ac_prog_rejected=no
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2647 ac_prog_rejected=yes
2648 continue
2649 fi
2650 ac_cv_prog_CC="cc"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 if test $ac_prog_rejected = yes; then
2659 # We found a bogon in the path, so make sure we never use it.
2660 set dummy $ac_cv_prog_CC
2661 shift
2662 if test $# != 0; then
2663 # We chose a different compiler from the bogus one.
2664 # However, it has the same basename, so the bogon will be chosen
2665 # first if we set CC to just the basename; use the full file name.
2666 shift
2667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2668 fi
2669 fi
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { echo "$as_me:$LINENO: result: $CC" >&5
2675 echo "${ECHO_T}$CC" >&6; }
2676 else
2677 { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2679 fi
2680
2681
2682 fi
2683 if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
2685 for ac_prog in cl.exe
2686 do
2687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2691 if test "${ac_cv_prog_CC+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { echo "$as_me:$LINENO: result: $CC" >&5
2717 echo "${ECHO_T}$CC" >&6; }
2718 else
2719 { echo "$as_me:$LINENO: result: no" >&5
2720 echo "${ECHO_T}no" >&6; }
2721 fi
2722
2723
2724 test -n "$CC" && break
2725 done
2726 fi
2727 if test -z "$CC"; then
2728 ac_ct_CC=$CC
2729 for ac_prog in cl.exe
2730 do
2731 # Extract the first word of "$ac_prog", so it can be a program name with args.
2732 set dummy $ac_prog; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_CC="$ac_prog"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6; }
2762 else
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2765 fi
2766
2767
2768 test -n "$ac_ct_CC" && break
2769 done
2770
2771 if test "x$ac_ct_CC" = x; then
2772 CC=""
2773 else
2774 case $cross_compiling:$ac_tool_warned in
2775 yes:)
2776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2777 whose name does not start with the host triplet. If you think this
2778 configuration is useful to you, please write to autoconf@gnu.org." >&5
2779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2780 whose name does not start with the host triplet. If you think this
2781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784 CC=$ac_ct_CC
2785 fi
2786 fi
2787
2788 fi
2789
2790
2791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: no acceptable C compiler found in \$PATH
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796
2797 # Provide some information about the compiler.
2798 echo "$as_me:$LINENO: checking for C compiler version" >&5
2799 ac_compiler=`set X $ac_compile; echo $2`
2800 { (ac_try="$ac_compiler --version >&5"
2801 case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804 esac
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compiler --version >&5") 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }
2810 { (ac_try="$ac_compiler -v >&5"
2811 case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compiler -v >&5") 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }
2820 { (ac_try="$ac_compiler -V >&5"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_compiler -V >&5") 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837
2838 int
2839 main ()
2840 {
2841
2842 ;
2843 return 0;
2844 }
2845 _ACEOF
2846 ac_clean_files_save=$ac_clean_files
2847 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2848 # Try to create an executable without -o first, disregard a.out.
2849 # It will help us diagnose broken compilers, and finding out an intuition
2850 # of exeext.
2851 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2852 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2853 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2854 #
2855 # List of possible output files, starting from the most likely.
2856 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2857 # only as a last resort. b.out is created by i960 compilers.
2858 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2859 #
2860 # The IRIX 6 linker writes into existing files which may not be
2861 # executable, retaining their permissions. Remove them first so a
2862 # subsequent execution test works.
2863 ac_rmfiles=
2864 for ac_file in $ac_files
2865 do
2866 case $ac_file in
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2869 esac
2870 done
2871 rm -f $ac_rmfiles
2872
2873 if { (ac_try="$ac_link_default"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_link_default") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; then
2883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2884 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2885 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2886 # so that the user can short-circuit this test for compilers unknown to
2887 # Autoconf.
2888 for ac_file in $ac_files ''
2889 do
2890 test -f "$ac_file" || continue
2891 case $ac_file in
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2893 ;;
2894 [ab].out )
2895 # We found the default executable, but exeext='' is most
2896 # certainly right.
2897 break;;
2898 *.* )
2899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2900 then :; else
2901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 fi
2903 # We set ac_cv_exeext here because the later test for it is not
2904 # safe: cross compilers may not add the suffix if given an `-o'
2905 # argument, so we may need to know it at that point already.
2906 # Even if this section looks crufty: it has the advantage of
2907 # actually working.
2908 break;;
2909 * )
2910 break;;
2911 esac
2912 done
2913 test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
2915 else
2916 ac_file=''
2917 fi
2918
2919 { echo "$as_me:$LINENO: result: $ac_file" >&5
2920 echo "${ECHO_T}$ac_file" >&6; }
2921 if test -z "$ac_file"; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: C compiler cannot create executables
2928 See \`config.log' for more details." >&2;}
2929 { (exit 77); exit 77; }; }
2930 fi
2931
2932 ac_exeext=$ac_cv_exeext
2933
2934 # Check that the compiler produces executables we can run. If not, either
2935 # the compiler is broken, or we cross compile.
2936 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2939 # If not cross compiling, check that we can run a simple program.
2940 if test "$cross_compiling" != yes; then
2941 if { ac_try='./$ac_file'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 cross_compiling=no
2952 else
2953 if test "$cross_compiling" = maybe; then
2954 cross_compiling=yes
2955 else
2956 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot run C compiled programs.
2960 If you meant to cross compile, use \`--host'.
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2963 fi
2964 fi
2965 fi
2966 { echo "$as_me:$LINENO: result: yes" >&5
2967 echo "${ECHO_T}yes" >&6; }
2968
2969 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2970 ac_clean_files=$ac_clean_files_save
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2974 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2975 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2976 echo "${ECHO_T}$cross_compiling" >&6; }
2977
2978 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2979 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2980 if { (ac_try="$ac_link"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_link") 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2993 # `rm'.
2994 for ac_file in conftest.exe conftest conftest.*; do
2995 test -f "$ac_file" || continue
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999 break;;
3000 * ) break;;
3001 esac
3002 done
3003 else
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3007 See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3009 fi
3010
3011 rm -f conftest$ac_cv_exeext
3012 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3013 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3014
3015 rm -f conftest.$ac_ext
3016 EXEEXT=$ac_cv_exeext
3017 ac_exeext=$EXEEXT
3018 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3020 if test "${ac_cv_objext+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029
3030 int
3031 main ()
3032 {
3033
3034 ;
3035 return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.o conftest.obj
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
3049 for ac_file in conftest.o conftest.obj conftest.*; do
3050 test -f "$ac_file" || continue;
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3054 break;;
3055 esac
3056 done
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3064 See \`config.log' for more details." >&2;}
3065 { (exit 1); exit 1; }; }
3066 fi
3067
3068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3071 echo "${ECHO_T}$ac_cv_objext" >&6; }
3072 OBJEXT=$ac_cv_objext
3073 ac_objext=$OBJEXT
3074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085
3086 int
3087 main ()
3088 {
3089 #ifndef __GNUC__
3090 choke me
3091 #endif
3092
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3114 ac_compiler_gnu=yes
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_compiler_gnu=no
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3124
3125 fi
3126 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3128 GCC=`test $ac_compiler_gnu = yes && echo yes`
3129 ac_test_CFLAGS=${CFLAGS+set}
3130 ac_save_CFLAGS=$CFLAGS
3131 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_cc_g+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 ac_save_c_werror_flag=$ac_c_werror_flag
3137 ac_c_werror_flag=yes
3138 ac_cv_prog_cc_g=no
3139 CFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150
3151 ;
3152 return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
3172 ac_cv_prog_cc_g=yes
3173 else
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 CFLAGS=""
3178 cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184
3185 int
3186 main ()
3187 {
3188
3189 ;
3190 return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3210 :
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216 CFLAGS="-g"
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_compile") 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } && {
3246 test -z "$ac_c_werror_flag" ||
3247 test ! -s conftest.err
3248 } && test -s conftest.$ac_objext; then
3249 ac_cv_prog_cc_g=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254
3255 fi
3256
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 fi
3259
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3265 fi
3266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3268 if test "$ac_test_CFLAGS" = set; then
3269 CFLAGS=$ac_save_CFLAGS
3270 elif test $ac_cv_prog_cc_g = yes; then
3271 if test "$GCC" = yes; then
3272 CFLAGS="-g -O2"
3273 else
3274 CFLAGS="-g"
3275 fi
3276 else
3277 if test "$GCC" = yes; then
3278 CFLAGS="-O2"
3279 else
3280 CFLAGS=
3281 fi
3282 fi
3283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3284 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_cc_c89+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 ac_cv_prog_cc_c89=no
3289 ac_save_CC=$CC
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 #include <stdarg.h>
3297 #include <stdio.h>
3298 #include <sys/types.h>
3299 #include <sys/stat.h>
3300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3301 struct buf { int x; };
3302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3303 static char *e (p, i)
3304 char **p;
3305 int i;
3306 {
3307 return p[i];
3308 }
3309 static char *f (char * (*g) (char **, int), char **p, ...)
3310 {
3311 char *s;
3312 va_list v;
3313 va_start (v,p);
3314 s = g (p, va_arg (v,int));
3315 va_end (v);
3316 return s;
3317 }
3318
3319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3320 function prototypes and stuff, but not '\xHH' hex character constants.
3321 These don't provoke an error unfortunately, instead are silently treated
3322 as 'x'. The following induces an error, until -std is added to get
3323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3324 array size at least. It's necessary to write '\x00'==0 to get something
3325 that's true only with -std. */
3326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3327
3328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3329 inside strings and character constants. */
3330 #define FOO(x) 'x'
3331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3332
3333 int test (int i, double x);
3334 struct s1 {int (*f) (int a);};
3335 struct s2 {int (*f) (double a);};
3336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337 int argc;
3338 char **argv;
3339 int
3340 main ()
3341 {
3342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3349 do
3350 CC="$ac_save_CC $ac_arg"
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
3368 ac_cv_prog_cc_c89=$ac_arg
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373
3374 fi
3375
3376 rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 done
3379 rm -f conftest.$ac_ext
3380 CC=$ac_save_CC
3381
3382 fi
3383 # AC_CACHE_VAL
3384 case "x$ac_cv_prog_cc_c89" in
3385 x)
3386 { echo "$as_me:$LINENO: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6; } ;;
3388 xno)
3389 { echo "$as_me:$LINENO: result: unsupported" >&5
3390 echo "${ECHO_T}unsupported" >&6; } ;;
3391 *)
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3395 esac
3396
3397
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403
3404 depcc="$CC" am_compiler_list=
3405
3406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412 # We make a subdir and do the tests there. Otherwise we can end up
3413 # making bogus files that we don't know about and never remove. For
3414 # instance it was reported that on HP-UX the gcc test will end up
3415 # making a dummy file named `D' -- because `-MD' means `put the output
3416 # in D'.
3417 mkdir conftest.dir
3418 # Copy depcomp to subdir because otherwise we won't find it if we're
3419 # using a relative directory.
3420 cp "$am_depcomp" conftest.dir
3421 cd conftest.dir
3422 # We will build objects and dependencies in a subdirectory because
3423 # it helps to detect inapplicable dependency modes. For instance
3424 # both Tru64's cc and ICC support -MD to output dependencies as a
3425 # side effect of compilation, but ICC will put the dependencies in
3426 # the current directory while Tru64 will put them in the object
3427 # directory.
3428 mkdir sub
3429
3430 am_cv_CC_dependencies_compiler_type=none
3431 if test "$am_compiler_list" = ""; then
3432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433 fi
3434 for depmode in $am_compiler_list; do
3435 # Setup a source with many dependencies, because some compilers
3436 # like to wrap large dependency lists on column 80 (with \), and
3437 # we should not choose a depcomp mode which is confused by this.
3438 #
3439 # We need to recreate these files for each test, as the compiler may
3440 # overwrite some of them when testing with obscure command lines.
3441 # This happens at least with the AIX C compiler.
3442 : > sub/conftest.c
3443 for i in 1 2 3 4 5 6; do
3444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446 # Solaris 8's {/usr,}/bin/sh.
3447 touch sub/conftst$i.h
3448 done
3449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
3451 case $depmode in
3452 nosideeffect)
3453 # after this tag, mechanisms are not by side-effect, so they'll
3454 # only be used when explicitly requested
3455 if test "x$enable_dependency_tracking" = xyes; then
3456 continue
3457 else
3458 break
3459 fi
3460 ;;
3461 none) break ;;
3462 esac
3463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464 # mode. It turns out that the SunPro C++ compiler does not properly
3465 # handle `-M -o', and we need to detect this.
3466 if depmode=$depmode \
3467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470 >/dev/null 2>conftest.err &&
3471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3473 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3475 # icc doesn't choke on unknown options, it will just issue warnings
3476 # or remarks (even with -Werror). So we grep stderr for any message
3477 # that says an option was ignored or not supported.
3478 # When given -MP, icc 7.0 and 7.1 complain thusly:
3479 # icc: Command line warning: ignoring option '-M'; no argument required
3480 # The diagnosis changed in icc 8.0:
3481 # icc: Command line remark: option '-MP' not supported
3482 if (grep 'ignoring option' conftest.err ||
3483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3484 am_cv_CC_dependencies_compiler_type=$depmode
3485 break
3486 fi
3487 fi
3488 done
3489
3490 cd ..
3491 rm -rf conftest.dir
3492 else
3493 am_cv_CC_dependencies_compiler_type=none
3494 fi
3495
3496 fi
3497 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3498 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3499 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3500
3501 if
3502 test "x$enable_dependency_tracking" != xno \
3503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3504 am__fastdepCC_TRUE=
3505 am__fastdepCC_FALSE='#'
3506 else
3507 am__fastdepCC_TRUE='#'
3508 am__fastdepCC_FALSE=
3509 fi
3510
3511
3512
3513 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3514 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3515 if test "${ac_cv_type_signal+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <sys/types.h>
3525 #include <signal.h>
3526
3527 int
3528 main ()
3529 {
3530 return *(signal (0, 0)) (0) == 1;
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
3552 ac_cv_type_signal=int
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 ac_cv_type_signal=void
3558 fi
3559
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3563 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3564
3565 cat >>confdefs.h <<_ACEOF
3566 #define RETSIGTYPE $ac_cv_type_signal
3567 _ACEOF
3568
3569
3570 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3572 if test "${ac_cv_c_const+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581
3582 int
3583 main ()
3584 {
3585 /* FIXME: Include the comments suggested by Paul. */
3586 #ifndef __cplusplus
3587 /* Ultrix mips cc rejects this. */
3588 typedef int charset[2];
3589 const charset cs;
3590 /* SunOS 4.1.1 cc rejects this. */
3591 char const *const *pcpcc;
3592 char **ppc;
3593 /* NEC SVR4.0.2 mips cc rejects this. */
3594 struct point {int x, y;};
3595 static struct point const zero = {0,0};
3596 /* AIX XL C 1.02.0.0 rejects this.
3597 It does not let you subtract one const X* pointer from another in
3598 an arm of an if-expression whose if-part is not a constant
3599 expression */
3600 const char *g = "string";
3601 pcpcc = &g + (g ? g-g : 0);
3602 /* HPUX 7.0 cc rejects these. */
3603 ++pcpcc;
3604 ppc = (char**) pcpcc;
3605 pcpcc = (char const *const *) ppc;
3606 { /* SCO 3.2v4 cc rejects this. */
3607 char *t;
3608 char const *s = 0 ? (char *) 0 : (char const *) 0;
3609
3610 *t++ = 0;
3611 if (s) return 0;
3612 }
3613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3614 int x[] = {25, 17};
3615 const int *foo = &x[0];
3616 ++foo;
3617 }
3618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3619 typedef const int *iptr;
3620 iptr p = 0;
3621 ++p;
3622 }
3623 { /* AIX XL C 1.02.0.0 rejects this saying
3624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3625 struct s { int j; const int *ap[3]; };
3626 struct s *b; b->j = 5;
3627 }
3628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3629 const int foo = 10;
3630 if (!foo) return 0;
3631 }
3632 return !cs[0] && !zero.x;
3633 #endif
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_cv_c_const=yes
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ac_cv_c_const=no
3662 fi
3663
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3667 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3668 if test $ac_cv_c_const = no; then
3669
3670 cat >>confdefs.h <<\_ACEOF
3671 #define const
3672 _ACEOF
3673
3674 fi
3675
3676 { echo "$as_me:$LINENO: checking for inline" >&5
3677 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3678 if test "${ac_cv_c_inline+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 ac_cv_c_inline=no
3682 for ac_kw in inline __inline__ __inline; do
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 #ifndef __cplusplus
3690 typedef int foo_t;
3691 static $ac_kw foo_t static_foo () {return 0; }
3692 $ac_kw foo_t foo () {return 0; }
3693 #endif
3694
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_c_inline=$ac_kw
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 test "$ac_cv_c_inline" != no && break
3723 done
3724
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3727 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3728
3729
3730 case $ac_cv_c_inline in
3731 inline | yes) ;;
3732 *)
3733 case $ac_cv_c_inline in
3734 no) ac_val=;;
3735 *) ac_val=$ac_cv_c_inline;;
3736 esac
3737 cat >>confdefs.h <<_ACEOF
3738 #ifndef __cplusplus
3739 #define inline $ac_val
3740 #endif
3741 _ACEOF
3742 ;;
3743 esac
3744
3745
3746 for ac_prog in gawk mawk nawk awk
3747 do
3748 # Extract the first word of "$ac_prog", so it can be a program name with args.
3749 set dummy $ac_prog; ac_word=$2
3750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3752 if test "${ac_cv_prog_AWK+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 if test -n "$AWK"; then
3756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_AWK="$ac_prog"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769 done
3770 done
3771 IFS=$as_save_IFS
3772
3773 fi
3774 fi
3775 AWK=$ac_cv_prog_AWK
3776 if test -n "$AWK"; then
3777 { echo "$as_me:$LINENO: result: $AWK" >&5
3778 echo "${ECHO_T}$AWK" >&6; }
3779 else
3780 { echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6; }
3782 fi
3783
3784
3785 test -n "$AWK" && break
3786 done
3787
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { echo "$as_me:$LINENO: result: $CC" >&5
3824 echo "${ECHO_T}$CC" >&6; }
3825 else
3826 { echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6; }
3828 fi
3829
3830
3831 fi
3832 if test -z "$ac_cv_prog_CC"; then
3833 ac_ct_CC=$CC
3834 # Extract the first word of "gcc", so it can be a program name with args.
3835 set dummy gcc; ac_word=$2
3836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 if test -n "$ac_ct_CC"; then
3842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_ac_ct_CC="gcc"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862 if test -n "$ac_ct_CC"; then
3863 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3864 echo "${ECHO_T}$ac_ct_CC" >&6; }
3865 else
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3868 fi
3869
3870 if test "x$ac_ct_CC" = x; then
3871 CC=""
3872 else
3873 case $cross_compiling:$ac_tool_warned in
3874 yes:)
3875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3876 whose name does not start with the host triplet. If you think this
3877 configuration is useful to you, please write to autoconf@gnu.org." >&5
3878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3879 whose name does not start with the host triplet. If you think this
3880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3881 ac_tool_warned=yes ;;
3882 esac
3883 CC=$ac_ct_CC
3884 fi
3885 else
3886 CC="$ac_cv_prog_CC"
3887 fi
3888
3889 if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}cc; ac_word=$2
3893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3895 if test "${ac_cv_prog_CC+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_CC="${ac_tool_prefix}cc"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 CC=$ac_cv_prog_CC
3919 if test -n "$CC"; then
3920 { echo "$as_me:$LINENO: result: $CC" >&5
3921 echo "${ECHO_T}$CC" >&6; }
3922 else
3923 { echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6; }
3925 fi
3926
3927
3928 fi
3929 fi
3930 if test -z "$CC"; then
3931 # Extract the first word of "cc", so it can be a program name with args.
3932 set dummy cc; ac_word=$2
3933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3935 if test "${ac_cv_prog_CC+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940 else
3941 ac_prog_rejected=no
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3950 ac_prog_rejected=yes
3951 continue
3952 fi
3953 ac_cv_prog_CC="cc"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957 done
3958 done
3959 IFS=$as_save_IFS
3960
3961 if test $ac_prog_rejected = yes; then
3962 # We found a bogon in the path, so make sure we never use it.
3963 set dummy $ac_cv_prog_CC
3964 shift
3965 if test $# != 0; then
3966 # We chose a different compiler from the bogus one.
3967 # However, it has the same basename, so the bogon will be chosen
3968 # first if we set CC to just the basename; use the full file name.
3969 shift
3970 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3971 fi
3972 fi
3973 fi
3974 fi
3975 CC=$ac_cv_prog_CC
3976 if test -n "$CC"; then
3977 { echo "$as_me:$LINENO: result: $CC" >&5
3978 echo "${ECHO_T}$CC" >&6; }
3979 else
3980 { echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6; }
3982 fi
3983
3984
3985 fi
3986 if test -z "$CC"; then
3987 if test -n "$ac_tool_prefix"; then
3988 for ac_prog in cl.exe
3989 do
3990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -n "$CC"; then
3998 ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019 { echo "$as_me:$LINENO: result: $CC" >&5
4020 echo "${ECHO_T}$CC" >&6; }
4021 else
4022 { echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6; }
4024 fi
4025
4026
4027 test -n "$CC" && break
4028 done
4029 fi
4030 if test -z "$CC"; then
4031 ac_ct_CC=$CC
4032 for ac_prog in cl.exe
4033 do
4034 # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_ac_ct_CC="$ac_prog"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055 done
4056 done
4057 IFS=$as_save_IFS
4058
4059 fi
4060 fi
4061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062 if test -n "$ac_ct_CC"; then
4063 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4064 echo "${ECHO_T}$ac_ct_CC" >&6; }
4065 else
4066 { echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6; }
4068 fi
4069
4070
4071 test -n "$ac_ct_CC" && break
4072 done
4073
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078 yes:)
4079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4080 whose name does not start with the host triplet. If you think this
4081 configuration is useful to you, please write to autoconf@gnu.org." >&5
4082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4083 whose name does not start with the host triplet. If you think this
4084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4085 ac_tool_warned=yes ;;
4086 esac
4087 CC=$ac_ct_CC
4088 fi
4089 fi
4090
4091 fi
4092
4093
4094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4095 See \`config.log' for more details." >&5
4096 echo "$as_me: error: no acceptable C compiler found in \$PATH
4097 See \`config.log' for more details." >&2;}
4098 { (exit 1); exit 1; }; }
4099
4100 # Provide some information about the compiler.
4101 echo "$as_me:$LINENO: checking for C compiler version" >&5
4102 ac_compiler=`set X $ac_compile; echo $2`
4103 { (ac_try="$ac_compiler --version >&5"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compiler --version >&5") 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }
4113 { (ac_try="$ac_compiler -v >&5"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compiler -v >&5") 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }
4123 { (ac_try="$ac_compiler -V >&5"
4124 case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_compiler -V >&5") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }
4133
4134 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4135 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4136 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145
4146 int
4147 main ()
4148 {
4149 #ifndef __GNUC__
4150 choke me
4151 #endif
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && {
4171 test -z "$ac_c_werror_flag" ||
4172 test ! -s conftest.err
4173 } && test -s conftest.$ac_objext; then
4174 ac_compiler_gnu=yes
4175 else
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ac_compiler_gnu=no
4180 fi
4181
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4184
4185 fi
4186 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4187 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4188 GCC=`test $ac_compiler_gnu = yes && echo yes`
4189 ac_test_CFLAGS=${CFLAGS+set}
4190 ac_save_CFLAGS=$CFLAGS
4191 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4192 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4193 if test "${ac_cv_prog_cc_g+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 ac_save_c_werror_flag=$ac_c_werror_flag
4197 ac_c_werror_flag=yes
4198 ac_cv_prog_cc_g=no
4199 CFLAGS="-g"
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206
4207 int
4208 main ()
4209 {
4210
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (ac_try="$ac_compile"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_compile") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && {
4229 test -z "$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 } && test -s conftest.$ac_objext; then
4232 ac_cv_prog_cc_g=yes
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 CFLAGS=""
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244
4245 int
4246 main ()
4247 {
4248
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4255 case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_compile") 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && {
4267 test -z "$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 } && test -s conftest.$ac_objext; then
4270 :
4271 else
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ac_c_werror_flag=$ac_save_c_werror_flag
4276 CFLAGS="-g"
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283
4284 int
4285 main ()
4286 {
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest.$ac_objext; then
4309 ac_cv_prog_cc_g=yes
4310 else
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314
4315 fi
4316
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 fi
4319
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_c_werror_flag=$ac_save_c_werror_flag
4325 fi
4326 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4327 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4328 if test "$ac_test_CFLAGS" = set; then
4329 CFLAGS=$ac_save_CFLAGS
4330 elif test $ac_cv_prog_cc_g = yes; then
4331 if test "$GCC" = yes; then
4332 CFLAGS="-g -O2"
4333 else
4334 CFLAGS="-g"
4335 fi
4336 else
4337 if test "$GCC" = yes; then
4338 CFLAGS="-O2"
4339 else
4340 CFLAGS=
4341 fi
4342 fi
4343 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4344 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4345 if test "${ac_cv_prog_cc_c89+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 ac_cv_prog_cc_c89=no
4349 ac_save_CC=$CC
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h. */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #include <stdarg.h>
4357 #include <stdio.h>
4358 #include <sys/types.h>
4359 #include <sys/stat.h>
4360 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4361 struct buf { int x; };
4362 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4363 static char *e (p, i)
4364 char **p;
4365 int i;
4366 {
4367 return p[i];
4368 }
4369 static char *f (char * (*g) (char **, int), char **p, ...)
4370 {
4371 char *s;
4372 va_list v;
4373 va_start (v,p);
4374 s = g (p, va_arg (v,int));
4375 va_end (v);
4376 return s;
4377 }
4378
4379 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4380 function prototypes and stuff, but not '\xHH' hex character constants.
4381 These don't provoke an error unfortunately, instead are silently treated
4382 as 'x'. The following induces an error, until -std is added to get
4383 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4384 array size at least. It's necessary to write '\x00'==0 to get something
4385 that's true only with -std. */
4386 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4387
4388 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4389 inside strings and character constants. */
4390 #define FOO(x) 'x'
4391 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4392
4393 int test (int i, double x);
4394 struct s1 {int (*f) (int a);};
4395 struct s2 {int (*f) (double a);};
4396 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4397 int argc;
4398 char **argv;
4399 int
4400 main ()
4401 {
4402 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4408 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4409 do
4410 CC="$ac_save_CC $ac_arg"
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 ac_cv_prog_cc_c89=$ac_arg
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext
4437 test "x$ac_cv_prog_cc_c89" != "xno" && break
4438 done
4439 rm -f conftest.$ac_ext
4440 CC=$ac_save_CC
4441
4442 fi
4443 # AC_CACHE_VAL
4444 case "x$ac_cv_prog_cc_c89" in
4445 x)
4446 { echo "$as_me:$LINENO: result: none needed" >&5
4447 echo "${ECHO_T}none needed" >&6; } ;;
4448 xno)
4449 { echo "$as_me:$LINENO: result: unsupported" >&5
4450 echo "${ECHO_T}unsupported" >&6; } ;;
4451 *)
4452 CC="$CC $ac_cv_prog_cc_c89"
4453 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4454 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4455 esac
4456
4457
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464 depcc="$CC" am_compiler_list=
4465
4466 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472 # We make a subdir and do the tests there. Otherwise we can end up
4473 # making bogus files that we don't know about and never remove. For
4474 # instance it was reported that on HP-UX the gcc test will end up
4475 # making a dummy file named `D' -- because `-MD' means `put the output
4476 # in D'.
4477 mkdir conftest.dir
4478 # Copy depcomp to subdir because otherwise we won't find it if we're
4479 # using a relative directory.
4480 cp "$am_depcomp" conftest.dir
4481 cd conftest.dir
4482 # We will build objects and dependencies in a subdirectory because
4483 # it helps to detect inapplicable dependency modes. For instance
4484 # both Tru64's cc and ICC support -MD to output dependencies as a
4485 # side effect of compilation, but ICC will put the dependencies in
4486 # the current directory while Tru64 will put them in the object
4487 # directory.
4488 mkdir sub
4489
4490 am_cv_CC_dependencies_compiler_type=none
4491 if test "$am_compiler_list" = ""; then
4492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4493 fi
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4498 #
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4506 # Solaris 8's {/usr,}/bin/sh.
4507 touch sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
4511 case $depmode in
4512 nosideeffect)
4513 # after this tag, mechanisms are not by side-effect, so they'll
4514 # only be used when explicitly requested
4515 if test "x$enable_dependency_tracking" = xyes; then
4516 continue
4517 else
4518 break
4519 fi
4520 ;;
4521 none) break ;;
4522 esac
4523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4524 # mode. It turns out that the SunPro C++ compiler does not properly
4525 # handle `-M -o', and we need to detect this.
4526 if depmode=$depmode \
4527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4530 >/dev/null 2>conftest.err &&
4531 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4534 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4535 # icc doesn't choke on unknown options, it will just issue warnings
4536 # or remarks (even with -Werror). So we grep stderr for any message
4537 # that says an option was ignored or not supported.
4538 # When given -MP, icc 7.0 and 7.1 complain thusly:
4539 # icc: Command line warning: ignoring option '-M'; no argument required
4540 # The diagnosis changed in icc 8.0:
4541 # icc: Command line remark: option '-MP' not supported
4542 if (grep 'ignoring option' conftest.err ||
4543 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4544 am_cv_CC_dependencies_compiler_type=$depmode
4545 break
4546 fi
4547 fi
4548 done
4549
4550 cd ..
4551 rm -rf conftest.dir
4552 else
4553 am_cv_CC_dependencies_compiler_type=none
4554 fi
4555
4556 fi
4557 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4558 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4559 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560
4561 if
4562 test "x$enable_dependency_tracking" != xno \
4563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564 am__fastdepCC_TRUE=
4565 am__fastdepCC_FALSE='#'
4566 else
4567 am__fastdepCC_TRUE='#'
4568 am__fastdepCC_FALSE=
4569 fi
4570
4571
4572 # Find a good install program. We prefer a C program (faster),
4573 # so one script is as good as another. But avoid the broken or
4574 # incompatible versions:
4575 # SysV /etc/install, /usr/sbin/install
4576 # SunOS /usr/etc/install
4577 # IRIX /sbin/install
4578 # AIX /bin/install
4579 # AmigaOS /C/install, which installs bootblocks on floppy discs
4580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4583 # OS/2's system install, which has a completely different semantic
4584 # ./install, which can be erroneously created by make from ./install.sh.
4585 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4586 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4587 if test -z "$INSTALL"; then
4588 if test "${ac_cv_path_install+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 # Account for people who put trailing slashes in PATH elements.
4597 case $as_dir/ in
4598 ./ | .// | /cC/* | \
4599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4600 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4601 /usr/ucb/* ) ;;
4602 *)
4603 # OSF1 and SCO ODT 3.0 have their own names for install.
4604 # Don't use installbsd from OSF since it installs stuff as root
4605 # by default.
4606 for ac_prog in ginstall scoinst install; do
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4609 if test $ac_prog = install &&
4610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4611 # AIX install. It has an incompatible calling convention.
4612 :
4613 elif test $ac_prog = install &&
4614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4615 # program-specific install script used by HP pwplus--don't use.
4616 :
4617 else
4618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4619 break 3
4620 fi
4621 fi
4622 done
4623 done
4624 ;;
4625 esac
4626 done
4627 IFS=$as_save_IFS
4628
4629
4630 fi
4631 if test "${ac_cv_path_install+set}" = set; then
4632 INSTALL=$ac_cv_path_install
4633 else
4634 # As a last resort, use the slow shell script. Don't cache a
4635 # value for INSTALL within a source directory, because that will
4636 # break other packages using the cache if that directory is
4637 # removed, or if the value is a relative name.
4638 INSTALL=$ac_install_sh
4639 fi
4640 fi
4641 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4642 echo "${ECHO_T}$INSTALL" >&6; }
4643
4644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4645 # It thinks the first close brace ends the variable substitution.
4646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4647
4648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4649
4650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4651
4652
4653 # Extract the first word of "cp", so it can be a program name with args.
4654 set dummy cp; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_path_CP+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 case $CP in
4661 [\\/]* | ?:[\\/]*)
4662 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4663 ;;
4664 *)
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 ;;
4681 esac
4682 fi
4683 CP=$ac_cv_path_CP
4684 if test -n "$CP"; then
4685 { echo "$as_me:$LINENO: result: $CP" >&5
4686 echo "${ECHO_T}$CP" >&6; }
4687 else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_prog_RANLIB+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 if test -n "$RANLIB"; then
4703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 RANLIB=$ac_cv_prog_RANLIB
4723 if test -n "$RANLIB"; then
4724 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4725 echo "${ECHO_T}$RANLIB" >&6; }
4726 else
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$ac_cv_prog_RANLIB"; then
4734 ac_ct_RANLIB=$RANLIB
4735 # Extract the first word of "ranlib", so it can be a program name with args.
4736 set dummy ranlib; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 if test -n "$ac_ct_RANLIB"; then
4743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_ac_ct_RANLIB="ranlib"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4763 if test -n "$ac_ct_RANLIB"; then
4764 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4765 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4766 else
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769 fi
4770
4771 if test "x$ac_ct_RANLIB" = x; then
4772 RANLIB=":"
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4777 whose name does not start with the host triplet. If you think this
4778 configuration is useful to you, please write to autoconf@gnu.org." >&5
4779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4780 whose name does not start with the host triplet. If you think this
4781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 RANLIB=$ac_ct_RANLIB
4785 fi
4786 else
4787 RANLIB="$ac_cv_prog_RANLIB"
4788 fi
4789
4790
4791 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4792 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4793 LN_S=$as_ln_s
4794 if test "$LN_S" = "ln -s"; then
4795 { echo "$as_me:$LINENO: result: yes" >&5
4796 echo "${ECHO_T}yes" >&6; }
4797 else
4798 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4799 echo "${ECHO_T}no, using $LN_S" >&6; }
4800 fi
4801
4802 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4803 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4804 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4805 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.make <<\_ACEOF
4809 SHELL = /bin/sh
4810 all:
4811 @echo '@@@%%%=$(MAKE)=@@@%%%'
4812 _ACEOF
4813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4814 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4815 *@@@%%%=?*=@@@%%%*)
4816 eval ac_cv_prog_make_${ac_make}_set=yes;;
4817 *)
4818 eval ac_cv_prog_make_${ac_make}_set=no;;
4819 esac
4820 rm -f conftest.make
4821 fi
4822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4823 { echo "$as_me:$LINENO: result: yes" >&5
4824 echo "${ECHO_T}yes" >&6; }
4825 SET_MAKE=
4826 else
4827 { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4829 SET_MAKE="MAKE=${MAKE-make}"
4830 fi
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4838 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4839 # On Suns, sometimes $CPP names a directory.
4840 if test -n "$CPP" && test -d "$CPP"; then
4841 CPP=
4842 fi
4843 if test -z "$CPP"; then
4844 if test "${ac_cv_prog_CPP+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 # Double quotes because CPP needs to be expanded
4848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4849 do
4850 ac_preproc_ok=false
4851 for ac_c_preproc_warn_flag in '' yes
4852 do
4853 # Use a header file that comes with gcc, so configuring glibc
4854 # with a fresh cross-compiler works.
4855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 # <limits.h> exists even on freestanding compilers.
4857 # On the NeXT, cc -E runs the code through the compiler's parser,
4858 # not just through cpp. "Syntax error" is here to catch this case.
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #ifdef __STDC__
4866 # include <limits.h>
4867 #else
4868 # include <assert.h>
4869 #endif
4870 Syntax error
4871 _ACEOF
4872 if { (ac_try="$ac_cpp conftest.$ac_ext"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev/null && {
4885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 }; then
4888 :
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 # Broken: fails on valid input.
4894 continue
4895 fi
4896
4897 rm -f conftest.err conftest.$ac_ext
4898
4899 # OK, works on sane cases. Now check whether nonexistent headers
4900 # can be detected and how.
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 #include <ac_nonexistent.h>
4908 _ACEOF
4909 if { (ac_try="$ac_cpp conftest.$ac_ext"
4910 case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null && {
4922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 }; then
4925 # Broken: success on invalid input.
4926 continue
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4930
4931 # Passes both tests.
4932 ac_preproc_ok=:
4933 break
4934 fi
4935
4936 rm -f conftest.err conftest.$ac_ext
4937
4938 done
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.err conftest.$ac_ext
4941 if $ac_preproc_ok; then
4942 break
4943 fi
4944
4945 done
4946 ac_cv_prog_CPP=$CPP
4947
4948 fi
4949 CPP=$ac_cv_prog_CPP
4950 else
4951 ac_cv_prog_CPP=$CPP
4952 fi
4953 { echo "$as_me:$LINENO: result: $CPP" >&5
4954 echo "${ECHO_T}$CPP" >&6; }
4955 ac_preproc_ok=false
4956 for ac_c_preproc_warn_flag in '' yes
4957 do
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
4962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #ifdef __STDC__
4971 # include <limits.h>
4972 #else
4973 # include <assert.h>
4974 #endif
4975 Syntax error
4976 _ACEOF
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } >/dev/null && {
4990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 }; then
4993 :
4994 else
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 # Broken: fails on valid input.
4999 continue
5000 fi
5001
5002 rm -f conftest.err conftest.$ac_ext
5003
5004 # OK, works on sane cases. Now check whether nonexistent headers
5005 # can be detected and how.
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if { (ac_try="$ac_cpp conftest.$ac_ext"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } >/dev/null && {
5027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5028 test ! -s conftest.err
5029 }; then
5030 # Broken: success on invalid input.
5031 continue
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 # Passes both tests.
5037 ac_preproc_ok=:
5038 break
5039 fi
5040
5041 rm -f conftest.err conftest.$ac_ext
5042
5043 done
5044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5045 rm -f conftest.err conftest.$ac_ext
5046 if $ac_preproc_ok; then
5047 :
5048 else
5049 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5050 See \`config.log' for more details." >&5
5051 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5052 See \`config.log' for more details." >&2;}
5053 { (exit 1); exit 1; }; }
5054 fi
5055
5056 ac_ext=c
5057 ac_cpp='$CPP $CPPFLAGS'
5058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061
5062
5063 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5064 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5065 if test "${ac_cv_path_GREP+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 # Extract the first word of "grep ggrep" to use in msg output
5069 if test -z "$GREP"; then
5070 set dummy grep ggrep; ac_prog_name=$2
5071 if test "${ac_cv_path_GREP+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 ac_path_GREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in grep ggrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5084 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5085 # Check for GNU ac_path_GREP and select it if it is found.
5086 # Check for GNU $ac_path_GREP
5087 case `"$ac_path_GREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5090 *)
5091 ac_count=0
5092 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5093 while :
5094 do
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 echo 'GREP' >> "conftest.nl"
5099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 ac_count=`expr $ac_count + 1`
5102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_GREP="$ac_path_GREP"
5105 ac_path_GREP_max=$ac_count
5106 fi
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5112
5113
5114 $ac_path_GREP_found && break 3
5115 done
5116 done
5117
5118 done
5119 IFS=$as_save_IFS
5120
5121
5122 fi
5123
5124 GREP="$ac_cv_path_GREP"
5125 if test -z "$GREP"; then
5126 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5127 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5128 { (exit 1); exit 1; }; }
5129 fi
5130
5131 else
5132 ac_cv_path_GREP=$GREP
5133 fi
5134
5135
5136 fi
5137 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5138 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5139 GREP="$ac_cv_path_GREP"
5140
5141
5142 { echo "$as_me:$LINENO: checking for egrep" >&5
5143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5144 if test "${ac_cv_path_EGREP+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5148 then ac_cv_path_EGREP="$GREP -E"
5149 else
5150 # Extract the first word of "egrep" to use in msg output
5151 if test -z "$EGREP"; then
5152 set dummy egrep; ac_prog_name=$2
5153 if test "${ac_cv_path_EGREP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 ac_path_EGREP_found=false
5157 # Loop through the user's path and test for each of PROGNAME-LIST
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_prog in egrep; do
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5166 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5167 # Check for GNU ac_path_EGREP and select it if it is found.
5168 # Check for GNU $ac_path_EGREP
5169 case `"$ac_path_EGREP" --version 2>&1` in
5170 *GNU*)
5171 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5172 *)
5173 ac_count=0
5174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5175 while :
5176 do
5177 cat "conftest.in" "conftest.in" >"conftest.tmp"
5178 mv "conftest.tmp" "conftest.in"
5179 cp "conftest.in" "conftest.nl"
5180 echo 'EGREP' >> "conftest.nl"
5181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5183 ac_count=`expr $ac_count + 1`
5184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5185 # Best one so far, save it but keep looking for a better one
5186 ac_cv_path_EGREP="$ac_path_EGREP"
5187 ac_path_EGREP_max=$ac_count
5188 fi
5189 # 10*(2^10) chars as input seems more than enough
5190 test $ac_count -gt 10 && break
5191 done
5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5193 esac
5194
5195
5196 $ac_path_EGREP_found && break 3
5197 done
5198 done
5199
5200 done
5201 IFS=$as_save_IFS
5202
5203
5204 fi
5205
5206 EGREP="$ac_cv_path_EGREP"
5207 if test -z "$EGREP"; then
5208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5210 { (exit 1); exit 1; }; }
5211 fi
5212
5213 else
5214 ac_cv_path_EGREP=$EGREP
5215 fi
5216
5217
5218 fi
5219 fi
5220 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5221 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5223
5224
5225 if test $ac_cv_c_compiler_gnu = yes; then
5226 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5227 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5228 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 ac_pattern="Autoconf.*'x'"
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <sgtty.h>
5239 Autoconf TIOCGETP
5240 _ACEOF
5241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5243 ac_cv_prog_gcc_traditional=yes
5244 else
5245 ac_cv_prog_gcc_traditional=no
5246 fi
5247 rm -f conftest*
5248
5249
5250 if test $ac_cv_prog_gcc_traditional = no; then
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #include <termio.h>
5258 Autoconf TCGETA
5259 _ACEOF
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5262 ac_cv_prog_gcc_traditional=yes
5263 fi
5264 rm -f conftest*
5265
5266 fi
5267 fi
5268 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5269 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5270 if test $ac_cv_prog_gcc_traditional = yes; then
5271 CC="$CC -traditional"
5272 fi
5273 fi
5274
5275 # Extract the first word of "gmake", so it can be a program name with args.
5276 set dummy gmake; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_prog_MAKER+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 if test -n "$MAKER"; then
5283 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_MAKER="gmake"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5301 fi
5302 fi
5303 MAKER=$ac_cv_prog_MAKER
5304 if test -n "$MAKER"; then
5305 { echo "$as_me:$LINENO: result: $MAKER" >&5
5306 echo "${ECHO_T}$MAKER" >&6; }
5307 else
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5310 fi
5311
5312
5313
5314 case $target in
5315 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5316 ANSI_SRC=""
5317 ;;
5318 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5319 ANSI_SRC=""
5320 ;;
5321 *-solaris*)
5322 EXTRA_DEFINE="-D__SOLARIS__"
5323 ANSI_SRC="-fno-builtin"
5324 ;;
5325 *-cygwin)
5326 ANSI_SRC="-fno-builtin"
5327 ;;
5328 *-linux*)
5329 EXTRA_DEFINE="-D_GNU_SOURCE"
5330 ANSI_SRC=""
5331 ;;
5332 *)
5333 ANSI_SRC=""
5334 ;;
5335 esac
5336 CFLAGS="$CFLAGS $EXTRA_DEFINE"
5337
5338
5339 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5340 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5341 if test "${ac_cv_lib_socket_socket+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 ac_check_lib_save_LIBS=$LIBS
5345 LIBS="-lsocket $LIBS"
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
5353 /* Override any GCC internal prototype to avoid an error.
5354 Use char because int might match the return type of a GCC
5355 builtin and then its argument prototype would still apply. */
5356 #ifdef __cplusplus
5357 extern "C"
5358 #endif
5359 char socket ();
5360 int
5361 main ()
5362 {
5363 return socket ();
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && {
5382 test -z "$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 } && test -s conftest$ac_exeext &&
5385 $as_test_x conftest$ac_exeext; then
5386 ac_cv_lib_socket_socket=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_cv_lib_socket_socket=no
5392 fi
5393
5394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5395 conftest$ac_exeext conftest.$ac_ext
5396 LIBS=$ac_check_lib_save_LIBS
5397 fi
5398 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5399 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5400 if test $ac_cv_lib_socket_socket = yes; then
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_LIBSOCKET 1
5403 _ACEOF
5404
5405 LIBS="-lsocket $LIBS"
5406
5407 fi
5408
5409
5410 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5411 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5412 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 ac_check_lib_save_LIBS=$LIBS
5416 LIBS="-lnsl $LIBS"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423
5424 /* Override any GCC internal prototype to avoid an error.
5425 Use char because int might match the return type of a GCC
5426 builtin and then its argument prototype would still apply. */
5427 #ifdef __cplusplus
5428 extern "C"
5429 #endif
5430 char gethostbyname ();
5431 int
5432 main ()
5433 {
5434 return gethostbyname ();
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 rm -f conftest.$ac_objext conftest$ac_exeext
5440 if { (ac_try="$ac_link"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_link") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest$ac_exeext &&
5456 $as_test_x conftest$ac_exeext; then
5457 ac_cv_lib_nsl_gethostbyname=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 ac_cv_lib_nsl_gethostbyname=no
5463 fi
5464
5465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5466 conftest$ac_exeext conftest.$ac_ext
5467 LIBS=$ac_check_lib_save_LIBS
5468 fi
5469 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define HAVE_LIBNSL 1
5474 _ACEOF
5475
5476 LIBS="-lnsl $LIBS"
5477
5478 fi
5479
5480
5481 { echo "$as_me:$LINENO: checking for main in -lm" >&5
5482 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5483 if test "${ac_cv_lib_m_main+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 ac_check_lib_save_LIBS=$LIBS
5487 LIBS="-lm $LIBS"
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494
5495
5496 int
5497 main ()
5498 {
5499 return main ();
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 rm -f conftest.$ac_objext conftest$ac_exeext
5505 if { (ac_try="$ac_link"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_link") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest$ac_exeext &&
5521 $as_test_x conftest$ac_exeext; then
5522 ac_cv_lib_m_main=yes
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_cv_lib_m_main=no
5528 fi
5529
5530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5531 conftest$ac_exeext conftest.$ac_ext
5532 LIBS=$ac_check_lib_save_LIBS
5533 fi
5534 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5535 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5536 if test $ac_cv_lib_m_main = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538 #define HAVE_LIBM 1
5539 _ACEOF
5540
5541 LIBS="-lm $LIBS"
5542
5543 fi
5544
5545
5546 { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5547 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
5548 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-lGeoIP $LIBS"
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559
5560 /* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 char GeoIP_open ();
5567 int
5568 main ()
5569 {
5570 return GeoIP_open ();
5571 ;
5572 return 0;
5573 }
5574 _ACEOF
5575 rm -f conftest.$ac_objext conftest$ac_exeext
5576 if { (ac_try="$ac_link"
5577 case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_link") 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest$ac_exeext &&
5592 $as_test_x conftest$ac_exeext; then
5593 ac_cv_lib_GeoIP_GeoIP_open=yes
5594 else
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 ac_cv_lib_GeoIP_GeoIP_open=no
5599 fi
5600
5601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5602 conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_check_lib_save_LIBS
5604 fi
5605 { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5606 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
5607 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5608 cat >>confdefs.h <<_ACEOF
5609 #define HAVE_LIBGEOIP 1
5610 _ACEOF
5611
5612 LIBS="-lGeoIP $LIBS"
5613
5614 fi
5615
5616
5617 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5619 if test "${ac_cv_header_stdc+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <stdlib.h>
5629 #include <stdarg.h>
5630 #include <string.h>
5631 #include <float.h>
5632
5633 int
5634 main ()
5635 {
5636
5637 ;
5638 return 0;
5639 }
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5643 case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compile") 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } && {
5655 test -z "$ac_c_werror_flag" ||
5656 test ! -s conftest.err
5657 } && test -s conftest.$ac_objext; then
5658 ac_cv_header_stdc=yes
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 ac_cv_header_stdc=no
5664 fi
5665
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667
5668 if test $ac_cv_header_stdc = yes; then
5669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <string.h>
5677
5678 _ACEOF
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "memchr" >/dev/null 2>&1; then
5681 :
5682 else
5683 ac_cv_header_stdc=no
5684 fi
5685 rm -f conftest*
5686
5687 fi
5688
5689 if test $ac_cv_header_stdc = yes; then
5690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <stdlib.h>
5698
5699 _ACEOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "free" >/dev/null 2>&1; then
5702 :
5703 else
5704 ac_cv_header_stdc=no
5705 fi
5706 rm -f conftest*
5707
5708 fi
5709
5710 if test $ac_cv_header_stdc = yes; then
5711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5712 if test "$cross_compiling" = yes; then
5713 :
5714 else
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <ctype.h>
5722 #include <stdlib.h>
5723 #if ((' ' & 0x0FF) == 0x020)
5724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5726 #else
5727 # define ISLOWER(c) \
5728 (('a' <= (c) && (c) <= 'i') \
5729 || ('j' <= (c) && (c) <= 'r') \
5730 || ('s' <= (c) && (c) <= 'z'))
5731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5732 #endif
5733
5734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5735 int
5736 main ()
5737 {
5738 int i;
5739 for (i = 0; i < 256; i++)
5740 if (XOR (islower (i), ISLOWER (i))
5741 || toupper (i) != TOUPPER (i))
5742 return 2;
5743 return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest$ac_exeext
5747 if { (ac_try="$ac_link"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_link") 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5757 { (case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_try") 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 :
5767 else
5768 echo "$as_me: program exited with status $ac_status" >&5
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 ( exit $ac_status )
5773 ac_cv_header_stdc=no
5774 fi
5775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5776 fi
5777
5778
5779 fi
5780 fi
5781 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5782 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5783 if test $ac_cv_header_stdc = yes; then
5784
5785 cat >>confdefs.h <<\_ACEOF
5786 #define STDC_HEADERS 1
5787 _ACEOF
5788
5789 fi
5790
5791
5792 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5793 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5794 if test "${ac_cv_header_time+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <sys/types.h>
5804 #include <sys/time.h>
5805 #include <time.h>
5806
5807 int
5808 main ()
5809 {
5810 if ((struct tm *) 0)
5811 return 0;
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5833 ac_cv_header_time=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_header_time=no
5839 fi
5840
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 fi
5843 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5844 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5845 if test $ac_cv_header_time = yes; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define TIME_WITH_SYS_TIME 1
5849 _ACEOF
5850
5851 fi
5852
5853 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5854 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5855 if test "${ac_cv_struct_tm+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <sys/types.h>
5865 #include <time.h>
5866
5867 int
5868 main ()
5869 {
5870 struct tm tm;
5871 int *p = &tm.tm_sec;
5872 return !p;
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest.$ac_objext; then
5894 ac_cv_struct_tm=time.h
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_cv_struct_tm=sys/time.h
5900 fi
5901
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 fi
5904 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5905 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5906 if test $ac_cv_struct_tm = sys/time.h; then
5907
5908 cat >>confdefs.h <<\_ACEOF
5909 #define TM_IN_SYS_TIME 1
5910 _ACEOF
5911
5912 fi
5913
5914
5915 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5926 inttypes.h stdint.h unistd.h
5927 do
5928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941
5942 #include <$ac_header>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
5961 eval "$as_ac_Header=yes"
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 eval "$as_ac_Header=no"
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972 { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5975 cat >>confdefs.h <<_ACEOF
5976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977 _ACEOF
5978
5979 fi
5980
5981 done
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007 for ac_header in GeoIP.h GeoIPCity.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
6008 do
6009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 fi
6016 ac_res=`eval echo '${'$as_ac_Header'}'`
6017 { echo "$as_me:$LINENO: result: $ac_res" >&5
6018 echo "${ECHO_T}$ac_res" >&6; }
6019 else
6020 # Is the header compilable?
6021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6030 #include <$ac_header>
6031 _ACEOF
6032 rm -f conftest.$ac_objext
6033 if { (ac_try="$ac_compile"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_compile") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest.$ac_objext; then
6049 ac_header_compiler=yes
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ac_header_compiler=no
6055 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6059 echo "${ECHO_T}$ac_header_compiler" >&6; }
6060
6061 # Is the header present?
6062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <$ac_header>
6071 _ACEOF
6072 if { (ac_try="$ac_cpp conftest.$ac_ext"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } >/dev/null && {
6085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 }; then
6088 ac_header_preproc=yes
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_header_preproc=no
6094 fi
6095
6096 rm -f conftest.err conftest.$ac_ext
6097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6098 echo "${ECHO_T}$ac_header_preproc" >&6; }
6099
6100 # So? What about this header?
6101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6102 yes:no: )
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6107 ac_header_preproc=yes
6108 ;;
6109 no:yes:* )
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6122 ( cat <<\_ASBOX
6123 ## -------------------------------------------------- ##
6124 ## Report this to evilnet-devel@lists.sourceforge.net ##
6125 ## -------------------------------------------------- ##
6126 _ASBOX
6127 ) | sed "s/^/$as_me: WARNING: /" >&2
6128 ;;
6129 esac
6130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 eval "$as_ac_Header=\$ac_header_preproc"
6136 fi
6137 ac_res=`eval echo '${'$as_ac_Header'}'`
6138 { echo "$as_me:$LINENO: result: $ac_res" >&5
6139 echo "${ECHO_T}$ac_res" >&6; }
6140
6141 fi
6142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6143 cat >>confdefs.h <<_ACEOF
6144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6153 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
6154 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <sys/types.h>
6164 #include <sys/socket.h>
6165
6166 int
6167 main ()
6168 {
6169 static struct sockaddr ac_aggr;
6170 if (ac_aggr.sa_len)
6171 return 0;
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6178 case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_compile") 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
6193 ac_cv_member_struct_sockaddr_sa_len=yes
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include <sys/types.h>
6205 #include <sys/socket.h>
6206
6207 int
6208 main ()
6209 {
6210 static struct sockaddr ac_aggr;
6211 if (sizeof ac_aggr.sa_len)
6212 return 0;
6213 ;
6214 return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (ac_try="$ac_compile"
6219 case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compile") 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest.$ac_objext; then
6234 ac_cv_member_struct_sockaddr_sa_len=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_cv_member_struct_sockaddr_sa_len=no
6240 fi
6241
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 fi
6244
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6248 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
6249 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6250
6251 cat >>confdefs.h <<\_ACEOF
6252 #define HAVE_SOCKADDR_SA_LEN
6253 _ACEOF
6254
6255 fi
6256
6257 { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6258 echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
6259 if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 #include <sys/types.h>
6269 #include <sys/socket.h>
6270 #include <netdb.h>
6271
6272 int
6273 main ()
6274 {
6275 static struct addrinfo ac_aggr;
6276 if (ac_aggr.ai_flags)
6277 return 0;
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 rm -f conftest.$ac_objext
6283 if { (ac_try="$ac_compile"
6284 case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287 esac
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 ac_cv_member_struct_addrinfo_ai_flags=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 #include <sys/socket.h>
6312 #include <netdb.h>
6313
6314 int
6315 main ()
6316 {
6317 static struct addrinfo ac_aggr;
6318 if (sizeof ac_aggr.ai_flags)
6319 return 0;
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (ac_try="$ac_compile"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && {
6338 test -z "$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest.$ac_objext; then
6341 ac_cv_member_struct_addrinfo_ai_flags=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346 ac_cv_member_struct_addrinfo_ai_flags=no
6347 fi
6348
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 fi
6351
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6355 echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
6356 if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6357
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_STRUCT_ADDRINFO
6360 _ACEOF
6361
6362 fi
6363
6364
6365
6366 for ac_func in gettimeofday
6367 do
6368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6382 #define $ac_func innocuous_$ac_func
6383
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func (); below.
6386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 <limits.h> exists even on freestanding compilers. */
6388
6389 #ifdef __STDC__
6390 # include <limits.h>
6391 #else
6392 # include <assert.h>
6393 #endif
6394
6395 #undef $ac_func
6396
6397 /* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 char $ac_func ();
6404 /* The GNU C library defines this for functions which it implements
6405 to always fail with ENOSYS. Some functions are actually named
6406 something starting with __ and the normal name is an alias. */
6407 #if defined __stub_$ac_func || defined __stub___$ac_func
6408 choke me
6409 #endif
6410
6411 int
6412 main ()
6413 {
6414 return $ac_func ();
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 eval "$as_ac_var=yes"
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 eval "$as_ac_var=no"
6443 fi
6444
6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446 conftest$ac_exeext conftest.$ac_ext
6447 fi
6448 ac_res=`eval echo '${'$as_ac_var'}'`
6449 { echo "$as_me:$LINENO: result: $ac_res" >&5
6450 echo "${ECHO_T}$ac_res" >&6; }
6451 if test `eval echo '${'$as_ac_var'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6454 _ACEOF
6455
6456 fi
6457 done
6458
6459 if test $ac_cv_func_gettimeofday = no; then
6460
6461 for ac_func in ftime
6462 do
6463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6477 #define $ac_func innocuous_$ac_func
6478
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func (); below.
6481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6482 <limits.h> exists even on freestanding compilers. */
6483
6484 #ifdef __STDC__
6485 # include <limits.h>
6486 #else
6487 # include <assert.h>
6488 #endif
6489
6490 #undef $ac_func
6491
6492 /* Override any GCC internal prototype to avoid an error.
6493 Use char because int might match the return type of a GCC
6494 builtin and then its argument prototype would still apply. */
6495 #ifdef __cplusplus
6496 extern "C"
6497 #endif
6498 char $ac_func ();
6499 /* The GNU C library defines this for functions which it implements
6500 to always fail with ENOSYS. Some functions are actually named
6501 something starting with __ and the normal name is an alias. */
6502 #if defined __stub_$ac_func || defined __stub___$ac_func
6503 choke me
6504 #endif
6505
6506 int
6507 main ()
6508 {
6509 return $ac_func ();
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (ac_try="$ac_link"
6516 case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_link") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest$ac_exeext &&
6531 $as_test_x conftest$ac_exeext; then
6532 eval "$as_ac_var=yes"
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 eval "$as_ac_var=no"
6538 fi
6539
6540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6541 conftest$ac_exeext conftest.$ac_ext
6542 fi
6543 ac_res=`eval echo '${'$as_ac_var'}'`
6544 { echo "$as_me:$LINENO: result: $ac_res" >&5
6545 echo "${ECHO_T}$ac_res" >&6; }
6546 if test `eval echo '${'$as_ac_var'}'` = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6549 _ACEOF
6550
6551 else
6552 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6553 echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6554 { (exit 1); exit 1; }; }
6555 fi
6556 done
6557
6558 fi
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
6575 do
6576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6590 #define $ac_func innocuous_$ac_func
6591
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func (); below.
6594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595 <limits.h> exists even on freestanding compilers. */
6596
6597 #ifdef __STDC__
6598 # include <limits.h>
6599 #else
6600 # include <assert.h>
6601 #endif
6602
6603 #undef $ac_func
6604
6605 /* Override any GCC internal prototype to avoid an error.
6606 Use char because int might match the return type of a GCC
6607 builtin and then its argument prototype would still apply. */
6608 #ifdef __cplusplus
6609 extern "C"
6610 #endif
6611 char $ac_func ();
6612 /* The GNU C library defines this for functions which it implements
6613 to always fail with ENOSYS. Some functions are actually named
6614 something starting with __ and the normal name is an alias. */
6615 #if defined __stub_$ac_func || defined __stub___$ac_func
6616 choke me
6617 #endif
6618
6619 int
6620 main ()
6621 {
6622 return $ac_func ();
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (ac_try="$ac_link"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_link") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest$ac_exeext &&
6644 $as_test_x conftest$ac_exeext; then
6645 eval "$as_ac_var=yes"
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 eval "$as_ac_var=no"
6651 fi
6652
6653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6654 conftest$ac_exeext conftest.$ac_ext
6655 fi
6656 ac_res=`eval echo '${'$as_ac_var'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6659 if test `eval echo '${'$as_ac_var'}'` = yes; then
6660 cat >>confdefs.h <<_ACEOF
6661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6662 _ACEOF
6663
6664 fi
6665 done
6666
6667
6668
6669
6670
6671
6672
6673
6674 for ac_func in select socket strcspn strspn strtod strtoul
6675 do
6676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6690 #define $ac_func innocuous_$ac_func
6691
6692 /* System header to define __stub macros and hopefully few prototypes,
6693 which can conflict with char $ac_func (); below.
6694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6695 <limits.h> exists even on freestanding compilers. */
6696
6697 #ifdef __STDC__
6698 # include <limits.h>
6699 #else
6700 # include <assert.h>
6701 #endif
6702
6703 #undef $ac_func
6704
6705 /* Override any GCC internal prototype to avoid an error.
6706 Use char because int might match the return type of a GCC
6707 builtin and then its argument prototype would still apply. */
6708 #ifdef __cplusplus
6709 extern "C"
6710 #endif
6711 char $ac_func ();
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined __stub_$ac_func || defined __stub___$ac_func
6716 choke me
6717 #endif
6718
6719 int
6720 main ()
6721 {
6722 return $ac_func ();
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (ac_try="$ac_link"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_link") 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest$ac_exeext &&
6744 $as_test_x conftest$ac_exeext; then
6745 eval "$as_ac_var=yes"
6746 else
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750 eval "$as_ac_var=no"
6751 fi
6752
6753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6754 conftest$ac_exeext conftest.$ac_ext
6755 fi
6756 ac_res=`eval echo '${'$as_ac_var'}'`
6757 { echo "$as_me:$LINENO: result: $ac_res" >&5
6758 echo "${ECHO_T}$ac_res" >&6; }
6759 if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h <<_ACEOF
6761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762 _ACEOF
6763
6764 else
6765 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
6766 echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
6767 { (exit 1); exit 1; }; }
6768 fi
6769 done
6770
6771
6772 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6773 # for constant arguments. Useless!
6774 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6775 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6776 if test "${ac_cv_working_alloca_h+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 #include <alloca.h>
6786 int
6787 main ()
6788 {
6789 char *p = (char *) alloca (2 * sizeof (int));
6790 if (p) return 0;
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext &&
6812 $as_test_x conftest$ac_exeext; then
6813 ac_cv_working_alloca_h=yes
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 ac_cv_working_alloca_h=no
6819 fi
6820
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823 fi
6824 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6825 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6826 if test $ac_cv_working_alloca_h = yes; then
6827
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_ALLOCA_H 1
6830 _ACEOF
6831
6832 fi
6833
6834 { echo "$as_me:$LINENO: checking for alloca" >&5
6835 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6836 if test "${ac_cv_func_alloca_works+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 #ifdef __GNUC__
6846 # define alloca __builtin_alloca
6847 #else
6848 # ifdef _MSC_VER
6849 # include <malloc.h>
6850 # define alloca _alloca
6851 # else
6852 # ifdef HAVE_ALLOCA_H
6853 # include <alloca.h>
6854 # else
6855 # ifdef _AIX
6856 #pragma alloca
6857 # else
6858 # ifndef alloca /* predefined by HP cc +Olibcalls */
6859 char *alloca ();
6860 # endif
6861 # endif
6862 # endif
6863 # endif
6864 #endif
6865
6866 int
6867 main ()
6868 {
6869 char *p = (char *) alloca (1);
6870 if (p) return 0;
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest$ac_exeext &&
6892 $as_test_x conftest$ac_exeext; then
6893 ac_cv_func_alloca_works=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_cv_func_alloca_works=no
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6903 fi
6904 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6905 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6906
6907 if test $ac_cv_func_alloca_works = yes; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_ALLOCA 1
6911 _ACEOF
6912
6913 else
6914 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6915 # that cause trouble. Some versions do not even contain alloca or
6916 # contain a buggy version. If you still want to use their alloca,
6917 # use ar to extract alloca.o from them instead of compiling alloca.c.
6918
6919 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6920
6921 cat >>confdefs.h <<\_ACEOF
6922 #define C_ALLOCA 1
6923 _ACEOF
6924
6925
6926 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6927 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6928 if test "${ac_cv_os_cray+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #if defined CRAY && ! defined CRAY2
6938 webecray
6939 #else
6940 wenotbecray
6941 #endif
6942
6943 _ACEOF
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 $EGREP "webecray" >/dev/null 2>&1; then
6946 ac_cv_os_cray=yes
6947 else
6948 ac_cv_os_cray=no
6949 fi
6950 rm -f conftest*
6951
6952 fi
6953 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6954 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6955 if test $ac_cv_os_cray = yes; then
6956 for ac_func in _getb67 GETB67 getb67; do
6957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h. */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6971 #define $ac_func innocuous_$ac_func
6972
6973 /* System header to define __stub macros and hopefully few prototypes,
6974 which can conflict with char $ac_func (); below.
6975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6976 <limits.h> exists even on freestanding compilers. */
6977
6978 #ifdef __STDC__
6979 # include <limits.h>
6980 #else
6981 # include <assert.h>
6982 #endif
6983
6984 #undef $ac_func
6985
6986 /* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 char $ac_func ();
6993 /* The GNU C library defines this for functions which it implements
6994 to always fail with ENOSYS. Some functions are actually named
6995 something starting with __ and the normal name is an alias. */
6996 #if defined __stub_$ac_func || defined __stub___$ac_func
6997 choke me
6998 #endif
6999
7000 int
7001 main ()
7002 {
7003 return $ac_func ();
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext conftest$ac_exeext
7009 if { (ac_try="$ac_link"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_link") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest$ac_exeext &&
7025 $as_test_x conftest$ac_exeext; then
7026 eval "$as_ac_var=yes"
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 eval "$as_ac_var=no"
7032 fi
7033
7034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7035 conftest$ac_exeext conftest.$ac_ext
7036 fi
7037 ac_res=`eval echo '${'$as_ac_var'}'`
7038 { echo "$as_me:$LINENO: result: $ac_res" >&5
7039 echo "${ECHO_T}$ac_res" >&6; }
7040 if test `eval echo '${'$as_ac_var'}'` = yes; then
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define CRAY_STACKSEG_END $ac_func
7044 _ACEOF
7045
7046 break
7047 fi
7048
7049 done
7050 fi
7051
7052 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7053 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7054 if test "${ac_cv_c_stack_direction+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 if test "$cross_compiling" = yes; then
7058 ac_cv_c_stack_direction=0
7059 else
7060 cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h. */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 $ac_includes_default
7067 int
7068 find_stack_direction ()
7069 {
7070 static char *addr = 0;
7071 auto char dummy;
7072 if (addr == 0)
7073 {
7074 addr = &dummy;
7075 return find_stack_direction ();
7076 }
7077 else
7078 return (&dummy > addr) ? 1 : -1;
7079 }
7080
7081 int
7082 main ()
7083 {
7084 return find_stack_direction () < 0;
7085 }
7086 _ACEOF
7087 rm -f conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7089 case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7092 esac
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_link") 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7098 { (case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_try") 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_c_stack_direction=1
7108 else
7109 echo "$as_me: program exited with status $ac_status" >&5
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7112
7113 ( exit $ac_status )
7114 ac_cv_c_stack_direction=-1
7115 fi
7116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7117 fi
7118
7119
7120 fi
7121 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7122 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define STACK_DIRECTION $ac_cv_c_stack_direction
7126 _ACEOF
7127
7128
7129 fi
7130
7131
7132
7133 for ac_header in stdlib.h unistd.h
7134 do
7135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 fi
7142 ac_res=`eval echo '${'$as_ac_Header'}'`
7143 { echo "$as_me:$LINENO: result: $ac_res" >&5
7144 echo "${ECHO_T}$ac_res" >&6; }
7145 else
7146 # Is the header compilable?
7147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7156 #include <$ac_header>
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 ac_header_compiler=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_header_compiler=no
7181 fi
7182
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6; }
7186
7187 # Is the header present?
7188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h. */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 #include <$ac_header>
7197 _ACEOF
7198 if { (ac_try="$ac_cpp conftest.$ac_ext"
7199 case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202 esac
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } >/dev/null && {
7211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 }; then
7214 ac_header_preproc=yes
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_header_preproc=no
7220 fi
7221
7222 rm -f conftest.err conftest.$ac_ext
7223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7224 echo "${ECHO_T}$ac_header_preproc" >&6; }
7225
7226 # So? What about this header?
7227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7228 yes:no: )
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7233 ac_header_preproc=yes
7234 ;;
7235 no:yes:* )
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7248 ( cat <<\_ASBOX
7249 ## -------------------------------------------------- ##
7250 ## Report this to evilnet-devel@lists.sourceforge.net ##
7251 ## -------------------------------------------------- ##
7252 _ASBOX
7253 ) | sed "s/^/$as_me: WARNING: /" >&2
7254 ;;
7255 esac
7256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 eval "$as_ac_Header=\$ac_header_preproc"
7262 fi
7263 ac_res=`eval echo '${'$as_ac_Header'}'`
7264 { echo "$as_me:$LINENO: result: $ac_res" >&5
7265 echo "${ECHO_T}$ac_res" >&6; }
7266
7267 fi
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271 _ACEOF
7272
7273 fi
7274
7275 done
7276
7277
7278 for ac_func in getpagesize
7279 do
7280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7294 #define $ac_func innocuous_$ac_func
7295
7296 /* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func (); below.
7298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7299 <limits.h> exists even on freestanding compilers. */
7300
7301 #ifdef __STDC__
7302 # include <limits.h>
7303 #else
7304 # include <assert.h>
7305 #endif
7306
7307 #undef $ac_func
7308
7309 /* Override any GCC internal prototype to avoid an error.
7310 Use char because int might match the return type of a GCC
7311 builtin and then its argument prototype would still apply. */
7312 #ifdef __cplusplus
7313 extern "C"
7314 #endif
7315 char $ac_func ();
7316 /* The GNU C library defines this for functions which it implements
7317 to always fail with ENOSYS. Some functions are actually named
7318 something starting with __ and the normal name is an alias. */
7319 #if defined __stub_$ac_func || defined __stub___$ac_func
7320 choke me
7321 #endif
7322
7323 int
7324 main ()
7325 {
7326 return $ac_func ();
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7333 case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_link") 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest$ac_exeext &&
7348 $as_test_x conftest$ac_exeext; then
7349 eval "$as_ac_var=yes"
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 eval "$as_ac_var=no"
7355 fi
7356
7357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358 conftest$ac_exeext conftest.$ac_ext
7359 fi
7360 ac_res=`eval echo '${'$as_ac_var'}'`
7361 { echo "$as_me:$LINENO: result: $ac_res" >&5
7362 echo "${ECHO_T}$ac_res" >&6; }
7363 if test `eval echo '${'$as_ac_var'}'` = yes; then
7364 cat >>confdefs.h <<_ACEOF
7365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7366 _ACEOF
7367
7368 fi
7369 done
7370
7371 { echo "$as_me:$LINENO: checking for working mmap" >&5
7372 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7373 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 if test "$cross_compiling" = yes; then
7377 ac_cv_func_mmap_fixed_mapped=no
7378 else
7379 cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h. */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 $ac_includes_default
7386 /* malloc might have been renamed as rpl_malloc. */
7387 #undef malloc
7388
7389 /* Thanks to Mike Haertel and Jim Avera for this test.
7390 Here is a matrix of mmap possibilities:
7391 mmap private not fixed
7392 mmap private fixed at somewhere currently unmapped
7393 mmap private fixed at somewhere already mapped
7394 mmap shared not fixed
7395 mmap shared fixed at somewhere currently unmapped
7396 mmap shared fixed at somewhere already mapped
7397 For private mappings, we should verify that changes cannot be read()
7398 back from the file, nor mmap's back from the file at a different
7399 address. (There have been systems where private was not correctly
7400 implemented like the infamous i386 svr4.0, and systems where the
7401 VM page cache was not coherent with the file system buffer cache
7402 like early versions of FreeBSD and possibly contemporary NetBSD.)
7403 For shared mappings, we should conversely verify that changes get
7404 propagated back to all the places they're supposed to be.
7405
7406 Grep wants private fixed already mapped.
7407 The main things grep needs to know about mmap are:
7408 * does it exist and is it safe to write into the mmap'd area
7409 * how to use it (BSD variants) */
7410
7411 #include <fcntl.h>
7412 #include <sys/mman.h>
7413
7414 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7415 char *malloc ();
7416 #endif
7417
7418 /* This mess was copied from the GNU getpagesize.h. */
7419 #ifndef HAVE_GETPAGESIZE
7420 /* Assume that all systems that can run configure have sys/param.h. */
7421 # ifndef HAVE_SYS_PARAM_H
7422 # define HAVE_SYS_PARAM_H 1
7423 # endif
7424
7425 # ifdef _SC_PAGESIZE
7426 # define getpagesize() sysconf(_SC_PAGESIZE)
7427 # else /* no _SC_PAGESIZE */
7428 # ifdef HAVE_SYS_PARAM_H
7429 # include <sys/param.h>
7430 # ifdef EXEC_PAGESIZE
7431 # define getpagesize() EXEC_PAGESIZE
7432 # else /* no EXEC_PAGESIZE */
7433 # ifdef NBPG
7434 # define getpagesize() NBPG * CLSIZE
7435 # ifndef CLSIZE
7436 # define CLSIZE 1
7437 # endif /* no CLSIZE */
7438 # else /* no NBPG */
7439 # ifdef NBPC
7440 # define getpagesize() NBPC
7441 # else /* no NBPC */
7442 # ifdef PAGESIZE
7443 # define getpagesize() PAGESIZE
7444 # endif /* PAGESIZE */
7445 # endif /* no NBPC */
7446 # endif /* no NBPG */
7447 # endif /* no EXEC_PAGESIZE */
7448 # else /* no HAVE_SYS_PARAM_H */
7449 # define getpagesize() 8192 /* punt totally */
7450 # endif /* no HAVE_SYS_PARAM_H */
7451 # endif /* no _SC_PAGESIZE */
7452
7453 #endif /* no HAVE_GETPAGESIZE */
7454
7455 int
7456 main ()
7457 {
7458 char *data, *data2, *data3;
7459 int i, pagesize;
7460 int fd;
7461
7462 pagesize = getpagesize ();
7463
7464 /* First, make a file with some known garbage in it. */
7465 data = (char *) malloc (pagesize);
7466 if (!data)
7467 return 1;
7468 for (i = 0; i < pagesize; ++i)
7469 *(data + i) = rand ();
7470 umask (0);
7471 fd = creat ("conftest.mmap", 0600);
7472 if (fd < 0)
7473 return 1;
7474 if (write (fd, data, pagesize) != pagesize)
7475 return 1;
7476 close (fd);
7477
7478 /* Next, try to mmap the file at a fixed address which already has
7479 something else allocated at it. If we can, also make sure that
7480 we see the same garbage. */
7481 fd = open ("conftest.mmap", O_RDWR);
7482 if (fd < 0)
7483 return 1;
7484 data2 = (char *) malloc (2 * pagesize);
7485 if (!data2)
7486 return 1;
7487 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7488 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7489 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7490 return 1;
7491 for (i = 0; i < pagesize; ++i)
7492 if (*(data + i) != *(data2 + i))
7493 return 1;
7494
7495 /* Finally, make sure that changes to the mapped area do not
7496 percolate back to the file as seen by read(). (This is a bug on
7497 some variants of i386 svr4.0.) */
7498 for (i = 0; i < pagesize; ++i)
7499 *(data2 + i) = *(data2 + i) + 1;
7500 data3 = (char *) malloc (pagesize);
7501 if (!data3)
7502 return 1;
7503 if (read (fd, data3, pagesize) != pagesize)
7504 return 1;
7505 for (i = 0; i < pagesize; ++i)
7506 if (*(data + i) != *(data3 + i))
7507 return 1;
7508 close (fd);
7509 return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest$ac_exeext
7513 if { (ac_try="$ac_link"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_link") 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7523 { (case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_try") 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_func_mmap_fixed_mapped=yes
7533 else
7534 echo "$as_me: program exited with status $ac_status" >&5
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ( exit $ac_status )
7539 ac_cv_func_mmap_fixed_mapped=no
7540 fi
7541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7542 fi
7543
7544
7545 fi
7546 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7547 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7549
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_MMAP 1
7552 _ACEOF
7553
7554 fi
7555 rm -f conftest.mmap
7556
7557
7558 { echo "$as_me:$LINENO: checking for sin_len" >&5
7559 echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
7560 if test "${ac_cv_sin_len+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <sys/types.h>
7570 #include <netinet/in.h>
7571 int
7572 main ()
7573 {
7574 struct sockaddr_in *sin; sin->sin_len = 0;
7575 ;
7576 return 0;
7577 }
7578 _ACEOF
7579 rm -f conftest.$ac_objext
7580 if { (ac_try="$ac_compile"
7581 case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584 esac
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_compile") 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } && {
7593 test -z "$ac_c_werror_flag" ||
7594 test ! -s conftest.err
7595 } && test -s conftest.$ac_objext; then
7596 ac_cv_sin_len="yes"
7597 else
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7600
7601 ac_cv_sin_len="no"
7602 fi
7603
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
7607 echo "${ECHO_T}$ac_cv_sin_len" >&6; }
7608 if test $ac_cv_sin_len = yes ; then
7609
7610 cat >>confdefs.h <<\_ACEOF
7611 #define HAVE_SIN_LEN 1
7612 _ACEOF
7613
7614 fi
7615
7616 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7617 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7618 if test "${ac_cv_type_socklen_t+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 #include <sys/types.h>
7628 #include<sys/socket.h>
7629
7630 typedef socklen_t ac__type_new_;
7631 int
7632 main ()
7633 {
7634 if ((ac__type_new_ *) 0)
7635 return 0;
7636 if (sizeof (ac__type_new_))
7637 return 0;
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_cv_type_socklen_t=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_cv_type_socklen_t=no
7665 fi
7666
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 fi
7669 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7670 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7671 if test $ac_cv_type_socklen_t = yes; then
7672 :
7673 else
7674
7675 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
7676 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
7677 if test "${curl_cv_socklen_t_equiv+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680
7681 curl_cv_socklen_t_equiv=
7682 for arg2 in "struct sockaddr" void ; do
7683 for t in int size_t unsigned long "unsigned long" ; do
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 #include <sys/types.h>
7691 #include <sys/socket.h>
7692 int getpeername (int $arg2 *, $t *);
7693 int
7694 main ()
7695 {
7696 $t len;
7697 getpeername(0, 0, &len);
7698 ;
7699 return 0;
7700 }
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 curl_cv_socklen_t_equiv="$t"
7720 break
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725
7726 fi
7727
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 done
7730 done
7731
7732 fi
7733
7734 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
7735 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
7736
7737 cat >>confdefs.h <<_ACEOF
7738 #define socklen_t $curl_cv_socklen_t_equiv
7739 _ACEOF
7740
7741 fi
7742
7743
7744 OLD_CFLAGS=$CFLAGS
7745 CFLAGS="$CFLAGS -W -Wall -Werror"
7746
7747 { echo "$as_me:$LINENO: checking for time_t format" >&5
7748 echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
7749 if test "${ac_cv_fmt_time_t+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752
7753 ac_cv_fmt_time_t=no
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #include <sys/types.h>
7756 #include <stdio.h>
7757 void myfunc(void) {
7758 time_t test=0;
7759 printf("%li", test);
7760 }
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (ac_try="$ac_compile"
7764 case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.$ac_objext; then
7779 ac_cv_fmt_time_t="\"%li\""
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784
7785 fi
7786
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 if test $ac_cv_fmt_time_t = no; then
7789 cat >conftest.$ac_ext <<_ACEOF
7790 #include <sys/types.h>
7791 #include <stdio.h>
7792 void myfunc(void) {
7793 time_t test=0;
7794 printf("%i", test);
7795 }
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7814 ac_cv_fmt_time_t="\"%i\""
7815 else
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 if test $ac_cv_fmt_time_t = no; then
7825 { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
7826 Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
7827 echo "$as_me: error: Cannot detect format string for time_t
7828 Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
7829 { (exit 1); exit 1; }; }
7830 fi
7831
7832 fi
7833
7834
7835 cat >>confdefs.h <<_ACEOF
7836 #define FMT_TIME_T $ac_cv_fmt_time_t
7837 _ACEOF
7838
7839 { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
7840 echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
7841
7842 { echo "$as_me:$LINENO: checking for va_copy" >&5
7843 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
7844 if test "${ac_cv_c_va_copy+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <stdarg.h>
7854 int
7855 main ()
7856 {
7857 va_list ap1, ap2; va_copy(ap1, ap2);
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext &&
7879 $as_test_x conftest$ac_exeext; then
7880 ac_cv_c_va_copy="yes"
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 ac_cv_c_va_copy="no"
7886
7887 fi
7888
7889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7890 conftest$ac_exeext conftest.$ac_ext
7891 fi
7892 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
7893 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
7894 if test "$ac_cv_c_va_copy" = "yes" ; then
7895
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_VA_COPY 1
7898 _ACEOF
7899
7900 fi
7901
7902 { echo "$as_me:$LINENO: checking for __va_copy" >&5
7903 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
7904 if test "${ac_cv_c___va_copy+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h. */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 #include <stdarg.h>
7914 int
7915 main ()
7916 {
7917 va_list ap1, ap2; __va_copy(ap1, ap2);
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest$ac_exeext &&
7939 $as_test_x conftest$ac_exeext; then
7940 ac_cv_c___va_copy="yes"
7941 else
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ac_cv_c___va_copy="no"
7946
7947 fi
7948
7949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950 conftest$ac_exeext conftest.$ac_ext
7951 fi
7952 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
7953 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
7954 if test "$ac_cv_c___va_copy" = "yes" ; then
7955
7956 cat >>confdefs.h <<\_ACEOF
7957 #define HAVE___VA_COPY 1
7958 _ACEOF
7959
7960 fi
7961
7962 CFLAGS=$OLD_CFLAGS
7963
7964 { echo "$as_me:$LINENO: checking which malloc to use" >&5
7965 echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
7966
7967 # Check whether --with-malloc was given.
7968 if test "${with_malloc+set}" = set; then
7969 withval=$with_malloc;
7970 else
7971 withval="system"
7972 fi
7973
7974 if test "x$withval" = "xsystem" ; then
7975 { echo "$as_me:$LINENO: result: system" >&5
7976 echo "${ECHO_T}system" >&6; }
7977
7978 cat >>confdefs.h <<\_ACEOF
7979 #define WITH_MALLOC_SYSTEM 1
7980 _ACEOF
7981
7982 x3_malloc="System"
7983 elif test "x$withval" = "xdmalloc" ; then
7984 { echo "$as_me:$LINENO: result: dmalloc" >&5
7985 echo "${ECHO_T}dmalloc" >&6; }
7986
7987 for ac_header in dmalloc.h
7988 do
7989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 fi
7996 ac_res=`eval echo '${'$as_ac_Header'}'`
7997 { echo "$as_me:$LINENO: result: $ac_res" >&5
7998 echo "${ECHO_T}$ac_res" >&6; }
7999 else
8000 # Is the header compilable?
8001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h. */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 $ac_includes_default
8010 #include <$ac_header>
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_header_compiler=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034 ac_header_compiler=no
8035 fi
8036
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8039 echo "${ECHO_T}$ac_header_compiler" >&6; }
8040
8041 # Is the header present?
8042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <$ac_header>
8051 _ACEOF
8052 if { (ac_try="$ac_cpp conftest.$ac_ext"
8053 case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } >/dev/null && {
8065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 }; then
8068 ac_header_preproc=yes
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 ac_header_preproc=no
8074 fi
8075
8076 rm -f conftest.err conftest.$ac_ext
8077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8078 echo "${ECHO_T}$ac_header_preproc" >&6; }
8079
8080 # So? What about this header?
8081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8082 yes:no: )
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8087 ac_header_preproc=yes
8088 ;;
8089 no:yes:* )
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8102 ( cat <<\_ASBOX
8103 ## -------------------------------------------------- ##
8104 ## Report this to evilnet-devel@lists.sourceforge.net ##
8105 ## -------------------------------------------------- ##
8106 _ASBOX
8107 ) | sed "s/^/$as_me: WARNING: /" >&2
8108 ;;
8109 esac
8110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 eval "$as_ac_Header=\$ac_header_preproc"
8116 fi
8117 ac_res=`eval echo '${'$as_ac_Header'}'`
8118 { echo "$as_me:$LINENO: result: $ac_res" >&5
8119 echo "${ECHO_T}$ac_res" >&6; }
8120
8121 fi
8122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8123 cat >>confdefs.h <<_ACEOF
8124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8125 _ACEOF
8126
8127 else
8128 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8129 echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8130 { (exit 1); exit 1; }; }
8131 fi
8132
8133 done
8134
8135
8136 { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8137 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
8138 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141 ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-ldmalloc $LIBS"
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149
8150 /* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 char malloc ();
8157 int
8158 main ()
8159 {
8160 return malloc ();
8161 ;
8162 return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (ac_try="$ac_link"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_link") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext &&
8182 $as_test_x conftest$ac_exeext; then
8183 ac_cv_lib_dmalloc_malloc=yes
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 ac_cv_lib_dmalloc_malloc=no
8189 fi
8190
8191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8192 conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8194 fi
8195 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8196 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
8197 if test $ac_cv_lib_dmalloc_malloc = yes; then
8198 cat >>confdefs.h <<_ACEOF
8199 #define HAVE_LIBDMALLOC 1
8200 _ACEOF
8201
8202 LIBS="-ldmalloc $LIBS"
8203
8204 else
8205 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8206 echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8207 { (exit 1); exit 1; }; }
8208 fi
8209
8210
8211 cat >>confdefs.h <<\_ACEOF
8212 #define WITH_MALLOC_DMALLOC 1
8213 _ACEOF
8214
8215 x3_malloc="DMalloc"
8216 elif test "x$withval" = "xmpatrol" ; then
8217 { echo "$as_me:$LINENO: result: mpatrol" >&5
8218 echo "${ECHO_T}mpatrol" >&6; }
8219
8220 for ac_header in mpatrol.h
8221 do
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 fi
8229 ac_res=`eval echo '${'$as_ac_Header'}'`
8230 { echo "$as_me:$LINENO: result: $ac_res" >&5
8231 echo "${ECHO_T}$ac_res" >&6; }
8232 else
8233 # Is the header compilable?
8234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 #include <$ac_header>
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_header_compiler=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_header_compiler=no
8268 fi
8269
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8272 echo "${ECHO_T}$ac_header_compiler" >&6; }
8273
8274 # Is the header present?
8275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 #include <$ac_header>
8284 _ACEOF
8285 if { (ac_try="$ac_cpp conftest.$ac_ext"
8286 case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } >/dev/null && {
8298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 }; then
8301 ac_header_preproc=yes
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_header_preproc=no
8307 fi
8308
8309 rm -f conftest.err conftest.$ac_ext
8310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8311 echo "${ECHO_T}$ac_header_preproc" >&6; }
8312
8313 # So? What about this header?
8314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8315 yes:no: )
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8320 ac_header_preproc=yes
8321 ;;
8322 no:yes:* )
8323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8335 ( cat <<\_ASBOX
8336 ## -------------------------------------------------- ##
8337 ## Report this to evilnet-devel@lists.sourceforge.net ##
8338 ## -------------------------------------------------- ##
8339 _ASBOX
8340 ) | sed "s/^/$as_me: WARNING: /" >&2
8341 ;;
8342 esac
8343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 eval "$as_ac_Header=\$ac_header_preproc"
8349 fi
8350 ac_res=`eval echo '${'$as_ac_Header'}'`
8351 { echo "$as_me:$LINENO: result: $ac_res" >&5
8352 echo "${ECHO_T}$ac_res" >&6; }
8353
8354 fi
8355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8356 cat >>confdefs.h <<_ACEOF
8357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358 _ACEOF
8359
8360 else
8361 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
8362 echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
8363 { (exit 1); exit 1; }; }
8364 fi
8365
8366 done
8367
8368
8369 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
8370 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
8371 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-lelf $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382
8383 /* Override any GCC internal prototype to avoid an error.
8384 Use char because int might match the return type of a GCC
8385 builtin and then its argument prototype would still apply. */
8386 #ifdef __cplusplus
8387 extern "C"
8388 #endif
8389 char elf_begin ();
8390 int
8391 main ()
8392 {
8393 return elf_begin ();
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (ac_try="$ac_link"
8400 case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_link") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest$ac_exeext &&
8415 $as_test_x conftest$ac_exeext; then
8416 ac_cv_lib_elf_elf_begin=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_lib_elf_elf_begin=no
8422 fi
8423
8424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8425 conftest$ac_exeext conftest.$ac_ext
8426 LIBS=$ac_check_lib_save_LIBS
8427 fi
8428 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
8429 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
8430 if test $ac_cv_lib_elf_elf_begin = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432 #define HAVE_LIBELF 1
8433 _ACEOF
8434
8435 LIBS="-lelf $LIBS"
8436
8437 fi
8438
8439
8440 { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
8441 echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
8442 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lmpatrol $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453
8454 /* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 char __mp_atexit ();
8461 int
8462 main ()
8463 {
8464 return __mp_atexit ();
8465 ;
8466 return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (ac_try="$ac_link"
8471 case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_link") 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_c_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest$ac_exeext &&
8486 $as_test_x conftest$ac_exeext; then
8487 ac_cv_lib_mpatrol___mp_atexit=yes
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 ac_cv_lib_mpatrol___mp_atexit=no
8493 fi
8494
8495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8496 conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8498 fi
8499 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
8500 echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
8501 if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_LIBMPATROL 1
8504 _ACEOF
8505
8506 LIBS="-lmpatrol $LIBS"
8507
8508 else
8509 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
8510 echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
8511 { (exit 1); exit 1; }; }
8512 fi
8513
8514
8515 cat >>confdefs.h <<\_ACEOF
8516 #define WITH_MALLOC_MPATROL 1
8517 _ACEOF
8518
8519 x3_malloc="MPatrol"
8520 elif test "x$withval" = "xboehm-gc" ; then
8521 { echo "$as_me:$LINENO: result: boehm-gc" >&5
8522 echo "${ECHO_T}boehm-gc" >&6; }
8523
8524 for ac_header in gc/gc.h
8525 do
8526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 fi
8533 ac_res=`eval echo '${'$as_ac_Header'}'`
8534 { echo "$as_me:$LINENO: result: $ac_res" >&5
8535 echo "${ECHO_T}$ac_res" >&6; }
8536 else
8537 # Is the header compilable?
8538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #include <$ac_header>
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_header_compiler=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_header_compiler=no
8572 fi
8573
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8576 echo "${ECHO_T}$ac_header_compiler" >&6; }
8577
8578 # Is the header present?
8579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h. */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 #include <$ac_header>
8588 _ACEOF
8589 if { (ac_try="$ac_cpp conftest.$ac_ext"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } >/dev/null && {
8602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 }; then
8605 ac_header_preproc=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_header_preproc=no
8611 fi
8612
8613 rm -f conftest.err conftest.$ac_ext
8614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8615 echo "${ECHO_T}$ac_header_preproc" >&6; }
8616
8617 # So? What about this header?
8618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8619 yes:no: )
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8624 ac_header_preproc=yes
8625 ;;
8626 no:yes:* )
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8639 ( cat <<\_ASBOX
8640 ## -------------------------------------------------- ##
8641 ## Report this to evilnet-devel@lists.sourceforge.net ##
8642 ## -------------------------------------------------- ##
8643 _ASBOX
8644 ) | sed "s/^/$as_me: WARNING: /" >&2
8645 ;;
8646 esac
8647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 eval "$as_ac_Header=\$ac_header_preproc"
8653 fi
8654 ac_res=`eval echo '${'$as_ac_Header'}'`
8655 { echo "$as_me:$LINENO: result: $ac_res" >&5
8656 echo "${ECHO_T}$ac_res" >&6; }
8657
8658 fi
8659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662 _ACEOF
8663
8664 else
8665 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
8666 echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
8667 { (exit 1); exit 1; }; }
8668 fi
8669
8670 done
8671
8672
8673 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-ldl $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 char dlopen ();
8694 int
8695 main ()
8696 {
8697 return dlopen ();
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest$ac_exeext &&
8719 $as_test_x conftest$ac_exeext; then
8720 ac_cv_lib_dl_dlopen=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_lib_dl_dlopen=no
8726 fi
8727
8728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8729 conftest$ac_exeext conftest.$ac_ext
8730 LIBS=$ac_check_lib_save_LIBS
8731 fi
8732 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8734 if test $ac_cv_lib_dl_dlopen = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_LIBDL 1
8737 _ACEOF
8738
8739 LIBS="-ldl $LIBS"
8740
8741 else
8742 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
8743 echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
8744 { (exit 1); exit 1; }; }
8745 fi
8746
8747
8748 { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
8749 echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
8750 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 ac_check_lib_save_LIBS=$LIBS
8754 LIBS="-lgc $LIBS"
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761
8762 /* Override any GCC internal prototype to avoid an error.
8763 Use char because int might match the return type of a GCC
8764 builtin and then its argument prototype would still apply. */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 char GC_gcollect ();
8769 int
8770 main ()
8771 {
8772 return GC_gcollect ();
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext conftest$ac_exeext
8778 if { (ac_try="$ac_link"
8779 case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_link") 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } && {
8791 test -z "$ac_c_werror_flag" ||
8792 test ! -s conftest.err
8793 } && test -s conftest$ac_exeext &&
8794 $as_test_x conftest$ac_exeext; then
8795 ac_cv_lib_gc_GC_gcollect=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800 ac_cv_lib_gc_GC_gcollect=no
8801 fi
8802
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8804 conftest$ac_exeext conftest.$ac_ext
8805 LIBS=$ac_check_lib_save_LIBS
8806 fi
8807 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
8808 echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
8809 if test $ac_cv_lib_gc_GC_gcollect = yes; then
8810 cat >>confdefs.h <<_ACEOF
8811 #define HAVE_LIBGC 1
8812 _ACEOF
8813
8814 LIBS="-lgc $LIBS"
8815
8816 else
8817 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
8818 echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
8819 { (exit 1); exit 1; }; }
8820 fi
8821
8822
8823 cat >>confdefs.h <<\_ACEOF
8824 #define WITH_MALLOC_BOEHM_GC 1
8825 _ACEOF
8826
8827 x3_malloc="Boehm"
8828 elif test "x$withval" = "xx3" ; then
8829 { echo "$as_me:$LINENO: result: x3" >&5
8830 echo "${ECHO_T}x3" >&6; }
8831
8832 cat >>confdefs.h <<\_ACEOF
8833 #define WITH_MALLOC_X3 1
8834 _ACEOF
8835
8836 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
8837 x3_malloc="X3"
8838 elif test "x$withval" = "xslab" ; then
8839 { echo "$as_me:$LINENO: result: slab" >&5
8840 echo "${ECHO_T}slab" >&6; }
8841
8842 cat >>confdefs.h <<\_ACEOF
8843 #define WITH_MALLOC_SLAB 1
8844 _ACEOF
8845
8846 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
8847 x3_malloc="Slab"
8848 else
8849 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
8850 echo "$as_me: error: Unknown malloc type $withval" >&2;}
8851 { (exit 1); exit 1; }; }
8852 fi
8853
8854 { echo "$as_me:$LINENO: checking which protocol to use" >&5
8855 echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
8856
8857 # Check whether --with-protocol was given.
8858 if test "${with_protocol+set}" = set; then
8859 withval=$with_protocol;
8860 else
8861 withval="p10"
8862 fi
8863
8864 if test "x$withval" = "xp10" ; then
8865 { echo "$as_me:$LINENO: result: P10" >&5
8866 echo "${ECHO_T}P10" >&6; }
8867
8868 cat >>confdefs.h <<\_ACEOF
8869 #define WITH_PROTOCOL_P10 1
8870 _ACEOF
8871
8872 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
8873 PROTO_FILES=proto-p10.c
8874 x3_ircd="P10"
8875 else
8876 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
8877 echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
8878 { (exit 1); exit 1; }; }
8879 fi
8880
8881
8882 # Check whether --with-getopt was given.
8883 if test "${with_getopt+set}" = set; then
8884 withval=$with_getopt; if test "$withval" = no; then
8885
8886 cat >>confdefs.h <<\_ACEOF
8887 #define IGNORE_GETOPT 1
8888 _ACEOF
8889
8890 fi
8891 fi
8892
8893
8894 { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
8895 echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
8896 # Check whether --enable-tokens was given.
8897 if test "${enable_tokens+set}" = set; then
8898 enableval=$enable_tokens;
8899 else
8900 enableval=yes
8901 fi
8902
8903 if test "z$enableval" = zno ; then
8904 { echo "$as_me:$LINENO: result: no" >&5
8905 echo "${ECHO_T}no" >&6; }
8906 else
8907
8908 cat >>confdefs.h <<\_ACEOF
8909 #define ENABLE_TOKENS 1
8910 _ACEOF
8911
8912 { echo "$as_me:$LINENO: result: yes" >&5
8913 echo "${ECHO_T}yes" >&6; }
8914 fi
8915
8916 { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
8917 echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
8918 # Check whether --enable-debug was given.
8919 if test "${enable_debug+set}" = set; then
8920 enableval=$enable_debug;
8921 CPPFLAGS="$CPPFLAGS"
8922 { echo "$as_me:$LINENO: result: yes" >&5
8923 echo "${ECHO_T}yes" >&6; }
8924 x3_debug="Enabled"
8925
8926 else
8927
8928 CPPFLAGS="$CPPFLAGS -DNDEBUG"
8929 { echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6; }
8931 x3_debug="Disabled"
8932
8933 fi
8934
8935
8936 if test -e src ; then
8937 if test ! -d src ; then
8938 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
8939 echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
8940 { (exit 1); exit 1; }; }
8941 fi
8942 else
8943 mkdir src
8944 fi
8945 { echo "$as_me:$LINENO: checking for extra module files" >&5
8946 echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
8947 MODULE_DEFINES="src/modules-list.h"
8948 echo > $MODULE_DEFINES
8949 touch $MODULE_DEFINES
8950 # Check whether --enable-modules was given.
8951 if test "${enable_modules+set}" = set; then
8952 enableval=$enable_modules;
8953 OIFS="$IFS"
8954 IFS=','
8955 EXTRA_MODULE_OBJS=""
8956 module_list=""
8957 for module in $enableval ; do
8958 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
8959 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
8960 module_list="$module_list $module"
8961 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8962 if test "x$module" = "xtrack" ; then
8963 TRACK="-D HAVE_TRACK"
8964
8965 cat >>confdefs.h <<\_ACEOF
8966 #define HAVE_TRACK 1
8967 _ACEOF
8968
8969 fi
8970 if test "x$module" = "xhelpserv" ; then
8971 TRACK="-D HAVE_HELPSERV"
8972
8973 cat >>confdefs.h <<\_ACEOF
8974 #define HAVE_HELPSERV 1
8975 _ACEOF
8976
8977 fi
8978 done
8979 IFS="$OIFS"
8980 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8981 { echo "$as_me:$LINENO: result: $module_list" >&5
8982 echo "${ECHO_T}$module_list" >&6; }
8983
8984 else
8985
8986 { echo "$as_me:$LINENO: result: none" >&5
8987 echo "${ECHO_T}none" >&6; }
8988
8989 fi
8990
8991
8992 # Check whether --enable-python was given.
8993 if test "${enable_python+set}" = set; then
8994 enableval=$enable_python; python=$enableval
8995 else
8996 python=yes
8997 fi
8998
8999
9000
9001 MY_SUBDIRS=""
9002 RX_INCLUDES=""
9003 RX_LIBS=""
9004 if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9005 MY_SUBDIRS="rx $MY_SUBDIRS"
9006 RX_INCLUDES="-I../rx"
9007 RX_LIBS="../rx/librx.a"
9008 fi
9009 MY_SUBDIRS="$MY_SUBDIRS src"
9010 CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9011 if test "z$USE_MAINTAINER_MODE" = zyes ; then
9012 CFLAGS="$CFLAGS -Werror"
9013 fi
9014
9015
9016 tre_version="0.7.5"
9017 withval=''
9018
9019 # Check whether --with-tre was given.
9020 if test "${with_tre+set}" = set; then
9021 withval=$with_tre;
9022 fi
9023
9024 if test "x$withval" != "x"; then
9025 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9026 echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
9027 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9028 LIBS="$LIBS -L$withval/lib"
9029 else
9030 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9031 echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
9032 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
9033 LIBS="$LIBS -L${HOME}/lib"
9034 fi
9035 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9036 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9037 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9038 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 fi
9041 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9042 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9043 else
9044 # Is the header compilable?
9045 { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9046 echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9054 #include <tre/regex.h>
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9058 case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_compile") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest.$ac_objext; then
9073 ac_header_compiler=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ac_header_compiler=no
9079 fi
9080
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9083 echo "${ECHO_T}$ac_header_compiler" >&6; }
9084
9085 # Is the header present?
9086 { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9087 echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 #include <tre/regex.h>
9095 _ACEOF
9096 if { (ac_try="$ac_cpp conftest.$ac_ext"
9097 case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null && {
9109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 }; then
9112 ac_header_preproc=yes
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_header_preproc=no
9118 fi
9119
9120 rm -f conftest.err conftest.$ac_ext
9121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122 echo "${ECHO_T}$ac_header_preproc" >&6; }
9123
9124 # So? What about this header?
9125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9126 yes:no: )
9127 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9128 echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9130 echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
9131 ac_header_preproc=yes
9132 ;;
9133 no:yes:* )
9134 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9135 echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9137 echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9139 echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9141 echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9143 echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9145 echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
9146 ( cat <<\_ASBOX
9147 ## -------------------------------------------------- ##
9148 ## Report this to evilnet-devel@lists.sourceforge.net ##
9149 ## -------------------------------------------------- ##
9150 _ASBOX
9151 ) | sed "s/^/$as_me: WARNING: /" >&2
9152 ;;
9153 esac
9154 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9155 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9156 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 ac_cv_header_tre_regex_h=$ac_header_preproc
9160 fi
9161 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9162 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9163
9164 fi
9165 if test $ac_cv_header_tre_regex_h = yes; then
9166 :
9167 else
9168 { { 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
9169 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;}
9170 { (exit 1); exit 1; }; }
9171 fi
9172
9173
9174
9175 { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9176 echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9177 if test "${ac_cv_lib_tre_regexec+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 ac_check_lib_save_LIBS=$LIBS
9181 LIBS="-ltre $LIBS"
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char regexec ();
9196 int
9197 main ()
9198 {
9199 return regexec ();
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (ac_try="$ac_link"
9206 case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_link") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest$ac_exeext &&
9221 $as_test_x conftest$ac_exeext; then
9222 ac_cv_lib_tre_regexec=yes
9223 else
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 ac_cv_lib_tre_regexec=no
9228 fi
9229
9230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9231 conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9233 fi
9234 { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
9235 echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
9236 if test $ac_cv_lib_tre_regexec = yes; then
9237 cat >>confdefs.h <<_ACEOF
9238 #define HAVE_LIBTRE 1
9239 _ACEOF
9240
9241 LIBS="-ltre $LIBS"
9242
9243 else
9244 { { 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
9245 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;}
9246 { (exit 1); exit 1; }; }
9247 fi
9248
9249
9250 core_version="1.1"
9251 withval=''
9252
9253 # Check whether --with-coredumper was given.
9254 if test "${with_coredumper+set}" = set; then
9255 withval=$with_coredumper;
9256 fi
9257
9258 if test "x$withval" != "x"; then
9259 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
9260 echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
9261 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9262 LIBS="$LIBS -L$withval/lib"
9263 else
9264 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
9265 echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
9266 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
9267 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
9268 fi
9269 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9270 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9271 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9272 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 fi
9275 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9276 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9277 else
9278 # Is the header compilable?
9279 { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
9280 echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 $ac_includes_default
9288 #include <google/coredumper.h>
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (ac_try="$ac_compile"
9292 case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_compile") 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.$ac_objext; then
9307 ac_header_compiler=yes
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 ac_header_compiler=no
9313 fi
9314
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9317 echo "${ECHO_T}$ac_header_compiler" >&6; }
9318
9319 # Is the header present?
9320 { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
9321 echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h. */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 #include <google/coredumper.h>
9329 _ACEOF
9330 if { (ac_try="$ac_cpp conftest.$ac_ext"
9331 case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } >/dev/null && {
9343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 }; then
9346 ac_header_preproc=yes
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ac_header_preproc=no
9352 fi
9353
9354 rm -f conftest.err conftest.$ac_ext
9355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9356 echo "${ECHO_T}$ac_header_preproc" >&6; }
9357
9358 # So? What about this header?
9359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9360 yes:no: )
9361 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
9362 echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
9364 echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
9365 ac_header_preproc=yes
9366 ;;
9367 no:yes:* )
9368 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
9369 echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
9371 echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
9373 echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
9375 echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
9377 echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
9379 echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
9380 ( cat <<\_ASBOX
9381 ## -------------------------------------------------- ##
9382 ## Report this to evilnet-devel@lists.sourceforge.net ##
9383 ## -------------------------------------------------- ##
9384 _ASBOX
9385 ) | sed "s/^/$as_me: WARNING: /" >&2
9386 ;;
9387 esac
9388 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9389 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9390 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 ac_cv_header_google_coredumper_h=$ac_header_preproc
9394 fi
9395 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9396 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9397
9398 fi
9399 if test $ac_cv_header_google_coredumper_h = yes; then
9400 :
9401 else
9402 { 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
9403 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; }
9404 fi
9405
9406
9407
9408 { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
9409 echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
9410 if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 ac_check_lib_save_LIBS=$LIBS
9414 LIBS="-lcoredumper $LIBS"
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 char WriteCoreDump ();
9429 int
9430 main ()
9431 {
9432 return WriteCoreDump ();
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (ac_try="$ac_link"
9439 case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442 esac
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_link") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest$ac_exeext &&
9454 $as_test_x conftest$ac_exeext; then
9455 ac_cv_lib_coredumper_WriteCoreDump=yes
9456 else
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460 ac_cv_lib_coredumper_WriteCoreDump=no
9461 fi
9462
9463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9464 conftest$ac_exeext conftest.$ac_ext
9465 LIBS=$ac_check_lib_save_LIBS
9466 fi
9467 { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
9468 echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
9469 if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
9470 cat >>confdefs.h <<_ACEOF
9471 #define HAVE_LIBCOREDUMPER 1
9472 _ACEOF
9473
9474 LIBS="-lcoredumper $LIBS"
9475
9476 else
9477 { 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
9478 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; }
9479 fi
9480
9481
9482 withval=''
9483
9484 # Check whether --with-ssl was given.
9485 if test "${with_ssl+set}" = set; then
9486 withval=$with_ssl;
9487 fi
9488
9489 if test "x$withval" != "x"; then
9490 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
9491 echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
9492 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9493 LIBS="$LIBS -L$withval/lib"
9494 else
9495 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
9496 echo "${ECHO_T}Looking for openssl in system " >&6; }
9497 fi
9498
9499 { echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
9500 echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
9501 if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 ac_check_lib_save_LIBS=$LIBS
9505 LIBS="-lssl $LIBS"
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char BIO_new ();
9520 int
9521 main ()
9522 {
9523 return BIO_new ();
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9530 case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_link") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest$ac_exeext &&
9545 $as_test_x conftest$ac_exeext; then
9546 ac_cv_lib_ssl_BIO_new=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 ac_cv_lib_ssl_BIO_new=no
9552 fi
9553
9554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9557 fi
9558 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
9559 echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
9560 if test $ac_cv_lib_ssl_BIO_new = yes; then
9561
9562 LIBS="-lssl $LIBS"
9563
9564 for ac_header in openssl/bio.h
9565 do
9566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 fi
9573 ac_res=`eval echo '${'$as_ac_Header'}'`
9574 { echo "$as_me:$LINENO: result: $ac_res" >&5
9575 echo "${ECHO_T}$ac_res" >&6; }
9576 else
9577 # Is the header compilable?
9578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9587 #include <$ac_header>
9588 _ACEOF
9589 rm -f conftest.$ac_objext
9590 if { (ac_try="$ac_compile"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest.$ac_objext; then
9606 ac_header_compiler=yes
9607 else
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_header_compiler=no
9612 fi
9613
9614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9616 echo "${ECHO_T}$ac_header_compiler" >&6; }
9617
9618 # Is the header present?
9619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <$ac_header>
9628 _ACEOF
9629 if { (ac_try="$ac_cpp conftest.$ac_ext"
9630 case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } >/dev/null && {
9642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 }; then
9645 ac_header_preproc=yes
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 ac_header_preproc=no
9651 fi
9652
9653 rm -f conftest.err conftest.$ac_ext
9654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655 echo "${ECHO_T}$ac_header_preproc" >&6; }
9656
9657 # So? What about this header?
9658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9659 yes:no: )
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664 ac_header_preproc=yes
9665 ;;
9666 no:yes:* )
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679 ( cat <<\_ASBOX
9680 ## -------------------------------------------------- ##
9681 ## Report this to evilnet-devel@lists.sourceforge.net ##
9682 ## -------------------------------------------------- ##
9683 _ASBOX
9684 ) | sed "s/^/$as_me: WARNING: /" >&2
9685 ;;
9686 esac
9687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 eval "$as_ac_Header=\$ac_header_preproc"
9693 fi
9694 ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696 echo "${ECHO_T}$ac_res" >&6; }
9697
9698 fi
9699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9702 _ACEOF
9703
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define WITH_SSL 1
9707 _ACEOF
9708
9709 ssl_message="LDAP library: enabled"
9710
9711 else
9712
9713 if test "x$withval" != "x"; then
9714 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
9715 echo "$as_me: error: ssl headers not found" >&2;}
9716 { (exit 1); exit 1; }; }
9717 fi
9718
9719 fi
9720
9721 done
9722
9723
9724 else
9725
9726 if test "x$withval" != "x"; then
9727 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9728 echo "$as_me: error: libldap not found or not valid" >&2;}
9729 { (exit 1); exit 1; }; }
9730 fi
9731
9732
9733 fi
9734
9735 { echo "$as_me:$LINENO: result: $LIBS" >&5
9736 echo "${ECHO_T}$LIBS" >&6; }
9737
9738
9739 withval=''
9740
9741 # Check whether --with-ldap was given.
9742 if test "${with_ldap+set}" = set; then
9743 withval=$with_ldap;
9744 fi
9745
9746 if test "x$withval" != "x"; then
9747 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
9748 echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
9749 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9750 LIBS="$LIBS -L$withval/lib"
9751 else
9752 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
9753 echo "${ECHO_T}Looking for ldap in system " >&6; }
9754 fi
9755
9756 { echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
9757 echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
9758 if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761 ac_check_lib_save_LIBS=$LIBS
9762 LIBS="-lldap $LIBS"
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769
9770 /* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char ldap_simple_bind_s ();
9777 int
9778 main ()
9779 {
9780 return ldap_simple_bind_s ();
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9787 case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext &&
9802 $as_test_x conftest$ac_exeext; then
9803 ac_cv_lib_ldap_ldap_simple_bind_s=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ac_cv_lib_ldap_ldap_simple_bind_s=no
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
9816 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
9817 if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
9818
9819 LIBS="-lldap $LIBS"
9820
9821 for ac_header in ldap.h
9822 do
9823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 fi
9830 ac_res=`eval echo '${'$as_ac_Header'}'`
9831 { echo "$as_me:$LINENO: result: $ac_res" >&5
9832 echo "${ECHO_T}$ac_res" >&6; }
9833 else
9834 # Is the header compilable?
9835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 #include <$ac_header>
9845 _ACEOF
9846 rm -f conftest.$ac_objext
9847 if { (ac_try="$ac_compile"
9848 case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_compile") 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
9862 } && test -s conftest.$ac_objext; then
9863 ac_header_compiler=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_header_compiler=no
9869 fi
9870
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9873 echo "${ECHO_T}$ac_header_compiler" >&6; }
9874
9875 # Is the header present?
9876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h. */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9884 #include <$ac_header>
9885 _ACEOF
9886 if { (ac_try="$ac_cpp conftest.$ac_ext"
9887 case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } >/dev/null && {
9899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9900 test ! -s conftest.err
9901 }; then
9902 ac_header_preproc=yes
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_header_preproc=no
9908 fi
9909
9910 rm -f conftest.err conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6; }
9913
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916 yes:no: )
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9922 ;;
9923 no:yes:* )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936 ( cat <<\_ASBOX
9937 ## -------------------------------------------------- ##
9938 ## Report this to evilnet-devel@lists.sourceforge.net ##
9939 ## -------------------------------------------------- ##
9940 _ASBOX
9941 ) | sed "s/^/$as_me: WARNING: /" >&2
9942 ;;
9943 esac
9944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949 eval "$as_ac_Header=\$ac_header_preproc"
9950 fi
9951 ac_res=`eval echo '${'$as_ac_Header'}'`
9952 { echo "$as_me:$LINENO: result: $ac_res" >&5
9953 echo "${ECHO_T}$ac_res" >&6; }
9954
9955 fi
9956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9957 cat >>confdefs.h <<_ACEOF
9958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9959 _ACEOF
9960
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define WITH_LDAP 1
9964 _ACEOF
9965
9966 ldap_message="LDAP library: enabled"
9967
9968 else
9969
9970 if test "x$withval" != "x"; then
9971 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
9972 echo "$as_me: error: ldap.h not found" >&2;}
9973 { (exit 1); exit 1; }; }
9974 fi
9975
9976 fi
9977
9978 done
9979
9980
9981 else
9982
9983 if test "x$withval" != "x"; then
9984 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9985 echo "$as_me: error: libldap not found or not valid" >&2;}
9986 { (exit 1); exit 1; }; }
9987 fi
9988
9989
9990 fi
9991
9992
9993
9994 if test "$python" = yes; then
9995 # Extract the first word of "python2", so it can be a program name with args.
9996 set dummy python2; ac_word=$2
9997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9999 if test "${ac_cv_path_pythonpath+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002 case $pythonpath in
10003 [\\/]* | ?:[\\/]*)
10004 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10005 ;;
10006 *)
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10014 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018 done
10019 done
10020 IFS=$as_save_IFS
10021
10022 ;;
10023 esac
10024 fi
10025 pythonpath=$ac_cv_path_pythonpath
10026 if test -n "$pythonpath"; then
10027 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10028 echo "${ECHO_T}$pythonpath" >&6; }
10029 else
10030 { echo "$as_me:$LINENO: result: no" >&5
10031 echo "${ECHO_T}no" >&6; }
10032 fi
10033
10034
10035 if test "_$pythonpath" = _ ; then
10036 # Extract the first word of "python", so it can be a program name with args.
10037 set dummy python; ac_word=$2
10038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10040 if test "${ac_cv_path_pythonpath+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 case $pythonpath in
10044 [\\/]* | ?:[\\/]*)
10045 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10046 ;;
10047 *)
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10050 do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059 done
10060 done
10061 IFS=$as_save_IFS
10062
10063 ;;
10064 esac
10065 fi
10066 pythonpath=$ac_cv_path_pythonpath
10067 if test -n "$pythonpath"; then
10068 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10069 echo "${ECHO_T}$pythonpath" >&6; }
10070 else
10071 { echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6; }
10073 fi
10074
10075
10076 fi
10077 if test "_$pythonpath" = _ ; then
10078 python=no
10079 else
10080 { echo "$as_me:$LINENO: checking Python version" >&5
10081 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
10082 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
10083 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
10084 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
10085 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
10086 { echo "$as_me:$LINENO: result: $PY_VER" >&5
10087 echo "${ECHO_T}$PY_VER" >&6; }
10088 if test "$?" != "1"; then
10089 { echo "$as_me:$LINENO: checking Python compile flags" >&5
10090 echo $ECHO_N "checking Python compile flags... $ECHO_C" >&6; }
10091 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
10092 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
10093 if test -f $PY_INC/Python.h; then
10094
10095 cat >>confdefs.h <<\_ACEOF
10096 #define WITH_PYTHON 1
10097 _ACEOF
10098
10099 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
10100 PY_CFLAGS="-I$PY_INC"
10101 { echo "$as_me:$LINENO: result: ok" >&5
10102 echo "${ECHO_T}ok" >&6; }
10103 CFLAGS="$CFLAGS $PY_CFLAGS"
10104 LIBS="$LIBS $PY_LIBS"
10105 else
10106 python=no
10107 { echo "$as_me:$LINENO: result: Can't find Python.h" >&5
10108 echo "${ECHO_T}Can't find Python.h" >&6; }
10109 fi
10110 else
10111 echo "Python too old. Only 2.2 or above is supported."
10112 python=no
10113 fi
10114 fi
10115 fi
10116
10117 if test "x$python" = "xyes"; then
10118 DO_PYTHON_TRUE=
10119 DO_PYTHON_FALSE='#'
10120 else
10121 DO_PYTHON_TRUE='#'
10122 DO_PYTHON_FALSE=
10123 fi
10124
10125
10126 { echo "$as_me:$LINENO: result: $LIBS" >&5
10127 echo "${ECHO_T}$LIBS" >&6; }
10128
10129
10130 cat >>confdefs.h <<_ACEOF
10131 #define CODENAME "${CODENAME}"
10132 _ACEOF
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10143
10144 cat >confcache <<\_ACEOF
10145 # This file is a shell script that caches the results of configure
10146 # tests run on this system so they can be shared between configure
10147 # scripts and configure runs, see configure's option --config-cache.
10148 # It is not useful on other systems. If it contains results you don't
10149 # want to keep, you may remove or edit it.
10150 #
10151 # config.status only pays attention to the cache file if you give it
10152 # the --recheck option to rerun configure.
10153 #
10154 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10155 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10156 # following values.
10157
10158 _ACEOF
10159
10160 # The following way of writing the cache mishandles newlines in values,
10161 # but we know of no workaround that is simple, portable, and efficient.
10162 # So, we kill variables containing newlines.
10163 # Ultrix sh set writes to stderr and can't be redirected directly,
10164 # and sets the high bit in the cache file unless we assign to the vars.
10165 (
10166 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10167 eval ac_val=\$$ac_var
10168 case $ac_val in #(
10169 *${as_nl}*)
10170 case $ac_var in #(
10171 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10172 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10173 esac
10174 case $ac_var in #(
10175 _ | IFS | as_nl) ;; #(
10176 *) $as_unset $ac_var ;;
10177 esac ;;
10178 esac
10179 done
10180
10181 (set) 2>&1 |
10182 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10183 *${as_nl}ac_space=\ *)
10184 # `set' does not quote correctly, so add quotes (double-quote
10185 # substitution turns \\\\ into \\, and sed turns \\ into \).
10186 sed -n \
10187 "s/'/'\\\\''/g;
10188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10189 ;; #(
10190 *)
10191 # `set' quotes correctly as required by POSIX, so do not add quotes.
10192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10193 ;;
10194 esac |
10195 sort
10196 ) |
10197 sed '
10198 /^ac_cv_env_/b end
10199 t clear
10200 :clear
10201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10202 t end
10203 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10204 :end' >>confcache
10205 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10206 if test -w "$cache_file"; then
10207 test "x$cache_file" != "x/dev/null" &&
10208 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10209 echo "$as_me: updating cache $cache_file" >&6;}
10210 cat confcache >$cache_file
10211 else
10212 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10213 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10214 fi
10215 fi
10216 rm -f confcache
10217
10218 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10219 # Let make expand exec_prefix.
10220 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10221
10222 DEFS=-DHAVE_CONFIG_H
10223
10224 ac_libobjs=
10225 ac_ltlibobjs=
10226 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10227 # 1. Remove the extension, and $U if already installed.
10228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10229 ac_i=`echo "$ac_i" | sed "$ac_script"`
10230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10231 # will be set to the directory where LIBOBJS objects are built.
10232 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10233 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10234 done
10235 LIBOBJS=$ac_libobjs
10236
10237 LTLIBOBJS=$ac_ltlibobjs
10238
10239
10240 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10241 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10242 Usually this means the macro was only invoked conditionally." >&5
10243 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10244 Usually this means the macro was only invoked conditionally." >&2;}
10245 { (exit 1); exit 1; }; }
10246 fi
10247 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10248 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10249 Usually this means the macro was only invoked conditionally." >&5
10250 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10251 Usually this means the macro was only invoked conditionally." >&2;}
10252 { (exit 1); exit 1; }; }
10253 fi
10254 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10255 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10256 Usually this means the macro was only invoked conditionally." >&5
10257 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10258 Usually this means the macro was only invoked conditionally." >&2;}
10259 { (exit 1); exit 1; }; }
10260 fi
10261 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10262 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10263 Usually this means the macro was only invoked conditionally." >&5
10264 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10265 Usually this means the macro was only invoked conditionally." >&2;}
10266 { (exit 1); exit 1; }; }
10267 fi
10268 if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
10269 { { echo "$as_me:$LINENO: error: conditional \"DO_PYTHON\" was never defined.
10270 Usually this means the macro was only invoked conditionally." >&5
10271 echo "$as_me: error: conditional \"DO_PYTHON\" was never defined.
10272 Usually this means the macro was only invoked conditionally." >&2;}
10273 { (exit 1); exit 1; }; }
10274 fi
10275
10276 : ${CONFIG_STATUS=./config.status}
10277 ac_clean_files_save=$ac_clean_files
10278 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10279 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10280 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10281 cat >$CONFIG_STATUS <<_ACEOF
10282 #! $SHELL
10283 # Generated by $as_me.
10284 # Run this file to recreate the current configuration.
10285 # Compiler output produced by configure, useful for debugging
10286 # configure, is in config.log if it exists.
10287
10288 debug=false
10289 ac_cs_recheck=false
10290 ac_cs_silent=false
10291 SHELL=\${CONFIG_SHELL-$SHELL}
10292 _ACEOF
10293
10294 cat >>$CONFIG_STATUS <<\_ACEOF
10295 ## --------------------- ##
10296 ## M4sh Initialization. ##
10297 ## --------------------- ##
10298
10299 # Be more Bourne compatible
10300 DUALCASE=1; export DUALCASE # for MKS sh
10301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10302 emulate sh
10303 NULLCMD=:
10304 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10305 # is contrary to our usage. Disable this feature.
10306 alias -g '${1+"$@"}'='"$@"'
10307 setopt NO_GLOB_SUBST
10308 else
10309 case `(set -o) 2>/dev/null` in
10310 *posix*) set -o posix ;;
10311 esac
10312
10313 fi
10314
10315
10316
10317
10318 # PATH needs CR
10319 # Avoid depending upon Character Ranges.
10320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10323 as_cr_digits='0123456789'
10324 as_cr_alnum=$as_cr_Letters$as_cr_digits
10325
10326 # The user is always right.
10327 if test "${PATH_SEPARATOR+set}" != set; then
10328 echo "#! /bin/sh" >conf$$.sh
10329 echo "exit 0" >>conf$$.sh
10330 chmod +x conf$$.sh
10331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10332 PATH_SEPARATOR=';'
10333 else
10334 PATH_SEPARATOR=:
10335 fi
10336 rm -f conf$$.sh
10337 fi
10338
10339 # Support unset when possible.
10340 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10341 as_unset=unset
10342 else
10343 as_unset=false
10344 fi
10345
10346
10347 # IFS
10348 # We need space, tab and new line, in precisely that order. Quoting is
10349 # there to prevent editors from complaining about space-tab.
10350 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10351 # splitting by setting IFS to empty value.)
10352 as_nl='
10353 '
10354 IFS=" "" $as_nl"
10355
10356 # Find who we are. Look in the path if we contain no directory separator.
10357 case $0 in
10358 *[\\/]* ) as_myself=$0 ;;
10359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10361 do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10365 done
10366 IFS=$as_save_IFS
10367
10368 ;;
10369 esac
10370 # We did not find ourselves, most probably we were run as `sh COMMAND'
10371 # in which case we are not to be found in the path.
10372 if test "x$as_myself" = x; then
10373 as_myself=$0
10374 fi
10375 if test ! -f "$as_myself"; then
10376 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10377 { (exit 1); exit 1; }
10378 fi
10379
10380 # Work around bugs in pre-3.0 UWIN ksh.
10381 for as_var in ENV MAIL MAILPATH
10382 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10383 done
10384 PS1='$ '
10385 PS2='> '
10386 PS4='+ '
10387
10388 # NLS nuisances.
10389 for as_var in \
10390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10392 LC_TELEPHONE LC_TIME
10393 do
10394 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10395 eval $as_var=C; export $as_var
10396 else
10397 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10398 fi
10399 done
10400
10401 # Required to use basename.
10402 if expr a : '\(a\)' >/dev/null 2>&1 &&
10403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10404 as_expr=expr
10405 else
10406 as_expr=false
10407 fi
10408
10409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10410 as_basename=basename
10411 else
10412 as_basename=false
10413 fi
10414
10415
10416 # Name of the executable.
10417 as_me=`$as_basename -- "$0" ||
10418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10419 X"$0" : 'X\(//\)$' \| \
10420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10421 echo X/"$0" |
10422 sed '/^.*\/\([^/][^/]*\)\/*$/{
10423 s//\1/
10424 q
10425 }
10426 /^X\/\(\/\/\)$/{
10427 s//\1/
10428 q
10429 }
10430 /^X\/\(\/\).*/{
10431 s//\1/
10432 q
10433 }
10434 s/.*/./; q'`
10435
10436 # CDPATH.
10437 $as_unset CDPATH
10438
10439
10440
10441 as_lineno_1=$LINENO
10442 as_lineno_2=$LINENO
10443 test "x$as_lineno_1" != "x$as_lineno_2" &&
10444 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10445
10446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10447 # uniformly replaced by the line number. The first 'sed' inserts a
10448 # line-number line after each line using $LINENO; the second 'sed'
10449 # does the real work. The second script uses 'N' to pair each
10450 # line-number line with the line containing $LINENO, and appends
10451 # trailing '-' during substitution so that $LINENO is not a special
10452 # case at line end.
10453 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10454 # scripts with optimization help from Paolo Bonzini. Blame Lee
10455 # E. McMahon (1931-1989) for sed's syntax. :-)
10456 sed -n '
10457 p
10458 /[$]LINENO/=
10459 ' <$as_myself |
10460 sed '
10461 s/[$]LINENO.*/&-/
10462 t lineno
10463 b
10464 :lineno
10465 N
10466 :loop
10467 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10468 t loop
10469 s/-\n.*//
10470 ' >$as_me.lineno &&
10471 chmod +x "$as_me.lineno" ||
10472 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10473 { (exit 1); exit 1; }; }
10474
10475 # Don't try to exec as it changes $[0], causing all sort of problems
10476 # (the dirname of $[0] is not the place where we might find the
10477 # original and so on. Autoconf is especially sensitive to this).
10478 . "./$as_me.lineno"
10479 # Exit status is that of the last command.
10480 exit
10481 }
10482
10483
10484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10485 as_dirname=dirname
10486 else
10487 as_dirname=false
10488 fi
10489
10490 ECHO_C= ECHO_N= ECHO_T=
10491 case `echo -n x` in
10492 -n*)
10493 case `echo 'x\c'` in
10494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10495 *) ECHO_C='\c';;
10496 esac;;
10497 *)
10498 ECHO_N='-n';;
10499 esac
10500
10501 if expr a : '\(a\)' >/dev/null 2>&1 &&
10502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10503 as_expr=expr
10504 else
10505 as_expr=false
10506 fi
10507
10508 rm -f conf$$ conf$$.exe conf$$.file
10509 if test -d conf$$.dir; then
10510 rm -f conf$$.dir/conf$$.file
10511 else
10512 rm -f conf$$.dir
10513 mkdir conf$$.dir
10514 fi
10515 echo >conf$$.file
10516 if ln -s conf$$.file conf$$ 2>/dev/null; then
10517 as_ln_s='ln -s'
10518 # ... but there are two gotchas:
10519 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10520 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10521 # In both cases, we have to default to `cp -p'.
10522 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10523 as_ln_s='cp -p'
10524 elif ln conf$$.file conf$$ 2>/dev/null; then
10525 as_ln_s=ln
10526 else
10527 as_ln_s='cp -p'
10528 fi
10529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10530 rmdir conf$$.dir 2>/dev/null
10531
10532 if mkdir -p . 2>/dev/null; then
10533 as_mkdir_p=:
10534 else
10535 test -d ./-p && rmdir ./-p
10536 as_mkdir_p=false
10537 fi
10538
10539 if test -x / >/dev/null 2>&1; then
10540 as_test_x='test -x'
10541 else
10542 if ls -dL / >/dev/null 2>&1; then
10543 as_ls_L_option=L
10544 else
10545 as_ls_L_option=
10546 fi
10547 as_test_x='
10548 eval sh -c '\''
10549 if test -d "$1"; then
10550 test -d "$1/.";
10551 else
10552 case $1 in
10553 -*)set "./$1";;
10554 esac;
10555 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10556 ???[sx]*):;;*)false;;esac;fi
10557 '\'' sh
10558 '
10559 fi
10560 as_executable_p=$as_test_x
10561
10562 # Sed expression to map a string onto a valid CPP name.
10563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10564
10565 # Sed expression to map a string onto a valid variable name.
10566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10567
10568
10569 exec 6>&1
10570
10571 # Save the log message, to keep $[0] and so on meaningful, and to
10572 # report actual input values of CONFIG_FILES etc. instead of their
10573 # values after options handling.
10574 ac_log="
10575 This file was extended by X3 $as_me 1.6, which was
10576 generated by GNU Autoconf 2.61. Invocation command line was
10577
10578 CONFIG_FILES = $CONFIG_FILES
10579 CONFIG_HEADERS = $CONFIG_HEADERS
10580 CONFIG_LINKS = $CONFIG_LINKS
10581 CONFIG_COMMANDS = $CONFIG_COMMANDS
10582 $ $0 $@
10583
10584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10585 "
10586
10587 _ACEOF
10588
10589 cat >>$CONFIG_STATUS <<_ACEOF
10590 # Files that config.status was made for.
10591 config_files="$ac_config_files"
10592 config_headers="$ac_config_headers"
10593 config_commands="$ac_config_commands"
10594
10595 _ACEOF
10596
10597 cat >>$CONFIG_STATUS <<\_ACEOF
10598 ac_cs_usage="\
10599 \`$as_me' instantiates files from templates according to the
10600 current configuration.
10601
10602 Usage: $0 [OPTIONS] [FILE]...
10603
10604 -h, --help print this help, then exit
10605 -V, --version print version number and configuration settings, then exit
10606 -q, --quiet do not print progress messages
10607 -d, --debug don't remove temporary files
10608 --recheck update $as_me by reconfiguring in the same conditions
10609 --file=FILE[:TEMPLATE]
10610 instantiate the configuration file FILE
10611 --header=FILE[:TEMPLATE]
10612 instantiate the configuration header FILE
10613
10614 Configuration files:
10615 $config_files
10616
10617 Configuration headers:
10618 $config_headers
10619
10620 Configuration commands:
10621 $config_commands
10622
10623 Report bugs to <bug-autoconf@gnu.org>."
10624
10625 _ACEOF
10626 cat >>$CONFIG_STATUS <<_ACEOF
10627 ac_cs_version="\\
10628 X3 config.status 1.6
10629 configured by $0, generated by GNU Autoconf 2.61,
10630 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10631
10632 Copyright (C) 2006 Free Software Foundation, Inc.
10633 This config.status script is free software; the Free Software Foundation
10634 gives unlimited permission to copy, distribute and modify it."
10635
10636 ac_pwd='$ac_pwd'
10637 srcdir='$srcdir'
10638 INSTALL='$INSTALL'
10639 MKDIR_P='$MKDIR_P'
10640 _ACEOF
10641
10642 cat >>$CONFIG_STATUS <<\_ACEOF
10643 # If no file are specified by the user, then we need to provide default
10644 # value. By we need to know if files were specified by the user.
10645 ac_need_defaults=:
10646 while test $# != 0
10647 do
10648 case $1 in
10649 --*=*)
10650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10652 ac_shift=:
10653 ;;
10654 *)
10655 ac_option=$1
10656 ac_optarg=$2
10657 ac_shift=shift
10658 ;;
10659 esac
10660
10661 case $ac_option in
10662 # Handling of the options.
10663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10664 ac_cs_recheck=: ;;
10665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10666 echo "$ac_cs_version"; exit ;;
10667 --debug | --debu | --deb | --de | --d | -d )
10668 debug=: ;;
10669 --file | --fil | --fi | --f )
10670 $ac_shift
10671 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10672 ac_need_defaults=false;;
10673 --header | --heade | --head | --hea )
10674 $ac_shift
10675 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10676 ac_need_defaults=false;;
10677 --he | --h)
10678 # Conflict between --help and --header
10679 { echo "$as_me: error: ambiguous option: $1
10680 Try \`$0 --help' for more information." >&2
10681 { (exit 1); exit 1; }; };;
10682 --help | --hel | -h )
10683 echo "$ac_cs_usage"; exit ;;
10684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10686 ac_cs_silent=: ;;
10687
10688 # This is an error.
10689 -*) { echo "$as_me: error: unrecognized option: $1
10690 Try \`$0 --help' for more information." >&2
10691 { (exit 1); exit 1; }; } ;;
10692
10693 *) ac_config_targets="$ac_config_targets $1"
10694 ac_need_defaults=false ;;
10695
10696 esac
10697 shift
10698 done
10699
10700 ac_configure_extra_args=
10701
10702 if $ac_cs_silent; then
10703 exec 6>/dev/null
10704 ac_configure_extra_args="$ac_configure_extra_args --silent"
10705 fi
10706
10707 _ACEOF
10708 cat >>$CONFIG_STATUS <<_ACEOF
10709 if \$ac_cs_recheck; then
10710 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10711 CONFIG_SHELL=$SHELL
10712 export CONFIG_SHELL
10713 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10714 fi
10715
10716 _ACEOF
10717 cat >>$CONFIG_STATUS <<\_ACEOF
10718 exec 5>>config.log
10719 {
10720 echo
10721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10722 ## Running $as_me. ##
10723 _ASBOX
10724 echo "$ac_log"
10725 } >&5
10726
10727 _ACEOF
10728 cat >>$CONFIG_STATUS <<_ACEOF
10729 #
10730 # INIT-COMMANDS
10731 #
10732 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10733
10734 _ACEOF
10735
10736 cat >>$CONFIG_STATUS <<\_ACEOF
10737
10738 # Handling of arguments.
10739 for ac_config_target in $ac_config_targets
10740 do
10741 case $ac_config_target in
10742 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10745 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10746 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10747
10748 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10749 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10750 { (exit 1); exit 1; }; };;
10751 esac
10752 done
10753
10754
10755 # If the user did not use the arguments to specify the items to instantiate,
10756 # then the envvar interface is used. Set only those that are not.
10757 # We use the long form for the default assignment because of an extremely
10758 # bizarre bug on SunOS 4.1.3.
10759 if $ac_need_defaults; then
10760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10763 fi
10764
10765 # Have a temporary directory for convenience. Make it in the build tree
10766 # simply because there is no reason against having it here, and in addition,
10767 # creating and moving files from /tmp can sometimes cause problems.
10768 # Hook for its removal unless debugging.
10769 # Note that there is a small window in which the directory will not be cleaned:
10770 # after its creation but before its name has been assigned to `$tmp'.
10771 $debug ||
10772 {
10773 tmp=
10774 trap 'exit_status=$?
10775 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10776 ' 0
10777 trap '{ (exit 1); exit 1; }' 1 2 13 15
10778 }
10779 # Create a (secure) tmp directory for tmp files.
10780
10781 {
10782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10783 test -n "$tmp" && test -d "$tmp"
10784 } ||
10785 {
10786 tmp=./conf$$-$RANDOM
10787 (umask 077 && mkdir "$tmp")
10788 } ||
10789 {
10790 echo "$me: cannot create a temporary directory in ." >&2
10791 { (exit 1); exit 1; }
10792 }
10793
10794 #
10795 # Set up the sed scripts for CONFIG_FILES section.
10796 #
10797
10798 # No need to generate the scripts if there are no CONFIG_FILES.
10799 # This happens for instance when ./config.status config.h
10800 if test -n "$CONFIG_FILES"; then
10801
10802 _ACEOF
10803
10804
10805
10806 ac_delim='%!_!# '
10807 for ac_last_try in false false false false false :; do
10808 cat >conf$$subs.sed <<_ACEOF
10809 SHELL!$SHELL$ac_delim
10810 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10811 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10812 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10813 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10814 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10815 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10816 exec_prefix!$exec_prefix$ac_delim
10817 prefix!$prefix$ac_delim
10818 program_transform_name!$program_transform_name$ac_delim
10819 bindir!$bindir$ac_delim
10820 sbindir!$sbindir$ac_delim
10821 libexecdir!$libexecdir$ac_delim
10822 datarootdir!$datarootdir$ac_delim
10823 datadir!$datadir$ac_delim
10824 sysconfdir!$sysconfdir$ac_delim
10825 sharedstatedir!$sharedstatedir$ac_delim
10826 localstatedir!$localstatedir$ac_delim
10827 includedir!$includedir$ac_delim
10828 oldincludedir!$oldincludedir$ac_delim
10829 docdir!$docdir$ac_delim
10830 infodir!$infodir$ac_delim
10831 htmldir!$htmldir$ac_delim
10832 dvidir!$dvidir$ac_delim
10833 pdfdir!$pdfdir$ac_delim
10834 psdir!$psdir$ac_delim
10835 libdir!$libdir$ac_delim
10836 localedir!$localedir$ac_delim
10837 mandir!$mandir$ac_delim
10838 DEFS!$DEFS$ac_delim
10839 ECHO_C!$ECHO_C$ac_delim
10840 ECHO_N!$ECHO_N$ac_delim
10841 ECHO_T!$ECHO_T$ac_delim
10842 LIBS!$LIBS$ac_delim
10843 build_alias!$build_alias$ac_delim
10844 host_alias!$host_alias$ac_delim
10845 target_alias!$target_alias$ac_delim
10846 build!$build$ac_delim
10847 build_cpu!$build_cpu$ac_delim
10848 build_vendor!$build_vendor$ac_delim
10849 build_os!$build_os$ac_delim
10850 host!$host$ac_delim
10851 host_cpu!$host_cpu$ac_delim
10852 host_vendor!$host_vendor$ac_delim
10853 host_os!$host_os$ac_delim
10854 target!$target$ac_delim
10855 target_cpu!$target_cpu$ac_delim
10856 target_vendor!$target_vendor$ac_delim
10857 target_os!$target_os$ac_delim
10858 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10859 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10860 INSTALL_DATA!$INSTALL_DATA$ac_delim
10861 am__isrc!$am__isrc$ac_delim
10862 CYGPATH_W!$CYGPATH_W$ac_delim
10863 PACKAGE!$PACKAGE$ac_delim
10864 VERSION!$VERSION$ac_delim
10865 ACLOCAL!$ACLOCAL$ac_delim
10866 AUTOCONF!$AUTOCONF$ac_delim
10867 AUTOMAKE!$AUTOMAKE$ac_delim
10868 AUTOHEADER!$AUTOHEADER$ac_delim
10869 MAKEINFO!$MAKEINFO$ac_delim
10870 install_sh!$install_sh$ac_delim
10871 STRIP!$STRIP$ac_delim
10872 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10873 mkdir_p!$mkdir_p$ac_delim
10874 AWK!$AWK$ac_delim
10875 SET_MAKE!$SET_MAKE$ac_delim
10876 am__leading_dot!$am__leading_dot$ac_delim
10877 AMTAR!$AMTAR$ac_delim
10878 am__tar!$am__tar$ac_delim
10879 am__untar!$am__untar$ac_delim
10880 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10881 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10882 MAINT!$MAINT$ac_delim
10883 CC!$CC$ac_delim
10884 CFLAGS!$CFLAGS$ac_delim
10885 LDFLAGS!$LDFLAGS$ac_delim
10886 CPPFLAGS!$CPPFLAGS$ac_delim
10887 ac_ct_CC!$ac_ct_CC$ac_delim
10888 EXEEXT!$EXEEXT$ac_delim
10889 OBJEXT!$OBJEXT$ac_delim
10890 DEPDIR!$DEPDIR$ac_delim
10891 am__include!$am__include$ac_delim
10892 am__quote!$am__quote$ac_delim
10893 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10894 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10895 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10896 CCDEPMODE!$CCDEPMODE$ac_delim
10897 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10898 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10899 CP!$CP$ac_delim
10900 RANLIB!$RANLIB$ac_delim
10901 LN_S!$LN_S$ac_delim
10902 CPP!$CPP$ac_delim
10903 GREP!$GREP$ac_delim
10904 EGREP!$EGREP$ac_delim
10905 MAKER!$MAKER$ac_delim
10906 _ACEOF
10907
10908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10909 break
10910 elif $ac_last_try; then
10911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10913 { (exit 1); exit 1; }; }
10914 else
10915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10916 fi
10917 done
10918
10919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10920 if test -n "$ac_eof"; then
10921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10922 ac_eof=`expr $ac_eof + 1`
10923 fi
10924
10925 cat >>$CONFIG_STATUS <<_ACEOF
10926 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10928 _ACEOF
10929 sed '
10930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10931 s/^/s,@/; s/!/@,|#_!!_#|/
10932 :n
10933 t n
10934 s/'"$ac_delim"'$/,g/; t
10935 s/$/\\/; p
10936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10937 ' >>$CONFIG_STATUS <conf$$subs.sed
10938 rm -f conf$$subs.sed
10939 cat >>$CONFIG_STATUS <<_ACEOF
10940 CEOF$ac_eof
10941 _ACEOF
10942
10943
10944 ac_delim='%!_!# '
10945 for ac_last_try in false false false false false :; do
10946 cat >conf$$subs.sed <<_ACEOF
10947 ALLOCA!$ALLOCA$ac_delim
10948 pythonpath!$pythonpath$ac_delim
10949 DO_PYTHON_TRUE!$DO_PYTHON_TRUE$ac_delim
10950 DO_PYTHON_FALSE!$DO_PYTHON_FALSE$ac_delim
10951 MODULE_OBJS!$MODULE_OBJS$ac_delim
10952 MY_SUBDIRS!$MY_SUBDIRS$ac_delim
10953 RX_INCLUDES!$RX_INCLUDES$ac_delim
10954 RX_LIBS!$RX_LIBS$ac_delim
10955 TRACK!$TRACK$ac_delim
10956 PY_CFLAGS!$PY_CFLAGS$ac_delim
10957 PY_LIBS!$PY_LIBS$ac_delim
10958 LIBOBJS!$LIBOBJS$ac_delim
10959 LTLIBOBJS!$LTLIBOBJS$ac_delim
10960 _ACEOF
10961
10962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
10963 break
10964 elif $ac_last_try; then
10965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10967 { (exit 1); exit 1; }; }
10968 else
10969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10970 fi
10971 done
10972
10973 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10974 if test -n "$ac_eof"; then
10975 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10976 ac_eof=`expr $ac_eof + 1`
10977 fi
10978
10979 cat >>$CONFIG_STATUS <<_ACEOF
10980 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10982 _ACEOF
10983 sed '
10984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10985 s/^/s,@/; s/!/@,|#_!!_#|/
10986 :n
10987 t n
10988 s/'"$ac_delim"'$/,g/; t
10989 s/$/\\/; p
10990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10991 ' >>$CONFIG_STATUS <conf$$subs.sed
10992 rm -f conf$$subs.sed
10993 cat >>$CONFIG_STATUS <<_ACEOF
10994 :end
10995 s/|#_!!_#|//g
10996 CEOF$ac_eof
10997 _ACEOF
10998
10999
11000 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11001 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11002 # trailing colons and then remove the whole line if VPATH becomes empty
11003 # (actually we leave an empty line to preserve line numbers).
11004 if test "x$srcdir" = x.; then
11005 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11006 s/:*\$(srcdir):*/:/
11007 s/:*\${srcdir}:*/:/
11008 s/:*@srcdir@:*/:/
11009 s/^\([^=]*=[ ]*\):*/\1/
11010 s/:*$//
11011 s/^[^=]*=[ ]*$//
11012 }'
11013 fi
11014
11015 cat >>$CONFIG_STATUS <<\_ACEOF
11016 fi # test -n "$CONFIG_FILES"
11017
11018
11019 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11020 do
11021 case $ac_tag in
11022 :[FHLC]) ac_mode=$ac_tag; continue;;
11023 esac
11024 case $ac_mode$ac_tag in
11025 :[FHL]*:*);;
11026 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11027 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11028 { (exit 1); exit 1; }; };;
11029 :[FH]-) ac_tag=-:-;;
11030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11031 esac
11032 ac_save_IFS=$IFS
11033 IFS=:
11034 set x $ac_tag
11035 IFS=$ac_save_IFS
11036 shift
11037 ac_file=$1
11038 shift
11039
11040 case $ac_mode in
11041 :L) ac_source=$1;;
11042 :[FH])
11043 ac_file_inputs=
11044 for ac_f
11045 do
11046 case $ac_f in
11047 -) ac_f="$tmp/stdin";;
11048 *) # Look for the file first in the build tree, then in the source tree
11049 # (if the path is not absolute). The absolute path cannot be DOS-style,
11050 # because $ac_f cannot contain `:'.
11051 test -f "$ac_f" ||
11052 case $ac_f in
11053 [\\/$]*) false;;
11054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11055 esac ||
11056 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11057 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11058 { (exit 1); exit 1; }; };;
11059 esac
11060 ac_file_inputs="$ac_file_inputs $ac_f"
11061 done
11062
11063 # Let's still pretend it is `configure' which instantiates (i.e., don't
11064 # use $as_me), people would be surprised to read:
11065 # /* config.h. Generated by config.status. */
11066 configure_input="Generated from "`IFS=:
11067 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11068 if test x"$ac_file" != x-; then
11069 configure_input="$ac_file. $configure_input"
11070 { echo "$as_me:$LINENO: creating $ac_file" >&5
11071 echo "$as_me: creating $ac_file" >&6;}
11072 fi
11073
11074 case $ac_tag in
11075 *:-:* | *:-) cat >"$tmp/stdin";;
11076 esac
11077 ;;
11078 esac
11079
11080 ac_dir=`$as_dirname -- "$ac_file" ||
11081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11082 X"$ac_file" : 'X\(//\)[^/]' \| \
11083 X"$ac_file" : 'X\(//\)$' \| \
11084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11085 echo X"$ac_file" |
11086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11087 s//\1/
11088 q
11089 }
11090 /^X\(\/\/\)[^/].*/{
11091 s//\1/
11092 q
11093 }
11094 /^X\(\/\/\)$/{
11095 s//\1/
11096 q
11097 }
11098 /^X\(\/\).*/{
11099 s//\1/
11100 q
11101 }
11102 s/.*/./; q'`
11103 { as_dir="$ac_dir"
11104 case $as_dir in #(
11105 -*) as_dir=./$as_dir;;
11106 esac
11107 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11108 as_dirs=
11109 while :; do
11110 case $as_dir in #(
11111 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11112 *) as_qdir=$as_dir;;
11113 esac
11114 as_dirs="'$as_qdir' $as_dirs"
11115 as_dir=`$as_dirname -- "$as_dir" ||
11116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11117 X"$as_dir" : 'X\(//\)[^/]' \| \
11118 X"$as_dir" : 'X\(//\)$' \| \
11119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11120 echo X"$as_dir" |
11121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11122 s//\1/
11123 q
11124 }
11125 /^X\(\/\/\)[^/].*/{
11126 s//\1/
11127 q
11128 }
11129 /^X\(\/\/\)$/{
11130 s//\1/
11131 q
11132 }
11133 /^X\(\/\).*/{
11134 s//\1/
11135 q
11136 }
11137 s/.*/./; q'`
11138 test -d "$as_dir" && break
11139 done
11140 test -z "$as_dirs" || eval "mkdir $as_dirs"
11141 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11142 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11143 { (exit 1); exit 1; }; }; }
11144 ac_builddir=.
11145
11146 case "$ac_dir" in
11147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11148 *)
11149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11150 # A ".." for each directory in $ac_dir_suffix.
11151 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11152 case $ac_top_builddir_sub in
11153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11155 esac ;;
11156 esac
11157 ac_abs_top_builddir=$ac_pwd
11158 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11159 # for backward compatibility:
11160 ac_top_builddir=$ac_top_build_prefix
11161
11162 case $srcdir in
11163 .) # We are building in place.
11164 ac_srcdir=.
11165 ac_top_srcdir=$ac_top_builddir_sub
11166 ac_abs_top_srcdir=$ac_pwd ;;
11167 [\\/]* | ?:[\\/]* ) # Absolute name.
11168 ac_srcdir=$srcdir$ac_dir_suffix;
11169 ac_top_srcdir=$srcdir
11170 ac_abs_top_srcdir=$srcdir ;;
11171 *) # Relative name.
11172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11173 ac_top_srcdir=$ac_top_build_prefix$srcdir
11174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11175 esac
11176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11177
11178
11179 case $ac_mode in
11180 :F)
11181 #
11182 # CONFIG_FILE
11183 #
11184
11185 case $INSTALL in
11186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11188 esac
11189 ac_MKDIR_P=$MKDIR_P
11190 case $MKDIR_P in
11191 [\\/$]* | ?:[\\/]* ) ;;
11192 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11193 esac
11194 _ACEOF
11195
11196 cat >>$CONFIG_STATUS <<\_ACEOF
11197 # If the template does not know about datarootdir, expand it.
11198 # FIXME: This hack should be removed a few years after 2.60.
11199 ac_datarootdir_hack=; ac_datarootdir_seen=
11200
11201 case `sed -n '/datarootdir/ {
11202 p
11203 q
11204 }
11205 /@datadir@/p
11206 /@docdir@/p
11207 /@infodir@/p
11208 /@localedir@/p
11209 /@mandir@/p
11210 ' $ac_file_inputs` in
11211 *datarootdir*) ac_datarootdir_seen=yes;;
11212 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11213 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11214 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11215 _ACEOF
11216 cat >>$CONFIG_STATUS <<_ACEOF
11217 ac_datarootdir_hack='
11218 s&@datadir@&$datadir&g
11219 s&@docdir@&$docdir&g
11220 s&@infodir@&$infodir&g
11221 s&@localedir@&$localedir&g
11222 s&@mandir@&$mandir&g
11223 s&\\\${datarootdir}&$datarootdir&g' ;;
11224 esac
11225 _ACEOF
11226
11227 # Neutralize VPATH when `$srcdir' = `.'.
11228 # Shell code in configure.ac might set extrasub.
11229 # FIXME: do we really want to maintain this feature?
11230 cat >>$CONFIG_STATUS <<_ACEOF
11231 sed "$ac_vpsub
11232 $extrasub
11233 _ACEOF
11234 cat >>$CONFIG_STATUS <<\_ACEOF
11235 :t
11236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11237 s&@configure_input@&$configure_input&;t t
11238 s&@top_builddir@&$ac_top_builddir_sub&;t t
11239 s&@srcdir@&$ac_srcdir&;t t
11240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11241 s&@top_srcdir@&$ac_top_srcdir&;t t
11242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11243 s&@builddir@&$ac_builddir&;t t
11244 s&@abs_builddir@&$ac_abs_builddir&;t t
11245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11246 s&@INSTALL@&$ac_INSTALL&;t t
11247 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11248 $ac_datarootdir_hack
11249 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11250
11251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11254 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11255 which seems to be undefined. Please make sure it is defined." >&5
11256 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11257 which seems to be undefined. Please make sure it is defined." >&2;}
11258
11259 rm -f "$tmp/stdin"
11260 case $ac_file in
11261 -) cat "$tmp/out"; rm -f "$tmp/out";;
11262 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11263 esac
11264 ;;
11265 :H)
11266 #
11267 # CONFIG_HEADER
11268 #
11269 _ACEOF
11270
11271 # Transform confdefs.h into a sed script `conftest.defines', that
11272 # substitutes the proper values into config.h.in to produce config.h.
11273 rm -f conftest.defines conftest.tail
11274 # First, append a space to every undef/define line, to ease matching.
11275 echo 's/$/ /' >conftest.defines
11276 # Then, protect against being on the right side of a sed subst, or in
11277 # an unquoted here document, in config.status. If some macros were
11278 # called several times there might be several #defines for the same
11279 # symbol, which is useless. But do not sort them, since the last
11280 # AC_DEFINE must be honored.
11281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11282 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11283 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11284 # PARAMS is the parameter list in the macro definition--in most cases, it's
11285 # just an empty string.
11286 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11287 ac_dB='\\)[ (].*,\\1define\\2'
11288 ac_dC=' '
11289 ac_dD=' ,'
11290
11291 uniq confdefs.h |
11292 sed -n '
11293 t rset
11294 :rset
11295 s/^[ ]*#[ ]*define[ ][ ]*//
11296 t ok
11297 d
11298 :ok
11299 s/[\\&,]/\\&/g
11300 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11301 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11302 ' >>conftest.defines
11303
11304 # Remove the space that was appended to ease matching.
11305 # Then replace #undef with comments. This is necessary, for
11306 # example, in the case of _POSIX_SOURCE, which is predefined and required
11307 # on some systems where configure will not decide to define it.
11308 # (The regexp can be short, since the line contains either #define or #undef.)
11309 echo 's/ $//
11310 s,^[ #]*u.*,/* & */,' >>conftest.defines
11311
11312 # Break up conftest.defines:
11313 ac_max_sed_lines=50
11314
11315 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11316 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11317 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11318 # et cetera.
11319 ac_in='$ac_file_inputs'
11320 ac_out='"$tmp/out1"'
11321 ac_nxt='"$tmp/out2"'
11322
11323 while :
11324 do
11325 # Write a here document:
11326 cat >>$CONFIG_STATUS <<_ACEOF
11327 # First, check the format of the line:
11328 cat >"\$tmp/defines.sed" <<\\CEOF
11329 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11330 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11331 b
11332 :def
11333 _ACEOF
11334 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11335 echo 'CEOF
11336 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11337 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11338 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11339 grep . conftest.tail >/dev/null || break
11340 rm -f conftest.defines
11341 mv conftest.tail conftest.defines
11342 done
11343 rm -f conftest.defines conftest.tail
11344
11345 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11346 cat >>$CONFIG_STATUS <<\_ACEOF
11347 if test x"$ac_file" != x-; then
11348 echo "/* $configure_input */" >"$tmp/config.h"
11349 cat "$ac_result" >>"$tmp/config.h"
11350 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11352 echo "$as_me: $ac_file is unchanged" >&6;}
11353 else
11354 rm -f $ac_file
11355 mv "$tmp/config.h" $ac_file
11356 fi
11357 else
11358 echo "/* $configure_input */"
11359 cat "$ac_result"
11360 fi
11361 rm -f "$tmp/out12"
11362 # Compute $ac_file's index in $config_headers.
11363 _am_arg=$ac_file
11364 _am_stamp_count=1
11365 for _am_header in $config_headers :; do
11366 case $_am_header in
11367 $_am_arg | $_am_arg:* )
11368 break ;;
11369 * )
11370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11371 esac
11372 done
11373 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11374 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11375 X"$_am_arg" : 'X\(//\)[^/]' \| \
11376 X"$_am_arg" : 'X\(//\)$' \| \
11377 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11378 echo X"$_am_arg" |
11379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11380 s//\1/
11381 q
11382 }
11383 /^X\(\/\/\)[^/].*/{
11384 s//\1/
11385 q
11386 }
11387 /^X\(\/\/\)$/{
11388 s//\1/
11389 q
11390 }
11391 /^X\(\/\).*/{
11392 s//\1/
11393 q
11394 }
11395 s/.*/./; q'`/stamp-h$_am_stamp_count
11396 ;;
11397
11398 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11399 echo "$as_me: executing $ac_file commands" >&6;}
11400 ;;
11401 esac
11402
11403
11404 case $ac_file$ac_mode in
11405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11406 # Strip MF so we end up with the name of the file.
11407 mf=`echo "$mf" | sed -e 's/:.*$//'`
11408 # Check whether this is an Automake generated Makefile or not.
11409 # We used to match only the files named `Makefile.in', but
11410 # some people rename them; so instead we look at the file content.
11411 # Grep'ing the first line is not enough: some people post-process
11412 # each Makefile.in and add a new line on top of each file to say so.
11413 # Grep'ing the whole file is not good either: AIX grep has a line
11414 # limit of 2048, but all sed's we know have understand at least 4000.
11415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11416 dirpart=`$as_dirname -- "$mf" ||
11417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11418 X"$mf" : 'X\(//\)[^/]' \| \
11419 X"$mf" : 'X\(//\)$' \| \
11420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11421 echo X"$mf" |
11422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11423 s//\1/
11424 q
11425 }
11426 /^X\(\/\/\)[^/].*/{
11427 s//\1/
11428 q
11429 }
11430 /^X\(\/\/\)$/{
11431 s//\1/
11432 q
11433 }
11434 /^X\(\/\).*/{
11435 s//\1/
11436 q
11437 }
11438 s/.*/./; q'`
11439 else
11440 continue
11441 fi
11442 # Extract the definition of DEPDIR, am__include, and am__quote
11443 # from the Makefile without running `make'.
11444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11445 test -z "$DEPDIR" && continue
11446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11447 test -z "am__include" && continue
11448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11449 # When using ansi2knr, U may be empty or an underscore; expand it
11450 U=`sed -n 's/^U = //p' < "$mf"`
11451 # Find all dependency output files, they are included files with
11452 # $(DEPDIR) in their names. We invoke sed twice because it is the
11453 # simplest approach to changing $(DEPDIR) to its actual value in the
11454 # expansion.
11455 for file in `sed -n "
11456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11458 # Make sure the directory exists.
11459 test -f "$dirpart/$file" && continue
11460 fdir=`$as_dirname -- "$file" ||
11461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11462 X"$file" : 'X\(//\)[^/]' \| \
11463 X"$file" : 'X\(//\)$' \| \
11464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11465 echo X"$file" |
11466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11467 s//\1/
11468 q
11469 }
11470 /^X\(\/\/\)[^/].*/{
11471 s//\1/
11472 q
11473 }
11474 /^X\(\/\/\)$/{
11475 s//\1/
11476 q
11477 }
11478 /^X\(\/\).*/{
11479 s//\1/
11480 q
11481 }
11482 s/.*/./; q'`
11483 { as_dir=$dirpart/$fdir
11484 case $as_dir in #(
11485 -*) as_dir=./$as_dir;;
11486 esac
11487 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11488 as_dirs=
11489 while :; do
11490 case $as_dir in #(
11491 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11492 *) as_qdir=$as_dir;;
11493 esac
11494 as_dirs="'$as_qdir' $as_dirs"
11495 as_dir=`$as_dirname -- "$as_dir" ||
11496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11497 X"$as_dir" : 'X\(//\)[^/]' \| \
11498 X"$as_dir" : 'X\(//\)$' \| \
11499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11500 echo X"$as_dir" |
11501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11502 s//\1/
11503 q
11504 }
11505 /^X\(\/\/\)[^/].*/{
11506 s//\1/
11507 q
11508 }
11509 /^X\(\/\/\)$/{
11510 s//\1/
11511 q
11512 }
11513 /^X\(\/\).*/{
11514 s//\1/
11515 q
11516 }
11517 s/.*/./; q'`
11518 test -d "$as_dir" && break
11519 done
11520 test -z "$as_dirs" || eval "mkdir $as_dirs"
11521 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11522 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11523 { (exit 1); exit 1; }; }; }
11524 # echo "creating $dirpart/$file"
11525 echo '# dummy' > "$dirpart/$file"
11526 done
11527 done
11528 ;;
11529
11530 esac
11531 done # for ac_tag
11532
11533
11534 { (exit 0); exit 0; }
11535 _ACEOF
11536 chmod +x $CONFIG_STATUS
11537 ac_clean_files=$ac_clean_files_save
11538
11539
11540 # configure is writing to config.log, and then calls config.status.
11541 # config.status does its own redirection, appending to config.log.
11542 # Unfortunately, on DOS this fails, as config.log is still kept open
11543 # by configure, so config.status won't be able to write to it; its
11544 # output is simply discarded. So we exec the FD to /dev/null,
11545 # effectively closing config.log, so it can be properly (re)opened and
11546 # appended to by config.status. When coming back to configure, we
11547 # need to make the FD available again.
11548 if test "$no_create" != yes; then
11549 ac_cs_success=:
11550 ac_config_status_args=
11551 test "$silent" = yes &&
11552 ac_config_status_args="$ac_config_status_args --quiet"
11553 exec 5>/dev/null
11554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11555 exec 5>>config.log
11556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11557 # would make configure fail if this is the last instruction.
11558 $ac_cs_success || { (exit 1); exit 1; }
11559 fi
11560
11561
11562
11563
11564 cat <<EOF
11565
11566 Configuration summary
11567 =====================
11568
11569 X3 is now configured as follows:
11570
11571 * Compilation environment
11572
11573 CC = $CC
11574 CFLAGS = $CFLAGS
11575 CPP = $CPP
11576 CPPFLAGS = $CPPFLAGS
11577 LD = $LD
11578 LDFLAGS = $LDFLAGS
11579 LIBS = $LIBS
11580
11581 * X3 options
11582
11583 Debug: $x3_debug
11584 Extra Modules: $module_list
11585 Malloc: $x3_malloc
11586 Protocol: $x3_ircd
11587 Regexp Library TRE $tre_version
11588 Coredumper Library Coredumper $core_version
11589 $ldap_message
11590 python: $python
11591
11592 Install to: $prefix
11593
11594 Now you can proceed with compiling X3
11595
11596 EOF
11597