]> jfr.im git - irc/evilnet/x3.git/blob - configure
woops forget this, related to the last change
[irc/evilnet/x3.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 2301 2008-11-07 05:16:20Z 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 RANLIB
710 LN_S
711 CPP
712 GREP
713 EGREP
714 MAKER
715 ALLOCA
716 pythonpath
717 DO_PYTHON_TRUE
718 DO_PYTHON_FALSE
719 MODULE_OBJS
720 MY_SUBDIRS
721 RX_INCLUDES
722 RX_LIBS
723 TRACK
724 PY_CFLAGS
725 PY_LIBS
726 LIBOBJS
727 LTLIBOBJS'
728 ac_subst_files=''
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CC
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
737 CPP'
738
739
740 # Initialize some variables set by options.
741 ac_init_help=
742 ac_init_version=false
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
745 cache_file=/dev/null
746 exec_prefix=NONE
747 no_create=
748 no_recursion=
749 prefix=NONE
750 program_prefix=NONE
751 program_suffix=NONE
752 program_transform_name=s,x,x,
753 silent=
754 site=
755 srcdir=
756 verbose=
757 x_includes=NONE
758 x_libraries=NONE
759
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
777 infodir='${datarootdir}/info'
778 htmldir='${docdir}'
779 dvidir='${docdir}'
780 pdfdir='${docdir}'
781 psdir='${docdir}'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
785
786 ac_prev=
787 ac_dashdash=
788 for ac_option
789 do
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
793 ac_prev=
794 continue
795 fi
796
797 case $ac_option in
798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 # Accept the important Cygnus configure options, so we can diagnose typos.
803
804 case $ac_dashdash$ac_option in
805 --)
806 ac_dashdash=yes ;;
807
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
812
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
817
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
824
825 --config-cache | -C)
826 cache_file=config.cache ;;
827
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
832
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
839
840 -disable-* | --disable-*)
841 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_$ac_feature=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
858
859 -enable-* | --enable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=\$ac_optarg ;;
867
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
876
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
879 with_gas=yes ;;
880
881 -help | --help | --hel | --he | -h)
882 ac_init_help=long ;;
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
887
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
892
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894 ac_prev=htmldir ;;
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896 | --ht=*)
897 htmldir=$ac_optarg ;;
898
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
905
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
907 ac_prev=infodir ;;
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
910
911 -libdir | --libdir | --libdi | --libd)
912 ac_prev=libdir ;;
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
914 libdir=$ac_optarg ;;
915
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
922
923 -localedir | --localedir | --localedi | --localed | --locale)
924 ac_prev=localedir ;;
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
927
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
934
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936 ac_prev=mandir ;;
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938 mandir=$ac_optarg ;;
939
940 -nfp | --nfp | --nf)
941 # Obsolete; use --without-fp.
942 with_fp=no ;;
943
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
946 no_create=yes ;;
947
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950 no_recursion=yes ;;
951
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
960
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962 ac_prev=prefix ;;
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964 prefix=$ac_optarg ;;
965
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
972
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
979
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
996
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998 ac_prev=pdfdir ;;
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1001
1002 -psdir | --psdir | --psdi | --psd | --ps)
1003 ac_prev=psdir ;;
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005 psdir=$ac_optarg ;;
1006
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1009 silent=yes ;;
1010
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012 ac_prev=sbindir ;;
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014 | --sbi=* | --sb=*)
1015 sbindir=$ac_optarg ;;
1016
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1020 | --sha | --sh)
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025 | --sha=* | --sh=*)
1026 sharedstatedir=$ac_optarg ;;
1027
1028 -site | --site | --sit)
1029 ac_prev=site ;;
1030 -site=* | --site=* | --sit=*)
1031 site=$ac_optarg ;;
1032
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034 ac_prev=srcdir ;;
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1037
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1044
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1049
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051 verbose=yes ;;
1052
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1055
1056 -with-* | --with-*)
1057 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=\$ac_optarg ;;
1064
1065 -without-* | --without-*)
1066 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=no ;;
1073
1074 --x)
1075 # Obsolete; use --with-x.
1076 with_x=yes ;;
1077
1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079 | --x-incl | --x-inc | --x-in | --x-i)
1080 ac_prev=x_includes ;;
1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083 x_includes=$ac_optarg ;;
1084
1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087 ac_prev=x_libraries ;;
1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090 x_libraries=$ac_optarg ;;
1091
1092 -*) { echo "$as_me: error: unrecognized option: $ac_option
1093 Try \`$0 --help' for more information." >&2
1094 { (exit 1); exit 1; }; }
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1102 { (exit 1); exit 1; }; }
1103 eval $ac_envvar=\$ac_optarg
1104 export $ac_envvar ;;
1105
1106 *)
1107 # FIXME: should be removed in autoconf 3.0.
1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 ;;
1113
1114 esac
1115 done
1116
1117 if test -n "$ac_prev"; then
1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119 { echo "$as_me: error: missing argument to $ac_option" >&2
1120 { (exit 1); exit 1; }; }
1121 fi
1122
1123 # Be sure to have absolute directory names.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128 do
1129 eval ac_val=\$$ac_var
1130 case $ac_val in
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133 esac
1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1135 { (exit 1); exit 1; }; }
1136 done
1137
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1141 build=$build_alias
1142 host=$host_alias
1143 target=$target_alias
1144
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1152 cross_compiling=yes
1153 fi
1154 fi
1155
1156 ac_tool_prefix=
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158
1159 test "$silent" = yes && exec 6>/dev/null
1160
1161
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 { echo "$as_me: error: Working directory cannot be determined" >&2
1166 { (exit 1); exit 1; }; }
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 { echo "$as_me: error: pwd does not report name of working directory" >&2
1169 { (exit 1); exit 1; }; }
1170
1171
1172 # Find the source files, if location was not specified.
1173 if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$0" ||
1177 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$0" : 'X\(//\)[^/]' \| \
1179 X"$0" : 'X\(//\)$' \| \
1180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1181 echo X"$0" |
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)[^/].*/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\).*/{
1195 s//\1/
1196 q
1197 }
1198 s/.*/./; q'`
1199 srcdir=$ac_confdir
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 srcdir=..
1202 fi
1203 else
1204 ac_srcdir_defaulted=no
1205 fi
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1209 { (exit 1); exit 1; }; }
1210 fi
1211 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1212 ac_abs_confdir=`(
1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1214 { (exit 1); exit 1; }; }
1215 pwd)`
1216 # When building in place, set srcdir=.
1217 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 srcdir=.
1219 fi
1220 # Remove unnecessary trailing slashes from srcdir.
1221 # Double slashes in file names in object file debugging info
1222 # mess up M-x gdb in Emacs.
1223 case $srcdir in
1224 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225 esac
1226 for ac_var in $ac_precious_vars; do
1227 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_${ac_var}_value=\$${ac_var}
1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1231 done
1232
1233 #
1234 # Report the --help message.
1235 #
1236 if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1239 cat <<_ACEOF
1240 \`configure' configures X3 1.6 to adapt to many kinds of systems.
1241
1242 Usage: $0 [OPTION]... [VAR=VALUE]...
1243
1244 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245 VAR=VALUE. See below for descriptions of some of the useful variables.
1246
1247 Defaults for the options are specified in brackets.
1248
1249 Configuration:
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1259
1260 Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 [PREFIX]
1265
1266 By default, \`make install' will install all the files in
1267 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269 for instance \`--prefix=\$HOME'.
1270
1271 For better control, use the options below.
1272
1273 Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --libdir=DIR object code libraries [EPREFIX/lib]
1281 --includedir=DIR C header files [PREFIX/include]
1282 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285 --infodir=DIR info documentation [DATAROOTDIR/info]
1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287 --mandir=DIR man documentation [DATAROOTDIR/man]
1288 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1289 --htmldir=DIR html documentation [DOCDIR]
1290 --dvidir=DIR dvi documentation [DOCDIR]
1291 --pdfdir=DIR pdf documentation [DOCDIR]
1292 --psdir=DIR ps documentation [DOCDIR]
1293 _ACEOF
1294
1295 cat <<\_ACEOF
1296
1297 Program names:
1298 --program-prefix=PREFIX prepend PREFIX to installed program names
1299 --program-suffix=SUFFIX append SUFFIX to installed program names
1300 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1301
1302 System types:
1303 --build=BUILD configure for building on BUILD [guessed]
1304 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1305 --target=TARGET configure for building compilers for TARGET [HOST]
1306 _ACEOF
1307 fi
1308
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive ) echo "Configuration of X3 1.6:";;
1312 esac
1313 cat <<\_ACEOF
1314
1315 Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-maintainer-mode enable make rules and dependencies not useful
1319 (and sometimes confusing) to the casual installer
1320 --disable-dependency-tracking speeds up one-time build
1321 --enable-dependency-tracking do not reject slow dependency extractors
1322 --disable-tokens Disables tokenization of P10 protocol output
1323 (tokens required if linking to ircu 2.10.11)
1324 --enable-debug Enables debugging behaviors
1325 --enable-modules=list,of,modules Enable extra modules
1326 --disable-python don't build the python plugin
1327
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-malloc=type Enables use of a special malloc library; one of:
1332 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
1333 --with-protocol=name Choose IRC dialect to support; one of:
1334 p10 (the default)
1335 --without-getopt Disables building of the GNU getopt library
1336 --with-tre=PATH Base path to where libtre is installed, such that
1337 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1338 --with-coredumper=PATH Base path to where core dumper is installed, such
1339 that PATH/lib/libcoredumper.so and
1340 PATH/include/google/coredumper.h exist.
1341 --with-ssl=PATH Base path to where openssl is installed
1342 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1343 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
1344
1345 Some influential environment variables:
1346 CC C compiler command
1347 CFLAGS C compiler flags
1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1349 nonstandard directory <lib dir>
1350 LIBS libraries to pass to the linker, e.g. -l<library>
1351 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1352 you have headers in a nonstandard directory <include dir>
1353 CPP C preprocessor
1354
1355 Use these variables to override the choices made by `configure' or to help
1356 it to find libraries and programs with nonstandard names/locations.
1357
1358 Report bugs to <evilnet-devel@lists.sourceforge.net>.
1359 _ACEOF
1360 ac_status=$?
1361 fi
1362
1363 if test "$ac_init_help" = "recursive"; then
1364 # If there are subdirs, report their specific --help.
1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1366 test -d "$ac_dir" || continue
1367 ac_builddir=.
1368
1369 case "$ac_dir" in
1370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *)
1372 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1373 # A ".." for each directory in $ac_dir_suffix.
1374 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1375 case $ac_top_builddir_sub in
1376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378 esac ;;
1379 esac
1380 ac_abs_top_builddir=$ac_pwd
1381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382 # for backward compatibility:
1383 ac_top_builddir=$ac_top_build_prefix
1384
1385 case $srcdir in
1386 .) # We are building in place.
1387 ac_srcdir=.
1388 ac_top_srcdir=$ac_top_builddir_sub
1389 ac_abs_top_srcdir=$ac_pwd ;;
1390 [\\/]* | ?:[\\/]* ) # Absolute name.
1391 ac_srcdir=$srcdir$ac_dir_suffix;
1392 ac_top_srcdir=$srcdir
1393 ac_abs_top_srcdir=$srcdir ;;
1394 *) # Relative name.
1395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396 ac_top_srcdir=$ac_top_build_prefix$srcdir
1397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1398 esac
1399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400
1401 cd "$ac_dir" || { ac_status=$?; continue; }
1402 # Check for guested configure.
1403 if test -f "$ac_srcdir/configure.gnu"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406 elif test -f "$ac_srcdir/configure"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure" --help=recursive
1409 else
1410 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411 fi || ac_status=$?
1412 cd "$ac_pwd" || { ac_status=$?; break; }
1413 done
1414 fi
1415
1416 test -n "$ac_init_help" && exit $ac_status
1417 if $ac_init_version; then
1418 cat <<\_ACEOF
1419 X3 configure 1.6
1420 generated by GNU Autoconf 2.61
1421
1422 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1423 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1424 This configure script is free software; the Free Software Foundation
1425 gives unlimited permission to copy, distribute and modify it.
1426 _ACEOF
1427 exit
1428 fi
1429 cat >config.log <<_ACEOF
1430 This file contains any messages produced by compilers while
1431 running configure, to aid debugging if configure makes a mistake.
1432
1433 It was created by X3 $as_me 1.6, which was
1434 generated by GNU Autoconf 2.61. Invocation command line was
1435
1436 $ $0 $@
1437
1438 _ACEOF
1439 exec 5>>config.log
1440 {
1441 cat <<_ASUNAME
1442 ## --------- ##
1443 ## Platform. ##
1444 ## --------- ##
1445
1446 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1447 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1448 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1449 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1450 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1451
1452 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1453 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1454
1455 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1456 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1457 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1458 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1459 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1460 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1461 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1462
1463 _ASUNAME
1464
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 echo "PATH: $as_dir"
1471 done
1472 IFS=$as_save_IFS
1473
1474 } >&5
1475
1476 cat >&5 <<_ACEOF
1477
1478
1479 ## ----------- ##
1480 ## Core tests. ##
1481 ## ----------- ##
1482
1483 _ACEOF
1484
1485
1486 # Keep a trace of the command line.
1487 # Strip out --no-create and --no-recursion so they do not pile up.
1488 # Strip out --silent because we don't want to record it for future runs.
1489 # Also quote any args containing shell meta-characters.
1490 # Make two passes to allow for proper duplicate-argument suppression.
1491 ac_configure_args=
1492 ac_configure_args0=
1493 ac_configure_args1=
1494 ac_must_keep_next=false
1495 for ac_pass in 1 2
1496 do
1497 for ac_arg
1498 do
1499 case $ac_arg in
1500 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1502 | -silent | --silent | --silen | --sile | --sil)
1503 continue ;;
1504 *\'*)
1505 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1506 esac
1507 case $ac_pass in
1508 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1509 2)
1510 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1511 if test $ac_must_keep_next = true; then
1512 ac_must_keep_next=false # Got value, back to normal.
1513 else
1514 case $ac_arg in
1515 *=* | --config-cache | -C | -disable-* | --disable-* \
1516 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1517 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1518 | -with-* | --with-* | -without-* | --without-* | --x)
1519 case "$ac_configure_args0 " in
1520 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1521 esac
1522 ;;
1523 -* ) ac_must_keep_next=true ;;
1524 esac
1525 fi
1526 ac_configure_args="$ac_configure_args '$ac_arg'"
1527 ;;
1528 esac
1529 done
1530 done
1531 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1532 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1533
1534 # When interrupted or exit'd, cleanup temporary files, and complete
1535 # config.log. We remove comments because anyway the quotes in there
1536 # would cause problems or look ugly.
1537 # WARNING: Use '\'' to represent an apostrophe within the trap.
1538 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1539 trap 'exit_status=$?
1540 # Save into config.log some information that might help in debugging.
1541 {
1542 echo
1543
1544 cat <<\_ASBOX
1545 ## ---------------- ##
1546 ## Cache variables. ##
1547 ## ---------------- ##
1548 _ASBOX
1549 echo
1550 # The following way of writing the cache mishandles newlines in values,
1551 (
1552 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1553 eval ac_val=\$$ac_var
1554 case $ac_val in #(
1555 *${as_nl}*)
1556 case $ac_var in #(
1557 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1558 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1559 esac
1560 case $ac_var in #(
1561 _ | IFS | as_nl) ;; #(
1562 *) $as_unset $ac_var ;;
1563 esac ;;
1564 esac
1565 done
1566 (set) 2>&1 |
1567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1568 *${as_nl}ac_space=\ *)
1569 sed -n \
1570 "s/'\''/'\''\\\\'\'''\''/g;
1571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1572 ;; #(
1573 *)
1574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1575 ;;
1576 esac |
1577 sort
1578 )
1579 echo
1580
1581 cat <<\_ASBOX
1582 ## ----------------- ##
1583 ## Output variables. ##
1584 ## ----------------- ##
1585 _ASBOX
1586 echo
1587 for ac_var in $ac_subst_vars
1588 do
1589 eval ac_val=\$$ac_var
1590 case $ac_val in
1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1592 esac
1593 echo "$ac_var='\''$ac_val'\''"
1594 done | sort
1595 echo
1596
1597 if test -n "$ac_subst_files"; then
1598 cat <<\_ASBOX
1599 ## ------------------- ##
1600 ## File substitutions. ##
1601 ## ------------------- ##
1602 _ASBOX
1603 echo
1604 for ac_var in $ac_subst_files
1605 do
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 echo "$ac_var='\''$ac_val'\''"
1611 done | sort
1612 echo
1613 fi
1614
1615 if test -s confdefs.h; then
1616 cat <<\_ASBOX
1617 ## ----------- ##
1618 ## confdefs.h. ##
1619 ## ----------- ##
1620 _ASBOX
1621 echo
1622 cat confdefs.h
1623 echo
1624 fi
1625 test "$ac_signal" != 0 &&
1626 echo "$as_me: caught signal $ac_signal"
1627 echo "$as_me: exit $exit_status"
1628 } >&5
1629 rm -f core *.core core.conftest.* &&
1630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1631 exit $exit_status
1632 ' 0
1633 for ac_signal in 1 2 13 15; do
1634 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1635 done
1636 ac_signal=0
1637
1638 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1639 rm -f -r conftest* confdefs.h
1640
1641 # Predefined preprocessor variables.
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_NAME "$PACKAGE_NAME"
1645 _ACEOF
1646
1647
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1650 _ACEOF
1651
1652
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1655 _ACEOF
1656
1657
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_STRING "$PACKAGE_STRING"
1660 _ACEOF
1661
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1665 _ACEOF
1666
1667
1668 # Let the site file select an alternate cache file if it wants to.
1669 # Prefer explicitly selected file to automatically selected ones.
1670 if test -n "$CONFIG_SITE"; then
1671 set x "$CONFIG_SITE"
1672 elif test "x$prefix" != xNONE; then
1673 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1674 else
1675 set x "$ac_default_prefix/share/config.site" \
1676 "$ac_default_prefix/etc/config.site"
1677 fi
1678 shift
1679 for ac_site_file
1680 do
1681 if test -r "$ac_site_file"; then
1682 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1683 echo "$as_me: loading site script $ac_site_file" >&6;}
1684 sed 's/^/| /' "$ac_site_file" >&5
1685 . "$ac_site_file"
1686 fi
1687 done
1688
1689 if test -r "$cache_file"; then
1690 # Some versions of bash will fail to source /dev/null (special
1691 # files actually), so we avoid doing that.
1692 if test -f "$cache_file"; then
1693 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1694 echo "$as_me: loading cache $cache_file" >&6;}
1695 case $cache_file in
1696 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1697 *) . "./$cache_file";;
1698 esac
1699 fi
1700 else
1701 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1702 echo "$as_me: creating cache $cache_file" >&6;}
1703 >$cache_file
1704 fi
1705
1706 # Check that the precious variables saved in the cache have kept the same
1707 # value.
1708 ac_cache_corrupted=false
1709 for ac_var in $ac_precious_vars; do
1710 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1711 eval ac_new_set=\$ac_env_${ac_var}_set
1712 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1713 eval ac_new_val=\$ac_env_${ac_var}_value
1714 case $ac_old_set,$ac_new_set in
1715 set,)
1716 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1717 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1718 ac_cache_corrupted=: ;;
1719 ,set)
1720 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1721 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1722 ac_cache_corrupted=: ;;
1723 ,);;
1724 *)
1725 if test "x$ac_old_val" != "x$ac_new_val"; then
1726 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1727 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1728 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1729 echo "$as_me: former value: $ac_old_val" >&2;}
1730 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1731 echo "$as_me: current value: $ac_new_val" >&2;}
1732 ac_cache_corrupted=:
1733 fi;;
1734 esac
1735 # Pass precious variables to config.status.
1736 if test "$ac_new_set" = set; then
1737 case $ac_new_val in
1738 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1739 *) ac_arg=$ac_var=$ac_new_val ;;
1740 esac
1741 case " $ac_configure_args " in
1742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1743 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1744 esac
1745 fi
1746 done
1747 if $ac_cache_corrupted; then
1748 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1749 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1750 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1751 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1752 { (exit 1); exit 1; }; }
1753 fi
1754
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 ac_ext=c
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1784
1785
1786 CODENAME=X3
1787 ac_config_headers="$ac_config_headers src/config.h"
1788
1789
1790 ac_aux_dir=
1791 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1792 if test -f "$ac_dir/install-sh"; then
1793 ac_aux_dir=$ac_dir
1794 ac_install_sh="$ac_aux_dir/install-sh -c"
1795 break
1796 elif test -f "$ac_dir/install.sh"; then
1797 ac_aux_dir=$ac_dir
1798 ac_install_sh="$ac_aux_dir/install.sh -c"
1799 break
1800 elif test -f "$ac_dir/shtool"; then
1801 ac_aux_dir=$ac_dir
1802 ac_install_sh="$ac_aux_dir/shtool install -c"
1803 break
1804 fi
1805 done
1806 if test -z "$ac_aux_dir"; then
1807 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1808 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1809 { (exit 1); exit 1; }; }
1810 fi
1811
1812 # These three variables are undocumented and unsupported,
1813 # and are intended to be withdrawn in a future Autoconf release.
1814 # They can cause serious problems if a builder's source tree is in a directory
1815 # whose full name contains unusual characters.
1816 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1817 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1818 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1819
1820
1821 # Make sure we can run config.sub.
1822 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1823 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1824 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1825 { (exit 1); exit 1; }; }
1826
1827 { echo "$as_me:$LINENO: checking build system type" >&5
1828 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1829 if test "${ac_cv_build+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 ac_build_alias=$build_alias
1833 test "x$ac_build_alias" = x &&
1834 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1835 test "x$ac_build_alias" = x &&
1836 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1837 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1838 { (exit 1); exit 1; }; }
1839 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1840 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1841 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1842 { (exit 1); exit 1; }; }
1843
1844 fi
1845 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1846 echo "${ECHO_T}$ac_cv_build" >&6; }
1847 case $ac_cv_build in
1848 *-*-*) ;;
1849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1850 echo "$as_me: error: invalid value of canonical build" >&2;}
1851 { (exit 1); exit 1; }; };;
1852 esac
1853 build=$ac_cv_build
1854 ac_save_IFS=$IFS; IFS='-'
1855 set x $ac_cv_build
1856 shift
1857 build_cpu=$1
1858 build_vendor=$2
1859 shift; shift
1860 # Remember, the first character of IFS is used to create $*,
1861 # except with old shells:
1862 build_os=$*
1863 IFS=$ac_save_IFS
1864 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1865
1866
1867 { echo "$as_me:$LINENO: checking host system type" >&5
1868 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1869 if test "${ac_cv_host+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test "x$host_alias" = x; then
1873 ac_cv_host=$ac_cv_build
1874 else
1875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1876 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1878 { (exit 1); exit 1; }; }
1879 fi
1880
1881 fi
1882 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1883 echo "${ECHO_T}$ac_cv_host" >&6; }
1884 case $ac_cv_host in
1885 *-*-*) ;;
1886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1887 echo "$as_me: error: invalid value of canonical host" >&2;}
1888 { (exit 1); exit 1; }; };;
1889 esac
1890 host=$ac_cv_host
1891 ac_save_IFS=$IFS; IFS='-'
1892 set x $ac_cv_host
1893 shift
1894 host_cpu=$1
1895 host_vendor=$2
1896 shift; shift
1897 # Remember, the first character of IFS is used to create $*,
1898 # except with old shells:
1899 host_os=$*
1900 IFS=$ac_save_IFS
1901 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1902
1903
1904 { echo "$as_me:$LINENO: checking target system type" >&5
1905 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1906 if test "${ac_cv_target+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test "x$target_alias" = x; then
1910 ac_cv_target=$ac_cv_host
1911 else
1912 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1913 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1914 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1916 fi
1917
1918 fi
1919 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1920 echo "${ECHO_T}$ac_cv_target" >&6; }
1921 case $ac_cv_target in
1922 *-*-*) ;;
1923 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1924 echo "$as_me: error: invalid value of canonical target" >&2;}
1925 { (exit 1); exit 1; }; };;
1926 esac
1927 target=$ac_cv_target
1928 ac_save_IFS=$IFS; IFS='-'
1929 set x $ac_cv_target
1930 shift
1931 target_cpu=$1
1932 target_vendor=$2
1933 shift; shift
1934 # Remember, the first character of IFS is used to create $*,
1935 # except with old shells:
1936 target_os=$*
1937 IFS=$ac_save_IFS
1938 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1939
1940
1941 # The aliases save the names the user supplied, while $host etc.
1942 # will get canonicalized.
1943 test -n "$target_alias" &&
1944 test "$program_prefix$program_suffix$program_transform_name" = \
1945 NONENONEs,x,x, &&
1946 program_prefix=${target_alias}-
1947 am__api_version='1.10'
1948
1949 # Find a good install program. We prefer a C program (faster),
1950 # so one script is as good as another. But avoid the broken or
1951 # incompatible versions:
1952 # SysV /etc/install, /usr/sbin/install
1953 # SunOS /usr/etc/install
1954 # IRIX /sbin/install
1955 # AIX /bin/install
1956 # AmigaOS /C/install, which installs bootblocks on floppy discs
1957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1960 # OS/2's system install, which has a completely different semantic
1961 # ./install, which can be erroneously created by make from ./install.sh.
1962 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1963 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1964 if test -z "$INSTALL"; then
1965 if test "${ac_cv_path_install+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 # Account for people who put trailing slashes in PATH elements.
1974 case $as_dir/ in
1975 ./ | .// | /cC/* | \
1976 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1977 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1978 /usr/ucb/* ) ;;
1979 *)
1980 # OSF1 and SCO ODT 3.0 have their own names for install.
1981 # Don't use installbsd from OSF since it installs stuff as root
1982 # by default.
1983 for ac_prog in ginstall scoinst install; do
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1986 if test $ac_prog = install &&
1987 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1988 # AIX install. It has an incompatible calling convention.
1989 :
1990 elif test $ac_prog = install &&
1991 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # program-specific install script used by HP pwplus--don't use.
1993 :
1994 else
1995 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1996 break 3
1997 fi
1998 fi
1999 done
2000 done
2001 ;;
2002 esac
2003 done
2004 IFS=$as_save_IFS
2005
2006
2007 fi
2008 if test "${ac_cv_path_install+set}" = set; then
2009 INSTALL=$ac_cv_path_install
2010 else
2011 # As a last resort, use the slow shell script. Don't cache a
2012 # value for INSTALL within a source directory, because that will
2013 # break other packages using the cache if that directory is
2014 # removed, or if the value is a relative name.
2015 INSTALL=$ac_install_sh
2016 fi
2017 fi
2018 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2019 echo "${ECHO_T}$INSTALL" >&6; }
2020
2021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2022 # It thinks the first close brace ends the variable substitution.
2023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2024
2025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2026
2027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2028
2029 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2030 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2031 # Just in case
2032 sleep 1
2033 echo timestamp > conftest.file
2034 # Do `set' in a subshell so we don't clobber the current shell's
2035 # arguments. Must try -L first in case configure is actually a
2036 # symlink; some systems play weird games with the mod time of symlinks
2037 # (eg FreeBSD returns the mod time of the symlink's containing
2038 # directory).
2039 if (
2040 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2041 if test "$*" = "X"; then
2042 # -L didn't work.
2043 set X `ls -t $srcdir/configure conftest.file`
2044 fi
2045 rm -f conftest.file
2046 if test "$*" != "X $srcdir/configure conftest.file" \
2047 && test "$*" != "X conftest.file $srcdir/configure"; then
2048
2049 # If neither matched, then we have a broken ls. This can happen
2050 # if, for instance, CONFIG_SHELL is bash and it inherits a
2051 # broken ls alias from the environment. This has actually
2052 # happened. Such a system could not be considered "sane".
2053 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2054 alias in your environment" >&5
2055 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2056 alias in your environment" >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060 test "$2" = conftest.file
2061 )
2062 then
2063 # Ok.
2064 :
2065 else
2066 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2067 Check your system clock" >&5
2068 echo "$as_me: error: newly created file is older than distributed files!
2069 Check your system clock" >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2072 { echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6; }
2074 test "$program_prefix" != NONE &&
2075 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2076 # Use a double $ so make ignores it.
2077 test "$program_suffix" != NONE &&
2078 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2079 # Double any \ or $. echo might interpret backslashes.
2080 # By default was `s,x,x', remove it if useless.
2081 cat <<\_ACEOF >conftest.sed
2082 s/[\\$]/&&/g;s/;s,x,x,$//
2083 _ACEOF
2084 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2085 rm -f conftest.sed
2086
2087 # expand $ac_aux_dir to an absolute path
2088 am_aux_dir=`cd $ac_aux_dir && pwd`
2089
2090 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2091 # Use eval to expand $SHELL
2092 if eval "$MISSING --run true"; then
2093 am_missing_run="$MISSING --run "
2094 else
2095 am_missing_run=
2096 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2097 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2098 fi
2099
2100 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2101 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2102 if test -z "$MKDIR_P"; then
2103 if test "${ac_cv_path_mkdir+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2108 do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_prog in mkdir gmkdir; do
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2114 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2115 'mkdir (GNU coreutils) '* | \
2116 'mkdir (coreutils) '* | \
2117 'mkdir (fileutils) '4.1*)
2118 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2119 break 3;;
2120 esac
2121 done
2122 done
2123 done
2124 IFS=$as_save_IFS
2125
2126 fi
2127
2128 if test "${ac_cv_path_mkdir+set}" = set; then
2129 MKDIR_P="$ac_cv_path_mkdir -p"
2130 else
2131 # As a last resort, use the slow shell script. Don't cache a
2132 # value for MKDIR_P within a source directory, because that will
2133 # break other packages using the cache if that directory is
2134 # removed, or if the value is a relative name.
2135 test -d ./--version && rmdir ./--version
2136 MKDIR_P="$ac_install_sh -d"
2137 fi
2138 fi
2139 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2140 echo "${ECHO_T}$MKDIR_P" >&6; }
2141
2142 mkdir_p="$MKDIR_P"
2143 case $mkdir_p in
2144 [\\/$]* | ?:[\\/]*) ;;
2145 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2146 esac
2147
2148 for ac_prog in gawk mawk nawk awk
2149 do
2150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_AWK+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$AWK"; then
2158 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_AWK="$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2170 fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 AWK=$ac_cv_prog_AWK
2178 if test -n "$AWK"; then
2179 { echo "$as_me:$LINENO: result: $AWK" >&5
2180 echo "${ECHO_T}$AWK" >&6; }
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187 test -n "$AWK" && break
2188 done
2189
2190 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2191 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2192 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2193 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196 cat >conftest.make <<\_ACEOF
2197 SHELL = /bin/sh
2198 all:
2199 @echo '@@@%%%=$(MAKE)=@@@%%%'
2200 _ACEOF
2201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2202 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2203 *@@@%%%=?*=@@@%%%*)
2204 eval ac_cv_prog_make_${ac_make}_set=yes;;
2205 *)
2206 eval ac_cv_prog_make_${ac_make}_set=no;;
2207 esac
2208 rm -f conftest.make
2209 fi
2210 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2211 { echo "$as_me:$LINENO: result: yes" >&5
2212 echo "${ECHO_T}yes" >&6; }
2213 SET_MAKE=
2214 else
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 SET_MAKE="MAKE=${MAKE-make}"
2218 fi
2219
2220 rm -rf .tst 2>/dev/null
2221 mkdir .tst 2>/dev/null
2222 if test -d .tst; then
2223 am__leading_dot=.
2224 else
2225 am__leading_dot=_
2226 fi
2227 rmdir .tst 2>/dev/null
2228
2229 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2230 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2231 # is not polluted with repeated "-I."
2232 am__isrc=' -I$(srcdir)'
2233 # test to see if srcdir already configured
2234 if test -f $srcdir/config.status; then
2235 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2236 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239 fi
2240
2241 # test whether we have cygpath
2242 if test -z "$CYGPATH_W"; then
2243 if (cygpath --version) >/dev/null 2>/dev/null; then
2244 CYGPATH_W='cygpath -w'
2245 else
2246 CYGPATH_W=echo
2247 fi
2248 fi
2249
2250
2251 # Define the identity of the package.
2252 PACKAGE='x3'
2253 VERSION='1.6'
2254
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE "$PACKAGE"
2258 _ACEOF
2259
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define VERSION "$VERSION"
2263 _ACEOF
2264
2265 # Some tools Automake needs.
2266
2267 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2268
2269
2270 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2271
2272
2273 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2274
2275
2276 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2277
2278
2279 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2280
2281 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2282
2283 # Installed binaries are usually stripped using `strip' when the user
2284 # run `make install-strip'. However `strip' might not be the right
2285 # tool to use in cross-compilation environments, therefore Automake
2286 # will honor the `STRIP' environment variable to overrule this program.
2287 if test "$cross_compiling" != no; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2290 set dummy ${ac_tool_prefix}strip; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_STRIP+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296 if test -n "$STRIP"; then
2297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310 done
2311 done
2312 IFS=$as_save_IFS
2313
2314 fi
2315 fi
2316 STRIP=$ac_cv_prog_STRIP
2317 if test -n "$STRIP"; then
2318 { echo "$as_me:$LINENO: result: $STRIP" >&5
2319 echo "${ECHO_T}$STRIP" >&6; }
2320 else
2321 { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2323 fi
2324
2325
2326 fi
2327 if test -z "$ac_cv_prog_STRIP"; then
2328 ac_ct_STRIP=$STRIP
2329 # Extract the first word of "strip", so it can be a program name with args.
2330 set dummy strip; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 if test -n "$ac_ct_STRIP"; then
2337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_ac_ct_STRIP="strip"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350 done
2351 done
2352 IFS=$as_save_IFS
2353
2354 fi
2355 fi
2356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2357 if test -n "$ac_ct_STRIP"; then
2358 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2359 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2360 else
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2363 fi
2364
2365 if test "x$ac_ct_STRIP" = x; then
2366 STRIP=":"
2367 else
2368 case $cross_compiling:$ac_tool_warned in
2369 yes:)
2370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2371 whose name does not start with the host triplet. If you think this
2372 configuration is useful to you, please write to autoconf@gnu.org." >&5
2373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet. If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2376 ac_tool_warned=yes ;;
2377 esac
2378 STRIP=$ac_ct_STRIP
2379 fi
2380 else
2381 STRIP="$ac_cv_prog_STRIP"
2382 fi
2383
2384 fi
2385 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2386
2387 # We need awk for the "check" target. The system "awk" is bad on
2388 # some platforms.
2389 # Always define AMTAR for backward compatibility.
2390
2391 AMTAR=${AMTAR-"${am_missing_run}tar"}
2392
2393 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2394
2395
2396
2397
2398
2399 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2400 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2401 # Check whether --enable-maintainer-mode was given.
2402 if test "${enable_maintainer_mode+set}" = set; then
2403 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2404 else
2405 USE_MAINTAINER_MODE=no
2406 fi
2407
2408 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2409 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2410 if test $USE_MAINTAINER_MODE = yes; then
2411 MAINTAINER_MODE_TRUE=
2412 MAINTAINER_MODE_FALSE='#'
2413 else
2414 MAINTAINER_MODE_TRUE='#'
2415 MAINTAINER_MODE_FALSE=
2416 fi
2417
2418 MAINT=$MAINTAINER_MODE_TRUE
2419
2420
2421
2422 DEPDIR="${am__leading_dot}deps"
2423
2424 ac_config_commands="$ac_config_commands depfiles"
2425
2426
2427 am_make=${MAKE-make}
2428 cat > confinc << 'END'
2429 am__doit:
2430 @echo done
2431 .PHONY: am__doit
2432 END
2433 # If we don't find an include directive, just comment out the code.
2434 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2435 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2436 am__include="#"
2437 am__quote=
2438 _am_result=none
2439 # First try GNU make style include.
2440 echo "include confinc" > confmf
2441 # We grep out `Entering directory' and `Leaving directory'
2442 # messages which can occur if `w' ends up in MAKEFLAGS.
2443 # In particular we don't look at `^make:' because GNU make might
2444 # be invoked under some other name (usually "gmake"), in which
2445 # case it prints its new name instead of `make'.
2446 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2447 am__include=include
2448 am__quote=
2449 _am_result=GNU
2450 fi
2451 # Now try BSD make style include.
2452 if test "$am__include" = "#"; then
2453 echo '.include "confinc"' > confmf
2454 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2455 am__include=.include
2456 am__quote="\""
2457 _am_result=BSD
2458 fi
2459 fi
2460
2461
2462 { echo "$as_me:$LINENO: result: $_am_result" >&5
2463 echo "${ECHO_T}$_am_result" >&6; }
2464 rm -f confinc confmf
2465
2466 # Check whether --enable-dependency-tracking was given.
2467 if test "${enable_dependency_tracking+set}" = set; then
2468 enableval=$enable_dependency_tracking;
2469 fi
2470
2471 if test "x$enable_dependency_tracking" != xno; then
2472 am_depcomp="$ac_aux_dir/depcomp"
2473 AMDEPBACKSLASH='\'
2474 fi
2475 if test "x$enable_dependency_tracking" != xno; then
2476 AMDEP_TRUE=
2477 AMDEP_FALSE='#'
2478 else
2479 AMDEP_TRUE='#'
2480 AMDEP_FALSE=
2481 fi
2482
2483
2484 ac_ext=c
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527 fi
2528 if test -z "$ac_cv_prog_CC"; then
2529 ac_ct_CC=$CC
2530 # Extract the first word of "gcc", so it can be a program name with args.
2531 set dummy gcc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$ac_ct_CC"; then
2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_ac_ct_CC="gcc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2558 if test -n "$ac_ct_CC"; then
2559 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2560 echo "${ECHO_T}$ac_ct_CC" >&6; }
2561 else
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566 if test "x$ac_ct_CC" = x; then
2567 CC=""
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2572 whose name does not start with the host triplet. If you think this
2573 configuration is useful to you, please write to autoconf@gnu.org." >&5
2574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet. If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2577 ac_tool_warned=yes ;;
2578 esac
2579 CC=$ac_ct_CC
2580 fi
2581 else
2582 CC="$ac_cv_prog_CC"
2583 fi
2584
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}cc; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="${ac_tool_prefix}cc"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624 fi
2625 fi
2626 if test -z "$CC"; then
2627 # Extract the first word of "cc", so it can be a program name with args.
2628 set dummy cc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 else
2637 ac_prog_rejected=no
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2646 ac_prog_rejected=yes
2647 continue
2648 fi
2649 ac_cv_prog_CC="cc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 if test $ac_prog_rejected = yes; then
2658 # We found a bogon in the path, so make sure we never use it.
2659 set dummy $ac_cv_prog_CC
2660 shift
2661 if test $# != 0; then
2662 # We chose a different compiler from the bogus one.
2663 # However, it has the same basename, so the bogon will be chosen
2664 # first if we set CC to just the basename; use the full file name.
2665 shift
2666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2667 fi
2668 fi
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { echo "$as_me:$LINENO: result: $CC" >&5
2674 echo "${ECHO_T}$CC" >&6; }
2675 else
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$CC"; then
2683 if test -n "$ac_tool_prefix"; then
2684 for ac_prog in cl.exe
2685 do
2686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715 { echo "$as_me:$LINENO: result: $CC" >&5
2716 echo "${ECHO_T}$CC" >&6; }
2717 else
2718 { echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6; }
2720 fi
2721
2722
2723 test -n "$CC" && break
2724 done
2725 fi
2726 if test -z "$CC"; then
2727 ac_ct_CC=$CC
2728 for ac_prog in cl.exe
2729 do
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_ac_ct_CC="$ac_prog"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6; }
2761 else
2762 { echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6; }
2764 fi
2765
2766
2767 test -n "$ac_ct_CC" && break
2768 done
2769
2770 if test "x$ac_ct_CC" = x; then
2771 CC=""
2772 else
2773 case $cross_compiling:$ac_tool_warned in
2774 yes:)
2775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2776 whose name does not start with the host triplet. If you think this
2777 configuration is useful to you, please write to autoconf@gnu.org." >&5
2778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2779 whose name does not start with the host triplet. If you think this
2780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783 CC=$ac_ct_CC
2784 fi
2785 fi
2786
2787 fi
2788
2789
2790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: no acceptable C compiler found in \$PATH
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2795
2796 # Provide some information about the compiler.
2797 echo "$as_me:$LINENO: checking for C compiler version" >&5
2798 ac_compiler=`set X $ac_compile; echo $2`
2799 { (ac_try="$ac_compiler --version >&5"
2800 case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compiler --version >&5") 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809 { (ac_try="$ac_compiler -v >&5"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compiler -v >&5") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819 { (ac_try="$ac_compiler -V >&5"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compiler -V >&5") 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836
2837 int
2838 main ()
2839 {
2840
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 ac_clean_files_save=$ac_clean_files
2846 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2847 # Try to create an executable without -o first, disregard a.out.
2848 # It will help us diagnose broken compilers, and finding out an intuition
2849 # of exeext.
2850 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2851 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2852 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2853 #
2854 # List of possible output files, starting from the most likely.
2855 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2856 # only as a last resort. b.out is created by i960 compilers.
2857 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2858 #
2859 # The IRIX 6 linker writes into existing files which may not be
2860 # executable, retaining their permissions. Remove them first so a
2861 # subsequent execution test works.
2862 ac_rmfiles=
2863 for ac_file in $ac_files
2864 do
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2867 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2868 esac
2869 done
2870 rm -f $ac_rmfiles
2871
2872 if { (ac_try="$ac_link_default"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_link_default") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2883 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2884 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2885 # so that the user can short-circuit this test for compilers unknown to
2886 # Autoconf.
2887 for ac_file in $ac_files ''
2888 do
2889 test -f "$ac_file" || continue
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2892 ;;
2893 [ab].out )
2894 # We found the default executable, but exeext='' is most
2895 # certainly right.
2896 break;;
2897 *.* )
2898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2899 then :; else
2900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 fi
2902 # We set ac_cv_exeext here because the later test for it is not
2903 # safe: cross compilers may not add the suffix if given an `-o'
2904 # argument, so we may need to know it at that point already.
2905 # Even if this section looks crufty: it has the advantage of
2906 # actually working.
2907 break;;
2908 * )
2909 break;;
2910 esac
2911 done
2912 test "$ac_cv_exeext" = no && ac_cv_exeext=
2913
2914 else
2915 ac_file=''
2916 fi
2917
2918 { echo "$as_me:$LINENO: result: $ac_file" >&5
2919 echo "${ECHO_T}$ac_file" >&6; }
2920 if test -z "$ac_file"; then
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C compiler cannot create executables
2927 See \`config.log' for more details." >&2;}
2928 { (exit 77); exit 77; }; }
2929 fi
2930
2931 ac_exeext=$ac_cv_exeext
2932
2933 # Check that the compiler produces executables we can run. If not, either
2934 # the compiler is broken, or we cross compile.
2935 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2938 # If not cross compiling, check that we can run a simple program.
2939 if test "$cross_compiling" != yes; then
2940 if { ac_try='./$ac_file'
2941 { (case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_try") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 cross_compiling=no
2951 else
2952 if test "$cross_compiling" = maybe; then
2953 cross_compiling=yes
2954 else
2955 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2956 If you meant to cross compile, use \`--host'.
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: cannot run C compiled programs.
2959 If you meant to cross compile, use \`--host'.
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2962 fi
2963 fi
2964 fi
2965 { echo "$as_me:$LINENO: result: yes" >&5
2966 echo "${ECHO_T}yes" >&6; }
2967
2968 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2969 ac_clean_files=$ac_clean_files_save
2970 # Check that the compiler produces executables we can run. If not, either
2971 # the compiler is broken, or we cross compile.
2972 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2973 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2974 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2975 echo "${ECHO_T}$cross_compiling" >&6; }
2976
2977 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2978 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2979 if { (ac_try="$ac_link"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_link") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2991 # work properly (i.e., refer to `conftest.exe'), while it won't with
2992 # `rm'.
2993 for ac_file in conftest.exe conftest conftest.*; do
2994 test -f "$ac_file" || continue
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 break;;
2999 * ) break;;
3000 esac
3001 done
3002 else
3003 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3008 fi
3009
3010 rm -f conftest$ac_cv_exeext
3011 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3012 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3013
3014 rm -f conftest.$ac_ext
3015 EXEEXT=$ac_cv_exeext
3016 ac_exeext=$EXEEXT
3017 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3018 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3019 if test "${ac_cv_objext+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028
3029 int
3030 main ()
3031 {
3032
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.o conftest.obj
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 for ac_file in conftest.o conftest.obj conftest.*; do
3049 test -f "$ac_file" || continue;
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3053 break;;
3054 esac
3055 done
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3061 See \`config.log' for more details." >&5
3062 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3063 See \`config.log' for more details." >&2;}
3064 { (exit 1); exit 1; }; }
3065 fi
3066
3067 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3068 fi
3069 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3070 echo "${ECHO_T}$ac_cv_objext" >&6; }
3071 OBJEXT=$ac_cv_objext
3072 ac_objext=$OBJEXT
3073 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3074 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3075 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084
3085 int
3086 main ()
3087 {
3088 #ifndef __GNUC__
3089 choke me
3090 #endif
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_compiler_gnu=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_compiler_gnu=no
3119 fi
3120
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123
3124 fi
3125 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3127 GCC=`test $ac_compiler_gnu = yes && echo yes`
3128 ac_test_CFLAGS=${CFLAGS+set}
3129 ac_save_CFLAGS=$CFLAGS
3130 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_cc_g+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 ac_save_c_werror_flag=$ac_c_werror_flag
3136 ac_c_werror_flag=yes
3137 ac_cv_prog_cc_g=no
3138 CFLAGS="-g"
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } && {
3168 test -z "$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 } && test -s conftest.$ac_objext; then
3171 ac_cv_prog_cc_g=yes
3172 else
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 CFLAGS=""
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183
3184 int
3185 main ()
3186 {
3187
3188 ;
3189 return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3209 :
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3215 CFLAGS="-g"
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3248 ac_cv_prog_cc_g=yes
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253
3254 fi
3255
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3264 fi
3265 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3271 CFLAGS="-g -O2"
3272 else
3273 CFLAGS="-g"
3274 fi
3275 else
3276 if test "$GCC" = yes; then
3277 CFLAGS="-O2"
3278 else
3279 CFLAGS=
3280 fi
3281 fi
3282 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3283 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_cc_c89+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 ac_cv_prog_cc_c89=no
3288 ac_save_CC=$CC
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <stdarg.h>
3296 #include <stdio.h>
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3303 char **p;
3304 int i;
3305 {
3306 return p[i];
3307 }
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3309 {
3310 char *s;
3311 va_list v;
3312 va_start (v,p);
3313 s = g (p, va_arg (v,int));
3314 va_end (v);
3315 return s;
3316 }
3317
3318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3319 function prototypes and stuff, but not '\xHH' hex character constants.
3320 These don't provoke an error unfortunately, instead are silently treated
3321 as 'x'. The following induces an error, until -std is added to get
3322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3323 array size at least. It's necessary to write '\x00'==0 to get something
3324 that's true only with -std. */
3325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326
3327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3328 inside strings and character constants. */
3329 #define FOO(x) 'x'
3330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331
3332 int test (int i, double x);
3333 struct s1 {int (*f) (int a);};
3334 struct s2 {int (*f) (double a);};
3335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336 int argc;
3337 char **argv;
3338 int
3339 main ()
3340 {
3341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348 do
3349 CC="$ac_save_CC $ac_arg"
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3367 ac_cv_prog_cc_c89=$ac_arg
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373 fi
3374
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3377 done
3378 rm -f conftest.$ac_ext
3379 CC=$ac_save_CC
3380
3381 fi
3382 # AC_CACHE_VAL
3383 case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386 echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389 echo "${ECHO_T}unsupported" >&6; } ;;
3390 *)
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394 esac
3395
3396
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403 depcc="$CC" am_compiler_list=
3404
3405 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3406 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3407 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3411 # We make a subdir and do the tests there. Otherwise we can end up
3412 # making bogus files that we don't know about and never remove. For
3413 # instance it was reported that on HP-UX the gcc test will end up
3414 # making a dummy file named `D' -- because `-MD' means `put the output
3415 # in D'.
3416 mkdir conftest.dir
3417 # Copy depcomp to subdir because otherwise we won't find it if we're
3418 # using a relative directory.
3419 cp "$am_depcomp" conftest.dir
3420 cd conftest.dir
3421 # We will build objects and dependencies in a subdirectory because
3422 # it helps to detect inapplicable dependency modes. For instance
3423 # both Tru64's cc and ICC support -MD to output dependencies as a
3424 # side effect of compilation, but ICC will put the dependencies in
3425 # the current directory while Tru64 will put them in the object
3426 # directory.
3427 mkdir sub
3428
3429 am_cv_CC_dependencies_compiler_type=none
3430 if test "$am_compiler_list" = ""; then
3431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3432 fi
3433 for depmode in $am_compiler_list; do
3434 # Setup a source with many dependencies, because some compilers
3435 # like to wrap large dependency lists on column 80 (with \), and
3436 # we should not choose a depcomp mode which is confused by this.
3437 #
3438 # We need to recreate these files for each test, as the compiler may
3439 # overwrite some of them when testing with obscure command lines.
3440 # This happens at least with the AIX C compiler.
3441 : > sub/conftest.c
3442 for i in 1 2 3 4 5 6; do
3443 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3444 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3445 # Solaris 8's {/usr,}/bin/sh.
3446 touch sub/conftst$i.h
3447 done
3448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3449
3450 case $depmode in
3451 nosideeffect)
3452 # after this tag, mechanisms are not by side-effect, so they'll
3453 # only be used when explicitly requested
3454 if test "x$enable_dependency_tracking" = xyes; then
3455 continue
3456 else
3457 break
3458 fi
3459 ;;
3460 none) break ;;
3461 esac
3462 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3463 # mode. It turns out that the SunPro C++ compiler does not properly
3464 # handle `-M -o', and we need to detect this.
3465 if depmode=$depmode \
3466 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3468 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3469 >/dev/null 2>conftest.err &&
3470 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474 # icc doesn't choke on unknown options, it will just issue warnings
3475 # or remarks (even with -Werror). So we grep stderr for any message
3476 # that says an option was ignored or not supported.
3477 # When given -MP, icc 7.0 and 7.1 complain thusly:
3478 # icc: Command line warning: ignoring option '-M'; no argument required
3479 # The diagnosis changed in icc 8.0:
3480 # icc: Command line remark: option '-MP' not supported
3481 if (grep 'ignoring option' conftest.err ||
3482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483 am_cv_CC_dependencies_compiler_type=$depmode
3484 break
3485 fi
3486 fi
3487 done
3488
3489 cd ..
3490 rm -rf conftest.dir
3491 else
3492 am_cv_CC_dependencies_compiler_type=none
3493 fi
3494
3495 fi
3496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499
3500 if
3501 test "x$enable_dependency_tracking" != xno \
3502 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503 am__fastdepCC_TRUE=
3504 am__fastdepCC_FALSE='#'
3505 else
3506 am__fastdepCC_TRUE='#'
3507 am__fastdepCC_FALSE=
3508 fi
3509
3510
3511
3512 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3513 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
3514 if test "${ac_cv_type_signal+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <sys/types.h>
3524 #include <signal.h>
3525
3526 int
3527 main ()
3528 {
3529 return *(signal (0, 0)) (0) == 1;
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3551 ac_cv_type_signal=int
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 ac_cv_type_signal=void
3557 fi
3558
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3562 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
3563
3564 cat >>confdefs.h <<_ACEOF
3565 #define RETSIGTYPE $ac_cv_type_signal
3566 _ACEOF
3567
3568
3569 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3570 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3571 if test "${ac_cv_c_const+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584 /* FIXME: Include the comments suggested by Paul. */
3585 #ifndef __cplusplus
3586 /* Ultrix mips cc rejects this. */
3587 typedef int charset[2];
3588 const charset cs;
3589 /* SunOS 4.1.1 cc rejects this. */
3590 char const *const *pcpcc;
3591 char **ppc;
3592 /* NEC SVR4.0.2 mips cc rejects this. */
3593 struct point {int x, y;};
3594 static struct point const zero = {0,0};
3595 /* AIX XL C 1.02.0.0 rejects this.
3596 It does not let you subtract one const X* pointer from another in
3597 an arm of an if-expression whose if-part is not a constant
3598 expression */
3599 const char *g = "string";
3600 pcpcc = &g + (g ? g-g : 0);
3601 /* HPUX 7.0 cc rejects these. */
3602 ++pcpcc;
3603 ppc = (char**) pcpcc;
3604 pcpcc = (char const *const *) ppc;
3605 { /* SCO 3.2v4 cc rejects this. */
3606 char *t;
3607 char const *s = 0 ? (char *) 0 : (char const *) 0;
3608
3609 *t++ = 0;
3610 if (s) return 0;
3611 }
3612 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3613 int x[] = {25, 17};
3614 const int *foo = &x[0];
3615 ++foo;
3616 }
3617 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3618 typedef const int *iptr;
3619 iptr p = 0;
3620 ++p;
3621 }
3622 { /* AIX XL C 1.02.0.0 rejects this saying
3623 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3624 struct s { int j; const int *ap[3]; };
3625 struct s *b; b->j = 5;
3626 }
3627 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3628 const int foo = 10;
3629 if (!foo) return 0;
3630 }
3631 return !cs[0] && !zero.x;
3632 #endif
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645 (eval "$ac_compile") 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3655 ac_cv_c_const=yes
3656 else
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 ac_cv_c_const=no
3661 fi
3662
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3666 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3667 if test $ac_cv_c_const = no; then
3668
3669 cat >>confdefs.h <<\_ACEOF
3670 #define const
3671 _ACEOF
3672
3673 fi
3674
3675 { echo "$as_me:$LINENO: checking for inline" >&5
3676 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3677 if test "${ac_cv_c_inline+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 ac_cv_c_inline=no
3681 for ac_kw in inline __inline__ __inline; do
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #ifndef __cplusplus
3689 typedef int foo_t;
3690 static $ac_kw foo_t static_foo () {return 0; }
3691 $ac_kw foo_t foo () {return 0; }
3692 #endif
3693
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest.$ac_objext; then
3712 ac_cv_c_inline=$ac_kw
3713 else
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717
3718 fi
3719
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 test "$ac_cv_c_inline" != no && break
3722 done
3723
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3726 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3727
3728
3729 case $ac_cv_c_inline in
3730 inline | yes) ;;
3731 *)
3732 case $ac_cv_c_inline in
3733 no) ac_val=;;
3734 *) ac_val=$ac_cv_c_inline;;
3735 esac
3736 cat >>confdefs.h <<_ACEOF
3737 #ifndef __cplusplus
3738 #define inline $ac_val
3739 #endif
3740 _ACEOF
3741 ;;
3742 esac
3743
3744
3745 for ac_prog in gawk mawk nawk awk
3746 do
3747 # Extract the first word of "$ac_prog", so it can be a program name with args.
3748 set dummy $ac_prog; ac_word=$2
3749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3751 if test "${ac_cv_prog_AWK+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 if test -n "$AWK"; then
3755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_AWK="$ac_prog"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 AWK=$ac_cv_prog_AWK
3775 if test -n "$AWK"; then
3776 { echo "$as_me:$LINENO: result: $AWK" >&5
3777 echo "${ECHO_T}$AWK" >&6; }
3778 else
3779 { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3781 fi
3782
3783
3784 test -n "$AWK" && break
3785 done
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3797 if test "${ac_cv_prog_CC+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822 { echo "$as_me:$LINENO: result: $CC" >&5
3823 echo "${ECHO_T}$CC" >&6; }
3824 else
3825 { echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6; }
3827 fi
3828
3829
3830 fi
3831 if test -z "$ac_cv_prog_CC"; then
3832 ac_ct_CC=$CC
3833 # Extract the first word of "gcc", so it can be a program name with args.
3834 set dummy gcc; ac_word=$2
3835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 if test -n "$ac_ct_CC"; then
3841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_ac_ct_CC="gcc"
3851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3863 echo "${ECHO_T}$ac_ct_CC" >&6; }
3864 else
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3867 fi
3868
3869 if test "x$ac_ct_CC" = x; then
3870 CC=""
3871 else
3872 case $cross_compiling:$ac_tool_warned in
3873 yes:)
3874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3875 whose name does not start with the host triplet. If you think this
3876 configuration is useful to you, please write to autoconf@gnu.org." >&5
3877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3878 whose name does not start with the host triplet. If you think this
3879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 CC=$ac_ct_CC
3883 fi
3884 else
3885 CC="$ac_cv_prog_CC"
3886 fi
3887
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}cc; ac_word=$2
3892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3894 if test "${ac_cv_prog_CC+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 ac_cv_prog_CC="${ac_tool_prefix}cc"
3908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911 done
3912 done
3913 IFS=$as_save_IFS
3914
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { echo "$as_me:$LINENO: result: $CC" >&5
3920 echo "${ECHO_T}$CC" >&6; }
3921 else
3922 { echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6; }
3924 fi
3925
3926
3927 fi
3928 fi
3929 if test -z "$CC"; then
3930 # Extract the first word of "cc", so it can be a program name with args.
3931 set dummy cc; ac_word=$2
3932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3934 if test "${ac_cv_prog_CC+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 if test -n "$CC"; then
3938 ac_cv_prog_CC="$CC" # Let the user override the test.
3939 else
3940 ac_prog_rejected=no
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3949 ac_prog_rejected=yes
3950 continue
3951 fi
3952 ac_cv_prog_CC="cc"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 if test $ac_prog_rejected = yes; then
3961 # We found a bogon in the path, so make sure we never use it.
3962 set dummy $ac_cv_prog_CC
3963 shift
3964 if test $# != 0; then
3965 # We chose a different compiler from the bogus one.
3966 # However, it has the same basename, so the bogon will be chosen
3967 # first if we set CC to just the basename; use the full file name.
3968 shift
3969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3970 fi
3971 fi
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { echo "$as_me:$LINENO: result: $CC" >&5
3977 echo "${ECHO_T}$CC" >&6; }
3978 else
3979 { echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6; }
3981 fi
3982
3983
3984 fi
3985 if test -z "$CC"; then
3986 if test -n "$ac_tool_prefix"; then
3987 for ac_prog in cl.exe
3988 do
3989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_prog_CC+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 CC=$ac_cv_prog_CC
4017 if test -n "$CC"; then
4018 { echo "$as_me:$LINENO: result: $CC" >&5
4019 echo "${ECHO_T}$CC" >&6; }
4020 else
4021 { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4023 fi
4024
4025
4026 test -n "$CC" && break
4027 done
4028 fi
4029 if test -z "$CC"; then
4030 ac_ct_CC=$CC
4031 for ac_prog in cl.exe
4032 do
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 if test -n "$ac_ct_CC"; then
4041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_ac_ct_CC="$ac_prog"
4051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 fi
4059 fi
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4063 echo "${ECHO_T}$ac_ct_CC" >&6; }
4064 else
4065 { echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6; }
4067 fi
4068
4069
4070 test -n "$ac_ct_CC" && break
4071 done
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4079 whose name does not start with the host triplet. If you think this
4080 configuration is useful to you, please write to autoconf@gnu.org." >&5
4081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4082 whose name does not start with the host triplet. If you think this
4083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4084 ac_tool_warned=yes ;;
4085 esac
4086 CC=$ac_ct_CC
4087 fi
4088 fi
4089
4090 fi
4091
4092
4093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4094 See \`config.log' for more details." >&5
4095 echo "$as_me: error: no acceptable C compiler found in \$PATH
4096 See \`config.log' for more details." >&2;}
4097 { (exit 1); exit 1; }; }
4098
4099 # Provide some information about the compiler.
4100 echo "$as_me:$LINENO: checking for C compiler version" >&5
4101 ac_compiler=`set X $ac_compile; echo $2`
4102 { (ac_try="$ac_compiler --version >&5"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compiler --version >&5") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }
4112 { (ac_try="$ac_compiler -v >&5"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compiler -v >&5") 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }
4122 { (ac_try="$ac_compiler -V >&5"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compiler -V >&5") 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }
4132
4133 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4134 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144
4145 int
4146 main ()
4147 {
4148 #ifndef __GNUC__
4149 choke me
4150 #endif
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (ac_try="$ac_compile"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_compile") 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && {
4170 test -z "$ac_c_werror_flag" ||
4171 test ! -s conftest.err
4172 } && test -s conftest.$ac_objext; then
4173 ac_compiler_gnu=yes
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 ac_compiler_gnu=no
4179 fi
4180
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4183
4184 fi
4185 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4186 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4187 GCC=`test $ac_compiler_gnu = yes && echo yes`
4188 ac_test_CFLAGS=${CFLAGS+set}
4189 ac_save_CFLAGS=$CFLAGS
4190 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4191 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_cc_g+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 ac_save_c_werror_flag=$ac_c_werror_flag
4196 ac_c_werror_flag=yes
4197 ac_cv_prog_cc_g=no
4198 CFLAGS="-g"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205
4206 int
4207 main ()
4208 {
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && {
4228 test -z "$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.$ac_objext; then
4231 ac_cv_prog_cc_g=yes
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 CFLAGS=""
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243
4244 int
4245 main ()
4246 {
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_compile") 2>conftest.er1
4260 ac_status=$?
4261 grep -v '^ *+' conftest.er1 >conftest.err
4262 rm -f conftest.er1
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } && {
4266 test -z "$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4268 } && test -s conftest.$ac_objext; then
4269 :
4270 else
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274 ac_c_werror_flag=$ac_save_c_werror_flag
4275 CFLAGS="-g"
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282
4283 int
4284 main ()
4285 {
4286
4287 ;
4288 return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (ac_try="$ac_compile"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_compile") 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } && {
4305 test -z "$ac_c_werror_flag" ||
4306 test ! -s conftest.err
4307 } && test -s conftest.$ac_objext; then
4308 ac_cv_prog_cc_g=yes
4309 else
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313
4314 fi
4315
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 fi
4318
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 fi
4321
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 ac_c_werror_flag=$ac_save_c_werror_flag
4324 fi
4325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4326 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4327 if test "$ac_test_CFLAGS" = set; then
4328 CFLAGS=$ac_save_CFLAGS
4329 elif test $ac_cv_prog_cc_g = yes; then
4330 if test "$GCC" = yes; then
4331 CFLAGS="-g -O2"
4332 else
4333 CFLAGS="-g"
4334 fi
4335 else
4336 if test "$GCC" = yes; then
4337 CFLAGS="-O2"
4338 else
4339 CFLAGS=
4340 fi
4341 fi
4342 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4343 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_cc_c89+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 ac_cv_prog_cc_c89=no
4348 ac_save_CC=$CC
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <stdarg.h>
4356 #include <stdio.h>
4357 #include <sys/types.h>
4358 #include <sys/stat.h>
4359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4360 struct buf { int x; };
4361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4362 static char *e (p, i)
4363 char **p;
4364 int i;
4365 {
4366 return p[i];
4367 }
4368 static char *f (char * (*g) (char **, int), char **p, ...)
4369 {
4370 char *s;
4371 va_list v;
4372 va_start (v,p);
4373 s = g (p, va_arg (v,int));
4374 va_end (v);
4375 return s;
4376 }
4377
4378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4379 function prototypes and stuff, but not '\xHH' hex character constants.
4380 These don't provoke an error unfortunately, instead are silently treated
4381 as 'x'. The following induces an error, until -std is added to get
4382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4383 array size at least. It's necessary to write '\x00'==0 to get something
4384 that's true only with -std. */
4385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4386
4387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4388 inside strings and character constants. */
4389 #define FOO(x) 'x'
4390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4391
4392 int test (int i, double x);
4393 struct s1 {int (*f) (int a);};
4394 struct s2 {int (*f) (double a);};
4395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4396 int argc;
4397 char **argv;
4398 int
4399 main ()
4400 {
4401 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4408 do
4409 CC="$ac_save_CC $ac_arg"
4410 rm -f conftest.$ac_objext
4411 if { (ac_try="$ac_compile"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 ac_cv_prog_cc_c89=$ac_arg
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432
4433 fi
4434
4435 rm -f core conftest.err conftest.$ac_objext
4436 test "x$ac_cv_prog_cc_c89" != "xno" && break
4437 done
4438 rm -f conftest.$ac_ext
4439 CC=$ac_save_CC
4440
4441 fi
4442 # AC_CACHE_VAL
4443 case "x$ac_cv_prog_cc_c89" in
4444 x)
4445 { echo "$as_me:$LINENO: result: none needed" >&5
4446 echo "${ECHO_T}none needed" >&6; } ;;
4447 xno)
4448 { echo "$as_me:$LINENO: result: unsupported" >&5
4449 echo "${ECHO_T}unsupported" >&6; } ;;
4450 *)
4451 CC="$CC $ac_cv_prog_cc_c89"
4452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4453 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4454 esac
4455
4456
4457 ac_ext=c
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463 depcc="$CC" am_compiler_list=
4464
4465 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4466 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4467 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4471 # We make a subdir and do the tests there. Otherwise we can end up
4472 # making bogus files that we don't know about and never remove. For
4473 # instance it was reported that on HP-UX the gcc test will end up
4474 # making a dummy file named `D' -- because `-MD' means `put the output
4475 # in D'.
4476 mkdir conftest.dir
4477 # Copy depcomp to subdir because otherwise we won't find it if we're
4478 # using a relative directory.
4479 cp "$am_depcomp" conftest.dir
4480 cd conftest.dir
4481 # We will build objects and dependencies in a subdirectory because
4482 # it helps to detect inapplicable dependency modes. For instance
4483 # both Tru64's cc and ICC support -MD to output dependencies as a
4484 # side effect of compilation, but ICC will put the dependencies in
4485 # the current directory while Tru64 will put them in the object
4486 # directory.
4487 mkdir sub
4488
4489 am_cv_CC_dependencies_compiler_type=none
4490 if test "$am_compiler_list" = ""; then
4491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 fi
4493 for depmode in $am_compiler_list; do
4494 # Setup a source with many dependencies, because some compilers
4495 # like to wrap large dependency lists on column 80 (with \), and
4496 # we should not choose a depcomp mode which is confused by this.
4497 #
4498 # We need to recreate these files for each test, as the compiler may
4499 # overwrite some of them when testing with obscure command lines.
4500 # This happens at least with the AIX C compiler.
4501 : > sub/conftest.c
4502 for i in 1 2 3 4 5 6; do
4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4504 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4505 # Solaris 8's {/usr,}/bin/sh.
4506 touch sub/conftst$i.h
4507 done
4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
4510 case $depmode in
4511 nosideeffect)
4512 # after this tag, mechanisms are not by side-effect, so they'll
4513 # only be used when explicitly requested
4514 if test "x$enable_dependency_tracking" = xyes; then
4515 continue
4516 else
4517 break
4518 fi
4519 ;;
4520 none) break ;;
4521 esac
4522 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle `-M -o', and we need to detect this.
4525 if depmode=$depmode \
4526 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4529 >/dev/null 2>conftest.err &&
4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534 # icc doesn't choke on unknown options, it will just issue warnings
4535 # or remarks (even with -Werror). So we grep stderr for any message
4536 # that says an option was ignored or not supported.
4537 # When given -MP, icc 7.0 and 7.1 complain thusly:
4538 # icc: Command line warning: ignoring option '-M'; no argument required
4539 # The diagnosis changed in icc 8.0:
4540 # icc: Command line remark: option '-MP' not supported
4541 if (grep 'ignoring option' conftest.err ||
4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543 am_cv_CC_dependencies_compiler_type=$depmode
4544 break
4545 fi
4546 fi
4547 done
4548
4549 cd ..
4550 rm -rf conftest.dir
4551 else
4552 am_cv_CC_dependencies_compiler_type=none
4553 fi
4554
4555 fi
4556 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4559
4560 if
4561 test "x$enable_dependency_tracking" != xno \
4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_TRUE=
4564 am__fastdepCC_FALSE='#'
4565 else
4566 am__fastdepCC_TRUE='#'
4567 am__fastdepCC_FALSE=
4568 fi
4569
4570
4571 # Find a good install program. We prefer a C program (faster),
4572 # so one script is as good as another. But avoid the broken or
4573 # incompatible versions:
4574 # SysV /etc/install, /usr/sbin/install
4575 # SunOS /usr/etc/install
4576 # IRIX /sbin/install
4577 # AIX /bin/install
4578 # AmigaOS /C/install, which installs bootblocks on floppy discs
4579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4582 # OS/2's system install, which has a completely different semantic
4583 # ./install, which can be erroneously created by make from ./install.sh.
4584 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4585 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4586 if test -z "$INSTALL"; then
4587 if test "${ac_cv_path_install+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 # Account for people who put trailing slashes in PATH elements.
4596 case $as_dir/ in
4597 ./ | .// | /cC/* | \
4598 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4599 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4600 /usr/ucb/* ) ;;
4601 *)
4602 # OSF1 and SCO ODT 3.0 have their own names for install.
4603 # Don't use installbsd from OSF since it installs stuff as root
4604 # by default.
4605 for ac_prog in ginstall scoinst install; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4608 if test $ac_prog = install &&
4609 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4610 # AIX install. It has an incompatible calling convention.
4611 :
4612 elif test $ac_prog = install &&
4613 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4614 # program-specific install script used by HP pwplus--don't use.
4615 :
4616 else
4617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4618 break 3
4619 fi
4620 fi
4621 done
4622 done
4623 ;;
4624 esac
4625 done
4626 IFS=$as_save_IFS
4627
4628
4629 fi
4630 if test "${ac_cv_path_install+set}" = set; then
4631 INSTALL=$ac_cv_path_install
4632 else
4633 # As a last resort, use the slow shell script. Don't cache a
4634 # value for INSTALL within a source directory, because that will
4635 # break other packages using the cache if that directory is
4636 # removed, or if the value is a relative name.
4637 INSTALL=$ac_install_sh
4638 fi
4639 fi
4640 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4641 echo "${ECHO_T}$INSTALL" >&6; }
4642
4643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4644 # It thinks the first close brace ends the variable substitution.
4645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4646
4647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4648
4649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4650
4651
4652 if test -n "$ac_tool_prefix"; then
4653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4654 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 if test -n "$RANLIB"; then
4661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 RANLIB=$ac_cv_prog_RANLIB
4681 if test -n "$RANLIB"; then
4682 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4683 echo "${ECHO_T}$RANLIB" >&6; }
4684 else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690 fi
4691 if test -z "$ac_cv_prog_RANLIB"; then
4692 ac_ct_RANLIB=$RANLIB
4693 # Extract the first word of "ranlib", so it can be a program name with args.
4694 set dummy ranlib; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 if test -n "$ac_ct_RANLIB"; then
4701 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_ac_ct_RANLIB="ranlib"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4721 if test -n "$ac_ct_RANLIB"; then
4722 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4723 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4724 else
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729 if test "x$ac_ct_RANLIB" = x; then
4730 RANLIB=":"
4731 else
4732 case $cross_compiling:$ac_tool_warned in
4733 yes:)
4734 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4735 whose name does not start with the host triplet. If you think this
4736 configuration is useful to you, please write to autoconf@gnu.org." >&5
4737 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4738 whose name does not start with the host triplet. If you think this
4739 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 RANLIB=$ac_ct_RANLIB
4743 fi
4744 else
4745 RANLIB="$ac_cv_prog_RANLIB"
4746 fi
4747
4748
4749 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4750 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4751 LN_S=$as_ln_s
4752 if test "$LN_S" = "ln -s"; then
4753 { echo "$as_me:$LINENO: result: yes" >&5
4754 echo "${ECHO_T}yes" >&6; }
4755 else
4756 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4757 echo "${ECHO_T}no, using $LN_S" >&6; }
4758 fi
4759
4760 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4761 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4762 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4763 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 cat >conftest.make <<\_ACEOF
4767 SHELL = /bin/sh
4768 all:
4769 @echo '@@@%%%=$(MAKE)=@@@%%%'
4770 _ACEOF
4771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4772 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4773 *@@@%%%=?*=@@@%%%*)
4774 eval ac_cv_prog_make_${ac_make}_set=yes;;
4775 *)
4776 eval ac_cv_prog_make_${ac_make}_set=no;;
4777 esac
4778 rm -f conftest.make
4779 fi
4780 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4781 { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4783 SET_MAKE=
4784 else
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 SET_MAKE="MAKE=${MAKE-make}"
4788 fi
4789
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4797 # On Suns, sometimes $CPP names a directory.
4798 if test -n "$CPP" && test -d "$CPP"; then
4799 CPP=
4800 fi
4801 if test -z "$CPP"; then
4802 if test "${ac_cv_prog_CPP+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 # Double quotes because CPP needs to be expanded
4806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4807 do
4808 ac_preproc_ok=false
4809 for ac_c_preproc_warn_flag in '' yes
4810 do
4811 # Use a header file that comes with gcc, so configuring glibc
4812 # with a fresh cross-compiler works.
4813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 # <limits.h> exists even on freestanding compilers.
4815 # On the NeXT, cc -E runs the code through the compiler's parser,
4816 # not just through cpp. "Syntax error" is here to catch this case.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #ifdef __STDC__
4824 # include <limits.h>
4825 #else
4826 # include <assert.h>
4827 #endif
4828 Syntax error
4829 _ACEOF
4830 if { (ac_try="$ac_cpp conftest.$ac_ext"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null && {
4843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 }; then
4846 :
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 # Broken: fails on valid input.
4852 continue
4853 fi
4854
4855 rm -f conftest.err conftest.$ac_ext
4856
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
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 #include <ac_nonexistent.h>
4866 _ACEOF
4867 if { (ac_try="$ac_cpp conftest.$ac_ext"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null && {
4880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 }; then
4883 # Broken: success on invalid input.
4884 continue
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 # Passes both tests.
4890 ac_preproc_ok=:
4891 break
4892 fi
4893
4894 rm -f conftest.err conftest.$ac_ext
4895
4896 done
4897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898 rm -f conftest.err conftest.$ac_ext
4899 if $ac_preproc_ok; then
4900 break
4901 fi
4902
4903 done
4904 ac_cv_prog_CPP=$CPP
4905
4906 fi
4907 CPP=$ac_cv_prog_CPP
4908 else
4909 ac_cv_prog_CPP=$CPP
4910 fi
4911 { echo "$as_me:$LINENO: result: $CPP" >&5
4912 echo "${ECHO_T}$CPP" >&6; }
4913 ac_preproc_ok=false
4914 for ac_c_preproc_warn_flag in '' yes
4915 do
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933 Syntax error
4934 _ACEOF
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
4951 :
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 # Broken: fails on valid input.
4957 continue
4958 fi
4959
4960 rm -f conftest.err conftest.$ac_ext
4961
4962 # OK, works on sane cases. Now check whether nonexistent headers
4963 # can be detected and how.
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 #include <ac_nonexistent.h>
4971 _ACEOF
4972 if { (ac_try="$ac_cpp conftest.$ac_ext"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4987 }; then
4988 # Broken: success on invalid input.
4989 continue
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 # Passes both tests.
4995 ac_preproc_ok=:
4996 break
4997 fi
4998
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 done
5002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003 rm -f conftest.err conftest.$ac_ext
5004 if $ac_preproc_ok; then
5005 :
5006 else
5007 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5008 See \`config.log' for more details." >&5
5009 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." >&2;}
5011 { (exit 1); exit 1; }; }
5012 fi
5013
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019
5020
5021 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5022 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5023 if test "${ac_cv_path_GREP+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 # Extract the first word of "grep ggrep" to use in msg output
5027 if test -z "$GREP"; then
5028 set dummy grep ggrep; ac_prog_name=$2
5029 if test "${ac_cv_path_GREP+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 ac_path_GREP_found=false
5033 # Loop through the user's path and test for each of PROGNAME-LIST
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5036 do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_prog in grep ggrep; do
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5042 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5043 # Check for GNU ac_path_GREP and select it if it is found.
5044 # Check for GNU $ac_path_GREP
5045 case `"$ac_path_GREP" --version 2>&1` in
5046 *GNU*)
5047 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5048 *)
5049 ac_count=0
5050 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5051 while :
5052 do
5053 cat "conftest.in" "conftest.in" >"conftest.tmp"
5054 mv "conftest.tmp" "conftest.in"
5055 cp "conftest.in" "conftest.nl"
5056 echo 'GREP' >> "conftest.nl"
5057 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5059 ac_count=`expr $ac_count + 1`
5060 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5061 # Best one so far, save it but keep looking for a better one
5062 ac_cv_path_GREP="$ac_path_GREP"
5063 ac_path_GREP_max=$ac_count
5064 fi
5065 # 10*(2^10) chars as input seems more than enough
5066 test $ac_count -gt 10 && break
5067 done
5068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069 esac
5070
5071
5072 $ac_path_GREP_found && break 3
5073 done
5074 done
5075
5076 done
5077 IFS=$as_save_IFS
5078
5079
5080 fi
5081
5082 GREP="$ac_cv_path_GREP"
5083 if test -z "$GREP"; then
5084 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5085 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5086 { (exit 1); exit 1; }; }
5087 fi
5088
5089 else
5090 ac_cv_path_GREP=$GREP
5091 fi
5092
5093
5094 fi
5095 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5096 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5097 GREP="$ac_cv_path_GREP"
5098
5099
5100 { echo "$as_me:$LINENO: checking for egrep" >&5
5101 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5102 if test "${ac_cv_path_EGREP+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5106 then ac_cv_path_EGREP="$GREP -E"
5107 else
5108 # Extract the first word of "egrep" to use in msg output
5109 if test -z "$EGREP"; then
5110 set dummy egrep; ac_prog_name=$2
5111 if test "${ac_cv_path_EGREP+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 ac_path_EGREP_found=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_prog in egrep; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5124 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5125 # Check for GNU ac_path_EGREP and select it if it is found.
5126 # Check for GNU $ac_path_EGREP
5127 case `"$ac_path_EGREP" --version 2>&1` in
5128 *GNU*)
5129 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5130 *)
5131 ac_count=0
5132 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5133 while :
5134 do
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 echo 'EGREP' >> "conftest.nl"
5139 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141 ac_count=`expr $ac_count + 1`
5142 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_EGREP="$ac_path_EGREP"
5145 ac_path_EGREP_max=$ac_count
5146 fi
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5149 done
5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151 esac
5152
5153
5154 $ac_path_EGREP_found && break 3
5155 done
5156 done
5157
5158 done
5159 IFS=$as_save_IFS
5160
5161
5162 fi
5163
5164 EGREP="$ac_cv_path_EGREP"
5165 if test -z "$EGREP"; then
5166 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5167 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5168 { (exit 1); exit 1; }; }
5169 fi
5170
5171 else
5172 ac_cv_path_EGREP=$EGREP
5173 fi
5174
5175
5176 fi
5177 fi
5178 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5179 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5180 EGREP="$ac_cv_path_EGREP"
5181
5182
5183 if test $ac_cv_c_compiler_gnu = yes; then
5184 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5185 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5186 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 ac_pattern="Autoconf.*'x'"
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <sgtty.h>
5197 Autoconf TIOCGETP
5198 _ACEOF
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5201 ac_cv_prog_gcc_traditional=yes
5202 else
5203 ac_cv_prog_gcc_traditional=no
5204 fi
5205 rm -f conftest*
5206
5207
5208 if test $ac_cv_prog_gcc_traditional = no; then
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <termio.h>
5216 Autoconf TCGETA
5217 _ACEOF
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5220 ac_cv_prog_gcc_traditional=yes
5221 fi
5222 rm -f conftest*
5223
5224 fi
5225 fi
5226 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5227 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5228 if test $ac_cv_prog_gcc_traditional = yes; then
5229 CC="$CC -traditional"
5230 fi
5231 fi
5232
5233 # Extract the first word of "gmake", so it can be a program name with args.
5234 set dummy gmake; ac_word=$2
5235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5237 if test "${ac_cv_prog_MAKER+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 if test -n "$MAKER"; then
5241 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_prog_MAKER="gmake"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5259 fi
5260 fi
5261 MAKER=$ac_cv_prog_MAKER
5262 if test -n "$MAKER"; then
5263 { echo "$as_me:$LINENO: result: $MAKER" >&5
5264 echo "${ECHO_T}$MAKER" >&6; }
5265 else
5266 { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5268 fi
5269
5270
5271
5272 case $target in
5273 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5274 ANSI_SRC=""
5275 ;;
5276 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5277 ANSI_SRC=""
5278 ;;
5279 *-solaris*)
5280 EXTRA_DEFINE="-D__SOLARIS__"
5281 ANSI_SRC="-fno-builtin"
5282 ;;
5283 *-cygwin)
5284 ANSI_SRC="-fno-builtin"
5285 ;;
5286 *-linux*)
5287 EXTRA_DEFINE="-D_GNU_SOURCE"
5288 ANSI_SRC=""
5289 ;;
5290 *)
5291 ANSI_SRC=""
5292 ;;
5293 esac
5294 CFLAGS="$CFLAGS $EXTRA_DEFINE"
5295
5296
5297 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5298 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5299 if test "${ac_cv_lib_socket_socket+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 ac_check_lib_save_LIBS=$LIBS
5303 LIBS="-lsocket $LIBS"
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310
5311 /* Override any GCC internal prototype to avoid an error.
5312 Use char because int might match the return type of a GCC
5313 builtin and then its argument prototype would still apply. */
5314 #ifdef __cplusplus
5315 extern "C"
5316 #endif
5317 char socket ();
5318 int
5319 main ()
5320 {
5321 return socket ();
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (ac_try="$ac_link"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_link") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } && {
5340 test -z "$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 } && test -s conftest$ac_exeext &&
5343 $as_test_x conftest$ac_exeext; then
5344 ac_cv_lib_socket_socket=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_cv_lib_socket_socket=no
5350 fi
5351
5352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5353 conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5355 fi
5356 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5357 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5358 if test $ac_cv_lib_socket_socket = yes; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_LIBSOCKET 1
5361 _ACEOF
5362
5363 LIBS="-lsocket $LIBS"
5364
5365 fi
5366
5367
5368 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5369 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5370 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 ac_check_lib_save_LIBS=$LIBS
5374 LIBS="-lnsl $LIBS"
5375 cat >conftest.$ac_ext <<_ACEOF
5376 /* confdefs.h. */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5381
5382 /* Override any GCC internal prototype to avoid an error.
5383 Use char because int might match the return type of a GCC
5384 builtin and then its argument prototype would still apply. */
5385 #ifdef __cplusplus
5386 extern "C"
5387 #endif
5388 char gethostbyname ();
5389 int
5390 main ()
5391 {
5392 return gethostbyname ();
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5399 case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_link") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest$ac_exeext &&
5414 $as_test_x conftest$ac_exeext; then
5415 ac_cv_lib_nsl_gethostbyname=yes
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 ac_cv_lib_nsl_gethostbyname=no
5421 fi
5422
5423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5426 fi
5427 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5428 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5429 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_LIBNSL 1
5432 _ACEOF
5433
5434 LIBS="-lnsl $LIBS"
5435
5436 fi
5437
5438
5439 { echo "$as_me:$LINENO: checking for main in -lm" >&5
5440 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5441 if test "${ac_cv_lib_m_main+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 ac_check_lib_save_LIBS=$LIBS
5445 LIBS="-lm $LIBS"
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452
5453
5454 int
5455 main ()
5456 {
5457 return main ();
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (ac_try="$ac_link"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_link") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest$ac_exeext &&
5479 $as_test_x conftest$ac_exeext; then
5480 ac_cv_lib_m_main=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485 ac_cv_lib_m_main=no
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5489 conftest$ac_exeext conftest.$ac_ext
5490 LIBS=$ac_check_lib_save_LIBS
5491 fi
5492 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5493 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5494 if test $ac_cv_lib_m_main = yes; then
5495 cat >>confdefs.h <<_ACEOF
5496 #define HAVE_LIBM 1
5497 _ACEOF
5498
5499 LIBS="-lm $LIBS"
5500
5501 fi
5502
5503
5504 { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5505 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
5506 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 ac_check_lib_save_LIBS=$LIBS
5510 LIBS="-lGeoIP $LIBS"
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517
5518 /* Override any GCC internal prototype to avoid an error.
5519 Use char because int might match the return type of a GCC
5520 builtin and then its argument prototype would still apply. */
5521 #ifdef __cplusplus
5522 extern "C"
5523 #endif
5524 char GeoIP_open ();
5525 int
5526 main ()
5527 {
5528 return GeoIP_open ();
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext conftest$ac_exeext
5534 if { (ac_try="$ac_link"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_link") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest$ac_exeext &&
5550 $as_test_x conftest$ac_exeext; then
5551 ac_cv_lib_GeoIP_GeoIP_open=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_lib_GeoIP_GeoIP_open=no
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5560 conftest$ac_exeext conftest.$ac_ext
5561 LIBS=$ac_check_lib_save_LIBS
5562 fi
5563 { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5564 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
5565 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5566 cat >>confdefs.h <<_ACEOF
5567 #define HAVE_LIBGEOIP 1
5568 _ACEOF
5569
5570 LIBS="-lGeoIP $LIBS"
5571
5572 fi
5573
5574
5575 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5577 if test "${ac_cv_header_stdc+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <stdlib.h>
5587 #include <stdarg.h>
5588 #include <string.h>
5589 #include <float.h>
5590
5591 int
5592 main ()
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5616 ac_cv_header_stdc=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_header_stdc=no
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625
5626 if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <string.h>
5635
5636 _ACEOF
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev/null 2>&1; then
5639 :
5640 else
5641 ac_cv_header_stdc=no
5642 fi
5643 rm -f conftest*
5644
5645 fi
5646
5647 if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <stdlib.h>
5656
5657 _ACEOF
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "free" >/dev/null 2>&1; then
5660 :
5661 else
5662 ac_cv_header_stdc=no
5663 fi
5664 rm -f conftest*
5665
5666 fi
5667
5668 if test $ac_cv_header_stdc = yes; then
5669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5670 if test "$cross_compiling" = yes; then
5671 :
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <ctype.h>
5680 #include <stdlib.h>
5681 #if ((' ' & 0x0FF) == 0x020)
5682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5684 #else
5685 # define ISLOWER(c) \
5686 (('a' <= (c) && (c) <= 'i') \
5687 || ('j' <= (c) && (c) <= 'r') \
5688 || ('s' <= (c) && (c) <= 'z'))
5689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5690 #endif
5691
5692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5693 int
5694 main ()
5695 {
5696 int i;
5697 for (i = 0; i < 256; i++)
5698 if (XOR (islower (i), ISLOWER (i))
5699 || toupper (i) != TOUPPER (i))
5700 return 2;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest$ac_exeext
5705 if { (ac_try="$ac_link"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_link") 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 :
5725 else
5726 echo "$as_me: program exited with status $ac_status" >&5
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 ( exit $ac_status )
5731 ac_cv_header_stdc=no
5732 fi
5733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5734 fi
5735
5736
5737 fi
5738 fi
5739 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5740 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5741 if test $ac_cv_header_stdc = yes; then
5742
5743 cat >>confdefs.h <<\_ACEOF
5744 #define STDC_HEADERS 1
5745 _ACEOF
5746
5747 fi
5748
5749
5750 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5751 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5752 if test "${ac_cv_header_time+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 #include <sys/time.h>
5763 #include <time.h>
5764
5765 int
5766 main ()
5767 {
5768 if ((struct tm *) 0)
5769 return 0;
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (ac_try="$ac_compile"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_compile") 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && {
5788 test -z "$ac_c_werror_flag" ||
5789 test ! -s conftest.err
5790 } && test -s conftest.$ac_objext; then
5791 ac_cv_header_time=yes
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_cv_header_time=no
5797 fi
5798
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 fi
5801 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5802 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5803 if test $ac_cv_header_time = yes; then
5804
5805 cat >>confdefs.h <<\_ACEOF
5806 #define TIME_WITH_SYS_TIME 1
5807 _ACEOF
5808
5809 fi
5810
5811 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5812 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5813 if test "${ac_cv_struct_tm+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <sys/types.h>
5823 #include <time.h>
5824
5825 int
5826 main ()
5827 {
5828 struct tm tm;
5829 int *p = &tm.tm_sec;
5830 return !p;
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5837 case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 ac_cv_struct_tm=time.h
5853 else
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_cv_struct_tm=sys/time.h
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5863 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5864 if test $ac_cv_struct_tm = sys/time.h; then
5865
5866 cat >>confdefs.h <<\_ACEOF
5867 #define TM_IN_SYS_TIME 1
5868 _ACEOF
5869
5870 fi
5871
5872
5873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5884 inttypes.h stdint.h unistd.h
5885 do
5886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899
5900 #include <$ac_header>
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 eval "$as_ac_Header=yes"
5920 else
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 eval "$as_ac_Header=no"
5925 fi
5926
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 fi
5929 ac_res=`eval echo '${'$as_ac_Header'}'`
5930 { echo "$as_me:$LINENO: result: $ac_res" >&5
5931 echo "${ECHO_T}$ac_res" >&6; }
5932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5933 cat >>confdefs.h <<_ACEOF
5934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935 _ACEOF
5936
5937 fi
5938
5939 done
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 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
5966 do
5967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 fi
5974 ac_res=`eval echo '${'$as_ac_Header'}'`
5975 { echo "$as_me:$LINENO: result: $ac_res" >&5
5976 echo "${ECHO_T}$ac_res" >&6; }
5977 else
5978 # Is the header compilable?
5979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5988 #include <$ac_header>
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_objext; then
6007 ac_header_compiler=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 ac_header_compiler=no
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6017 echo "${ECHO_T}$ac_header_compiler" >&6; }
6018
6019 # Is the header present?
6020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6022 cat >conftest.$ac_ext <<_ACEOF
6023 /* confdefs.h. */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 #include <$ac_header>
6029 _ACEOF
6030 if { (ac_try="$ac_cpp conftest.$ac_ext"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } >/dev/null && {
6043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 }; then
6046 ac_header_preproc=yes
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 ac_header_preproc=no
6052 fi
6053
6054 rm -f conftest.err conftest.$ac_ext
6055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6056 echo "${ECHO_T}$ac_header_preproc" >&6; }
6057
6058 # So? What about this header?
6059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6060 yes:no: )
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6065 ac_header_preproc=yes
6066 ;;
6067 no:yes:* )
6068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6080 ( cat <<\_ASBOX
6081 ## -------------------------------------------------- ##
6082 ## Report this to evilnet-devel@lists.sourceforge.net ##
6083 ## -------------------------------------------------- ##
6084 _ASBOX
6085 ) | sed "s/^/$as_me: WARNING: /" >&2
6086 ;;
6087 esac
6088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 eval "$as_ac_Header=\$ac_header_preproc"
6094 fi
6095 ac_res=`eval echo '${'$as_ac_Header'}'`
6096 { echo "$as_me:$LINENO: result: $ac_res" >&5
6097 echo "${ECHO_T}$ac_res" >&6; }
6098
6099 fi
6100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6101 cat >>confdefs.h <<_ACEOF
6102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6103 _ACEOF
6104
6105 fi
6106
6107 done
6108
6109
6110 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6111 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
6112 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 #include <sys/types.h>
6122 #include <sys/socket.h>
6123
6124 int
6125 main ()
6126 {
6127 static struct sockaddr ac_aggr;
6128 if (ac_aggr.sa_len)
6129 return 0;
6130 ;
6131 return 0;
6132 }
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (ac_try="$ac_compile"
6136 case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_cv_member_struct_sockaddr_sa_len=yes
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <sys/types.h>
6163 #include <sys/socket.h>
6164
6165 int
6166 main ()
6167 {
6168 static struct sockaddr ac_aggr;
6169 if (sizeof ac_aggr.sa_len)
6170 return 0;
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compile") 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } && {
6189 test -z "$ac_c_werror_flag" ||
6190 test ! -s conftest.err
6191 } && test -s conftest.$ac_objext; then
6192 ac_cv_member_struct_sockaddr_sa_len=yes
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 ac_cv_member_struct_sockaddr_sa_len=no
6198 fi
6199
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 fi
6202
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 fi
6205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6206 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
6207 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6208
6209 cat >>confdefs.h <<\_ACEOF
6210 #define HAVE_SOCKADDR_SA_LEN
6211 _ACEOF
6212
6213 fi
6214
6215 { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6216 echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
6217 if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 #include <sys/types.h>
6227 #include <sys/socket.h>
6228 #include <netdb.h>
6229
6230 int
6231 main ()
6232 {
6233 static struct addrinfo ac_aggr;
6234 if (ac_aggr.ai_flags)
6235 return 0;
6236 ;
6237 return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6242 case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.$ac_objext; then
6257 ac_cv_member_struct_addrinfo_ai_flags=yes
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
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 (sizeof 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 ac_cv_member_struct_addrinfo_ai_flags=no
6305 fi
6306
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 fi
6309
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 fi
6312 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6313 echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
6314 if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6315
6316 cat >>confdefs.h <<\_ACEOF
6317 #define HAVE_STRUCT_ADDRINFO
6318 _ACEOF
6319
6320 fi
6321
6322
6323
6324 for ac_func in gettimeofday
6325 do
6326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6340 #define $ac_func innocuous_$ac_func
6341
6342 /* System header to define __stub macros and hopefully few prototypes,
6343 which can conflict with char $ac_func (); below.
6344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6345 <limits.h> exists even on freestanding compilers. */
6346
6347 #ifdef __STDC__
6348 # include <limits.h>
6349 #else
6350 # include <assert.h>
6351 #endif
6352
6353 #undef $ac_func
6354
6355 /* Override any GCC internal prototype to avoid an error.
6356 Use char because int might match the return type of a GCC
6357 builtin and then its argument prototype would still apply. */
6358 #ifdef __cplusplus
6359 extern "C"
6360 #endif
6361 char $ac_func ();
6362 /* The GNU C library defines this for functions which it implements
6363 to always fail with ENOSYS. Some functions are actually named
6364 something starting with __ and the normal name is an alias. */
6365 #if defined __stub_$ac_func || defined __stub___$ac_func
6366 choke me
6367 #endif
6368
6369 int
6370 main ()
6371 {
6372 return $ac_func ();
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (ac_try="$ac_link"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_link") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest$ac_exeext &&
6394 $as_test_x conftest$ac_exeext; then
6395 eval "$as_ac_var=yes"
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 eval "$as_ac_var=no"
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6404 conftest$ac_exeext conftest.$ac_ext
6405 fi
6406 ac_res=`eval echo '${'$as_ac_var'}'`
6407 { echo "$as_me:$LINENO: result: $ac_res" >&5
6408 echo "${ECHO_T}$ac_res" >&6; }
6409 if test `eval echo '${'$as_ac_var'}'` = yes; then
6410 cat >>confdefs.h <<_ACEOF
6411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6412 _ACEOF
6413
6414 fi
6415 done
6416
6417 if test $ac_cv_func_gettimeofday = no; then
6418
6419 for ac_func in ftime
6420 do
6421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h. */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6435 #define $ac_func innocuous_$ac_func
6436
6437 /* System header to define __stub macros and hopefully few prototypes,
6438 which can conflict with char $ac_func (); below.
6439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6440 <limits.h> exists even on freestanding compilers. */
6441
6442 #ifdef __STDC__
6443 # include <limits.h>
6444 #else
6445 # include <assert.h>
6446 #endif
6447
6448 #undef $ac_func
6449
6450 /* Override any GCC internal prototype to avoid an error.
6451 Use char because int might match the return type of a GCC
6452 builtin and then its argument prototype would still apply. */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 char $ac_func ();
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined __stub_$ac_func || defined __stub___$ac_func
6461 choke me
6462 #endif
6463
6464 int
6465 main ()
6466 {
6467 return $ac_func ();
6468 ;
6469 return 0;
6470 }
6471 _ACEOF
6472 rm -f conftest.$ac_objext conftest$ac_exeext
6473 if { (ac_try="$ac_link"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_link") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest$ac_exeext &&
6489 $as_test_x conftest$ac_exeext; then
6490 eval "$as_ac_var=yes"
6491 else
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 eval "$as_ac_var=no"
6496 fi
6497
6498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6499 conftest$ac_exeext conftest.$ac_ext
6500 fi
6501 ac_res=`eval echo '${'$as_ac_var'}'`
6502 { echo "$as_me:$LINENO: result: $ac_res" >&5
6503 echo "${ECHO_T}$ac_res" >&6; }
6504 if test `eval echo '${'$as_ac_var'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6507 _ACEOF
6508
6509 else
6510 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6511 echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6512 { (exit 1); exit 1; }; }
6513 fi
6514 done
6515
6516 fi
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532 for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
6533 do
6534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6548 #define $ac_func innocuous_$ac_func
6549
6550 /* System header to define __stub macros and hopefully few prototypes,
6551 which can conflict with char $ac_func (); below.
6552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6553 <limits.h> exists even on freestanding compilers. */
6554
6555 #ifdef __STDC__
6556 # include <limits.h>
6557 #else
6558 # include <assert.h>
6559 #endif
6560
6561 #undef $ac_func
6562
6563 /* Override any GCC internal prototype to avoid an error.
6564 Use char because int might match the return type of a GCC
6565 builtin and then its argument prototype would still apply. */
6566 #ifdef __cplusplus
6567 extern "C"
6568 #endif
6569 char $ac_func ();
6570 /* The GNU C library defines this for functions which it implements
6571 to always fail with ENOSYS. Some functions are actually named
6572 something starting with __ and the normal name is an alias. */
6573 #if defined __stub_$ac_func || defined __stub___$ac_func
6574 choke me
6575 #endif
6576
6577 int
6578 main ()
6579 {
6580 return $ac_func ();
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (ac_try="$ac_link"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_link") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest$ac_exeext &&
6602 $as_test_x conftest$ac_exeext; then
6603 eval "$as_ac_var=yes"
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 eval "$as_ac_var=no"
6609 fi
6610
6611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6612 conftest$ac_exeext conftest.$ac_ext
6613 fi
6614 ac_res=`eval echo '${'$as_ac_var'}'`
6615 { echo "$as_me:$LINENO: result: $ac_res" >&5
6616 echo "${ECHO_T}$ac_res" >&6; }
6617 if test `eval echo '${'$as_ac_var'}'` = yes; then
6618 cat >>confdefs.h <<_ACEOF
6619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6620 _ACEOF
6621
6622 fi
6623 done
6624
6625
6626
6627
6628
6629
6630
6631
6632 for ac_func in select socket strcspn strspn strtod strtoul
6633 do
6634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6648 #define $ac_func innocuous_$ac_func
6649
6650 /* System header to define __stub macros and hopefully few prototypes,
6651 which can conflict with char $ac_func (); below.
6652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6653 <limits.h> exists even on freestanding compilers. */
6654
6655 #ifdef __STDC__
6656 # include <limits.h>
6657 #else
6658 # include <assert.h>
6659 #endif
6660
6661 #undef $ac_func
6662
6663 /* Override any GCC internal prototype to avoid an error.
6664 Use char because int might match the return type of a GCC
6665 builtin and then its argument prototype would still apply. */
6666 #ifdef __cplusplus
6667 extern "C"
6668 #endif
6669 char $ac_func ();
6670 /* The GNU C library defines this for functions which it implements
6671 to always fail with ENOSYS. Some functions are actually named
6672 something starting with __ and the normal name is an alias. */
6673 #if defined __stub_$ac_func || defined __stub___$ac_func
6674 choke me
6675 #endif
6676
6677 int
6678 main ()
6679 {
6680 return $ac_func ();
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6687 case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690 esac
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_link") 2>conftest.er1
6693 ac_status=$?
6694 grep -v '^ *+' conftest.er1 >conftest.err
6695 rm -f conftest.er1
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && {
6699 test -z "$ac_c_werror_flag" ||
6700 test ! -s conftest.err
6701 } && test -s conftest$ac_exeext &&
6702 $as_test_x conftest$ac_exeext; then
6703 eval "$as_ac_var=yes"
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 eval "$as_ac_var=no"
6709 fi
6710
6711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6712 conftest$ac_exeext conftest.$ac_ext
6713 fi
6714 ac_res=`eval echo '${'$as_ac_var'}'`
6715 { echo "$as_me:$LINENO: result: $ac_res" >&5
6716 echo "${ECHO_T}$ac_res" >&6; }
6717 if test `eval echo '${'$as_ac_var'}'` = yes; then
6718 cat >>confdefs.h <<_ACEOF
6719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6720 _ACEOF
6721
6722 else
6723 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
6724 echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
6725 { (exit 1); exit 1; }; }
6726 fi
6727 done
6728
6729
6730 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6731 # for constant arguments. Useless!
6732 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6733 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6734 if test "${ac_cv_working_alloca_h+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <alloca.h>
6744 int
6745 main ()
6746 {
6747 char *p = (char *) alloca (2 * sizeof (int));
6748 if (p) return 0;
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6755 case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758 esac
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_link") 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest$ac_exeext &&
6770 $as_test_x conftest$ac_exeext; then
6771 ac_cv_working_alloca_h=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 ac_cv_working_alloca_h=no
6777 fi
6778
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6781 fi
6782 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6783 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6784 if test $ac_cv_working_alloca_h = yes; then
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_ALLOCA_H 1
6788 _ACEOF
6789
6790 fi
6791
6792 { echo "$as_me:$LINENO: checking for alloca" >&5
6793 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6794 if test "${ac_cv_func_alloca_works+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 #ifdef __GNUC__
6804 # define alloca __builtin_alloca
6805 #else
6806 # ifdef _MSC_VER
6807 # include <malloc.h>
6808 # define alloca _alloca
6809 # else
6810 # ifdef HAVE_ALLOCA_H
6811 # include <alloca.h>
6812 # else
6813 # ifdef _AIX
6814 #pragma alloca
6815 # else
6816 # ifndef alloca /* predefined by HP cc +Olibcalls */
6817 char *alloca ();
6818 # endif
6819 # endif
6820 # endif
6821 # endif
6822 #endif
6823
6824 int
6825 main ()
6826 {
6827 char *p = (char *) alloca (1);
6828 if (p) return 0;
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext conftest$ac_exeext
6834 if { (ac_try="$ac_link"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_link") 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest$ac_exeext &&
6850 $as_test_x conftest$ac_exeext; then
6851 ac_cv_func_alloca_works=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 ac_cv_func_alloca_works=no
6857 fi
6858
6859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6860 conftest$ac_exeext conftest.$ac_ext
6861 fi
6862 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6863 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6864
6865 if test $ac_cv_func_alloca_works = yes; then
6866
6867 cat >>confdefs.h <<\_ACEOF
6868 #define HAVE_ALLOCA 1
6869 _ACEOF
6870
6871 else
6872 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6873 # that cause trouble. Some versions do not even contain alloca or
6874 # contain a buggy version. If you still want to use their alloca,
6875 # use ar to extract alloca.o from them instead of compiling alloca.c.
6876
6877 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6878
6879 cat >>confdefs.h <<\_ACEOF
6880 #define C_ALLOCA 1
6881 _ACEOF
6882
6883
6884 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6885 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6886 if test "${ac_cv_os_cray+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #if defined CRAY && ! defined CRAY2
6896 webecray
6897 #else
6898 wenotbecray
6899 #endif
6900
6901 _ACEOF
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903 $EGREP "webecray" >/dev/null 2>&1; then
6904 ac_cv_os_cray=yes
6905 else
6906 ac_cv_os_cray=no
6907 fi
6908 rm -f conftest*
6909
6910 fi
6911 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6912 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6913 if test $ac_cv_os_cray = yes; then
6914 for ac_func in _getb67 GETB67 getb67; do
6915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6929 #define $ac_func innocuous_$ac_func
6930
6931 /* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char $ac_func (); below.
6933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 <limits.h> exists even on freestanding compilers. */
6935
6936 #ifdef __STDC__
6937 # include <limits.h>
6938 #else
6939 # include <assert.h>
6940 #endif
6941
6942 #undef $ac_func
6943
6944 /* Override any GCC internal prototype to avoid an error.
6945 Use char because int might match the return type of a GCC
6946 builtin and then its argument prototype would still apply. */
6947 #ifdef __cplusplus
6948 extern "C"
6949 #endif
6950 char $ac_func ();
6951 /* The GNU C library defines this for functions which it implements
6952 to always fail with ENOSYS. Some functions are actually named
6953 something starting with __ and the normal name is an alias. */
6954 #if defined __stub_$ac_func || defined __stub___$ac_func
6955 choke me
6956 #endif
6957
6958 int
6959 main ()
6960 {
6961 return $ac_func ();
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (ac_try="$ac_link"
6968 case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971 esac
6972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973 (eval "$ac_link") 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } && {
6980 test -z "$ac_c_werror_flag" ||
6981 test ! -s conftest.err
6982 } && test -s conftest$ac_exeext &&
6983 $as_test_x conftest$ac_exeext; then
6984 eval "$as_ac_var=yes"
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 eval "$as_ac_var=no"
6990 fi
6991
6992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6993 conftest$ac_exeext conftest.$ac_ext
6994 fi
6995 ac_res=`eval echo '${'$as_ac_var'}'`
6996 { echo "$as_me:$LINENO: result: $ac_res" >&5
6997 echo "${ECHO_T}$ac_res" >&6; }
6998 if test `eval echo '${'$as_ac_var'}'` = yes; then
6999
7000 cat >>confdefs.h <<_ACEOF
7001 #define CRAY_STACKSEG_END $ac_func
7002 _ACEOF
7003
7004 break
7005 fi
7006
7007 done
7008 fi
7009
7010 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7011 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7012 if test "${ac_cv_c_stack_direction+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 if test "$cross_compiling" = yes; then
7016 ac_cv_c_stack_direction=0
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7025 int
7026 find_stack_direction ()
7027 {
7028 static char *addr = 0;
7029 auto char dummy;
7030 if (addr == 0)
7031 {
7032 addr = &dummy;
7033 return find_stack_direction ();
7034 }
7035 else
7036 return (&dummy > addr) ? 1 : -1;
7037 }
7038
7039 int
7040 main ()
7041 {
7042 return find_stack_direction () < 0;
7043 }
7044 _ACEOF
7045 rm -f conftest$ac_exeext
7046 if { (ac_try="$ac_link"
7047 case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_link") 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7056 { (case "(($ac_try" in
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7059 esac
7060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_try") 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_cv_c_stack_direction=1
7066 else
7067 echo "$as_me: program exited with status $ac_status" >&5
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ( exit $ac_status )
7072 ac_cv_c_stack_direction=-1
7073 fi
7074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075 fi
7076
7077
7078 fi
7079 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7080 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define STACK_DIRECTION $ac_cv_c_stack_direction
7084 _ACEOF
7085
7086
7087 fi
7088
7089
7090
7091 for ac_header in stdlib.h unistd.h
7092 do
7093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 fi
7100 ac_res=`eval echo '${'$as_ac_Header'}'`
7101 { echo "$as_me:$LINENO: result: $ac_res" >&5
7102 echo "${ECHO_T}$ac_res" >&6; }
7103 else
7104 # Is the header compilable?
7105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7114 #include <$ac_header>
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7118 case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121 esac
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7133 ac_header_compiler=yes
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 ac_header_compiler=no
7139 fi
7140
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6; }
7144
7145 # Is the header present?
7146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 #include <$ac_header>
7155 _ACEOF
7156 if { (ac_try="$ac_cpp conftest.$ac_ext"
7157 case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 }; then
7172 ac_header_preproc=yes
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 ac_header_preproc=no
7178 fi
7179
7180 rm -f conftest.err conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 echo "${ECHO_T}$ac_header_preproc" >&6; }
7183
7184 # So? What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 yes:no: )
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191 ac_header_preproc=yes
7192 ;;
7193 no:yes:* )
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206 ( cat <<\_ASBOX
7207 ## -------------------------------------------------- ##
7208 ## Report this to evilnet-devel@lists.sourceforge.net ##
7209 ## -------------------------------------------------- ##
7210 _ASBOX
7211 ) | sed "s/^/$as_me: WARNING: /" >&2
7212 ;;
7213 esac
7214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 eval "$as_ac_Header=\$ac_header_preproc"
7220 fi
7221 ac_res=`eval echo '${'$as_ac_Header'}'`
7222 { echo "$as_me:$LINENO: result: $ac_res" >&5
7223 echo "${ECHO_T}$ac_res" >&6; }
7224
7225 fi
7226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7227 cat >>confdefs.h <<_ACEOF
7228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7229 _ACEOF
7230
7231 fi
7232
7233 done
7234
7235
7236 for ac_func in getpagesize
7237 do
7238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7252 #define $ac_func innocuous_$ac_func
7253
7254 /* System header to define __stub macros and hopefully few prototypes,
7255 which can conflict with char $ac_func (); below.
7256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7257 <limits.h> exists even on freestanding compilers. */
7258
7259 #ifdef __STDC__
7260 # include <limits.h>
7261 #else
7262 # include <assert.h>
7263 #endif
7264
7265 #undef $ac_func
7266
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7270 #ifdef __cplusplus
7271 extern "C"
7272 #endif
7273 char $ac_func ();
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined __stub_$ac_func || defined __stub___$ac_func
7278 choke me
7279 #endif
7280
7281 int
7282 main ()
7283 {
7284 return $ac_func ();
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext conftest$ac_exeext
7290 if { (ac_try="$ac_link"
7291 case "(($ac_try" in
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_link") 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest$ac_exeext &&
7306 $as_test_x conftest$ac_exeext; then
7307 eval "$as_ac_var=yes"
7308 else
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7311
7312 eval "$as_ac_var=no"
7313 fi
7314
7315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7316 conftest$ac_exeext conftest.$ac_ext
7317 fi
7318 ac_res=`eval echo '${'$as_ac_var'}'`
7319 { echo "$as_me:$LINENO: result: $ac_res" >&5
7320 echo "${ECHO_T}$ac_res" >&6; }
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 fi
7327 done
7328
7329 { echo "$as_me:$LINENO: checking for working mmap" >&5
7330 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7331 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 if test "$cross_compiling" = yes; then
7335 ac_cv_func_mmap_fixed_mapped=no
7336 else
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 /* malloc might have been renamed as rpl_malloc. */
7345 #undef malloc
7346
7347 /* Thanks to Mike Haertel and Jim Avera for this test.
7348 Here is a matrix of mmap possibilities:
7349 mmap private not fixed
7350 mmap private fixed at somewhere currently unmapped
7351 mmap private fixed at somewhere already mapped
7352 mmap shared not fixed
7353 mmap shared fixed at somewhere currently unmapped
7354 mmap shared fixed at somewhere already mapped
7355 For private mappings, we should verify that changes cannot be read()
7356 back from the file, nor mmap's back from the file at a different
7357 address. (There have been systems where private was not correctly
7358 implemented like the infamous i386 svr4.0, and systems where the
7359 VM page cache was not coherent with the file system buffer cache
7360 like early versions of FreeBSD and possibly contemporary NetBSD.)
7361 For shared mappings, we should conversely verify that changes get
7362 propagated back to all the places they're supposed to be.
7363
7364 Grep wants private fixed already mapped.
7365 The main things grep needs to know about mmap are:
7366 * does it exist and is it safe to write into the mmap'd area
7367 * how to use it (BSD variants) */
7368
7369 #include <fcntl.h>
7370 #include <sys/mman.h>
7371
7372 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7373 char *malloc ();
7374 #endif
7375
7376 /* This mess was copied from the GNU getpagesize.h. */
7377 #ifndef HAVE_GETPAGESIZE
7378 /* Assume that all systems that can run configure have sys/param.h. */
7379 # ifndef HAVE_SYS_PARAM_H
7380 # define HAVE_SYS_PARAM_H 1
7381 # endif
7382
7383 # ifdef _SC_PAGESIZE
7384 # define getpagesize() sysconf(_SC_PAGESIZE)
7385 # else /* no _SC_PAGESIZE */
7386 # ifdef HAVE_SYS_PARAM_H
7387 # include <sys/param.h>
7388 # ifdef EXEC_PAGESIZE
7389 # define getpagesize() EXEC_PAGESIZE
7390 # else /* no EXEC_PAGESIZE */
7391 # ifdef NBPG
7392 # define getpagesize() NBPG * CLSIZE
7393 # ifndef CLSIZE
7394 # define CLSIZE 1
7395 # endif /* no CLSIZE */
7396 # else /* no NBPG */
7397 # ifdef NBPC
7398 # define getpagesize() NBPC
7399 # else /* no NBPC */
7400 # ifdef PAGESIZE
7401 # define getpagesize() PAGESIZE
7402 # endif /* PAGESIZE */
7403 # endif /* no NBPC */
7404 # endif /* no NBPG */
7405 # endif /* no EXEC_PAGESIZE */
7406 # else /* no HAVE_SYS_PARAM_H */
7407 # define getpagesize() 8192 /* punt totally */
7408 # endif /* no HAVE_SYS_PARAM_H */
7409 # endif /* no _SC_PAGESIZE */
7410
7411 #endif /* no HAVE_GETPAGESIZE */
7412
7413 int
7414 main ()
7415 {
7416 char *data, *data2, *data3;
7417 int i, pagesize;
7418 int fd;
7419
7420 pagesize = getpagesize ();
7421
7422 /* First, make a file with some known garbage in it. */
7423 data = (char *) malloc (pagesize);
7424 if (!data)
7425 return 1;
7426 for (i = 0; i < pagesize; ++i)
7427 *(data + i) = rand ();
7428 umask (0);
7429 fd = creat ("conftest.mmap", 0600);
7430 if (fd < 0)
7431 return 1;
7432 if (write (fd, data, pagesize) != pagesize)
7433 return 1;
7434 close (fd);
7435
7436 /* Next, try to mmap the file at a fixed address which already has
7437 something else allocated at it. If we can, also make sure that
7438 we see the same garbage. */
7439 fd = open ("conftest.mmap", O_RDWR);
7440 if (fd < 0)
7441 return 1;
7442 data2 = (char *) malloc (2 * pagesize);
7443 if (!data2)
7444 return 1;
7445 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7448 return 1;
7449 for (i = 0; i < pagesize; ++i)
7450 if (*(data + i) != *(data2 + i))
7451 return 1;
7452
7453 /* Finally, make sure that changes to the mapped area do not
7454 percolate back to the file as seen by read(). (This is a bug on
7455 some variants of i386 svr4.0.) */
7456 for (i = 0; i < pagesize; ++i)
7457 *(data2 + i) = *(data2 + i) + 1;
7458 data3 = (char *) malloc (pagesize);
7459 if (!data3)
7460 return 1;
7461 if (read (fd, data3, pagesize) != pagesize)
7462 return 1;
7463 for (i = 0; i < pagesize; ++i)
7464 if (*(data + i) != *(data3 + i))
7465 return 1;
7466 close (fd);
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest$ac_exeext
7471 if { (ac_try="$ac_link"
7472 case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_link") 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7481 { (case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_try") 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_func_mmap_fixed_mapped=yes
7491 else
7492 echo "$as_me: program exited with status $ac_status" >&5
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496 ( exit $ac_status )
7497 ac_cv_func_mmap_fixed_mapped=no
7498 fi
7499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7500 fi
7501
7502
7503 fi
7504 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7505 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7506 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7507
7508 cat >>confdefs.h <<\_ACEOF
7509 #define HAVE_MMAP 1
7510 _ACEOF
7511
7512 fi
7513 rm -f conftest.mmap
7514
7515
7516 { echo "$as_me:$LINENO: checking for sin_len" >&5
7517 echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
7518 if test "${ac_cv_sin_len+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7528 #include <netinet/in.h>
7529 int
7530 main ()
7531 {
7532 struct sockaddr_in *sin; sin->sin_len = 0;
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext
7538 if { (ac_try="$ac_compile"
7539 case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542 esac
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 ac_cv_sin_len="yes"
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ac_cv_sin_len="no"
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
7565 echo "${ECHO_T}$ac_cv_sin_len" >&6; }
7566 if test $ac_cv_sin_len = yes ; then
7567
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_SIN_LEN 1
7570 _ACEOF
7571
7572 fi
7573
7574 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7575 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7576 if test "${ac_cv_type_socklen_t+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <sys/types.h>
7586 #include<sys/socket.h>
7587
7588 typedef socklen_t ac__type_new_;
7589 int
7590 main ()
7591 {
7592 if ((ac__type_new_ *) 0)
7593 return 0;
7594 if (sizeof (ac__type_new_))
7595 return 0;
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7602 case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605 esac
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_compile") 2>conftest.er1
7608 ac_status=$?
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && {
7614 test -z "$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 } && test -s conftest.$ac_objext; then
7617 ac_cv_type_socklen_t=yes
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622 ac_cv_type_socklen_t=no
7623 fi
7624
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7628 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7629 if test $ac_cv_type_socklen_t = yes; then
7630 :
7631 else
7632
7633 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
7634 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
7635 if test "${curl_cv_socklen_t_equiv+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638
7639 curl_cv_socklen_t_equiv=
7640 for arg2 in "struct sockaddr" void ; do
7641 for t in int size_t unsigned long "unsigned long" ; do
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <sys/types.h>
7649 #include <sys/socket.h>
7650 int getpeername (int $arg2 *, $t *);
7651 int
7652 main ()
7653 {
7654 $t len;
7655 getpeername(0, 0, &len);
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7677 curl_cv_socklen_t_equiv="$t"
7678 break
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683
7684 fi
7685
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 done
7688 done
7689
7690 fi
7691
7692 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
7693 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
7694
7695 cat >>confdefs.h <<_ACEOF
7696 #define socklen_t $curl_cv_socklen_t_equiv
7697 _ACEOF
7698
7699 fi
7700
7701
7702 OLD_CFLAGS=$CFLAGS
7703 CFLAGS="$CFLAGS -W -Wall -Werror"
7704
7705 { echo "$as_me:$LINENO: checking for time_t format" >&5
7706 echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
7707 if test "${ac_cv_fmt_time_t+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710
7711 ac_cv_fmt_time_t=no
7712 cat >conftest.$ac_ext <<_ACEOF
7713 #include <sys/types.h>
7714 #include <stdio.h>
7715 void myfunc(void) {
7716 time_t test=0;
7717 printf("%li", test);
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (ac_try="$ac_compile"
7722 case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725 esac
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727 (eval "$ac_compile") 2>conftest.er1
7728 ac_status=$?
7729 grep -v '^ *+' conftest.er1 >conftest.err
7730 rm -f conftest.er1
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } && {
7734 test -z "$ac_c_werror_flag" ||
7735 test ! -s conftest.err
7736 } && test -s conftest.$ac_objext; then
7737 ac_cv_fmt_time_t="\"%li\""
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742
7743 fi
7744
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 if test $ac_cv_fmt_time_t = no; then
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #include <sys/types.h>
7749 #include <stdio.h>
7750 void myfunc(void) {
7751 time_t test=0;
7752 printf("%i", test);
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7772 ac_cv_fmt_time_t="\"%i\""
7773 else
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7776
7777
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 if test $ac_cv_fmt_time_t = no; then
7783 { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
7784 Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
7785 echo "$as_me: error: Cannot detect format string for time_t
7786 Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
7787 { (exit 1); exit 1; }; }
7788 fi
7789
7790 fi
7791
7792
7793 cat >>confdefs.h <<_ACEOF
7794 #define FMT_TIME_T $ac_cv_fmt_time_t
7795 _ACEOF
7796
7797 { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
7798 echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
7799
7800 { echo "$as_me:$LINENO: checking for va_copy" >&5
7801 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
7802 if test "${ac_cv_c_va_copy+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 #include <stdarg.h>
7812 int
7813 main ()
7814 {
7815 va_list ap1, ap2; va_copy(ap1, ap2);
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_link") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest$ac_exeext &&
7837 $as_test_x conftest$ac_exeext; then
7838 ac_cv_c_va_copy="yes"
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 ac_cv_c_va_copy="no"
7844
7845 fi
7846
7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7848 conftest$ac_exeext conftest.$ac_ext
7849 fi
7850 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
7851 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
7852 if test "$ac_cv_c_va_copy" = "yes" ; then
7853
7854 cat >>confdefs.h <<\_ACEOF
7855 #define HAVE_VA_COPY 1
7856 _ACEOF
7857
7858 fi
7859
7860 { echo "$as_me:$LINENO: checking for __va_copy" >&5
7861 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
7862 if test "${ac_cv_c___va_copy+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <stdarg.h>
7872 int
7873 main ()
7874 {
7875 va_list ap1, ap2; __va_copy(ap1, ap2);
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (ac_try="$ac_link"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_link") 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest$ac_exeext &&
7897 $as_test_x conftest$ac_exeext; then
7898 ac_cv_c___va_copy="yes"
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 ac_cv_c___va_copy="no"
7904
7905 fi
7906
7907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7908 conftest$ac_exeext conftest.$ac_ext
7909 fi
7910 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
7911 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
7912 if test "$ac_cv_c___va_copy" = "yes" ; then
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE___VA_COPY 1
7916 _ACEOF
7917
7918 fi
7919
7920 CFLAGS=$OLD_CFLAGS
7921
7922 { echo "$as_me:$LINENO: checking which malloc to use" >&5
7923 echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
7924
7925 # Check whether --with-malloc was given.
7926 if test "${with_malloc+set}" = set; then
7927 withval=$with_malloc;
7928 else
7929 withval="system"
7930 fi
7931
7932 if test "x$withval" = "xsystem" ; then
7933 { echo "$as_me:$LINENO: result: system" >&5
7934 echo "${ECHO_T}system" >&6; }
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define WITH_MALLOC_SYSTEM 1
7938 _ACEOF
7939
7940 x3_malloc="System"
7941 elif test "x$withval" = "xdmalloc" ; then
7942 { echo "$as_me:$LINENO: result: dmalloc" >&5
7943 echo "${ECHO_T}dmalloc" >&6; }
7944
7945 for ac_header in dmalloc.h
7946 do
7947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 fi
7954 ac_res=`eval echo '${'$as_ac_Header'}'`
7955 { echo "$as_me:$LINENO: result: $ac_res" >&5
7956 echo "${ECHO_T}$ac_res" >&6; }
7957 else
7958 # Is the header compilable?
7959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #include <$ac_header>
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (ac_try="$ac_compile"
7972 case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_header_compiler=yes
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_header_compiler=no
7993 fi
7994
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7997 echo "${ECHO_T}$ac_header_compiler" >&6; }
7998
7999 # Is the header present?
8000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 #include <$ac_header>
8009 _ACEOF
8010 if { (ac_try="$ac_cpp conftest.$ac_ext"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } >/dev/null && {
8023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 }; then
8026 ac_header_preproc=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_header_preproc=no
8032 fi
8033
8034 rm -f conftest.err conftest.$ac_ext
8035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8036 echo "${ECHO_T}$ac_header_preproc" >&6; }
8037
8038 # So? What about this header?
8039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8040 yes:no: )
8041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8045 ac_header_preproc=yes
8046 ;;
8047 no:yes:* )
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8060 ( cat <<\_ASBOX
8061 ## -------------------------------------------------- ##
8062 ## Report this to evilnet-devel@lists.sourceforge.net ##
8063 ## -------------------------------------------------- ##
8064 _ASBOX
8065 ) | sed "s/^/$as_me: WARNING: /" >&2
8066 ;;
8067 esac
8068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 eval "$as_ac_Header=\$ac_header_preproc"
8074 fi
8075 ac_res=`eval echo '${'$as_ac_Header'}'`
8076 { echo "$as_me:$LINENO: result: $ac_res" >&5
8077 echo "${ECHO_T}$ac_res" >&6; }
8078
8079 fi
8080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8081 cat >>confdefs.h <<_ACEOF
8082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8083 _ACEOF
8084
8085 else
8086 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8087 echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8088 { (exit 1); exit 1; }; }
8089 fi
8090
8091 done
8092
8093
8094 { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8095 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
8096 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099 ac_check_lib_save_LIBS=$LIBS
8100 LIBS="-ldmalloc $LIBS"
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h. */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107
8108 /* Override any GCC internal prototype to avoid an error.
8109 Use char because int might match the return type of a GCC
8110 builtin and then its argument prototype would still apply. */
8111 #ifdef __cplusplus
8112 extern "C"
8113 #endif
8114 char malloc ();
8115 int
8116 main ()
8117 {
8118 return malloc ();
8119 ;
8120 return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (ac_try="$ac_link"
8125 case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_link") 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } && {
8137 test -z "$ac_c_werror_flag" ||
8138 test ! -s conftest.err
8139 } && test -s conftest$ac_exeext &&
8140 $as_test_x conftest$ac_exeext; then
8141 ac_cv_lib_dmalloc_malloc=yes
8142 else
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 ac_cv_lib_dmalloc_malloc=no
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8150 conftest$ac_exeext conftest.$ac_ext
8151 LIBS=$ac_check_lib_save_LIBS
8152 fi
8153 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8154 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
8155 if test $ac_cv_lib_dmalloc_malloc = yes; then
8156 cat >>confdefs.h <<_ACEOF
8157 #define HAVE_LIBDMALLOC 1
8158 _ACEOF
8159
8160 LIBS="-ldmalloc $LIBS"
8161
8162 else
8163 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8164 echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8165 { (exit 1); exit 1; }; }
8166 fi
8167
8168
8169 cat >>confdefs.h <<\_ACEOF
8170 #define WITH_MALLOC_DMALLOC 1
8171 _ACEOF
8172
8173 x3_malloc="DMalloc"
8174 elif test "x$withval" = "xmpatrol" ; then
8175 { echo "$as_me:$LINENO: result: mpatrol" >&5
8176 echo "${ECHO_T}mpatrol" >&6; }
8177
8178 for ac_header in mpatrol.h
8179 do
8180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 fi
8187 ac_res=`eval echo '${'$as_ac_Header'}'`
8188 { echo "$as_me:$LINENO: result: $ac_res" >&5
8189 echo "${ECHO_T}$ac_res" >&6; }
8190 else
8191 # Is the header compilable?
8192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 #include <$ac_header>
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8205 case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_compile") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } && {
8217 test -z "$ac_c_werror_flag" ||
8218 test ! -s conftest.err
8219 } && test -s conftest.$ac_objext; then
8220 ac_header_compiler=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 ac_header_compiler=no
8226 fi
8227
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8230 echo "${ECHO_T}$ac_header_compiler" >&6; }
8231
8232 # Is the header present?
8233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 #include <$ac_header>
8242 _ACEOF
8243 if { (ac_try="$ac_cpp conftest.$ac_ext"
8244 case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } >/dev/null && {
8256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 }; then
8259 ac_header_preproc=yes
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 ac_header_preproc=no
8265 fi
8266
8267 rm -f conftest.err conftest.$ac_ext
8268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8269 echo "${ECHO_T}$ac_header_preproc" >&6; }
8270
8271 # So? What about this header?
8272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8273 yes:no: )
8274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8278 ac_header_preproc=yes
8279 ;;
8280 no:yes:* )
8281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8293 ( cat <<\_ASBOX
8294 ## -------------------------------------------------- ##
8295 ## Report this to evilnet-devel@lists.sourceforge.net ##
8296 ## -------------------------------------------------- ##
8297 _ASBOX
8298 ) | sed "s/^/$as_me: WARNING: /" >&2
8299 ;;
8300 esac
8301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 eval "$as_ac_Header=\$ac_header_preproc"
8307 fi
8308 ac_res=`eval echo '${'$as_ac_Header'}'`
8309 { echo "$as_me:$LINENO: result: $ac_res" >&5
8310 echo "${ECHO_T}$ac_res" >&6; }
8311
8312 fi
8313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8316 _ACEOF
8317
8318 else
8319 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
8320 echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
8321 { (exit 1); exit 1; }; }
8322 fi
8323
8324 done
8325
8326
8327 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
8328 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
8329 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332 ac_check_lib_save_LIBS=$LIBS
8333 LIBS="-lelf $LIBS"
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340
8341 /* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8344 #ifdef __cplusplus
8345 extern "C"
8346 #endif
8347 char elf_begin ();
8348 int
8349 main ()
8350 {
8351 return elf_begin ();
8352 ;
8353 return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest$ac_exeext &&
8373 $as_test_x conftest$ac_exeext; then
8374 ac_cv_lib_elf_elf_begin=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_lib_elf_elf_begin=no
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_lib_save_LIBS
8385 fi
8386 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
8387 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
8388 if test $ac_cv_lib_elf_elf_begin = yes; then
8389 cat >>confdefs.h <<_ACEOF
8390 #define HAVE_LIBELF 1
8391 _ACEOF
8392
8393 LIBS="-lelf $LIBS"
8394
8395 fi
8396
8397
8398 { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
8399 echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
8400 if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403 ac_check_lib_save_LIBS=$LIBS
8404 LIBS="-lmpatrol $LIBS"
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411
8412 /* Override any GCC internal prototype to avoid an error.
8413 Use char because int might match the return type of a GCC
8414 builtin and then its argument prototype would still apply. */
8415 #ifdef __cplusplus
8416 extern "C"
8417 #endif
8418 char __mp_atexit ();
8419 int
8420 main ()
8421 {
8422 return __mp_atexit ();
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_link") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest$ac_exeext &&
8444 $as_test_x conftest$ac_exeext; then
8445 ac_cv_lib_mpatrol___mp_atexit=yes
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 ac_cv_lib_mpatrol___mp_atexit=no
8451 fi
8452
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454 conftest$ac_exeext conftest.$ac_ext
8455 LIBS=$ac_check_lib_save_LIBS
8456 fi
8457 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
8458 echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
8459 if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_LIBMPATROL 1
8462 _ACEOF
8463
8464 LIBS="-lmpatrol $LIBS"
8465
8466 else
8467 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
8468 echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
8469 { (exit 1); exit 1; }; }
8470 fi
8471
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define WITH_MALLOC_MPATROL 1
8475 _ACEOF
8476
8477 x3_malloc="MPatrol"
8478 elif test "x$withval" = "xboehm-gc" ; then
8479 { echo "$as_me:$LINENO: result: boehm-gc" >&5
8480 echo "${ECHO_T}boehm-gc" >&6; }
8481
8482 for ac_header in gc/gc.h
8483 do
8484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 fi
8491 ac_res=`eval echo '${'$as_ac_Header'}'`
8492 { echo "$as_me:$LINENO: result: $ac_res" >&5
8493 echo "${ECHO_T}$ac_res" >&6; }
8494 else
8495 # Is the header compilable?
8496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 $ac_includes_default
8505 #include <$ac_header>
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8509 case "(($ac_try" in
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 ac_header_compiler=yes
8525 else
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 ac_header_compiler=no
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534 echo "${ECHO_T}$ac_header_compiler" >&6; }
8535
8536 # Is the header present?
8537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 #include <$ac_header>
8546 _ACEOF
8547 if { (ac_try="$ac_cpp conftest.$ac_ext"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } >/dev/null && {
8560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 }; then
8563 ac_header_preproc=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 ac_header_preproc=no
8569 fi
8570
8571 rm -f conftest.err conftest.$ac_ext
8572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8573 echo "${ECHO_T}$ac_header_preproc" >&6; }
8574
8575 # So? What about this header?
8576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8577 yes:no: )
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8582 ac_header_preproc=yes
8583 ;;
8584 no:yes:* )
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8597 ( cat <<\_ASBOX
8598 ## -------------------------------------------------- ##
8599 ## Report this to evilnet-devel@lists.sourceforge.net ##
8600 ## -------------------------------------------------- ##
8601 _ASBOX
8602 ) | sed "s/^/$as_me: WARNING: /" >&2
8603 ;;
8604 esac
8605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 eval "$as_ac_Header=\$ac_header_preproc"
8611 fi
8612 ac_res=`eval echo '${'$as_ac_Header'}'`
8613 { echo "$as_me:$LINENO: result: $ac_res" >&5
8614 echo "${ECHO_T}$ac_res" >&6; }
8615
8616 fi
8617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8618 cat >>confdefs.h <<_ACEOF
8619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 _ACEOF
8621
8622 else
8623 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
8624 echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
8625 { (exit 1); exit 1; }; }
8626 fi
8627
8628 done
8629
8630
8631 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8632 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8633 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 ac_check_lib_save_LIBS=$LIBS
8637 LIBS="-ldl $LIBS"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644
8645 /* Override any GCC internal prototype to avoid an error.
8646 Use char because int might match the return type of a GCC
8647 builtin and then its argument prototype would still apply. */
8648 #ifdef __cplusplus
8649 extern "C"
8650 #endif
8651 char dlopen ();
8652 int
8653 main ()
8654 {
8655 return dlopen ();
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_link") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest$ac_exeext &&
8677 $as_test_x conftest$ac_exeext; then
8678 ac_cv_lib_dl_dlopen=yes
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_cv_lib_dl_dlopen=no
8684 fi
8685
8686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687 conftest$ac_exeext conftest.$ac_ext
8688 LIBS=$ac_check_lib_save_LIBS
8689 fi
8690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8691 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8692 if test $ac_cv_lib_dl_dlopen = yes; then
8693 cat >>confdefs.h <<_ACEOF
8694 #define HAVE_LIBDL 1
8695 _ACEOF
8696
8697 LIBS="-ldl $LIBS"
8698
8699 else
8700 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
8701 echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
8702 { (exit 1); exit 1; }; }
8703 fi
8704
8705
8706 { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
8707 echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
8708 if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 ac_check_lib_save_LIBS=$LIBS
8712 LIBS="-lgc $LIBS"
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719
8720 /* Override any GCC internal prototype to avoid an error.
8721 Use char because int might match the return type of a GCC
8722 builtin and then its argument prototype would still apply. */
8723 #ifdef __cplusplus
8724 extern "C"
8725 #endif
8726 char GC_gcollect ();
8727 int
8728 main ()
8729 {
8730 return GC_gcollect ();
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_link") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest$ac_exeext &&
8752 $as_test_x conftest$ac_exeext; then
8753 ac_cv_lib_gc_GC_gcollect=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 ac_cv_lib_gc_GC_gcollect=no
8759 fi
8760
8761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8764 fi
8765 { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
8766 echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
8767 if test $ac_cv_lib_gc_GC_gcollect = yes; then
8768 cat >>confdefs.h <<_ACEOF
8769 #define HAVE_LIBGC 1
8770 _ACEOF
8771
8772 LIBS="-lgc $LIBS"
8773
8774 else
8775 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
8776 echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
8777 { (exit 1); exit 1; }; }
8778 fi
8779
8780
8781 cat >>confdefs.h <<\_ACEOF
8782 #define WITH_MALLOC_BOEHM_GC 1
8783 _ACEOF
8784
8785 x3_malloc="Boehm"
8786 elif test "x$withval" = "xx3" ; then
8787 { echo "$as_me:$LINENO: result: x3" >&5
8788 echo "${ECHO_T}x3" >&6; }
8789
8790 cat >>confdefs.h <<\_ACEOF
8791 #define WITH_MALLOC_X3 1
8792 _ACEOF
8793
8794 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
8795 x3_malloc="X3"
8796 elif test "x$withval" = "xslab" ; then
8797 { echo "$as_me:$LINENO: result: slab" >&5
8798 echo "${ECHO_T}slab" >&6; }
8799
8800 cat >>confdefs.h <<\_ACEOF
8801 #define WITH_MALLOC_SLAB 1
8802 _ACEOF
8803
8804 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
8805 x3_malloc="Slab"
8806 else
8807 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
8808 echo "$as_me: error: Unknown malloc type $withval" >&2;}
8809 { (exit 1); exit 1; }; }
8810 fi
8811
8812 { echo "$as_me:$LINENO: checking which protocol to use" >&5
8813 echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
8814
8815 # Check whether --with-protocol was given.
8816 if test "${with_protocol+set}" = set; then
8817 withval=$with_protocol;
8818 else
8819 withval="p10"
8820 fi
8821
8822 if test "x$withval" = "xp10" ; then
8823 { echo "$as_me:$LINENO: result: P10" >&5
8824 echo "${ECHO_T}P10" >&6; }
8825
8826 cat >>confdefs.h <<\_ACEOF
8827 #define WITH_PROTOCOL_P10 1
8828 _ACEOF
8829
8830 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
8831 PROTO_FILES=proto-p10.c
8832 x3_ircd="P10"
8833 else
8834 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
8835 echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
8836 { (exit 1); exit 1; }; }
8837 fi
8838
8839
8840 # Check whether --with-getopt was given.
8841 if test "${with_getopt+set}" = set; then
8842 withval=$with_getopt; if test "$withval" = no; then
8843
8844 cat >>confdefs.h <<\_ACEOF
8845 #define IGNORE_GETOPT 1
8846 _ACEOF
8847
8848 fi
8849 fi
8850
8851
8852 { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
8853 echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
8854 # Check whether --enable-tokens was given.
8855 if test "${enable_tokens+set}" = set; then
8856 enableval=$enable_tokens;
8857 else
8858 enableval=yes
8859 fi
8860
8861 if test "z$enableval" = zno ; then
8862 { echo "$as_me:$LINENO: result: no" >&5
8863 echo "${ECHO_T}no" >&6; }
8864 else
8865
8866 cat >>confdefs.h <<\_ACEOF
8867 #define ENABLE_TOKENS 1
8868 _ACEOF
8869
8870 { echo "$as_me:$LINENO: result: yes" >&5
8871 echo "${ECHO_T}yes" >&6; }
8872 fi
8873
8874 { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
8875 echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
8876 # Check whether --enable-debug was given.
8877 if test "${enable_debug+set}" = set; then
8878 enableval=$enable_debug;
8879 CPPFLAGS="$CPPFLAGS"
8880 { echo "$as_me:$LINENO: result: yes" >&5
8881 echo "${ECHO_T}yes" >&6; }
8882 x3_debug="Enabled"
8883
8884 else
8885
8886 CPPFLAGS="$CPPFLAGS -DNDEBUG"
8887 { echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6; }
8889 x3_debug="Disabled"
8890
8891 fi
8892
8893
8894 if test -e src ; then
8895 if test ! -d src ; then
8896 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
8897 echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
8898 { (exit 1); exit 1; }; }
8899 fi
8900 else
8901 mkdir src
8902 fi
8903 { echo "$as_me:$LINENO: checking for extra module files" >&5
8904 echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
8905 MODULE_DEFINES="src/modules-list.h"
8906 echo > $MODULE_DEFINES
8907 touch $MODULE_DEFINES
8908 # Check whether --enable-modules was given.
8909 if test "${enable_modules+set}" = set; then
8910 enableval=$enable_modules;
8911 OIFS="$IFS"
8912 IFS=','
8913 EXTRA_MODULE_OBJS=""
8914 module_list=""
8915 for module in $enableval ; do
8916 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
8917 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
8918 module_list="$module_list $module"
8919 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8920 if test "x$module" = "xtrack" ; then
8921 TRACK="-D HAVE_TRACK"
8922
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_TRACK 1
8925 _ACEOF
8926
8927 fi
8928 if test "x$module" = "xhelpserv" ; then
8929 TRACK="-D HAVE_HELPSERV"
8930
8931 cat >>confdefs.h <<\_ACEOF
8932 #define HAVE_HELPSERV 1
8933 _ACEOF
8934
8935 fi
8936 done
8937 IFS="$OIFS"
8938 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8939 { echo "$as_me:$LINENO: result: $module_list" >&5
8940 echo "${ECHO_T}$module_list" >&6; }
8941
8942 else
8943
8944 { echo "$as_me:$LINENO: result: none" >&5
8945 echo "${ECHO_T}none" >&6; }
8946
8947 fi
8948
8949
8950 # Check whether --enable-python was given.
8951 if test "${enable_python+set}" = set; then
8952 enableval=$enable_python; python=$enableval
8953 else
8954 python=yes
8955 fi
8956
8957
8958
8959 MY_SUBDIRS=""
8960 RX_INCLUDES=""
8961 RX_LIBS=""
8962 if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
8963 MY_SUBDIRS="rx $MY_SUBDIRS"
8964 RX_INCLUDES="-I../rx"
8965 RX_LIBS="../rx/librx.a"
8966 fi
8967 MY_SUBDIRS="$MY_SUBDIRS src"
8968 CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
8969 if test "z$USE_MAINTAINER_MODE" = zyes ; then
8970 CFLAGS="$CFLAGS -Werror"
8971 fi
8972
8973
8974 tre_version="0.7.5"
8975 withval=''
8976
8977 # Check whether --with-tre was given.
8978 if test "${with_tre+set}" = set; then
8979 withval=$with_tre;
8980 fi
8981
8982 if test "x$withval" != "x"; then
8983 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
8984 echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
8985 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8986 LIBS="$LIBS -L$withval/lib"
8987 else
8988 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
8989 echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
8990 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8991 LIBS="$LIBS -L${HOME}/lib"
8992 fi
8993 if test "${ac_cv_header_tre_regex_h+set}" = set; then
8994 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
8995 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
8996 if test "${ac_cv_header_tre_regex_h+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 fi
8999 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9000 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9001 else
9002 # Is the header compilable?
9003 { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9004 echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 $ac_includes_default
9012 #include <tre/regex.h>
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9016 case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.$ac_objext; then
9031 ac_header_compiler=yes
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_header_compiler=no
9037 fi
9038
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9041 echo "${ECHO_T}$ac_header_compiler" >&6; }
9042
9043 # Is the header present?
9044 { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9045 echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <tre/regex.h>
9053 _ACEOF
9054 if { (ac_try="$ac_cpp conftest.$ac_ext"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } >/dev/null && {
9067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 }; then
9070 ac_header_preproc=yes
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_header_preproc=no
9076 fi
9077
9078 rm -f conftest.err conftest.$ac_ext
9079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9080 echo "${ECHO_T}$ac_header_preproc" >&6; }
9081
9082 # So? What about this header?
9083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9084 yes:no: )
9085 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9086 echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9088 echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
9089 ac_header_preproc=yes
9090 ;;
9091 no:yes:* )
9092 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9093 echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9095 echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9097 echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9099 echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9103 echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
9104 ( cat <<\_ASBOX
9105 ## -------------------------------------------------- ##
9106 ## Report this to evilnet-devel@lists.sourceforge.net ##
9107 ## -------------------------------------------------- ##
9108 _ASBOX
9109 ) | sed "s/^/$as_me: WARNING: /" >&2
9110 ;;
9111 esac
9112 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9113 echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9114 if test "${ac_cv_header_tre_regex_h+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 ac_cv_header_tre_regex_h=$ac_header_preproc
9118 fi
9119 { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9120 echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
9121
9122 fi
9123 if test $ac_cv_header_tre_regex_h = yes; then
9124 :
9125 else
9126 { { 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
9127 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;}
9128 { (exit 1); exit 1; }; }
9129 fi
9130
9131
9132
9133 { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9134 echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9135 if test "${ac_cv_lib_tre_regexec+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-ltre $LIBS"
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 char regexec ();
9154 int
9155 main ()
9156 {
9157 return regexec ();
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (ac_try="$ac_link"
9164 case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_link") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest$ac_exeext &&
9179 $as_test_x conftest$ac_exeext; then
9180 ac_cv_lib_tre_regexec=yes
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_cv_lib_tre_regexec=no
9186 fi
9187
9188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
9193 echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
9194 if test $ac_cv_lib_tre_regexec = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define HAVE_LIBTRE 1
9197 _ACEOF
9198
9199 LIBS="-ltre $LIBS"
9200
9201 else
9202 { { 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
9203 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;}
9204 { (exit 1); exit 1; }; }
9205 fi
9206
9207
9208 core_version="1.1"
9209 withval=''
9210
9211 # Check whether --with-coredumper was given.
9212 if test "${with_coredumper+set}" = set; then
9213 withval=$with_coredumper;
9214 fi
9215
9216 if test "x$withval" != "x"; then
9217 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
9218 echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
9219 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9220 LIBS="$LIBS -L$withval/lib"
9221 else
9222 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
9223 echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
9224 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
9225 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
9226 fi
9227 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9228 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9229 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9230 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 fi
9233 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9234 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9235 else
9236 # Is the header compilable?
9237 { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
9238 echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 $ac_includes_default
9246 #include <google/coredumper.h>
9247 _ACEOF
9248 rm -f conftest.$ac_objext
9249 if { (ac_try="$ac_compile"
9250 case "(($ac_try" in
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9253 esac
9254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255 (eval "$ac_compile") 2>conftest.er1
9256 ac_status=$?
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest.$ac_objext; then
9265 ac_header_compiler=yes
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_compiler=no
9271 fi
9272
9273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9275 echo "${ECHO_T}$ac_header_compiler" >&6; }
9276
9277 # Is the header present?
9278 { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
9279 echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #include <google/coredumper.h>
9287 _ACEOF
9288 if { (ac_try="$ac_cpp conftest.$ac_ext"
9289 case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } >/dev/null && {
9301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9302 test ! -s conftest.err
9303 }; then
9304 ac_header_preproc=yes
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 ac_header_preproc=no
9310 fi
9311
9312 rm -f conftest.err conftest.$ac_ext
9313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314 echo "${ECHO_T}$ac_header_preproc" >&6; }
9315
9316 # So? What about this header?
9317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9318 yes:no: )
9319 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
9320 echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
9322 echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
9323 ac_header_preproc=yes
9324 ;;
9325 no:yes:* )
9326 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
9327 echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
9329 echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
9331 echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
9333 echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
9337 echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
9338 ( cat <<\_ASBOX
9339 ## -------------------------------------------------- ##
9340 ## Report this to evilnet-devel@lists.sourceforge.net ##
9341 ## -------------------------------------------------- ##
9342 _ASBOX
9343 ) | sed "s/^/$as_me: WARNING: /" >&2
9344 ;;
9345 esac
9346 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9347 echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9348 if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 ac_cv_header_google_coredumper_h=$ac_header_preproc
9352 fi
9353 { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9354 echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9355
9356 fi
9357 if test $ac_cv_header_google_coredumper_h = yes; then
9358 :
9359 else
9360 { 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
9361 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; }
9362 fi
9363
9364
9365
9366 { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
9367 echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
9368 if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 ac_check_lib_save_LIBS=$LIBS
9372 LIBS="-lcoredumper $LIBS"
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379
9380 /* Override any GCC internal prototype to avoid an error.
9381 Use char because int might match the return type of a GCC
9382 builtin and then its argument prototype would still apply. */
9383 #ifdef __cplusplus
9384 extern "C"
9385 #endif
9386 char WriteCoreDump ();
9387 int
9388 main ()
9389 {
9390 return WriteCoreDump ();
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9413 ac_cv_lib_coredumper_WriteCoreDump=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_cv_lib_coredumper_WriteCoreDump=no
9419 fi
9420
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9423 LIBS=$ac_check_lib_save_LIBS
9424 fi
9425 { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
9426 echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
9427 if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429 #define HAVE_LIBCOREDUMPER 1
9430 _ACEOF
9431
9432 LIBS="-lcoredumper $LIBS"
9433
9434 else
9435 { 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
9436 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; }
9437 fi
9438
9439
9440 withval=''
9441
9442 # Check whether --with-ssl was given.
9443 if test "${with_ssl+set}" = set; then
9444 withval=$with_ssl;
9445 fi
9446
9447 if test "x$withval" != "x"; then
9448 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
9449 echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
9450 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9451 LIBS="$LIBS -L$withval/lib"
9452 else
9453 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
9454 echo "${ECHO_T}Looking for openssl in system " >&6; }
9455 fi
9456
9457 { echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
9458 echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
9459 if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 ac_check_lib_save_LIBS=$LIBS
9463 LIBS="-lssl $LIBS"
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char BIO_new ();
9478 int
9479 main ()
9480 {
9481 return BIO_new ();
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (ac_try="$ac_link"
9488 case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_link") 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && {
9500 test -z "$ac_c_werror_flag" ||
9501 test ! -s conftest.err
9502 } && test -s conftest$ac_exeext &&
9503 $as_test_x conftest$ac_exeext; then
9504 ac_cv_lib_ssl_BIO_new=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_cv_lib_ssl_BIO_new=no
9510 fi
9511
9512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LIBS=$ac_check_lib_save_LIBS
9515 fi
9516 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
9517 echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
9518 if test $ac_cv_lib_ssl_BIO_new = yes; then
9519
9520 LIBS="-lssl $LIBS"
9521
9522 for ac_header in openssl/bio.h
9523 do
9524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 fi
9531 ac_res=`eval echo '${'$as_ac_Header'}'`
9532 { echo "$as_me:$LINENO: result: $ac_res" >&5
9533 echo "${ECHO_T}$ac_res" >&6; }
9534 else
9535 # Is the header compilable?
9536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $ac_includes_default
9545 #include <$ac_header>
9546 _ACEOF
9547 rm -f conftest.$ac_objext
9548 if { (ac_try="$ac_compile"
9549 case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552 esac
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_compile") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && {
9561 test -z "$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9563 } && test -s conftest.$ac_objext; then
9564 ac_header_compiler=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_header_compiler=no
9570 fi
9571
9572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9574 echo "${ECHO_T}$ac_header_compiler" >&6; }
9575
9576 # Is the header present?
9577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <$ac_header>
9586 _ACEOF
9587 if { (ac_try="$ac_cpp conftest.$ac_ext"
9588 case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } >/dev/null && {
9600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 }; then
9603 ac_header_preproc=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_header_preproc=no
9609 fi
9610
9611 rm -f conftest.err conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9613 echo "${ECHO_T}$ac_header_preproc" >&6; }
9614
9615 # So? What about this header?
9616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9617 yes:no: )
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9622 ac_header_preproc=yes
9623 ;;
9624 no:yes:* )
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9637 ( cat <<\_ASBOX
9638 ## -------------------------------------------------- ##
9639 ## Report this to evilnet-devel@lists.sourceforge.net ##
9640 ## -------------------------------------------------- ##
9641 _ASBOX
9642 ) | sed "s/^/$as_me: WARNING: /" >&2
9643 ;;
9644 esac
9645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 eval "$as_ac_Header=\$ac_header_preproc"
9651 fi
9652 ac_res=`eval echo '${'$as_ac_Header'}'`
9653 { echo "$as_me:$LINENO: result: $ac_res" >&5
9654 echo "${ECHO_T}$ac_res" >&6; }
9655
9656 fi
9657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9658 cat >>confdefs.h <<_ACEOF
9659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660 _ACEOF
9661
9662
9663 cat >>confdefs.h <<\_ACEOF
9664 #define WITH_SSL 1
9665 _ACEOF
9666
9667 ssl_message="LDAP library: enabled"
9668
9669 else
9670
9671 if test "x$withval" != "x"; then
9672 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
9673 echo "$as_me: error: ssl headers not found" >&2;}
9674 { (exit 1); exit 1; }; }
9675 fi
9676
9677 fi
9678
9679 done
9680
9681
9682 else
9683
9684 if test "x$withval" != "x"; then
9685 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9686 echo "$as_me: error: libldap not found or not valid" >&2;}
9687 { (exit 1); exit 1; }; }
9688 fi
9689
9690
9691 fi
9692
9693 { echo "$as_me:$LINENO: result: $LIBS" >&5
9694 echo "${ECHO_T}$LIBS" >&6; }
9695
9696
9697 withval=''
9698
9699 # Check whether --with-ldap was given.
9700 if test "${with_ldap+set}" = set; then
9701 withval=$with_ldap;
9702 fi
9703
9704 if test "x$withval" != "x"; then
9705 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
9706 echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
9707 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9708 LIBS="$LIBS -L$withval/lib"
9709 else
9710 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
9711 echo "${ECHO_T}Looking for ldap in system " >&6; }
9712 fi
9713
9714 { echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
9715 echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
9716 if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 ac_check_lib_save_LIBS=$LIBS
9720 LIBS="-lldap $LIBS"
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char ldap_simple_bind_s ();
9735 int
9736 main ()
9737 {
9738 return ldap_simple_bind_s ();
9739 ;
9740 return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (ac_try="$ac_link"
9745 case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_link") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest$ac_exeext &&
9760 $as_test_x conftest$ac_exeext; then
9761 ac_cv_lib_ldap_ldap_simple_bind_s=yes
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 ac_cv_lib_ldap_ldap_simple_bind_s=no
9767 fi
9768
9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770 conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9772 fi
9773 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
9774 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
9775 if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
9776
9777 LIBS="-lldap $LIBS"
9778
9779 for ac_header in ldap.h
9780 do
9781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 fi
9788 ac_res=`eval echo '${'$as_ac_Header'}'`
9789 { echo "$as_me:$LINENO: result: $ac_res" >&5
9790 echo "${ECHO_T}$ac_res" >&6; }
9791 else
9792 # Is the header compilable?
9793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 #include <$ac_header>
9803 _ACEOF
9804 rm -f conftest.$ac_objext
9805 if { (ac_try="$ac_compile"
9806 case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_compile") 2>conftest.er1
9812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest.$ac_objext; then
9821 ac_header_compiler=yes
9822 else
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826 ac_header_compiler=no
9827 fi
9828
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9831 echo "${ECHO_T}$ac_header_compiler" >&6; }
9832
9833 # Is the header present?
9834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <$ac_header>
9843 _ACEOF
9844 if { (ac_try="$ac_cpp conftest.$ac_ext"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } >/dev/null && {
9857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 }; then
9860 ac_header_preproc=yes
9861 else
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_header_preproc=no
9866 fi
9867
9868 rm -f conftest.err conftest.$ac_ext
9869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9870 echo "${ECHO_T}$ac_header_preproc" >&6; }
9871
9872 # So? What about this header?
9873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9874 yes:no: )
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9879 ac_header_preproc=yes
9880 ;;
9881 no:yes:* )
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9894 ( cat <<\_ASBOX
9895 ## -------------------------------------------------- ##
9896 ## Report this to evilnet-devel@lists.sourceforge.net ##
9897 ## -------------------------------------------------- ##
9898 _ASBOX
9899 ) | sed "s/^/$as_me: WARNING: /" >&2
9900 ;;
9901 esac
9902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907 eval "$as_ac_Header=\$ac_header_preproc"
9908 fi
9909 ac_res=`eval echo '${'$as_ac_Header'}'`
9910 { echo "$as_me:$LINENO: result: $ac_res" >&5
9911 echo "${ECHO_T}$ac_res" >&6; }
9912
9913 fi
9914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9915 cat >>confdefs.h <<_ACEOF
9916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917 _ACEOF
9918
9919
9920 cat >>confdefs.h <<\_ACEOF
9921 #define WITH_LDAP 1
9922 _ACEOF
9923
9924 ldap_message="LDAP library: enabled"
9925
9926 else
9927
9928 if test "x$withval" != "x"; then
9929 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
9930 echo "$as_me: error: ldap.h not found" >&2;}
9931 { (exit 1); exit 1; }; }
9932 fi
9933
9934 fi
9935
9936 done
9937
9938
9939 else
9940
9941 if test "x$withval" != "x"; then
9942 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9943 echo "$as_me: error: libldap not found or not valid" >&2;}
9944 { (exit 1); exit 1; }; }
9945 fi
9946
9947
9948 fi
9949
9950
9951
9952 if test "$python" = yes; then
9953 # Extract the first word of "python2", so it can be a program name with args.
9954 set dummy python2; ac_word=$2
9955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9957 if test "${ac_cv_path_pythonpath+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 case $pythonpath in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
9963 ;;
9964 *)
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9967 do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
9973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976 done
9977 done
9978 IFS=$as_save_IFS
9979
9980 ;;
9981 esac
9982 fi
9983 pythonpath=$ac_cv_path_pythonpath
9984 if test -n "$pythonpath"; then
9985 { echo "$as_me:$LINENO: result: $pythonpath" >&5
9986 echo "${ECHO_T}$pythonpath" >&6; }
9987 else
9988 { echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6; }
9990 fi
9991
9992
9993 if test "_$pythonpath" = _ ; then
9994 # Extract the first word of "python", so it can be a program name with args.
9995 set dummy python; ac_word=$2
9996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9998 if test "${ac_cv_path_pythonpath+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001 case $pythonpath in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_pythonpath="$pythonpath" # Let the user override the test with a path.
10004 ;;
10005 *)
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_pythonpath="$as_dir/$ac_word$ac_exec_ext"
10014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 ;;
10022 esac
10023 fi
10024 pythonpath=$ac_cv_path_pythonpath
10025 if test -n "$pythonpath"; then
10026 { echo "$as_me:$LINENO: result: $pythonpath" >&5
10027 echo "${ECHO_T}$pythonpath" >&6; }
10028 else
10029 { echo "$as_me:$LINENO: result: no" >&5
10030 echo "${ECHO_T}no" >&6; }
10031 fi
10032
10033
10034 fi
10035 if test "_$pythonpath" = _ ; then
10036 python=no
10037 else
10038 { echo "$as_me:$LINENO: checking Python version" >&5
10039 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
10040 PY_VER=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("VERSION")[0];'`
10041 PY_LIB=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(standard_lib=1);'`
10042 PY_INC=`$pythonpath -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_vars("INCLUDEPY")[0];'`
10043 $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
10044 { echo "$as_me:$LINENO: result: $PY_VER" >&5
10045 echo "${ECHO_T}$PY_VER" >&6; }
10046 if test "$?" != "1"; then
10047 { echo "$as_me:$LINENO: checking Python compile flags" >&5
10048 echo $ECHO_N "checking Python compile flags... $ECHO_C" >&6; }
10049 PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
10050 PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
10051 if test -f $PY_INC/Python.h; then
10052
10053 cat >>confdefs.h <<\_ACEOF
10054 #define WITH_PYTHON 1
10055 _ACEOF
10056
10057 PY_LIBS="-L$PY_LIB/config -lpython$PY_VER -lpthread -lutil"
10058 PY_CFLAGS="-I$PY_INC"
10059 { echo "$as_me:$LINENO: result: ok" >&5
10060 echo "${ECHO_T}ok" >&6; }
10061 else
10062 python=no
10063 { echo "$as_me:$LINENO: result: Can't find Python.h" >&5
10064 echo "${ECHO_T}Can't find Python.h" >&6; }
10065 fi
10066 else
10067 echo "Python too old. Only 2.2 or above is supported."
10068 python=no
10069 fi
10070 fi
10071 fi
10072
10073 if test "x$python" = "xyes"; then
10074 DO_PYTHON_TRUE=
10075 DO_PYTHON_FALSE='#'
10076 else
10077 DO_PYTHON_TRUE='#'
10078 DO_PYTHON_FALSE=
10079 fi
10080
10081
10082 { echo "$as_me:$LINENO: result: $LIBS" >&5
10083 echo "${ECHO_T}$LIBS" >&6; }
10084
10085
10086 cat >>confdefs.h <<_ACEOF
10087 #define CODENAME "${CODENAME}"
10088 _ACEOF
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10099
10100 cat >confcache <<\_ACEOF
10101 # This file is a shell script that caches the results of configure
10102 # tests run on this system so they can be shared between configure
10103 # scripts and configure runs, see configure's option --config-cache.
10104 # It is not useful on other systems. If it contains results you don't
10105 # want to keep, you may remove or edit it.
10106 #
10107 # config.status only pays attention to the cache file if you give it
10108 # the --recheck option to rerun configure.
10109 #
10110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10112 # following values.
10113
10114 _ACEOF
10115
10116 # The following way of writing the cache mishandles newlines in values,
10117 # but we know of no workaround that is simple, portable, and efficient.
10118 # So, we kill variables containing newlines.
10119 # Ultrix sh set writes to stderr and can't be redirected directly,
10120 # and sets the high bit in the cache file unless we assign to the vars.
10121 (
10122 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10123 eval ac_val=\$$ac_var
10124 case $ac_val in #(
10125 *${as_nl}*)
10126 case $ac_var in #(
10127 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10128 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10129 esac
10130 case $ac_var in #(
10131 _ | IFS | as_nl) ;; #(
10132 *) $as_unset $ac_var ;;
10133 esac ;;
10134 esac
10135 done
10136
10137 (set) 2>&1 |
10138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10139 *${as_nl}ac_space=\ *)
10140 # `set' does not quote correctly, so add quotes (double-quote
10141 # substitution turns \\\\ into \\, and sed turns \\ into \).
10142 sed -n \
10143 "s/'/'\\\\''/g;
10144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10145 ;; #(
10146 *)
10147 # `set' quotes correctly as required by POSIX, so do not add quotes.
10148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10149 ;;
10150 esac |
10151 sort
10152 ) |
10153 sed '
10154 /^ac_cv_env_/b end
10155 t clear
10156 :clear
10157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10158 t end
10159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10160 :end' >>confcache
10161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10162 if test -w "$cache_file"; then
10163 test "x$cache_file" != "x/dev/null" &&
10164 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10165 echo "$as_me: updating cache $cache_file" >&6;}
10166 cat confcache >$cache_file
10167 else
10168 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10169 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10170 fi
10171 fi
10172 rm -f confcache
10173
10174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10175 # Let make expand exec_prefix.
10176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10177
10178 DEFS=-DHAVE_CONFIG_H
10179
10180 ac_libobjs=
10181 ac_ltlibobjs=
10182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10183 # 1. Remove the extension, and $U if already installed.
10184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10185 ac_i=`echo "$ac_i" | sed "$ac_script"`
10186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10187 # will be set to the directory where LIBOBJS objects are built.
10188 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10189 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10190 done
10191 LIBOBJS=$ac_libobjs
10192
10193 LTLIBOBJS=$ac_ltlibobjs
10194
10195
10196 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10197 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10198 Usually this means the macro was only invoked conditionally." >&5
10199 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10200 Usually this means the macro was only invoked conditionally." >&2;}
10201 { (exit 1); exit 1; }; }
10202 fi
10203 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10204 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10205 Usually this means the macro was only invoked conditionally." >&5
10206 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10207 Usually this means the macro was only invoked conditionally." >&2;}
10208 { (exit 1); exit 1; }; }
10209 fi
10210 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10211 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10212 Usually this means the macro was only invoked conditionally." >&5
10213 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10214 Usually this means the macro was only invoked conditionally." >&2;}
10215 { (exit 1); exit 1; }; }
10216 fi
10217 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10218 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10219 Usually this means the macro was only invoked conditionally." >&5
10220 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10221 Usually this means the macro was only invoked conditionally." >&2;}
10222 { (exit 1); exit 1; }; }
10223 fi
10224 if test -z "${DO_PYTHON_TRUE}" && test -z "${DO_PYTHON_FALSE}"; then
10225 { { echo "$as_me:$LINENO: error: conditional \"DO_PYTHON\" was never defined.
10226 Usually this means the macro was only invoked conditionally." >&5
10227 echo "$as_me: error: conditional \"DO_PYTHON\" was never defined.
10228 Usually this means the macro was only invoked conditionally." >&2;}
10229 { (exit 1); exit 1; }; }
10230 fi
10231
10232 : ${CONFIG_STATUS=./config.status}
10233 ac_clean_files_save=$ac_clean_files
10234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10237 cat >$CONFIG_STATUS <<_ACEOF
10238 #! $SHELL
10239 # Generated by $as_me.
10240 # Run this file to recreate the current configuration.
10241 # Compiler output produced by configure, useful for debugging
10242 # configure, is in config.log if it exists.
10243
10244 debug=false
10245 ac_cs_recheck=false
10246 ac_cs_silent=false
10247 SHELL=\${CONFIG_SHELL-$SHELL}
10248 _ACEOF
10249
10250 cat >>$CONFIG_STATUS <<\_ACEOF
10251 ## --------------------- ##
10252 ## M4sh Initialization. ##
10253 ## --------------------- ##
10254
10255 # Be more Bourne compatible
10256 DUALCASE=1; export DUALCASE # for MKS sh
10257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10258 emulate sh
10259 NULLCMD=:
10260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10261 # is contrary to our usage. Disable this feature.
10262 alias -g '${1+"$@"}'='"$@"'
10263 setopt NO_GLOB_SUBST
10264 else
10265 case `(set -o) 2>/dev/null` in
10266 *posix*) set -o posix ;;
10267 esac
10268
10269 fi
10270
10271
10272
10273
10274 # PATH needs CR
10275 # Avoid depending upon Character Ranges.
10276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10279 as_cr_digits='0123456789'
10280 as_cr_alnum=$as_cr_Letters$as_cr_digits
10281
10282 # The user is always right.
10283 if test "${PATH_SEPARATOR+set}" != set; then
10284 echo "#! /bin/sh" >conf$$.sh
10285 echo "exit 0" >>conf$$.sh
10286 chmod +x conf$$.sh
10287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10288 PATH_SEPARATOR=';'
10289 else
10290 PATH_SEPARATOR=:
10291 fi
10292 rm -f conf$$.sh
10293 fi
10294
10295 # Support unset when possible.
10296 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10297 as_unset=unset
10298 else
10299 as_unset=false
10300 fi
10301
10302
10303 # IFS
10304 # We need space, tab and new line, in precisely that order. Quoting is
10305 # there to prevent editors from complaining about space-tab.
10306 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10307 # splitting by setting IFS to empty value.)
10308 as_nl='
10309 '
10310 IFS=" "" $as_nl"
10311
10312 # Find who we are. Look in the path if we contain no directory separator.
10313 case $0 in
10314 *[\\/]* ) as_myself=$0 ;;
10315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10317 do
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10321 done
10322 IFS=$as_save_IFS
10323
10324 ;;
10325 esac
10326 # We did not find ourselves, most probably we were run as `sh COMMAND'
10327 # in which case we are not to be found in the path.
10328 if test "x$as_myself" = x; then
10329 as_myself=$0
10330 fi
10331 if test ! -f "$as_myself"; then
10332 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10333 { (exit 1); exit 1; }
10334 fi
10335
10336 # Work around bugs in pre-3.0 UWIN ksh.
10337 for as_var in ENV MAIL MAILPATH
10338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10339 done
10340 PS1='$ '
10341 PS2='> '
10342 PS4='+ '
10343
10344 # NLS nuisances.
10345 for as_var in \
10346 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10347 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10348 LC_TELEPHONE LC_TIME
10349 do
10350 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10351 eval $as_var=C; export $as_var
10352 else
10353 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10354 fi
10355 done
10356
10357 # Required to use basename.
10358 if expr a : '\(a\)' >/dev/null 2>&1 &&
10359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10360 as_expr=expr
10361 else
10362 as_expr=false
10363 fi
10364
10365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10366 as_basename=basename
10367 else
10368 as_basename=false
10369 fi
10370
10371
10372 # Name of the executable.
10373 as_me=`$as_basename -- "$0" ||
10374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10375 X"$0" : 'X\(//\)$' \| \
10376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10377 echo X/"$0" |
10378 sed '/^.*\/\([^/][^/]*\)\/*$/{
10379 s//\1/
10380 q
10381 }
10382 /^X\/\(\/\/\)$/{
10383 s//\1/
10384 q
10385 }
10386 /^X\/\(\/\).*/{
10387 s//\1/
10388 q
10389 }
10390 s/.*/./; q'`
10391
10392 # CDPATH.
10393 $as_unset CDPATH
10394
10395
10396
10397 as_lineno_1=$LINENO
10398 as_lineno_2=$LINENO
10399 test "x$as_lineno_1" != "x$as_lineno_2" &&
10400 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10401
10402 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10403 # uniformly replaced by the line number. The first 'sed' inserts a
10404 # line-number line after each line using $LINENO; the second 'sed'
10405 # does the real work. The second script uses 'N' to pair each
10406 # line-number line with the line containing $LINENO, and appends
10407 # trailing '-' during substitution so that $LINENO is not a special
10408 # case at line end.
10409 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10410 # scripts with optimization help from Paolo Bonzini. Blame Lee
10411 # E. McMahon (1931-1989) for sed's syntax. :-)
10412 sed -n '
10413 p
10414 /[$]LINENO/=
10415 ' <$as_myself |
10416 sed '
10417 s/[$]LINENO.*/&-/
10418 t lineno
10419 b
10420 :lineno
10421 N
10422 :loop
10423 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10424 t loop
10425 s/-\n.*//
10426 ' >$as_me.lineno &&
10427 chmod +x "$as_me.lineno" ||
10428 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10429 { (exit 1); exit 1; }; }
10430
10431 # Don't try to exec as it changes $[0], causing all sort of problems
10432 # (the dirname of $[0] is not the place where we might find the
10433 # original and so on. Autoconf is especially sensitive to this).
10434 . "./$as_me.lineno"
10435 # Exit status is that of the last command.
10436 exit
10437 }
10438
10439
10440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10441 as_dirname=dirname
10442 else
10443 as_dirname=false
10444 fi
10445
10446 ECHO_C= ECHO_N= ECHO_T=
10447 case `echo -n x` in
10448 -n*)
10449 case `echo 'x\c'` in
10450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10451 *) ECHO_C='\c';;
10452 esac;;
10453 *)
10454 ECHO_N='-n';;
10455 esac
10456
10457 if expr a : '\(a\)' >/dev/null 2>&1 &&
10458 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10459 as_expr=expr
10460 else
10461 as_expr=false
10462 fi
10463
10464 rm -f conf$$ conf$$.exe conf$$.file
10465 if test -d conf$$.dir; then
10466 rm -f conf$$.dir/conf$$.file
10467 else
10468 rm -f conf$$.dir
10469 mkdir conf$$.dir
10470 fi
10471 echo >conf$$.file
10472 if ln -s conf$$.file conf$$ 2>/dev/null; then
10473 as_ln_s='ln -s'
10474 # ... but there are two gotchas:
10475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10477 # In both cases, we have to default to `cp -p'.
10478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10479 as_ln_s='cp -p'
10480 elif ln conf$$.file conf$$ 2>/dev/null; then
10481 as_ln_s=ln
10482 else
10483 as_ln_s='cp -p'
10484 fi
10485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10486 rmdir conf$$.dir 2>/dev/null
10487
10488 if mkdir -p . 2>/dev/null; then
10489 as_mkdir_p=:
10490 else
10491 test -d ./-p && rmdir ./-p
10492 as_mkdir_p=false
10493 fi
10494
10495 if test -x / >/dev/null 2>&1; then
10496 as_test_x='test -x'
10497 else
10498 if ls -dL / >/dev/null 2>&1; then
10499 as_ls_L_option=L
10500 else
10501 as_ls_L_option=
10502 fi
10503 as_test_x='
10504 eval sh -c '\''
10505 if test -d "$1"; then
10506 test -d "$1/.";
10507 else
10508 case $1 in
10509 -*)set "./$1";;
10510 esac;
10511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10512 ???[sx]*):;;*)false;;esac;fi
10513 '\'' sh
10514 '
10515 fi
10516 as_executable_p=$as_test_x
10517
10518 # Sed expression to map a string onto a valid CPP name.
10519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10520
10521 # Sed expression to map a string onto a valid variable name.
10522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10523
10524
10525 exec 6>&1
10526
10527 # Save the log message, to keep $[0] and so on meaningful, and to
10528 # report actual input values of CONFIG_FILES etc. instead of their
10529 # values after options handling.
10530 ac_log="
10531 This file was extended by X3 $as_me 1.6, which was
10532 generated by GNU Autoconf 2.61. Invocation command line was
10533
10534 CONFIG_FILES = $CONFIG_FILES
10535 CONFIG_HEADERS = $CONFIG_HEADERS
10536 CONFIG_LINKS = $CONFIG_LINKS
10537 CONFIG_COMMANDS = $CONFIG_COMMANDS
10538 $ $0 $@
10539
10540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10541 "
10542
10543 _ACEOF
10544
10545 cat >>$CONFIG_STATUS <<_ACEOF
10546 # Files that config.status was made for.
10547 config_files="$ac_config_files"
10548 config_headers="$ac_config_headers"
10549 config_commands="$ac_config_commands"
10550
10551 _ACEOF
10552
10553 cat >>$CONFIG_STATUS <<\_ACEOF
10554 ac_cs_usage="\
10555 \`$as_me' instantiates files from templates according to the
10556 current configuration.
10557
10558 Usage: $0 [OPTIONS] [FILE]...
10559
10560 -h, --help print this help, then exit
10561 -V, --version print version number and configuration settings, then exit
10562 -q, --quiet do not print progress messages
10563 -d, --debug don't remove temporary files
10564 --recheck update $as_me by reconfiguring in the same conditions
10565 --file=FILE[:TEMPLATE]
10566 instantiate the configuration file FILE
10567 --header=FILE[:TEMPLATE]
10568 instantiate the configuration header FILE
10569
10570 Configuration files:
10571 $config_files
10572
10573 Configuration headers:
10574 $config_headers
10575
10576 Configuration commands:
10577 $config_commands
10578
10579 Report bugs to <bug-autoconf@gnu.org>."
10580
10581 _ACEOF
10582 cat >>$CONFIG_STATUS <<_ACEOF
10583 ac_cs_version="\\
10584 X3 config.status 1.6
10585 configured by $0, generated by GNU Autoconf 2.61,
10586 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10587
10588 Copyright (C) 2006 Free Software Foundation, Inc.
10589 This config.status script is free software; the Free Software Foundation
10590 gives unlimited permission to copy, distribute and modify it."
10591
10592 ac_pwd='$ac_pwd'
10593 srcdir='$srcdir'
10594 INSTALL='$INSTALL'
10595 MKDIR_P='$MKDIR_P'
10596 _ACEOF
10597
10598 cat >>$CONFIG_STATUS <<\_ACEOF
10599 # If no file are specified by the user, then we need to provide default
10600 # value. By we need to know if files were specified by the user.
10601 ac_need_defaults=:
10602 while test $# != 0
10603 do
10604 case $1 in
10605 --*=*)
10606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10608 ac_shift=:
10609 ;;
10610 *)
10611 ac_option=$1
10612 ac_optarg=$2
10613 ac_shift=shift
10614 ;;
10615 esac
10616
10617 case $ac_option in
10618 # Handling of the options.
10619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10620 ac_cs_recheck=: ;;
10621 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10622 echo "$ac_cs_version"; exit ;;
10623 --debug | --debu | --deb | --de | --d | -d )
10624 debug=: ;;
10625 --file | --fil | --fi | --f )
10626 $ac_shift
10627 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10628 ac_need_defaults=false;;
10629 --header | --heade | --head | --hea )
10630 $ac_shift
10631 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10632 ac_need_defaults=false;;
10633 --he | --h)
10634 # Conflict between --help and --header
10635 { echo "$as_me: error: ambiguous option: $1
10636 Try \`$0 --help' for more information." >&2
10637 { (exit 1); exit 1; }; };;
10638 --help | --hel | -h )
10639 echo "$ac_cs_usage"; exit ;;
10640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10641 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10642 ac_cs_silent=: ;;
10643
10644 # This is an error.
10645 -*) { echo "$as_me: error: unrecognized option: $1
10646 Try \`$0 --help' for more information." >&2
10647 { (exit 1); exit 1; }; } ;;
10648
10649 *) ac_config_targets="$ac_config_targets $1"
10650 ac_need_defaults=false ;;
10651
10652 esac
10653 shift
10654 done
10655
10656 ac_configure_extra_args=
10657
10658 if $ac_cs_silent; then
10659 exec 6>/dev/null
10660 ac_configure_extra_args="$ac_configure_extra_args --silent"
10661 fi
10662
10663 _ACEOF
10664 cat >>$CONFIG_STATUS <<_ACEOF
10665 if \$ac_cs_recheck; then
10666 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10667 CONFIG_SHELL=$SHELL
10668 export CONFIG_SHELL
10669 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10670 fi
10671
10672 _ACEOF
10673 cat >>$CONFIG_STATUS <<\_ACEOF
10674 exec 5>>config.log
10675 {
10676 echo
10677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10678 ## Running $as_me. ##
10679 _ASBOX
10680 echo "$ac_log"
10681 } >&5
10682
10683 _ACEOF
10684 cat >>$CONFIG_STATUS <<_ACEOF
10685 #
10686 # INIT-COMMANDS
10687 #
10688 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10689
10690 _ACEOF
10691
10692 cat >>$CONFIG_STATUS <<\_ACEOF
10693
10694 # Handling of arguments.
10695 for ac_config_target in $ac_config_targets
10696 do
10697 case $ac_config_target in
10698 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10699 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10700 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10701 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10702 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10703
10704 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10705 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10706 { (exit 1); exit 1; }; };;
10707 esac
10708 done
10709
10710
10711 # If the user did not use the arguments to specify the items to instantiate,
10712 # then the envvar interface is used. Set only those that are not.
10713 # We use the long form for the default assignment because of an extremely
10714 # bizarre bug on SunOS 4.1.3.
10715 if $ac_need_defaults; then
10716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10717 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10718 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10719 fi
10720
10721 # Have a temporary directory for convenience. Make it in the build tree
10722 # simply because there is no reason against having it here, and in addition,
10723 # creating and moving files from /tmp can sometimes cause problems.
10724 # Hook for its removal unless debugging.
10725 # Note that there is a small window in which the directory will not be cleaned:
10726 # after its creation but before its name has been assigned to `$tmp'.
10727 $debug ||
10728 {
10729 tmp=
10730 trap 'exit_status=$?
10731 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10732 ' 0
10733 trap '{ (exit 1); exit 1; }' 1 2 13 15
10734 }
10735 # Create a (secure) tmp directory for tmp files.
10736
10737 {
10738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10739 test -n "$tmp" && test -d "$tmp"
10740 } ||
10741 {
10742 tmp=./conf$$-$RANDOM
10743 (umask 077 && mkdir "$tmp")
10744 } ||
10745 {
10746 echo "$me: cannot create a temporary directory in ." >&2
10747 { (exit 1); exit 1; }
10748 }
10749
10750 #
10751 # Set up the sed scripts for CONFIG_FILES section.
10752 #
10753
10754 # No need to generate the scripts if there are no CONFIG_FILES.
10755 # This happens for instance when ./config.status config.h
10756 if test -n "$CONFIG_FILES"; then
10757
10758 _ACEOF
10759
10760
10761
10762 ac_delim='%!_!# '
10763 for ac_last_try in false false false false false :; do
10764 cat >conf$$subs.sed <<_ACEOF
10765 SHELL!$SHELL$ac_delim
10766 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10767 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10768 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10769 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10770 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10771 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10772 exec_prefix!$exec_prefix$ac_delim
10773 prefix!$prefix$ac_delim
10774 program_transform_name!$program_transform_name$ac_delim
10775 bindir!$bindir$ac_delim
10776 sbindir!$sbindir$ac_delim
10777 libexecdir!$libexecdir$ac_delim
10778 datarootdir!$datarootdir$ac_delim
10779 datadir!$datadir$ac_delim
10780 sysconfdir!$sysconfdir$ac_delim
10781 sharedstatedir!$sharedstatedir$ac_delim
10782 localstatedir!$localstatedir$ac_delim
10783 includedir!$includedir$ac_delim
10784 oldincludedir!$oldincludedir$ac_delim
10785 docdir!$docdir$ac_delim
10786 infodir!$infodir$ac_delim
10787 htmldir!$htmldir$ac_delim
10788 dvidir!$dvidir$ac_delim
10789 pdfdir!$pdfdir$ac_delim
10790 psdir!$psdir$ac_delim
10791 libdir!$libdir$ac_delim
10792 localedir!$localedir$ac_delim
10793 mandir!$mandir$ac_delim
10794 DEFS!$DEFS$ac_delim
10795 ECHO_C!$ECHO_C$ac_delim
10796 ECHO_N!$ECHO_N$ac_delim
10797 ECHO_T!$ECHO_T$ac_delim
10798 LIBS!$LIBS$ac_delim
10799 build_alias!$build_alias$ac_delim
10800 host_alias!$host_alias$ac_delim
10801 target_alias!$target_alias$ac_delim
10802 build!$build$ac_delim
10803 build_cpu!$build_cpu$ac_delim
10804 build_vendor!$build_vendor$ac_delim
10805 build_os!$build_os$ac_delim
10806 host!$host$ac_delim
10807 host_cpu!$host_cpu$ac_delim
10808 host_vendor!$host_vendor$ac_delim
10809 host_os!$host_os$ac_delim
10810 target!$target$ac_delim
10811 target_cpu!$target_cpu$ac_delim
10812 target_vendor!$target_vendor$ac_delim
10813 target_os!$target_os$ac_delim
10814 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10815 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10816 INSTALL_DATA!$INSTALL_DATA$ac_delim
10817 am__isrc!$am__isrc$ac_delim
10818 CYGPATH_W!$CYGPATH_W$ac_delim
10819 PACKAGE!$PACKAGE$ac_delim
10820 VERSION!$VERSION$ac_delim
10821 ACLOCAL!$ACLOCAL$ac_delim
10822 AUTOCONF!$AUTOCONF$ac_delim
10823 AUTOMAKE!$AUTOMAKE$ac_delim
10824 AUTOHEADER!$AUTOHEADER$ac_delim
10825 MAKEINFO!$MAKEINFO$ac_delim
10826 install_sh!$install_sh$ac_delim
10827 STRIP!$STRIP$ac_delim
10828 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10829 mkdir_p!$mkdir_p$ac_delim
10830 AWK!$AWK$ac_delim
10831 SET_MAKE!$SET_MAKE$ac_delim
10832 am__leading_dot!$am__leading_dot$ac_delim
10833 AMTAR!$AMTAR$ac_delim
10834 am__tar!$am__tar$ac_delim
10835 am__untar!$am__untar$ac_delim
10836 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10837 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10838 MAINT!$MAINT$ac_delim
10839 CC!$CC$ac_delim
10840 CFLAGS!$CFLAGS$ac_delim
10841 LDFLAGS!$LDFLAGS$ac_delim
10842 CPPFLAGS!$CPPFLAGS$ac_delim
10843 ac_ct_CC!$ac_ct_CC$ac_delim
10844 EXEEXT!$EXEEXT$ac_delim
10845 OBJEXT!$OBJEXT$ac_delim
10846 DEPDIR!$DEPDIR$ac_delim
10847 am__include!$am__include$ac_delim
10848 am__quote!$am__quote$ac_delim
10849 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10850 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10851 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10852 CCDEPMODE!$CCDEPMODE$ac_delim
10853 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10854 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10855 RANLIB!$RANLIB$ac_delim
10856 LN_S!$LN_S$ac_delim
10857 CPP!$CPP$ac_delim
10858 GREP!$GREP$ac_delim
10859 EGREP!$EGREP$ac_delim
10860 MAKER!$MAKER$ac_delim
10861 ALLOCA!$ALLOCA$ac_delim
10862 _ACEOF
10863
10864 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10865 break
10866 elif $ac_last_try; then
10867 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10868 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10869 { (exit 1); exit 1; }; }
10870 else
10871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10872 fi
10873 done
10874
10875 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10876 if test -n "$ac_eof"; then
10877 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10878 ac_eof=`expr $ac_eof + 1`
10879 fi
10880
10881 cat >>$CONFIG_STATUS <<_ACEOF
10882 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10884 _ACEOF
10885 sed '
10886 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10887 s/^/s,@/; s/!/@,|#_!!_#|/
10888 :n
10889 t n
10890 s/'"$ac_delim"'$/,g/; t
10891 s/$/\\/; p
10892 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10893 ' >>$CONFIG_STATUS <conf$$subs.sed
10894 rm -f conf$$subs.sed
10895 cat >>$CONFIG_STATUS <<_ACEOF
10896 CEOF$ac_eof
10897 _ACEOF
10898
10899
10900 ac_delim='%!_!# '
10901 for ac_last_try in false false false false false :; do
10902 cat >conf$$subs.sed <<_ACEOF
10903 pythonpath!$pythonpath$ac_delim
10904 DO_PYTHON_TRUE!$DO_PYTHON_TRUE$ac_delim
10905 DO_PYTHON_FALSE!$DO_PYTHON_FALSE$ac_delim
10906 MODULE_OBJS!$MODULE_OBJS$ac_delim
10907 MY_SUBDIRS!$MY_SUBDIRS$ac_delim
10908 RX_INCLUDES!$RX_INCLUDES$ac_delim
10909 RX_LIBS!$RX_LIBS$ac_delim
10910 TRACK!$TRACK$ac_delim
10911 PY_CFLAGS!$PY_CFLAGS$ac_delim
10912 PY_LIBS!$PY_LIBS$ac_delim
10913 LIBOBJS!$LIBOBJS$ac_delim
10914 LTLIBOBJS!$LTLIBOBJS$ac_delim
10915 _ACEOF
10916
10917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
10918 break
10919 elif $ac_last_try; then
10920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10922 { (exit 1); exit 1; }; }
10923 else
10924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10925 fi
10926 done
10927
10928 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10929 if test -n "$ac_eof"; then
10930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10931 ac_eof=`expr $ac_eof + 1`
10932 fi
10933
10934 cat >>$CONFIG_STATUS <<_ACEOF
10935 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10937 _ACEOF
10938 sed '
10939 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10940 s/^/s,@/; s/!/@,|#_!!_#|/
10941 :n
10942 t n
10943 s/'"$ac_delim"'$/,g/; t
10944 s/$/\\/; p
10945 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10946 ' >>$CONFIG_STATUS <conf$$subs.sed
10947 rm -f conf$$subs.sed
10948 cat >>$CONFIG_STATUS <<_ACEOF
10949 :end
10950 s/|#_!!_#|//g
10951 CEOF$ac_eof
10952 _ACEOF
10953
10954
10955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10957 # trailing colons and then remove the whole line if VPATH becomes empty
10958 # (actually we leave an empty line to preserve line numbers).
10959 if test "x$srcdir" = x.; then
10960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10961 s/:*\$(srcdir):*/:/
10962 s/:*\${srcdir}:*/:/
10963 s/:*@srcdir@:*/:/
10964 s/^\([^=]*=[ ]*\):*/\1/
10965 s/:*$//
10966 s/^[^=]*=[ ]*$//
10967 }'
10968 fi
10969
10970 cat >>$CONFIG_STATUS <<\_ACEOF
10971 fi # test -n "$CONFIG_FILES"
10972
10973
10974 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10975 do
10976 case $ac_tag in
10977 :[FHLC]) ac_mode=$ac_tag; continue;;
10978 esac
10979 case $ac_mode$ac_tag in
10980 :[FHL]*:*);;
10981 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10982 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10983 { (exit 1); exit 1; }; };;
10984 :[FH]-) ac_tag=-:-;;
10985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10986 esac
10987 ac_save_IFS=$IFS
10988 IFS=:
10989 set x $ac_tag
10990 IFS=$ac_save_IFS
10991 shift
10992 ac_file=$1
10993 shift
10994
10995 case $ac_mode in
10996 :L) ac_source=$1;;
10997 :[FH])
10998 ac_file_inputs=
10999 for ac_f
11000 do
11001 case $ac_f in
11002 -) ac_f="$tmp/stdin";;
11003 *) # Look for the file first in the build tree, then in the source tree
11004 # (if the path is not absolute). The absolute path cannot be DOS-style,
11005 # because $ac_f cannot contain `:'.
11006 test -f "$ac_f" ||
11007 case $ac_f in
11008 [\\/$]*) false;;
11009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11010 esac ||
11011 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11012 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11013 { (exit 1); exit 1; }; };;
11014 esac
11015 ac_file_inputs="$ac_file_inputs $ac_f"
11016 done
11017
11018 # Let's still pretend it is `configure' which instantiates (i.e., don't
11019 # use $as_me), people would be surprised to read:
11020 # /* config.h. Generated by config.status. */
11021 configure_input="Generated from "`IFS=:
11022 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11023 if test x"$ac_file" != x-; then
11024 configure_input="$ac_file. $configure_input"
11025 { echo "$as_me:$LINENO: creating $ac_file" >&5
11026 echo "$as_me: creating $ac_file" >&6;}
11027 fi
11028
11029 case $ac_tag in
11030 *:-:* | *:-) cat >"$tmp/stdin";;
11031 esac
11032 ;;
11033 esac
11034
11035 ac_dir=`$as_dirname -- "$ac_file" ||
11036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11037 X"$ac_file" : 'X\(//\)[^/]' \| \
11038 X"$ac_file" : 'X\(//\)$' \| \
11039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11040 echo X"$ac_file" |
11041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11042 s//\1/
11043 q
11044 }
11045 /^X\(\/\/\)[^/].*/{
11046 s//\1/
11047 q
11048 }
11049 /^X\(\/\/\)$/{
11050 s//\1/
11051 q
11052 }
11053 /^X\(\/\).*/{
11054 s//\1/
11055 q
11056 }
11057 s/.*/./; q'`
11058 { as_dir="$ac_dir"
11059 case $as_dir in #(
11060 -*) as_dir=./$as_dir;;
11061 esac
11062 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11063 as_dirs=
11064 while :; do
11065 case $as_dir in #(
11066 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11067 *) as_qdir=$as_dir;;
11068 esac
11069 as_dirs="'$as_qdir' $as_dirs"
11070 as_dir=`$as_dirname -- "$as_dir" ||
11071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11072 X"$as_dir" : 'X\(//\)[^/]' \| \
11073 X"$as_dir" : 'X\(//\)$' \| \
11074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11075 echo X"$as_dir" |
11076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11077 s//\1/
11078 q
11079 }
11080 /^X\(\/\/\)[^/].*/{
11081 s//\1/
11082 q
11083 }
11084 /^X\(\/\/\)$/{
11085 s//\1/
11086 q
11087 }
11088 /^X\(\/\).*/{
11089 s//\1/
11090 q
11091 }
11092 s/.*/./; q'`
11093 test -d "$as_dir" && break
11094 done
11095 test -z "$as_dirs" || eval "mkdir $as_dirs"
11096 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11097 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11098 { (exit 1); exit 1; }; }; }
11099 ac_builddir=.
11100
11101 case "$ac_dir" in
11102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11103 *)
11104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11105 # A ".." for each directory in $ac_dir_suffix.
11106 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11107 case $ac_top_builddir_sub in
11108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11110 esac ;;
11111 esac
11112 ac_abs_top_builddir=$ac_pwd
11113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11114 # for backward compatibility:
11115 ac_top_builddir=$ac_top_build_prefix
11116
11117 case $srcdir in
11118 .) # We are building in place.
11119 ac_srcdir=.
11120 ac_top_srcdir=$ac_top_builddir_sub
11121 ac_abs_top_srcdir=$ac_pwd ;;
11122 [\\/]* | ?:[\\/]* ) # Absolute name.
11123 ac_srcdir=$srcdir$ac_dir_suffix;
11124 ac_top_srcdir=$srcdir
11125 ac_abs_top_srcdir=$srcdir ;;
11126 *) # Relative name.
11127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11128 ac_top_srcdir=$ac_top_build_prefix$srcdir
11129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11130 esac
11131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11132
11133
11134 case $ac_mode in
11135 :F)
11136 #
11137 # CONFIG_FILE
11138 #
11139
11140 case $INSTALL in
11141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11143 esac
11144 ac_MKDIR_P=$MKDIR_P
11145 case $MKDIR_P in
11146 [\\/$]* | ?:[\\/]* ) ;;
11147 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11148 esac
11149 _ACEOF
11150
11151 cat >>$CONFIG_STATUS <<\_ACEOF
11152 # If the template does not know about datarootdir, expand it.
11153 # FIXME: This hack should be removed a few years after 2.60.
11154 ac_datarootdir_hack=; ac_datarootdir_seen=
11155
11156 case `sed -n '/datarootdir/ {
11157 p
11158 q
11159 }
11160 /@datadir@/p
11161 /@docdir@/p
11162 /@infodir@/p
11163 /@localedir@/p
11164 /@mandir@/p
11165 ' $ac_file_inputs` in
11166 *datarootdir*) ac_datarootdir_seen=yes;;
11167 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11168 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11169 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11170 _ACEOF
11171 cat >>$CONFIG_STATUS <<_ACEOF
11172 ac_datarootdir_hack='
11173 s&@datadir@&$datadir&g
11174 s&@docdir@&$docdir&g
11175 s&@infodir@&$infodir&g
11176 s&@localedir@&$localedir&g
11177 s&@mandir@&$mandir&g
11178 s&\\\${datarootdir}&$datarootdir&g' ;;
11179 esac
11180 _ACEOF
11181
11182 # Neutralize VPATH when `$srcdir' = `.'.
11183 # Shell code in configure.ac might set extrasub.
11184 # FIXME: do we really want to maintain this feature?
11185 cat >>$CONFIG_STATUS <<_ACEOF
11186 sed "$ac_vpsub
11187 $extrasub
11188 _ACEOF
11189 cat >>$CONFIG_STATUS <<\_ACEOF
11190 :t
11191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11192 s&@configure_input@&$configure_input&;t t
11193 s&@top_builddir@&$ac_top_builddir_sub&;t t
11194 s&@srcdir@&$ac_srcdir&;t t
11195 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11196 s&@top_srcdir@&$ac_top_srcdir&;t t
11197 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11198 s&@builddir@&$ac_builddir&;t t
11199 s&@abs_builddir@&$ac_abs_builddir&;t t
11200 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11201 s&@INSTALL@&$ac_INSTALL&;t t
11202 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11203 $ac_datarootdir_hack
11204 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11205
11206 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11207 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11209 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11210 which seems to be undefined. Please make sure it is defined." >&5
11211 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11212 which seems to be undefined. Please make sure it is defined." >&2;}
11213
11214 rm -f "$tmp/stdin"
11215 case $ac_file in
11216 -) cat "$tmp/out"; rm -f "$tmp/out";;
11217 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11218 esac
11219 ;;
11220 :H)
11221 #
11222 # CONFIG_HEADER
11223 #
11224 _ACEOF
11225
11226 # Transform confdefs.h into a sed script `conftest.defines', that
11227 # substitutes the proper values into config.h.in to produce config.h.
11228 rm -f conftest.defines conftest.tail
11229 # First, append a space to every undef/define line, to ease matching.
11230 echo 's/$/ /' >conftest.defines
11231 # Then, protect against being on the right side of a sed subst, or in
11232 # an unquoted here document, in config.status. If some macros were
11233 # called several times there might be several #defines for the same
11234 # symbol, which is useless. But do not sort them, since the last
11235 # AC_DEFINE must be honored.
11236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11237 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11238 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11239 # PARAMS is the parameter list in the macro definition--in most cases, it's
11240 # just an empty string.
11241 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11242 ac_dB='\\)[ (].*,\\1define\\2'
11243 ac_dC=' '
11244 ac_dD=' ,'
11245
11246 uniq confdefs.h |
11247 sed -n '
11248 t rset
11249 :rset
11250 s/^[ ]*#[ ]*define[ ][ ]*//
11251 t ok
11252 d
11253 :ok
11254 s/[\\&,]/\\&/g
11255 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11256 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11257 ' >>conftest.defines
11258
11259 # Remove the space that was appended to ease matching.
11260 # Then replace #undef with comments. This is necessary, for
11261 # example, in the case of _POSIX_SOURCE, which is predefined and required
11262 # on some systems where configure will not decide to define it.
11263 # (The regexp can be short, since the line contains either #define or #undef.)
11264 echo 's/ $//
11265 s,^[ #]*u.*,/* & */,' >>conftest.defines
11266
11267 # Break up conftest.defines:
11268 ac_max_sed_lines=50
11269
11270 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11271 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11272 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11273 # et cetera.
11274 ac_in='$ac_file_inputs'
11275 ac_out='"$tmp/out1"'
11276 ac_nxt='"$tmp/out2"'
11277
11278 while :
11279 do
11280 # Write a here document:
11281 cat >>$CONFIG_STATUS <<_ACEOF
11282 # First, check the format of the line:
11283 cat >"\$tmp/defines.sed" <<\\CEOF
11284 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11285 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11286 b
11287 :def
11288 _ACEOF
11289 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11290 echo 'CEOF
11291 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11292 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11293 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11294 grep . conftest.tail >/dev/null || break
11295 rm -f conftest.defines
11296 mv conftest.tail conftest.defines
11297 done
11298 rm -f conftest.defines conftest.tail
11299
11300 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11301 cat >>$CONFIG_STATUS <<\_ACEOF
11302 if test x"$ac_file" != x-; then
11303 echo "/* $configure_input */" >"$tmp/config.h"
11304 cat "$ac_result" >>"$tmp/config.h"
11305 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11306 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11307 echo "$as_me: $ac_file is unchanged" >&6;}
11308 else
11309 rm -f $ac_file
11310 mv "$tmp/config.h" $ac_file
11311 fi
11312 else
11313 echo "/* $configure_input */"
11314 cat "$ac_result"
11315 fi
11316 rm -f "$tmp/out12"
11317 # Compute $ac_file's index in $config_headers.
11318 _am_stamp_count=1
11319 for _am_header in $config_headers :; do
11320 case $_am_header in
11321 $ac_file | $ac_file:* )
11322 break ;;
11323 * )
11324 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11325 esac
11326 done
11327 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11328 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11329 X$ac_file : 'X\(//\)[^/]' \| \
11330 X$ac_file : 'X\(//\)$' \| \
11331 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11332 echo X$ac_file |
11333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11334 s//\1/
11335 q
11336 }
11337 /^X\(\/\/\)[^/].*/{
11338 s//\1/
11339 q
11340 }
11341 /^X\(\/\/\)$/{
11342 s//\1/
11343 q
11344 }
11345 /^X\(\/\).*/{
11346 s//\1/
11347 q
11348 }
11349 s/.*/./; q'`/stamp-h$_am_stamp_count
11350 ;;
11351
11352 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11353 echo "$as_me: executing $ac_file commands" >&6;}
11354 ;;
11355 esac
11356
11357
11358 case $ac_file$ac_mode in
11359 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11360 # Strip MF so we end up with the name of the file.
11361 mf=`echo "$mf" | sed -e 's/:.*$//'`
11362 # Check whether this is an Automake generated Makefile or not.
11363 # We used to match only the files named `Makefile.in', but
11364 # some people rename them; so instead we look at the file content.
11365 # Grep'ing the first line is not enough: some people post-process
11366 # each Makefile.in and add a new line on top of each file to say so.
11367 # Grep'ing the whole file is not good either: AIX grep has a line
11368 # limit of 2048, but all sed's we know have understand at least 4000.
11369 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
11370 dirpart=`$as_dirname -- "$mf" ||
11371 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11372 X"$mf" : 'X\(//\)[^/]' \| \
11373 X"$mf" : 'X\(//\)$' \| \
11374 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11375 echo X"$mf" |
11376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11377 s//\1/
11378 q
11379 }
11380 /^X\(\/\/\)[^/].*/{
11381 s//\1/
11382 q
11383 }
11384 /^X\(\/\/\)$/{
11385 s//\1/
11386 q
11387 }
11388 /^X\(\/\).*/{
11389 s//\1/
11390 q
11391 }
11392 s/.*/./; q'`
11393 else
11394 continue
11395 fi
11396 # Extract the definition of DEPDIR, am__include, and am__quote
11397 # from the Makefile without running `make'.
11398 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11399 test -z "$DEPDIR" && continue
11400 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11401 test -z "am__include" && continue
11402 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11403 # When using ansi2knr, U may be empty or an underscore; expand it
11404 U=`sed -n 's/^U = //p' < "$mf"`
11405 # Find all dependency output files, they are included files with
11406 # $(DEPDIR) in their names. We invoke sed twice because it is the
11407 # simplest approach to changing $(DEPDIR) to its actual value in the
11408 # expansion.
11409 for file in `sed -n "
11410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11412 # Make sure the directory exists.
11413 test -f "$dirpart/$file" && continue
11414 fdir=`$as_dirname -- "$file" ||
11415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11416 X"$file" : 'X\(//\)[^/]' \| \
11417 X"$file" : 'X\(//\)$' \| \
11418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11419 echo X"$file" |
11420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11421 s//\1/
11422 q
11423 }
11424 /^X\(\/\/\)[^/].*/{
11425 s//\1/
11426 q
11427 }
11428 /^X\(\/\/\)$/{
11429 s//\1/
11430 q
11431 }
11432 /^X\(\/\).*/{
11433 s//\1/
11434 q
11435 }
11436 s/.*/./; q'`
11437 { as_dir=$dirpart/$fdir
11438 case $as_dir in #(
11439 -*) as_dir=./$as_dir;;
11440 esac
11441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11442 as_dirs=
11443 while :; do
11444 case $as_dir in #(
11445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11446 *) as_qdir=$as_dir;;
11447 esac
11448 as_dirs="'$as_qdir' $as_dirs"
11449 as_dir=`$as_dirname -- "$as_dir" ||
11450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11451 X"$as_dir" : 'X\(//\)[^/]' \| \
11452 X"$as_dir" : 'X\(//\)$' \| \
11453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11454 echo X"$as_dir" |
11455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11456 s//\1/
11457 q
11458 }
11459 /^X\(\/\/\)[^/].*/{
11460 s//\1/
11461 q
11462 }
11463 /^X\(\/\/\)$/{
11464 s//\1/
11465 q
11466 }
11467 /^X\(\/\).*/{
11468 s//\1/
11469 q
11470 }
11471 s/.*/./; q'`
11472 test -d "$as_dir" && break
11473 done
11474 test -z "$as_dirs" || eval "mkdir $as_dirs"
11475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11477 { (exit 1); exit 1; }; }; }
11478 # echo "creating $dirpart/$file"
11479 echo '# dummy' > "$dirpart/$file"
11480 done
11481 done
11482 ;;
11483
11484 esac
11485 done # for ac_tag
11486
11487
11488 { (exit 0); exit 0; }
11489 _ACEOF
11490 chmod +x $CONFIG_STATUS
11491 ac_clean_files=$ac_clean_files_save
11492
11493
11494 # configure is writing to config.log, and then calls config.status.
11495 # config.status does its own redirection, appending to config.log.
11496 # Unfortunately, on DOS this fails, as config.log is still kept open
11497 # by configure, so config.status won't be able to write to it; its
11498 # output is simply discarded. So we exec the FD to /dev/null,
11499 # effectively closing config.log, so it can be properly (re)opened and
11500 # appended to by config.status. When coming back to configure, we
11501 # need to make the FD available again.
11502 if test "$no_create" != yes; then
11503 ac_cs_success=:
11504 ac_config_status_args=
11505 test "$silent" = yes &&
11506 ac_config_status_args="$ac_config_status_args --quiet"
11507 exec 5>/dev/null
11508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11509 exec 5>>config.log
11510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11511 # would make configure fail if this is the last instruction.
11512 $ac_cs_success || { (exit 1); exit 1; }
11513 fi
11514
11515
11516
11517
11518 cat <<EOF
11519
11520 Configuration summary
11521 =====================
11522
11523 X3 is now configured as follows:
11524
11525 * Compilation environment
11526
11527 CC = $CC
11528 CFLAGS = $CFLAGS
11529 CPP = $CPP
11530 CPPFLAGS = $CPPFLAGS
11531 LD = $LD
11532 LDFLAGS = $LDFLAGS
11533 LIBS = $LIBS
11534
11535 * X3 options
11536
11537 Debug: $x3_debug
11538 Extra Modules: $module_list
11539 Malloc: $x3_malloc
11540 Protocol: $x3_ircd
11541 Regexp Library TRE $tre_version
11542 Coredumper Library Coredumper $core_version
11543 $ldap_message
11544 python: $python
11545
11546 Install to: $prefix
11547
11548 Now you can proceed with compiling X3
11549
11550 EOF
11551