]> jfr.im git - irc/evilnet/x3.git/blame - configure
handling libldap checking better
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
8da89711 2# From configure.in Id: configure.in 1899 2007-02-05 07:02:17Z rubin .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
a8b2ad8d 4# Generated by GNU Autoconf 2.60 for X3 1.5.
b3076f16 5#
63c95a47 6# Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 7#
a8b2ad8d 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
b3076f16 26fi
a8b2ad8d 27BIN_SH=xpg4; export BIN_SH # for Tru64
b3076f16 28DUALCASE=1; export DUALCASE # for MKS sh
29
a8b2ad8d 30
31# PATH needs CR
32# Avoid depending upon Character Ranges.
33as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36as_cr_digits='0123456789'
37as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39# The user is always right.
40if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50fi
51
b3076f16 52# Support unset when possible.
53if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55else
56 as_unset=false
57fi
58
59
a8b2ad8d 60# IFS
61# We need space, tab and new line, in precisely that order. Quoting is
62# there to prevent editors from complaining about space-tab.
63# (If _AS_PATH_WALK were called with IFS unset, it would disable word
64# splitting by setting IFS to empty value.)
65as_nl='
66'
67IFS=" "" $as_nl"
68
69# Find who we are. Look in the path if we contain no directory separator.
70case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73for as_dir in $PATH
74do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78done
79IFS=$as_save_IFS
80
81 ;;
82esac
83# We did not find ourselves, most probably we were run as `sh COMMAND'
84# in which case we are not to be found in the path.
85if test "x$as_myself" = x; then
86 as_myself=$0
87fi
88if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91fi
92
b3076f16 93# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 94for as_var in ENV MAIL MAILPATH
95do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96done
b3076f16 97PS1='$ '
98PS2='> '
99PS4='+ '
100
101# NLS nuisances.
102for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
a8b2ad8d 110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 111 fi
112done
113
114# Required to use basename.
a8b2ad8d 115if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 117 as_expr=expr
118else
119 as_expr=false
120fi
121
a8b2ad8d 122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 123 as_basename=basename
124else
125 as_basename=false
126fi
127
128
129# Name of the executable.
a8b2ad8d 130as_me=`$as_basename -- "$0" ||
b3076f16 131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 134echo X/"$0" |
a8b2ad8d 135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
b3076f16 148
a8b2ad8d 149# CDPATH.
150$as_unset CDPATH
b3076f16 151
b3076f16 152
a8b2ad8d 153if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156else
157 as_have_required=no
b3076f16 158fi
159
a8b2ad8d 160 if test $as_have_required = yes && (eval ":
161(as_func_return () {
162 (exit \$1)
163}
164as_func_success () {
165 as_func_return 0
166}
167as_func_failure () {
168 as_func_return 1
169}
170as_func_ret_success () {
171 return 0
172}
173as_func_ret_failure () {
174 return 1
175}
b3076f16 176
a8b2ad8d 177exitcode=0
178if as_func_success; then
179 :
180else
181 exitcode=1
182 echo as_func_success failed.
183fi
b3076f16 184
a8b2ad8d 185if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188fi
189
190if as_func_ret_success; then
191 :
192else
193 exitcode=1
194 echo as_func_ret_success failed.
195fi
196
197if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200fi
201
202if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204else
205 exitcode=1
206 echo positional parameters were not saved.
207fi
208
209test \$exitcode = 0) || { (exit 1); exit 1; }
210
211(
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216") 2> /dev/null; then
217 :
218else
219 as_candidate_shells=
b3076f16 220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a8b2ad8d 221for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16 222do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
a8b2ad8d 225 case $as_dir in
b3076f16 226 /*)
a8b2ad8d 227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231done
232IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239# Be Bourne compatible
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249fi
250BIN_SH=xpg4; export BIN_SH # for Tru64
251DUALCASE=1; export DUALCASE # for MKS sh
252
253:
254_ASEOF
255}; then
256 CONFIG_SHELL=$as_shell
257 as_have_required=yes
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259# Be Bourne compatible
260if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267else
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269fi
270BIN_SH=xpg4; export BIN_SH # for Tru64
271DUALCASE=1; export DUALCASE # for MKS sh
272
273:
274(as_func_return () {
275 (exit $1)
276}
277as_func_success () {
278 as_func_return 0
279}
280as_func_failure () {
281 as_func_return 1
282}
283as_func_ret_success () {
284 return 0
285}
286as_func_ret_failure () {
287 return 1
288}
289
290exitcode=0
291if as_func_success; then
292 :
293else
294 exitcode=1
295 echo as_func_success failed.
296fi
297
298if as_func_failure; then
299 exitcode=1
300 echo as_func_failure succeeded.
301fi
302
303if as_func_ret_success; then
304 :
305else
306 exitcode=1
307 echo as_func_ret_success failed.
308fi
309
310if as_func_ret_failure; then
311 exitcode=1
312 echo as_func_ret_failure succeeded.
313fi
314
315if ( set x; as_func_ret_success y && test x = "$1" ); then
316 :
317else
318 exitcode=1
319 echo positional parameters were not saved.
320fi
321
322test $exitcode = 0) || { (exit 1); exit 1; }
323
324(
b3076f16 325 as_lineno_1=$LINENO
326 as_lineno_2=$LINENO
b3076f16 327 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330_ASEOF
331}; then
332 break
333fi
334
335fi
336
337 done
338
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 done
343 export CONFIG_SHELL
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345fi
346
347
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
354fi
355
356
357fi
358
359fi
360
361
362
363(eval "as_func_return () {
364 (exit \$1)
365}
366as_func_success () {
367 as_func_return 0
368}
369as_func_failure () {
370 as_func_return 1
371}
372as_func_ret_success () {
373 return 0
374}
375as_func_ret_failure () {
376 return 1
377}
378
379exitcode=0
380if as_func_success; then
381 :
382else
383 exitcode=1
384 echo as_func_success failed.
385fi
386
387if as_func_failure; then
388 exitcode=1
389 echo as_func_failure succeeded.
390fi
391
392if as_func_ret_success; then
393 :
394else
395 exitcode=1
396 echo as_func_ret_success failed.
397fi
398
399if as_func_ret_failure; then
400 exitcode=1
401 echo as_func_ret_failure succeeded.
402fi
403
404if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 :
406else
407 exitcode=1
408 echo positional parameters were not saved.
409fi
410
411test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
415 echo message
416}
417
418
419
420 as_lineno_1=$LINENO
421 as_lineno_2=$LINENO
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 424
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
431 # case at line end.
b3076f16 432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
b3076f16 439 sed '
a8b2ad8d 440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
b3076f16 444 N
a8b2ad8d 445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 447 t loop
a8b2ad8d 448 s/-\n.*//
b3076f16 449 ' >$as_me.lineno &&
a8b2ad8d 450 chmod +x "$as_me.lineno" ||
b3076f16 451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
b3076f16 458 # Exit status is that of the last command.
459 exit
460}
461
462
a8b2ad8d 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465else
466 as_dirname=false
467fi
468
469ECHO_C= ECHO_N= ECHO_T=
470case `echo -n x` in
471-n*)
472 case `echo 'x\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) ECHO_C='\c';;
475 esac;;
476*)
477 ECHO_N='-n';;
b3076f16 478esac
479
a8b2ad8d 480if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 482 as_expr=expr
483else
484 as_expr=false
485fi
486
487rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 488if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
490else
491 rm -f conf$$.dir
492 mkdir conf$$.dir
493fi
b3076f16 494echo >conf$$.file
495if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 496 as_ln_s='ln -s'
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 502 as_ln_s='cp -p'
b3076f16 503elif ln conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s=ln
505else
506 as_ln_s='cp -p'
507fi
a8b2ad8d 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
b3076f16 510
511if mkdir -p . 2>/dev/null; then
512 as_mkdir_p=:
513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
a8b2ad8d 518# Find out whether ``test -x'' works. Don't use a zero-byte file, as
519# systems may use methods other than mode bits to determine executability.
520cat >conf$$.file <<_ASEOF
521#! /bin/sh
522exit 0
523_ASEOF
524chmod +x conf$$.file
525if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
527else
528 as_executable_p=:
529fi
530rm -f conf$$.file
b3076f16 531
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
b3076f16 539
a8b2ad8d 540exec 7<&0 </dev/null 6>&1
b3076f16 541
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
b3076f16 547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
a8b2ad8d 551ac_clean_files=
b3076f16 552ac_config_libobj_dir=.
a8b2ad8d 553LIBOBJS=
b3076f16 554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558SHELL=${CONFIG_SHELL-/bin/sh}
559
b3076f16 560# Identity of this package.
ceafd592 561PACKAGE_NAME='X3'
562PACKAGE_TARNAME='x3'
63c95a47 563PACKAGE_VERSION='1.5'
564PACKAGE_STRING='X3 1.5'
565PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
b3076f16 566
567ac_unique_file="src/opserv.c"
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#if HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#if HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#if STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# if HAVE_STDLIB_H
582# include <stdlib.h>
583# endif
584#endif
585#if HAVE_STRING_H
586# if !STDC_HEADERS && HAVE_MEMORY_H
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
591#if HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#if HAVE_INTTYPES_H
595# include <inttypes.h>
a8b2ad8d 596#endif
597#if HAVE_STDINT_H
598# include <stdint.h>
b3076f16 599#endif
600#if HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
a8b2ad8d 604ac_subst_vars='SHELL
605PATH_SEPARATOR
606PACKAGE_NAME
607PACKAGE_TARNAME
608PACKAGE_VERSION
609PACKAGE_STRING
610PACKAGE_BUGREPORT
611exec_prefix
612prefix
613program_transform_name
614bindir
615sbindir
616libexecdir
617datarootdir
618datadir
619sysconfdir
620sharedstatedir
621localstatedir
622includedir
623oldincludedir
624docdir
625infodir
626htmldir
627dvidir
628pdfdir
629psdir
630libdir
631localedir
632mandir
633DEFS
634ECHO_C
635ECHO_N
636ECHO_T
637LIBS
638build_alias
639host_alias
640target_alias
641build
642build_cpu
643build_vendor
644build_os
645host
646host_cpu
647host_vendor
648host_os
649target
650target_cpu
651target_vendor
652target_os
653INSTALL_PROGRAM
654INSTALL_SCRIPT
655INSTALL_DATA
656CYGPATH_W
657PACKAGE
658VERSION
659ACLOCAL
660AUTOCONF
661AUTOMAKE
662AUTOHEADER
663MAKEINFO
664install_sh
665STRIP
666INSTALL_STRIP_PROGRAM
667mkdir_p
668AWK
669SET_MAKE
670am__leading_dot
671AMTAR
672am__tar
673am__untar
674MAINTAINER_MODE_TRUE
675MAINTAINER_MODE_FALSE
676MAINT
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682EXEEXT
683OBJEXT
684DEPDIR
685am__include
686am__quote
687AMDEP_TRUE
688AMDEP_FALSE
689AMDEPBACKSLASH
690CCDEPMODE
691am__fastdepCC_TRUE
692am__fastdepCC_FALSE
693RANLIB
694LN_S
695CPP
696GREP
697EGREP
698MAKER
699ALLOCA
700MODULE_OBJS
701MY_SUBDIRS
702RX_INCLUDES
703RX_LIBS
704TRACK
705LIBOBJS
706LTLIBOBJS'
b3076f16 707ac_subst_files=''
a8b2ad8d 708 ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714CPPFLAGS
715CPP'
716
b3076f16 717
718# Initialize some variables set by options.
719ac_init_help=
720ac_init_version=false
721# The variables have the same names as the options, with
722# dashes changed to underlines.
723cache_file=/dev/null
724exec_prefix=NONE
725no_create=
726no_recursion=
727prefix=NONE
728program_prefix=NONE
729program_suffix=NONE
730program_transform_name=s,x,x,
731silent=
732site=
733srcdir=
734verbose=
735x_includes=NONE
736x_libraries=NONE
737
738# Installation directory options.
739# These are left unexpanded so users can "make install exec_prefix=/foo"
740# and all the variables that are supposed to be based on exec_prefix
741# by default will actually change.
742# Use braces instead of parens because sh, perl, etc. also accept them.
a8b2ad8d 743# (The list follows the same order as the GNU Coding Standards.)
b3076f16 744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
a8b2ad8d 747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
b3076f16 749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
b3076f16 752includedir='${prefix}/include'
753oldincludedir='/usr/include'
a8b2ad8d 754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
b3076f16 763
764ac_prev=
a8b2ad8d 765ac_dashdash=
b3076f16 766for ac_option
767do
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
a8b2ad8d 770 eval $ac_prev=\$ac_option
b3076f16 771 ac_prev=
772 continue
773 fi
774
a8b2ad8d 775 case $ac_option in
776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *) ac_optarg=yes ;;
778 esac
b3076f16 779
780 # Accept the important Cygnus configure options, so we can diagnose typos.
781
a8b2ad8d 782 case $ac_dashdash$ac_option in
783 --)
784 ac_dashdash=yes ;;
b3076f16 785
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
787 ac_prev=bindir ;;
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 bindir=$ac_optarg ;;
790
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
795
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
802
803 --config-cache | -C)
804 cache_file=config.cache ;;
805
a8b2ad8d 806 -datadir | --datadir | --datadi | --datad)
b3076f16 807 ac_prev=datadir ;;
a8b2ad8d 808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16 809 datadir=$ac_optarg ;;
810
a8b2ad8d 811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
817
b3076f16 818 -disable-* | --disable-*)
819 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
822 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
823 { (exit 1); exit 1; }; }
824 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
a8b2ad8d 825 eval enable_$ac_feature=no ;;
826
827 -docdir | --docdir | --docdi | --doc | --do)
828 ac_prev=docdir ;;
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 docdir=$ac_optarg ;;
831
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 ac_prev=dvidir ;;
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 dvidir=$ac_optarg ;;
b3076f16 836
837 -enable-* | --enable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
a8b2ad8d 844 eval enable_$ac_feature=\$ac_optarg ;;
b3076f16 845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
a8b2ad8d 871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
b3076f16 877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
a8b2ad8d 901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
b3076f16 906 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 907 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16 908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
a8b2ad8d 975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
b3076f16 985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid package name: $ac_package" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_package=`echo $ac_package| sed 's/-/_/g'`
a8b2ad8d 1041 eval with_$ac_package=\$ac_optarg ;;
b3076f16 1042
1043 -without-* | --without-*)
1044 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid package name: $ac_package" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_package=`echo $ac_package | sed 's/-/_/g'`
a8b2ad8d 1050 eval with_$ac_package=no ;;
b3076f16 1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) { echo "$as_me: error: unrecognized option: $ac_option
1071Try \`$0 --help' for more information." >&2
1072 { (exit 1); exit 1; }; }
1073 ;;
1074
1075 *=*)
1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080 { (exit 1); exit 1; }; }
a8b2ad8d 1081 eval $ac_envvar=\$ac_optarg
b3076f16 1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 ;;
1091
1092 esac
1093done
1094
1095if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 { echo "$as_me: error: missing argument to $ac_option" >&2
1098 { (exit 1); exit 1; }; }
1099fi
1100
a8b2ad8d 1101# Be sure to have absolute directory names.
1102for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103 datadir sysconfdir sharedstatedir localstatedir includedir \
1104 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105 libdir localedir mandir
b3076f16 1106do
a8b2ad8d 1107 eval ac_val=\$$ac_var
b3076f16 1108 case $ac_val in
a8b2ad8d 1109 [\\/$]* | ?:[\\/]* ) continue;;
1110 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1111 esac
a8b2ad8d 1112 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113 { (exit 1); exit 1; }; }
b3076f16 1114done
1115
1116# There might be people who depend on the old broken behavior: `$host'
1117# used to hold the argument of --host etc.
1118# FIXME: To remove some day.
1119build=$build_alias
1120host=$host_alias
1121target=$target_alias
1122
1123# FIXME: To remove some day.
1124if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132fi
1133
1134ac_tool_prefix=
1135test -n "$host_alias" && ac_tool_prefix=$host_alias-
1136
1137test "$silent" = yes && exec 6>/dev/null
1138
1139
a8b2ad8d 1140ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141ac_ls_di=`ls -di .` &&
1142ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 { echo "$as_me: error: Working directory cannot be determined" >&2
1144 { (exit 1); exit 1; }; }
1145test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146 { echo "$as_me: error: pwd does not report name of working directory" >&2
1147 { (exit 1); exit 1; }; }
1148
1149
b3076f16 1150# Find the source files, if location was not specified.
1151if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
a8b2ad8d 1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$0" ||
b3076f16 1155$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$0" : 'X\(//\)[^/]' \| \
1157 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 1158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 1159echo X"$0" |
a8b2ad8d 1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\).*/{
1173 s//\1/
1174 q
1175 }
1176 s/.*/./; q'`
b3076f16 1177 srcdir=$ac_confdir
a8b2ad8d 1178 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16 1179 srcdir=..
1180 fi
1181else
1182 ac_srcdir_defaulted=no
1183fi
a8b2ad8d 1184if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b3076f16 1187 { (exit 1); exit 1; }; }
b3076f16 1188fi
a8b2ad8d 1189ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190ac_abs_confdir=`(
1191 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
b3076f16 1192 { (exit 1); exit 1; }; }
a8b2ad8d 1193 pwd)`
1194# When building in place, set srcdir=.
1195if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197fi
1198# Remove unnecessary trailing slashes from srcdir.
1199# Double slashes in file names in object file debugging info
1200# mess up M-x gdb in Emacs.
1201case $srcdir in
1202*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203esac
1204for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209done
b3076f16 1210
1211#
1212# Report the --help message.
1213#
1214if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1217 cat <<_ACEOF
63c95a47 1218\`configure' configures X3 1.5 to adapt to many kinds of systems.
b3076f16 1219
1220Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225Defaults for the options are specified in brackets.
1226
1227Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
b3076f16 1238Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
1240 [$ac_default_prefix]
1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 [PREFIX]
1243
1244By default, \`make install' will install all the files in
1245\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247for instance \`--prefix=\$HOME'.
1248
1249For better control, use the options below.
1250
1251Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
b3076f16 1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
a8b2ad8d 1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
b3076f16 1271_ACEOF
1272
1273 cat <<\_ACEOF
1274
1275Program names:
1276 --program-prefix=PREFIX prepend PREFIX to installed program names
1277 --program-suffix=SUFFIX append SUFFIX to installed program names
1278 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1279
1280System types:
1281 --build=BUILD configure for building on BUILD [guessed]
1282 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1283 --target=TARGET configure for building compilers for TARGET [HOST]
1284_ACEOF
1285fi
1286
1287if test -n "$ac_init_help"; then
1288 case $ac_init_help in
63c95a47 1289 short | recursive ) echo "Configuration of X3 1.5:";;
b3076f16 1290 esac
1291 cat <<\_ACEOF
1292
1293Optional Features:
1294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1296 --enable-maintainer-mode enable make rules and dependencies not useful
1297 (and sometimes confusing) to the casual installer
1298 --disable-dependency-tracking speeds up one-time build
1299 --enable-dependency-tracking do not reject slow dependency extractors
b3076f16 1300 --disable-tokens Disables tokenization of P10 protocol output
1301 (tokens required if linking to ircu 2.10.11)
1302 --enable-debug Enables debugging behaviors
1303 --enable-modules=list,of,modules Enable extra modules
1304
1305Optional Packages:
1306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1309 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1310 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1311 p10 (the default)
b3076f16 1312 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1313 --with-tre=PATH Base path to where libtre is installed, such that
1314 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1315 --with-coredumper=PATH Base path to where core dumper is installed, such
1316 that PATH/lib/libcoredumper.so and
1317 PATH/include/google/coredumper.h exist.
8da89711 1318 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1319 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1320
1321Some influential environment variables:
1322 CC C compiler command
1323 CFLAGS C compiler flags
1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325 nonstandard directory <lib dir>
a8b2ad8d 1326 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1327 you have headers in a nonstandard directory <include dir>
b3076f16 1328 CPP C preprocessor
1329
1330Use these variables to override the choices made by `configure' or to help
1331it to find libraries and programs with nonstandard names/locations.
1332
63c95a47 1333Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1334_ACEOF
a8b2ad8d 1335ac_status=$?
b3076f16 1336fi
1337
1338if test "$ac_init_help" = "recursive"; then
1339 # If there are subdirs, report their specific --help.
b3076f16 1340 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1341 test -d "$ac_dir" || continue
b3076f16 1342 ac_builddir=.
1343
a8b2ad8d 1344case "$ac_dir" in
1345.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346*)
b3076f16 1347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 esac ;;
1354esac
1355ac_abs_top_builddir=$ac_pwd
1356ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357# for backward compatibility:
1358ac_top_builddir=$ac_top_build_prefix
b3076f16 1359
1360case $srcdir in
a8b2ad8d 1361 .) # We are building in place.
b3076f16 1362 ac_srcdir=.
a8b2ad8d 1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1366 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1369 *) # Relative name.
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1373esac
a8b2ad8d 1374ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1375
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1379 echo &&
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1382 echo &&
1383 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1384 else
1385 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1386 fi || ac_status=$?
1387 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1388 done
1389fi
1390
a8b2ad8d 1391test -n "$ac_init_help" && exit $ac_status
b3076f16 1392if $ac_init_version; then
1393 cat <<\_ACEOF
63c95a47 1394X3 configure 1.5
a8b2ad8d 1395generated by GNU Autoconf 2.60
b3076f16 1396
a8b2ad8d 1397Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13982002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1399This configure script is free software; the Free Software Foundation
1400gives unlimited permission to copy, distribute and modify it.
1401_ACEOF
a8b2ad8d 1402 exit
b3076f16 1403fi
a8b2ad8d 1404cat >config.log <<_ACEOF
b3076f16 1405This file contains any messages produced by compilers while
1406running configure, to aid debugging if configure makes a mistake.
1407
63c95a47 1408It was created by X3 $as_me 1.5, which was
a8b2ad8d 1409generated by GNU Autoconf 2.60. Invocation command line was
b3076f16 1410
1411 $ $0 $@
1412
1413_ACEOF
a8b2ad8d 1414exec 5>>config.log
b3076f16 1415{
1416cat <<_ASUNAME
1417## --------- ##
1418## Platform. ##
1419## --------- ##
1420
1421hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1422uname -m = `(uname -m) 2>/dev/null || echo unknown`
1423uname -r = `(uname -r) 2>/dev/null || echo unknown`
1424uname -s = `(uname -s) 2>/dev/null || echo unknown`
1425uname -v = `(uname -v) 2>/dev/null || echo unknown`
1426
1427/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1428/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1429
1430/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1431/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1432/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1433/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1434/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1435/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1436/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1437
1438_ASUNAME
1439
1440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 echo "PATH: $as_dir"
1446done
a8b2ad8d 1447IFS=$as_save_IFS
b3076f16 1448
1449} >&5
1450
1451cat >&5 <<_ACEOF
1452
1453
1454## ----------- ##
1455## Core tests. ##
1456## ----------- ##
1457
1458_ACEOF
1459
1460
1461# Keep a trace of the command line.
1462# Strip out --no-create and --no-recursion so they do not pile up.
1463# Strip out --silent because we don't want to record it for future runs.
1464# Also quote any args containing shell meta-characters.
1465# Make two passes to allow for proper duplicate-argument suppression.
1466ac_configure_args=
1467ac_configure_args0=
1468ac_configure_args1=
b3076f16 1469ac_must_keep_next=false
1470for ac_pass in 1 2
1471do
1472 for ac_arg
1473 do
1474 case $ac_arg in
1475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477 | -silent | --silent | --silen | --sile | --sil)
1478 continue ;;
a8b2ad8d 1479 *\'*)
b3076f16 1480 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 esac
1482 case $ac_pass in
1483 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1484 2)
1485 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1486 if test $ac_must_keep_next = true; then
1487 ac_must_keep_next=false # Got value, back to normal.
1488 else
1489 case $ac_arg in
1490 *=* | --config-cache | -C | -disable-* | --disable-* \
1491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1493 | -with-* | --with-* | -without-* | --without-* | --x)
1494 case "$ac_configure_args0 " in
1495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1496 esac
1497 ;;
1498 -* ) ac_must_keep_next=true ;;
1499 esac
1500 fi
a8b2ad8d 1501 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1502 ;;
1503 esac
1504 done
1505done
1506$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1507$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1508
1509# When interrupted or exit'd, cleanup temporary files, and complete
1510# config.log. We remove comments because anyway the quotes in there
1511# would cause problems or look ugly.
a8b2ad8d 1512# WARNING: Use '\'' to represent an apostrophe within the trap.
1513# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1514trap 'exit_status=$?
1515 # Save into config.log some information that might help in debugging.
1516 {
1517 echo
1518
1519 cat <<\_ASBOX
1520## ---------------- ##
1521## Cache variables. ##
1522## ---------------- ##
1523_ASBOX
1524 echo
1525 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1526(
1527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1528 eval ac_val=\$$ac_var
1529 case $ac_val in #(
1530 *${as_nl}*)
1531 case $ac_var in #(
1532 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1533echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1534 esac
1535 case $ac_var in #(
1536 _ | IFS | as_nl) ;; #(
1537 *) $as_unset $ac_var ;;
1538 esac ;;
1539 esac
1540 done
b3076f16 1541 (set) 2>&1 |
a8b2ad8d 1542 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1543 *${as_nl}ac_space=\ *)
b3076f16 1544 sed -n \
a8b2ad8d 1545 "s/'\''/'\''\\\\'\'''\''/g;
1546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1547 ;; #(
b3076f16 1548 *)
a8b2ad8d 1549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1550 ;;
a8b2ad8d 1551 esac |
1552 sort
1553)
b3076f16 1554 echo
1555
1556 cat <<\_ASBOX
1557## ----------------- ##
1558## Output variables. ##
1559## ----------------- ##
1560_ASBOX
1561 echo
1562 for ac_var in $ac_subst_vars
1563 do
a8b2ad8d 1564 eval ac_val=\$$ac_var
1565 case $ac_val in
1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1567 esac
1568 echo "$ac_var='\''$ac_val'\''"
b3076f16 1569 done | sort
1570 echo
1571
1572 if test -n "$ac_subst_files"; then
1573 cat <<\_ASBOX
a8b2ad8d 1574## ------------------- ##
1575## File substitutions. ##
1576## ------------------- ##
b3076f16 1577_ASBOX
1578 echo
1579 for ac_var in $ac_subst_files
1580 do
a8b2ad8d 1581 eval ac_val=\$$ac_var
1582 case $ac_val in
1583 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584 esac
1585 echo "$ac_var='\''$ac_val'\''"
b3076f16 1586 done | sort
1587 echo
1588 fi
1589
1590 if test -s confdefs.h; then
1591 cat <<\_ASBOX
1592## ----------- ##
1593## confdefs.h. ##
1594## ----------- ##
1595_ASBOX
1596 echo
a8b2ad8d 1597 cat confdefs.h
b3076f16 1598 echo
1599 fi
1600 test "$ac_signal" != 0 &&
1601 echo "$as_me: caught signal $ac_signal"
1602 echo "$as_me: exit $exit_status"
1603 } >&5
a8b2ad8d 1604 rm -f core *.core core.conftest.* &&
1605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1606 exit $exit_status
a8b2ad8d 1607' 0
b3076f16 1608for ac_signal in 1 2 13 15; do
1609 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1610done
1611ac_signal=0
1612
1613# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1614rm -f -r conftest* confdefs.h
b3076f16 1615
1616# Predefined preprocessor variables.
1617
1618cat >>confdefs.h <<_ACEOF
1619#define PACKAGE_NAME "$PACKAGE_NAME"
1620_ACEOF
1621
1622
1623cat >>confdefs.h <<_ACEOF
1624#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1625_ACEOF
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define PACKAGE_VERSION "$PACKAGE_VERSION"
1630_ACEOF
1631
1632
1633cat >>confdefs.h <<_ACEOF
1634#define PACKAGE_STRING "$PACKAGE_STRING"
1635_ACEOF
1636
1637
1638cat >>confdefs.h <<_ACEOF
1639#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1640_ACEOF
1641
1642
1643# Let the site file select an alternate cache file if it wants to.
1644# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1645if test -n "$CONFIG_SITE"; then
1646 set x "$CONFIG_SITE"
1647elif test "x$prefix" != xNONE; then
1648 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1649else
1650 set x "$ac_default_prefix/share/config.site" \
1651 "$ac_default_prefix/etc/config.site"
b3076f16 1652fi
a8b2ad8d 1653shift
1654for ac_site_file
1655do
b3076f16 1656 if test -r "$ac_site_file"; then
1657 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1658echo "$as_me: loading site script $ac_site_file" >&6;}
1659 sed 's/^/| /' "$ac_site_file" >&5
1660 . "$ac_site_file"
1661 fi
1662done
1663
1664if test -r "$cache_file"; then
1665 # Some versions of bash will fail to source /dev/null (special
1666 # files actually), so we avoid doing that.
1667 if test -f "$cache_file"; then
1668 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1669echo "$as_me: loading cache $cache_file" >&6;}
1670 case $cache_file in
a8b2ad8d 1671 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1672 *) . "./$cache_file";;
b3076f16 1673 esac
1674 fi
1675else
1676 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1677echo "$as_me: creating cache $cache_file" >&6;}
1678 >$cache_file
1679fi
1680
1681# Check that the precious variables saved in the cache have kept the same
1682# value.
1683ac_cache_corrupted=false
a8b2ad8d 1684for ac_var in $ac_precious_vars; do
b3076f16 1685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1686 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1688 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1689 case $ac_old_set,$ac_new_set in
1690 set,)
1691 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1692echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1693 ac_cache_corrupted=: ;;
1694 ,set)
1695 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1696echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1697 ac_cache_corrupted=: ;;
1698 ,);;
1699 *)
1700 if test "x$ac_old_val" != "x$ac_new_val"; then
1701 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1702echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1704echo "$as_me: former value: $ac_old_val" >&2;}
1705 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1706echo "$as_me: current value: $ac_new_val" >&2;}
1707 ac_cache_corrupted=:
1708 fi;;
1709 esac
1710 # Pass precious variables to config.status.
1711 if test "$ac_new_set" = set; then
1712 case $ac_new_val in
a8b2ad8d 1713 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1714 *) ac_arg=$ac_var=$ac_new_val ;;
1715 esac
1716 case " $ac_configure_args " in
1717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1718 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1719 esac
1720 fi
1721done
1722if $ac_cache_corrupted; then
1723 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1724echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1725 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1726echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1727 { (exit 1); exit 1; }; }
1728fi
1729
b3076f16 1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
a8b2ad8d 1754ac_ext=c
1755ac_cpp='$CPP $CPPFLAGS'
1756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1759
1760
ceafd592 1761CODENAME=X3
a8b2ad8d 1762ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1763
1764
1765ac_aux_dir=
a8b2ad8d 1766for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1767 if test -f "$ac_dir/install-sh"; then
b3076f16 1768 ac_aux_dir=$ac_dir
1769 ac_install_sh="$ac_aux_dir/install-sh -c"
1770 break
a8b2ad8d 1771 elif test -f "$ac_dir/install.sh"; then
b3076f16 1772 ac_aux_dir=$ac_dir
1773 ac_install_sh="$ac_aux_dir/install.sh -c"
1774 break
a8b2ad8d 1775 elif test -f "$ac_dir/shtool"; then
b3076f16 1776 ac_aux_dir=$ac_dir
1777 ac_install_sh="$ac_aux_dir/shtool install -c"
1778 break
1779 fi
1780done
1781if test -z "$ac_aux_dir"; then
a8b2ad8d 1782 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1783echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1784 { (exit 1); exit 1; }; }
1785fi
a8b2ad8d 1786
1787# These three variables are undocumented and unsupported,
1788# and are intended to be withdrawn in a future Autoconf release.
1789# They can cause serious problems if a builder's source tree is in a directory
1790# whose full name contains unusual characters.
1791ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1792ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1793ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1794
b3076f16 1795
1796# Make sure we can run config.sub.
a8b2ad8d 1797$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1799echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 1800 { (exit 1); exit 1; }; }
1801
a8b2ad8d 1802{ echo "$as_me:$LINENO: checking build system type" >&5
1803echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 1804if test "${ac_cv_build+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
a8b2ad8d 1807 ac_build_alias=$build_alias
1808test "x$ac_build_alias" = x &&
1809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1810test "x$ac_build_alias" = x &&
b3076f16 1811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813 { (exit 1); exit 1; }; }
a8b2ad8d 1814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 1817 { (exit 1); exit 1; }; }
1818
1819fi
a8b2ad8d 1820{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821echo "${ECHO_T}$ac_cv_build" >&6; }
1822case $ac_cv_build in
1823*-*-*) ;;
1824*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1825echo "$as_me: error: invalid value of canonical build" >&2;}
1826 { (exit 1); exit 1; }; };;
1827esac
b3076f16 1828build=$ac_cv_build
a8b2ad8d 1829ac_save_IFS=$IFS; IFS='-'
1830set x $ac_cv_build
1831shift
1832build_cpu=$1
1833build_vendor=$2
1834shift; shift
1835# Remember, the first character of IFS is used to create $*,
1836# except with old shells:
1837build_os=$*
1838IFS=$ac_save_IFS
1839case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1840
1841
1842{ echo "$as_me:$LINENO: checking host system type" >&5
1843echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 1844if test "${ac_cv_host+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
a8b2ad8d 1847 if test "x$host_alias" = x; then
1848 ac_cv_host=$ac_cv_build
1849else
1850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1852echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1853 { (exit 1); exit 1; }; }
a8b2ad8d 1854fi
b3076f16 1855
1856fi
a8b2ad8d 1857{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1858echo "${ECHO_T}$ac_cv_host" >&6; }
1859case $ac_cv_host in
1860*-*-*) ;;
1861*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1862echo "$as_me: error: invalid value of canonical host" >&2;}
1863 { (exit 1); exit 1; }; };;
1864esac
b3076f16 1865host=$ac_cv_host
a8b2ad8d 1866ac_save_IFS=$IFS; IFS='-'
1867set x $ac_cv_host
1868shift
1869host_cpu=$1
1870host_vendor=$2
1871shift; shift
1872# Remember, the first character of IFS is used to create $*,
1873# except with old shells:
1874host_os=$*
1875IFS=$ac_save_IFS
1876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1877
1878
1879{ echo "$as_me:$LINENO: checking target system type" >&5
1880echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 1881if test "${ac_cv_target+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
a8b2ad8d 1884 if test "x$target_alias" = x; then
1885 ac_cv_target=$ac_cv_host
1886else
1887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1889echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1890 { (exit 1); exit 1; }; }
a8b2ad8d 1891fi
b3076f16 1892
1893fi
a8b2ad8d 1894{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1895echo "${ECHO_T}$ac_cv_target" >&6; }
1896case $ac_cv_target in
1897*-*-*) ;;
1898*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1899echo "$as_me: error: invalid value of canonical target" >&2;}
1900 { (exit 1); exit 1; }; };;
1901esac
b3076f16 1902target=$ac_cv_target
a8b2ad8d 1903ac_save_IFS=$IFS; IFS='-'
1904set x $ac_cv_target
1905shift
1906target_cpu=$1
1907target_vendor=$2
1908shift; shift
1909# Remember, the first character of IFS is used to create $*,
1910# except with old shells:
1911target_os=$*
1912IFS=$ac_save_IFS
1913case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 1914
1915
1916# The aliases save the names the user supplied, while $host etc.
1917# will get canonicalized.
1918test -n "$target_alias" &&
1919 test "$program_prefix$program_suffix$program_transform_name" = \
1920 NONENONEs,x,x, &&
1921 program_prefix=${target_alias}-
ec1a68c8 1922am__api_version="1.9"
b3076f16 1923# Find a good install program. We prefer a C program (faster),
1924# so one script is as good as another. But avoid the broken or
1925# incompatible versions:
1926# SysV /etc/install, /usr/sbin/install
1927# SunOS /usr/etc/install
1928# IRIX /sbin/install
1929# AIX /bin/install
1930# AmigaOS /C/install, which installs bootblocks on floppy discs
1931# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1932# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1933# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1934# OS/2's system install, which has a completely different semantic
1935# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1936{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1937echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 1938if test -z "$INSTALL"; then
1939if test "${ac_cv_path_install+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 # Account for people who put trailing slashes in PATH elements.
1948case $as_dir/ in
1949 ./ | .// | /cC/* | \
1950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1952 /usr/ucb/* ) ;;
1953 *)
1954 # OSF1 and SCO ODT 3.0 have their own names for install.
1955 # Don't use installbsd from OSF since it installs stuff as root
1956 # by default.
1957 for ac_prog in ginstall scoinst install; do
1958 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 1959 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 1960 if test $ac_prog = install &&
1961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1962 # AIX install. It has an incompatible calling convention.
1963 :
1964 elif test $ac_prog = install &&
1965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1966 # program-specific install script used by HP pwplus--don't use.
1967 :
1968 else
1969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970 break 3
1971 fi
1972 fi
1973 done
1974 done
1975 ;;
1976esac
1977done
a8b2ad8d 1978IFS=$as_save_IFS
b3076f16 1979
1980
1981fi
1982 if test "${ac_cv_path_install+set}" = set; then
1983 INSTALL=$ac_cv_path_install
1984 else
a8b2ad8d 1985 # As a last resort, use the slow shell script. Don't cache a
1986 # value for INSTALL within a source directory, because that will
b3076f16 1987 # break other packages using the cache if that directory is
a8b2ad8d 1988 # removed, or if the value is a relative name.
b3076f16 1989 INSTALL=$ac_install_sh
1990 fi
1991fi
a8b2ad8d 1992{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1993echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 1994
1995# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1996# It thinks the first close brace ends the variable substitution.
1997test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1998
1999test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2000
2001test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2002
a8b2ad8d 2003{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2004echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2005# Just in case
2006sleep 1
ec1a68c8 2007echo timestamp > conftest.file
b3076f16 2008# Do `set' in a subshell so we don't clobber the current shell's
2009# arguments. Must try -L first in case configure is actually a
2010# symlink; some systems play weird games with the mod time of symlinks
2011# (eg FreeBSD returns the mod time of the symlink's containing
2012# directory).
2013if (
ec1a68c8 2014 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2015 if test "$*" = "X"; then
2016 # -L didn't work.
ec1a68c8 2017 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2018 fi
ec1a68c8 2019 rm -f conftest.file
2020 if test "$*" != "X $srcdir/configure conftest.file" \
2021 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2022
2023 # If neither matched, then we have a broken ls. This can happen
2024 # if, for instance, CONFIG_SHELL is bash and it inherits a
2025 # broken ls alias from the environment. This has actually
2026 # happened. Such a system could not be considered "sane".
2027 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2028alias in your environment" >&5
2029echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2030alias in your environment" >&2;}
2031 { (exit 1); exit 1; }; }
2032 fi
2033
ec1a68c8 2034 test "$2" = conftest.file
b3076f16 2035 )
2036then
2037 # Ok.
2038 :
2039else
2040 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2041Check your system clock" >&5
2042echo "$as_me: error: newly created file is older than distributed files!
2043Check your system clock" >&2;}
2044 { (exit 1); exit 1; }; }
2045fi
a8b2ad8d 2046{ echo "$as_me:$LINENO: result: yes" >&5
2047echo "${ECHO_T}yes" >&6; }
b3076f16 2048test "$program_prefix" != NONE &&
a8b2ad8d 2049 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2050# Use a double $ so make ignores it.
2051test "$program_suffix" != NONE &&
a8b2ad8d 2052 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2053# Double any \ or $. echo might interpret backslashes.
2054# By default was `s,x,x', remove it if useless.
2055cat <<\_ACEOF >conftest.sed
2056s/[\\$]/&&/g;s/;s,x,x,$//
2057_ACEOF
2058program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2059rm -f conftest.sed
b3076f16 2060
ec1a68c8 2061# expand $ac_aux_dir to an absolute path
2062am_aux_dir=`cd $ac_aux_dir && pwd`
2063
2064test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2065# Use eval to expand $SHELL
2066if eval "$MISSING --run true"; then
2067 am_missing_run="$MISSING --run "
2068else
2069 am_missing_run=
2070 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2071echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2072fi
2073
2074if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2075 # We used to keeping the `.' as first argument, in order to
2076 # allow $(mkdir_p) to be used without argument. As in
2077 # $(mkdir_p) $(somedir)
2078 # where $(somedir) is conditionally defined. However this is wrong
2079 # for two reasons:
2080 # 1. if the package is installed by a user who cannot write `.'
2081 # make install will fail,
2082 # 2. the above comment should most certainly read
2083 # $(mkdir_p) $(DESTDIR)$(somedir)
2084 # so it does not work when $(somedir) is undefined and
2085 # $(DESTDIR) is not.
2086 # To support the latter case, we have to write
2087 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2088 # so the `.' trick is pointless.
2089 mkdir_p='mkdir -p --'
2090else
2091 # On NextStep and OpenStep, the `mkdir' command does not
2092 # recognize any option. It will interpret all options as
2093 # directories to create, and then abort because `.' already
2094 # exists.
2095 for d in ./-p ./--version;
2096 do
2097 test -d $d && rmdir $d
2098 done
2099 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2100 if test -f "$ac_aux_dir/mkinstalldirs"; then
2101 mkdir_p='$(mkinstalldirs)'
2102 else
2103 mkdir_p='$(install_sh) -d'
2104 fi
2105fi
2106
2107for ac_prog in gawk mawk nawk awk
2108do
2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2110set dummy $ac_prog; ac_word=$2
a8b2ad8d 2111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2113if test "${ac_cv_prog_AWK+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116 if test -n "$AWK"; then
2117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2118else
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2126 ac_cv_prog_AWK="$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130done
2131done
a8b2ad8d 2132IFS=$as_save_IFS
ec1a68c8 2133
2134fi
2135fi
2136AWK=$ac_cv_prog_AWK
2137if test -n "$AWK"; then
a8b2ad8d 2138 { echo "$as_me:$LINENO: result: $AWK" >&5
2139echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2140else
a8b2ad8d 2141 { echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6; }
ec1a68c8 2143fi
2144
a8b2ad8d 2145
ec1a68c8 2146 test -n "$AWK" && break
2147done
2148
a8b2ad8d 2149{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2150echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2151set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2152if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155 cat >conftest.make <<\_ACEOF
a8b2ad8d 2156SHELL = /bin/sh
b3076f16 2157all:
a8b2ad8d 2158 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2159_ACEOF
2160# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2161case `${MAKE-make} -f conftest.make 2>/dev/null` in
2162 *@@@%%%=?*=@@@%%%*)
2163 eval ac_cv_prog_make_${ac_make}_set=yes;;
2164 *)
2165 eval ac_cv_prog_make_${ac_make}_set=no;;
2166esac
b3076f16 2167rm -f conftest.make
2168fi
a8b2ad8d 2169if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2170 { echo "$as_me:$LINENO: result: yes" >&5
2171echo "${ECHO_T}yes" >&6; }
b3076f16 2172 SET_MAKE=
2173else
a8b2ad8d 2174 { echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6; }
b3076f16 2176 SET_MAKE="MAKE=${MAKE-make}"
2177fi
2178
ec1a68c8 2179rm -rf .tst 2>/dev/null
2180mkdir .tst 2>/dev/null
2181if test -d .tst; then
2182 am__leading_dot=.
2183else
2184 am__leading_dot=_
2185fi
2186rmdir .tst 2>/dev/null
b3076f16 2187
ec1a68c8 2188# test to see if srcdir already configured
2189if test "`cd $srcdir && pwd`" != "`pwd`" &&
2190 test -f $srcdir/config.status; then
b3076f16 2191 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2192echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2193 { (exit 1); exit 1; }; }
2194fi
2195
ec1a68c8 2196# test whether we have cygpath
2197if test -z "$CYGPATH_W"; then
2198 if (cygpath --version) >/dev/null 2>/dev/null; then
2199 CYGPATH_W='cygpath -w'
2200 else
2201 CYGPATH_W=echo
2202 fi
2203fi
2204
2205
2206# Define the identity of the package.
ceafd592 2207 PACKAGE='x3'
63c95a47 2208 VERSION='1.5'
ec1a68c8 2209
2210
b3076f16 2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE "$PACKAGE"
2213_ACEOF
2214
2215
2216cat >>confdefs.h <<_ACEOF
2217#define VERSION "$VERSION"
2218_ACEOF
2219
ec1a68c8 2220# Some tools Automake needs.
b3076f16 2221
ec1a68c8 2222ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2223
ec1a68c8 2224
2225AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2226
2227
2228AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2229
2230
2231AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2232
2233
2234MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2235
2236install_sh=${install_sh-"$am_aux_dir/install-sh"}
2237
2238# Installed binaries are usually stripped using `strip' when the user
2239# run `make install-strip'. However `strip' might not be the right
2240# tool to use in cross-compilation environments, therefore Automake
2241# will honor the `STRIP' environment variable to overrule this program.
2242if test "$cross_compiling" != no; then
2243 if test -n "$ac_tool_prefix"; then
2244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2245set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2248if test "${ac_cv_prog_STRIP+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2250else
ec1a68c8 2251 if test -n "$STRIP"; then
2252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2253else
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2261 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265done
2266done
a8b2ad8d 2267IFS=$as_save_IFS
b3076f16 2268
ec1a68c8 2269fi
2270fi
2271STRIP=$ac_cv_prog_STRIP
2272if test -n "$STRIP"; then
a8b2ad8d 2273 { echo "$as_me:$LINENO: result: $STRIP" >&5
2274echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2275else
a8b2ad8d 2276 { echo "$as_me:$LINENO: result: no" >&5
2277echo "${ECHO_T}no" >&6; }
b3076f16 2278fi
b2cf3d66 2279
a8b2ad8d 2280
b3076f16 2281fi
ec1a68c8 2282if test -z "$ac_cv_prog_STRIP"; then
2283 ac_ct_STRIP=$STRIP
2284 # Extract the first word of "strip", so it can be a program name with args.
2285set dummy strip; ac_word=$2
a8b2ad8d 2286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2288if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 if test -n "$ac_ct_STRIP"; then
2292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2293else
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2301 ac_cv_prog_ac_ct_STRIP="strip"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2304 fi
2305done
2306done
a8b2ad8d 2307IFS=$as_save_IFS
b3076f16 2308
ec1a68c8 2309fi
2310fi
2311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2312if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2313 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2314echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2315else
a8b2ad8d 2316 { echo "$as_me:$LINENO: result: no" >&5
2317echo "${ECHO_T}no" >&6; }
b3076f16 2318fi
2319
a8b2ad8d 2320 if test "x$ac_ct_STRIP" = x; then
2321 STRIP=":"
2322 else
2323 case $cross_compiling:$ac_tool_warned in
2324yes:)
2325{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2326whose name does not start with the host triplet. If you think this
2327configuration is useful to you, please write to autoconf@gnu.org." >&5
2328echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2329whose name does not start with the host triplet. If you think this
2330configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2331ac_tool_warned=yes ;;
2332esac
2333 STRIP=$ac_ct_STRIP
2334 fi
b2cf3d66 2335else
ec1a68c8 2336 STRIP="$ac_cv_prog_STRIP"
b3076f16 2337fi
b3076f16 2338
ec1a68c8 2339fi
2340INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2341
2342# We need awk for the "check" target. The system "awk" is bad on
2343# some platforms.
2344# Always define AMTAR for backward compatibility.
2345
2346AMTAR=${AMTAR-"${am_missing_run}tar"}
2347
2348am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2349
2350
2351
2352
b3076f16 2353
a8b2ad8d 2354{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2355echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2356 # Check whether --enable-maintainer-mode was given.
b3076f16 2357if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2358 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2359else
2360 USE_MAINTAINER_MODE=no
a8b2ad8d 2361fi
2362
2363 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2364echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
b3076f16 2365
2366
2367if test $USE_MAINTAINER_MODE = yes; then
2368 MAINTAINER_MODE_TRUE=
2369 MAINTAINER_MODE_FALSE='#'
2370else
2371 MAINTAINER_MODE_TRUE='#'
2372 MAINTAINER_MODE_FALSE=
2373fi
ec1a68c8 2374
b3076f16 2375 MAINT=$MAINTAINER_MODE_TRUE
2376
2377
2378
ec1a68c8 2379DEPDIR="${am__leading_dot}deps"
2380
a8b2ad8d 2381ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2382
2383
2384am_make=${MAKE-make}
2385cat > confinc << 'END'
2386am__doit:
2387 @echo done
2388.PHONY: am__doit
2389END
2390# If we don't find an include directive, just comment out the code.
a8b2ad8d 2391{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2392echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2393am__include="#"
2394am__quote=
2395_am_result=none
2396# First try GNU make style include.
2397echo "include confinc" > confmf
2398# We grep out `Entering directory' and `Leaving directory'
2399# messages which can occur if `w' ends up in MAKEFLAGS.
2400# In particular we don't look at `^make:' because GNU make might
2401# be invoked under some other name (usually "gmake"), in which
2402# case it prints its new name instead of `make'.
2403if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2404 am__include=include
2405 am__quote=
2406 _am_result=GNU
2407fi
2408# Now try BSD make style include.
2409if test "$am__include" = "#"; then
2410 echo '.include "confinc"' > confmf
2411 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2412 am__include=.include
2413 am__quote="\""
2414 _am_result=BSD
2415 fi
2416fi
2417
2418
a8b2ad8d 2419{ echo "$as_me:$LINENO: result: $_am_result" >&5
2420echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2421rm -f confinc confmf
2422
a8b2ad8d 2423# Check whether --enable-dependency-tracking was given.
ec1a68c8 2424if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2425 enableval=$enable_dependency_tracking;
2426fi
ec1a68c8 2427
ec1a68c8 2428if test "x$enable_dependency_tracking" != xno; then
2429 am_depcomp="$ac_aux_dir/depcomp"
2430 AMDEPBACKSLASH='\'
2431fi
2432
2433
2434if test "x$enable_dependency_tracking" != xno; then
2435 AMDEP_TRUE=
2436 AMDEP_FALSE='#'
2437else
2438 AMDEP_TRUE='#'
2439 AMDEP_FALSE=
2440fi
2441
2442
2443
b3076f16 2444ac_ext=c
2445ac_cpp='$CPP $CPPFLAGS'
2446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2451set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2454if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471done
2472done
a8b2ad8d 2473IFS=$as_save_IFS
b3076f16 2474
2475fi
2476fi
2477CC=$ac_cv_prog_CC
2478if test -n "$CC"; then
a8b2ad8d 2479 { echo "$as_me:$LINENO: result: $CC" >&5
2480echo "${ECHO_T}$CC" >&6; }
b3076f16 2481else
a8b2ad8d 2482 { echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6; }
b3076f16 2484fi
2485
a8b2ad8d 2486
b3076f16 2487fi
2488if test -z "$ac_cv_prog_CC"; then
2489 ac_ct_CC=$CC
2490 # Extract the first word of "gcc", so it can be a program name with args.
2491set dummy gcc; ac_word=$2
a8b2ad8d 2492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2494if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497 if test -n "$ac_ct_CC"; then
2498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2507 ac_cv_prog_ac_ct_CC="gcc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512done
a8b2ad8d 2513IFS=$as_save_IFS
b3076f16 2514
2515fi
2516fi
2517ac_ct_CC=$ac_cv_prog_ac_ct_CC
2518if test -n "$ac_ct_CC"; then
a8b2ad8d 2519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2520echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2521else
a8b2ad8d 2522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
b3076f16 2524fi
2525
a8b2ad8d 2526 if test "x$ac_ct_CC" = x; then
2527 CC=""
2528 else
2529 case $cross_compiling:$ac_tool_warned in
2530yes:)
2531{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2532whose name does not start with the host triplet. If you think this
2533configuration is useful to you, please write to autoconf@gnu.org." >&5
2534echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2535whose name does not start with the host triplet. If you think this
2536configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2537ac_tool_warned=yes ;;
2538esac
2539 CC=$ac_ct_CC
2540 fi
b3076f16 2541else
2542 CC="$ac_cv_prog_CC"
2543fi
2544
2545if test -z "$CC"; then
a8b2ad8d 2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2548set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2551if test "${ac_cv_prog_CC+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2564 ac_cv_prog_CC="${ac_tool_prefix}cc"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568done
2569done
a8b2ad8d 2570IFS=$as_save_IFS
b3076f16 2571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
a8b2ad8d 2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
b3076f16 2578else
a8b2ad8d 2579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
b3076f16 2581fi
2582
b3076f16 2583
a8b2ad8d 2584 fi
b3076f16 2585fi
2586if test -z "$CC"; then
2587 # Extract the first word of "cc", so it can be a program name with args.
2588set dummy cc; ac_word=$2
a8b2ad8d 2589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2591if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596else
2597 ac_prog_rejected=no
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2606 ac_prog_rejected=yes
2607 continue
2608 fi
2609 ac_cv_prog_CC="cc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614done
a8b2ad8d 2615IFS=$as_save_IFS
b3076f16 2616
2617if test $ac_prog_rejected = yes; then
2618 # We found a bogon in the path, so make sure we never use it.
2619 set dummy $ac_cv_prog_CC
2620 shift
2621 if test $# != 0; then
2622 # We chose a different compiler from the bogus one.
2623 # However, it has the same basename, so the bogon will be chosen
2624 # first if we set CC to just the basename; use the full file name.
2625 shift
2626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2627 fi
2628fi
2629fi
2630fi
2631CC=$ac_cv_prog_CC
2632if test -n "$CC"; then
a8b2ad8d 2633 { echo "$as_me:$LINENO: result: $CC" >&5
2634echo "${ECHO_T}$CC" >&6; }
b3076f16 2635else
a8b2ad8d 2636 { echo "$as_me:$LINENO: result: no" >&5
2637echo "${ECHO_T}no" >&6; }
b3076f16 2638fi
2639
a8b2ad8d 2640
b3076f16 2641fi
2642if test -z "$CC"; then
2643 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2644 for ac_prog in cl.exe
b3076f16 2645 do
2646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2650if test "${ac_cv_prog_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667done
2668done
a8b2ad8d 2669IFS=$as_save_IFS
b3076f16 2670
2671fi
2672fi
2673CC=$ac_cv_prog_CC
2674if test -n "$CC"; then
a8b2ad8d 2675 { echo "$as_me:$LINENO: result: $CC" >&5
2676echo "${ECHO_T}$CC" >&6; }
b3076f16 2677else
a8b2ad8d 2678 { echo "$as_me:$LINENO: result: no" >&5
2679echo "${ECHO_T}no" >&6; }
b3076f16 2680fi
2681
a8b2ad8d 2682
b3076f16 2683 test -n "$CC" && break
2684 done
2685fi
2686if test -z "$CC"; then
2687 ac_ct_CC=$CC
a8b2ad8d 2688 for ac_prog in cl.exe
b3076f16 2689do
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691set dummy $ac_prog; ac_word=$2
a8b2ad8d 2692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2694if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696else
2697 if test -n "$ac_ct_CC"; then
2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2707 ac_cv_prog_ac_ct_CC="$ac_prog"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711done
2712done
a8b2ad8d 2713IFS=$as_save_IFS
b3076f16 2714
2715fi
2716fi
2717ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718if test -n "$ac_ct_CC"; then
a8b2ad8d 2719 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2720echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2721else
a8b2ad8d 2722 { echo "$as_me:$LINENO: result: no" >&5
2723echo "${ECHO_T}no" >&6; }
b3076f16 2724fi
2725
a8b2ad8d 2726
b3076f16 2727 test -n "$ac_ct_CC" && break
2728done
2729
a8b2ad8d 2730 if test "x$ac_ct_CC" = x; then
2731 CC=""
2732 else
2733 case $cross_compiling:$ac_tool_warned in
2734yes:)
2735{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2736whose name does not start with the host triplet. If you think this
2737configuration is useful to you, please write to autoconf@gnu.org." >&5
2738echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2739whose name does not start with the host triplet. If you think this
2740configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2741ac_tool_warned=yes ;;
2742esac
2743 CC=$ac_ct_CC
2744 fi
b3076f16 2745fi
2746
2747fi
2748
2749
2750test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2751See \`config.log' for more details." >&5
2752echo "$as_me: error: no acceptable C compiler found in \$PATH
2753See \`config.log' for more details." >&2;}
2754 { (exit 1); exit 1; }; }
2755
2756# Provide some information about the compiler.
a8b2ad8d 2757echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2758ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2759{ (ac_try="$ac_compiler --version >&5"
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
a8b2ad8d 2769{ (ac_try="$ac_compiler -v >&5"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
a8b2ad8d 2779{ (ac_try="$ac_compiler -V >&5"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789
2790cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h. */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h. */
2796
2797int
2798main ()
2799{
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805ac_clean_files_save=$ac_clean_files
2806ac_clean_files="$ac_clean_files a.out a.exe b.out"
2807# Try to create an executable without -o first, disregard a.out.
2808# It will help us diagnose broken compilers, and finding out an intuition
2809# of exeext.
a8b2ad8d 2810{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2811echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2812ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2813#
2814# List of possible output files, starting from the most likely.
2815# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2816# only as a last resort. b.out is created by i960 compilers.
2817ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2818#
2819# The IRIX 6 linker writes into existing files which may not be
2820# executable, retaining their permissions. Remove them first so a
2821# subsequent execution test works.
2822ac_rmfiles=
2823for ac_file in $ac_files
2824do
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2828 esac
2829done
2830rm -f $ac_rmfiles
2831
2832if { (ac_try="$ac_link_default"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_link_default") 2>&5
b3076f16 2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; then
a8b2ad8d 2842 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2843# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2844# in a Makefile. We should not override ac_cv_exeext if it was cached,
2845# so that the user can short-circuit this test for compilers unknown to
2846# Autoconf.
2847for ac_file in $ac_files
b3076f16 2848do
2849 test -f "$ac_file" || continue
2850 case $ac_file in
a8b2ad8d 2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 2852 ;;
2853 [ab].out )
2854 # We found the default executable, but exeext='' is most
2855 # certainly right.
2856 break;;
2857 *.* )
a8b2ad8d 2858 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2859 then :; else
2860 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861 fi
2862 # We set ac_cv_exeext here because the later test for it is not
2863 # safe: cross compilers may not add the suffix if given an `-o'
2864 # argument, so we may need to know it at that point already.
2865 # Even if this section looks crufty: it has the advantage of
2866 # actually working.
b3076f16 2867 break;;
2868 * )
2869 break;;
2870 esac
2871done
a8b2ad8d 2872test "$ac_cv_exeext" = no && ac_cv_exeext=
2873
b3076f16 2874else
2875 echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2879See \`config.log' for more details." >&5
2880echo "$as_me: error: C compiler cannot create executables
2881See \`config.log' for more details." >&2;}
2882 { (exit 77); exit 77; }; }
2883fi
2884
2885ac_exeext=$ac_cv_exeext
a8b2ad8d 2886{ echo "$as_me:$LINENO: result: $ac_file" >&5
2887echo "${ECHO_T}$ac_file" >&6; }
b3076f16 2888
a8b2ad8d 2889# Check that the compiler produces executables we can run. If not, either
b3076f16 2890# the compiler is broken, or we cross compile.
a8b2ad8d 2891{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2892echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 2893# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2894# If not cross compiling, check that we can run a simple program.
2895if test "$cross_compiling" != yes; then
2896 if { ac_try='./$ac_file'
a8b2ad8d 2897 { (case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_try") 2>&5
b3076f16 2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 cross_compiling=no
2907 else
2908 if test "$cross_compiling" = maybe; then
2909 cross_compiling=yes
2910 else
2911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2912If you meant to cross compile, use \`--host'.
2913See \`config.log' for more details." >&5
2914echo "$as_me: error: cannot run C compiled programs.
2915If you meant to cross compile, use \`--host'.
2916See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
2918 fi
2919 fi
2920fi
a8b2ad8d 2921{ echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6; }
b3076f16 2923
2924rm -f a.out a.exe conftest$ac_cv_exeext b.out
2925ac_clean_files=$ac_clean_files_save
a8b2ad8d 2926# Check that the compiler produces executables we can run. If not, either
b3076f16 2927# the compiler is broken, or we cross compile.
a8b2ad8d 2928{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2929echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2930{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2931echo "${ECHO_T}$cross_compiling" >&6; }
2932
2933{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2934echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2935if { (ac_try="$ac_link"
2936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_link") 2>&5
b3076f16 2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2946# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2947# work properly (i.e., refer to `conftest.exe'), while it won't with
2948# `rm'.
2949for ac_file in conftest.exe conftest conftest.*; do
2950 test -f "$ac_file" || continue
2951 case $ac_file in
a8b2ad8d 2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 2953 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 2954 break;;
2955 * ) break;;
2956 esac
2957done
2958else
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2964fi
2965
2966rm -f conftest$ac_cv_exeext
a8b2ad8d 2967{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2968echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 2969
2970rm -f conftest.$ac_ext
2971EXEEXT=$ac_cv_exeext
2972ac_exeext=$EXEEXT
a8b2ad8d 2973{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2974echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 2975if test "${ac_cv_objext+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978 cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h. */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h. */
2984
2985int
2986main ()
2987{
2988
2989 ;
2990 return 0;
2991}
2992_ACEOF
2993rm -f conftest.o conftest.obj
a8b2ad8d 2994if { (ac_try="$ac_compile"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>&5
b3076f16 3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; then
a8b2ad8d 3004 for ac_file in conftest.o conftest.obj conftest.*; do
3005 test -f "$ac_file" || continue;
b3076f16 3006 case $ac_file in
a8b2ad8d 3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3009 break;;
3010 esac
3011done
3012else
3013 echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3017See \`config.log' for more details." >&5
3018echo "$as_me: error: cannot compute suffix of object files: cannot compile
3019See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }
3021fi
3022
3023rm -f conftest.$ac_cv_objext conftest.$ac_ext
3024fi
a8b2ad8d 3025{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3026echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3027OBJEXT=$ac_cv_objext
3028ac_objext=$OBJEXT
a8b2ad8d 3029{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3030echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3031if test "${ac_cv_c_compiler_gnu+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040
3041int
3042main ()
3043{
3044#ifndef __GNUC__
3045 choke me
3046#endif
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext
a8b2ad8d 3053if { (ac_try="$ac_compile"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
b3076f16 3060 ac_status=$?
3061 grep -v '^ *+' conftest.er1 >conftest.err
3062 rm -f conftest.er1
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
a8b2ad8d 3066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
b3076f16 3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; } &&
3076 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
b3076f16 3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_compiler_gnu=yes
3087else
3088 echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
a8b2ad8d 3091 ac_compiler_gnu=no
b3076f16 3092fi
a8b2ad8d 3093
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3095ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097fi
a8b2ad8d 3098{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3100GCC=`test $ac_compiler_gnu = yes && echo yes`
3101ac_test_CFLAGS=${CFLAGS+set}
3102ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3103{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3105if test "${ac_cv_prog_cc_g+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
a8b2ad8d 3108 ac_save_c_werror_flag=$ac_c_werror_flag
3109 ac_c_werror_flag=yes
3110 ac_cv_prog_cc_g=no
3111 CFLAGS="-g"
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_prog_cc_g=yes
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 CFLAGS=""
3167 cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h. */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h. */
3173
3174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182rm -f conftest.$ac_objext
3183if { (ac_try="$ac_compile"
3184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3216 :
3217else
3218 echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
3221 ac_c_werror_flag=$ac_save_c_werror_flag
3222 CFLAGS="-g"
3223 cat >conftest.$ac_ext <<_ACEOF
b3076f16 3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229
3230int
3231main ()
3232{
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext
a8b2ad8d 3239if { (ac_try="$ac_compile"
3240case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compile") 2>conftest.er1
b3076f16 3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
a8b2ad8d 3252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
b3076f16 3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; } &&
3262 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3263 { (case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_try") 2>&5
b3076f16 3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 ac_cv_prog_cc_g=yes
3273else
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
a8b2ad8d 3277
3278fi
3279
3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281fi
3282
3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3284fi
a8b2ad8d 3285
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3288fi
a8b2ad8d 3289{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3290echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3291if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3298 fi
3299else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3304 fi
3305fi
a8b2ad8d 3306{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3307echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3308if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
a8b2ad8d 3311 ac_cv_prog_cc_c89=no
b3076f16 3312ac_save_CC=$CC
3313cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319#include <stdarg.h>
3320#include <stdio.h>
3321#include <sys/types.h>
3322#include <sys/stat.h>
3323/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324struct buf { int x; };
3325FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326static char *e (p, i)
3327 char **p;
3328 int i;
3329{
3330 return p[i];
3331}
3332static char *f (char * (*g) (char **, int), char **p, ...)
3333{
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3340}
3341
3342/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3343 function prototypes and stuff, but not '\xHH' hex character constants.
3344 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3345 as 'x'. The following induces an error, until -std is added to get
b3076f16 3346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3347 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3348 that's true only with -std. */
b3076f16 3349int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3350
a8b2ad8d 3351/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3352 inside strings and character constants. */
3353#define FOO(x) 'x'
3354int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3355
b3076f16 3356int test (int i, double x);
3357struct s1 {int (*f) (int a);};
3358struct s2 {int (*f) (double a);};
3359int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360int argc;
3361char **argv;
3362int
3363main ()
3364{
3365return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3366 ;
3367 return 0;
3368}
3369_ACEOF
a8b2ad8d 3370for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3372do
3373 CC="$ac_save_CC $ac_arg"
3374 rm -f conftest.$ac_objext
a8b2ad8d 3375if { (ac_try="$ac_compile"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
b3076f16 3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
a8b2ad8d 3388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
b3076f16 3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3399 { (case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_try") 2>&5
b3076f16 3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
a8b2ad8d 3408 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3409else
3410 echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
a8b2ad8d 3413
b3076f16 3414fi
a8b2ad8d 3415
3416rm -f core conftest.err conftest.$ac_objext
3417 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3418done
a8b2ad8d 3419rm -f conftest.$ac_ext
b3076f16 3420CC=$ac_save_CC
3421
3422fi
a8b2ad8d 3423# AC_CACHE_VAL
3424case "x$ac_cv_prog_cc_c89" in
3425 x)
3426 { echo "$as_me:$LINENO: result: none needed" >&5
3427echo "${ECHO_T}none needed" >&6; } ;;
3428 xno)
3429 { echo "$as_me:$LINENO: result: unsupported" >&5
3430echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3431 *)
a8b2ad8d 3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3434echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3435esac
3436
b3076f16 3437
b3076f16 3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
ec1a68c8 3444depcc="$CC" am_compiler_list=
3445
a8b2ad8d 3446{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3447echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3448if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3452 # We make a subdir and do the tests there. Otherwise we can end up
3453 # making bogus files that we don't know about and never remove. For
3454 # instance it was reported that on HP-UX the gcc test will end up
3455 # making a dummy file named `D' -- because `-MD' means `put the output
3456 # in D'.
3457 mkdir conftest.dir
3458 # Copy depcomp to subdir because otherwise we won't find it if we're
3459 # using a relative directory.
3460 cp "$am_depcomp" conftest.dir
3461 cd conftest.dir
3462 # We will build objects and dependencies in a subdirectory because
3463 # it helps to detect inapplicable dependency modes. For instance
3464 # both Tru64's cc and ICC support -MD to output dependencies as a
3465 # side effect of compilation, but ICC will put the dependencies in
3466 # the current directory while Tru64 will put them in the object
3467 # directory.
3468 mkdir sub
3469
3470 am_cv_CC_dependencies_compiler_type=none
3471 if test "$am_compiler_list" = ""; then
3472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3473 fi
3474 for depmode in $am_compiler_list; do
3475 # Setup a source with many dependencies, because some compilers
3476 # like to wrap large dependency lists on column 80 (with \), and
3477 # we should not choose a depcomp mode which is confused by this.
3478 #
3479 # We need to recreate these files for each test, as the compiler may
3480 # overwrite some of them when testing with obscure command lines.
3481 # This happens at least with the AIX C compiler.
3482 : > sub/conftest.c
3483 for i in 1 2 3 4 5 6; do
3484 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3485 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3486 # Solaris 8's {/usr,}/bin/sh.
3487 touch sub/conftst$i.h
3488 done
3489 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3490
3491 case $depmode in
3492 nosideeffect)
3493 # after this tag, mechanisms are not by side-effect, so they'll
3494 # only be used when explicitly requested
3495 if test "x$enable_dependency_tracking" = xyes; then
3496 continue
3497 else
3498 break
3499 fi
3500 ;;
3501 none) break ;;
3502 esac
3503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3504 # mode. It turns out that the SunPro C++ compiler does not properly
3505 # handle `-M -o', and we need to detect this.
3506 if depmode=$depmode \
3507 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3509 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3510 >/dev/null 2>conftest.err &&
3511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3512 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3514 # icc doesn't choke on unknown options, it will just issue warnings
3515 # or remarks (even with -Werror). So we grep stderr for any message
3516 # that says an option was ignored or not supported.
3517 # When given -MP, icc 7.0 and 7.1 complain thusly:
3518 # icc: Command line warning: ignoring option '-M'; no argument required
3519 # The diagnosis changed in icc 8.0:
3520 # icc: Command line remark: option '-MP' not supported
3521 if (grep 'ignoring option' conftest.err ||
3522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3523 am_cv_CC_dependencies_compiler_type=$depmode
3524 break
3525 fi
3526 fi
3527 done
3528
3529 cd ..
3530 rm -rf conftest.dir
3531else
3532 am_cv_CC_dependencies_compiler_type=none
3533fi
3534
3535fi
a8b2ad8d 3536{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3537echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3538CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3539
3540
3541
3542if
3543 test "x$enable_dependency_tracking" != xno \
3544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3545 am__fastdepCC_TRUE=
3546 am__fastdepCC_FALSE='#'
3547else
3548 am__fastdepCC_TRUE='#'
3549 am__fastdepCC_FALSE=
3550fi
3551
3552
b3076f16 3553
a8b2ad8d 3554{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3555echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3556if test "${ac_cv_type_signal+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565#include <sys/types.h>
3566#include <signal.h>
b3076f16 3567
3568int
3569main ()
3570{
a8b2ad8d 3571return *(signal (0, 0)) (0) == 1;
b3076f16 3572 ;
3573 return 0;
3574}
3575_ACEOF
3576rm -f conftest.$ac_objext
a8b2ad8d 3577if { (ac_try="$ac_compile"
3578case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
b3076f16 3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
a8b2ad8d 3590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3591 { (case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_try") 2>&5
b3076f16 3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
b3076f16 3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
a8b2ad8d 3610 ac_cv_type_signal=int
b3076f16 3611else
3612 echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
a8b2ad8d 3615 ac_cv_type_signal=void
b3076f16 3616fi
a8b2ad8d 3617
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3619fi
a8b2ad8d 3620{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3621echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3622
3623cat >>confdefs.h <<_ACEOF
3624#define RETSIGTYPE $ac_cv_type_signal
3625_ACEOF
3626
3627
a8b2ad8d 3628{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3629echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3630if test "${ac_cv_c_const+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633 cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639
3640int
3641main ()
3642{
3643/* FIXME: Include the comments suggested by Paul. */
3644#ifndef __cplusplus
3645 /* Ultrix mips cc rejects this. */
3646 typedef int charset[2];
3647 const charset x;
3648 /* SunOS 4.1.1 cc rejects this. */
3649 char const *const *ccp;
3650 char **p;
3651 /* NEC SVR4.0.2 mips cc rejects this. */
3652 struct point {int x, y;};
3653 static struct point const zero = {0,0};
3654 /* AIX XL C 1.02.0.0 rejects this.
3655 It does not let you subtract one const X* pointer from another in
3656 an arm of an if-expression whose if-part is not a constant
3657 expression */
3658 const char *g = "string";
3659 ccp = &g + (g ? g-g : 0);
3660 /* HPUX 7.0 cc rejects these. */
3661 ++ccp;
3662 p = (char**) ccp;
3663 ccp = (char const *const *) p;
3664 { /* SCO 3.2v4 cc rejects this. */
3665 char *t;
3666 char const *s = 0 ? (char *) 0 : (char const *) 0;
3667
3668 *t++ = 0;
a8b2ad8d 3669 if (s) return 0;
b3076f16 3670 }
3671 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3672 int x[] = {25, 17};
3673 const int *foo = &x[0];
3674 ++foo;
3675 }
3676 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3677 typedef const int *iptr;
3678 iptr p = 0;
3679 ++p;
3680 }
3681 { /* AIX XL C 1.02.0.0 rejects this saying
3682 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3683 struct s { int j; const int *ap[3]; };
3684 struct s *b; b->j = 5;
3685 }
3686 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3687 const int foo = 10;
a8b2ad8d 3688 if (!foo) return 0;
b3076f16 3689 }
a8b2ad8d 3690 return !x[0] && !zero.x;
b3076f16 3691#endif
3692
3693 ;
3694 return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext
a8b2ad8d 3698if { (ac_try="$ac_compile"
3699case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
3703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compile") 2>conftest.er1
b3076f16 3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
a8b2ad8d 3711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3712 { (case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715esac
3716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_try") 2>&5
b3076f16 3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3722 { (case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725esac
3726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
b3076f16 3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_c_const=yes
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
a8b2ad8d 3736 ac_cv_c_const=no
b3076f16 3737fi
a8b2ad8d 3738
3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3740fi
a8b2ad8d 3741{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3742echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3743if test $ac_cv_c_const = no; then
3744
3745cat >>confdefs.h <<\_ACEOF
3746#define const
3747_ACEOF
3748
3749fi
3750
a8b2ad8d 3751{ echo "$as_me:$LINENO: checking for inline" >&5
3752echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
b3076f16 3753if test "${ac_cv_c_inline+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 ac_cv_c_inline=no
3757for ac_kw in inline __inline__ __inline; do
3758 cat >conftest.$ac_ext <<_ACEOF
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
3764#ifndef __cplusplus
3765typedef int foo_t;
3766static $ac_kw foo_t static_foo () {return 0; }
3767$ac_kw foo_t foo () {return 0; }
3768#endif
3769
3770_ACEOF
3771rm -f conftest.$ac_objext
a8b2ad8d 3772if { (ac_try="$ac_compile"
3773case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776esac
3777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compile") 2>conftest.er1
b3076f16 3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
a8b2ad8d 3785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3786 { (case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_try") 2>&5
b3076f16 3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 3796 { (case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799esac
3800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_try") 2>&5
b3076f16 3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
a8b2ad8d 3805 ac_cv_c_inline=$ac_kw
b3076f16 3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
a8b2ad8d 3810
b3076f16 3811fi
a8b2ad8d 3812
3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 test "$ac_cv_c_inline" != no && break
b3076f16 3815done
3816
3817fi
a8b2ad8d 3818{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3819echo "${ECHO_T}$ac_cv_c_inline" >&6; }
b3076f16 3820
3821
3822case $ac_cv_c_inline in
3823 inline | yes) ;;
3824 *)
3825 case $ac_cv_c_inline in
3826 no) ac_val=;;
3827 *) ac_val=$ac_cv_c_inline;;
3828 esac
3829 cat >>confdefs.h <<_ACEOF
3830#ifndef __cplusplus
3831#define inline $ac_val
3832#endif
3833_ACEOF
3834 ;;
3835esac
3836
3837
3838for ac_prog in gawk mawk nawk awk
3839do
3840 # Extract the first word of "$ac_prog", so it can be a program name with args.
3841set dummy $ac_prog; ac_word=$2
a8b2ad8d 3842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3844if test "${ac_cv_prog_AWK+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 if test -n "$AWK"; then
3848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3849else
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3857 ac_cv_prog_AWK="$ac_prog"
3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861done
3862done
a8b2ad8d 3863IFS=$as_save_IFS
b3076f16 3864
3865fi
3866fi
3867AWK=$ac_cv_prog_AWK
3868if test -n "$AWK"; then
a8b2ad8d 3869 { echo "$as_me:$LINENO: result: $AWK" >&5
3870echo "${ECHO_T}$AWK" >&6; }
b3076f16 3871else
a8b2ad8d 3872 { echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6; }
b3076f16 3874fi
3875
a8b2ad8d 3876
b3076f16 3877 test -n "$AWK" && break
3878done
3879
3880ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3887set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3890if test "${ac_cv_prog_CC+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC="$CC" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3903 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908done
a8b2ad8d 3909IFS=$as_save_IFS
b3076f16 3910
3911fi
3912fi
3913CC=$ac_cv_prog_CC
3914if test -n "$CC"; then
a8b2ad8d 3915 { echo "$as_me:$LINENO: result: $CC" >&5
3916echo "${ECHO_T}$CC" >&6; }
b3076f16 3917else
a8b2ad8d 3918 { echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6; }
b3076f16 3920fi
3921
a8b2ad8d 3922
b3076f16 3923fi
3924if test -z "$ac_cv_prog_CC"; then
3925 ac_ct_CC=$CC
3926 # Extract the first word of "gcc", so it can be a program name with args.
3927set dummy gcc; ac_word=$2
a8b2ad8d 3928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 if test -n "$ac_ct_CC"; then
3934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3943 ac_cv_prog_ac_ct_CC="gcc"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947done
3948done
a8b2ad8d 3949IFS=$as_save_IFS
b3076f16 3950
3951fi
3952fi
3953ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954if test -n "$ac_ct_CC"; then
a8b2ad8d 3955 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3956echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3957else
a8b2ad8d 3958 { echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6; }
b3076f16 3960fi
3961
a8b2ad8d 3962 if test "x$ac_ct_CC" = x; then
3963 CC=""
3964 else
3965 case $cross_compiling:$ac_tool_warned in
3966yes:)
3967{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3968whose name does not start with the host triplet. If you think this
3969configuration is useful to you, please write to autoconf@gnu.org." >&5
3970echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3971whose name does not start with the host triplet. If you think this
3972configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3973ac_tool_warned=yes ;;
3974esac
3975 CC=$ac_ct_CC
3976 fi
b3076f16 3977else
3978 CC="$ac_cv_prog_CC"
3979fi
3980
3981if test -z "$CC"; then
a8b2ad8d 3982 if test -n "$ac_tool_prefix"; then
3983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3984set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3987if test "${ac_cv_prog_CC+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990 if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4000 ac_cv_prog_CC="${ac_tool_prefix}cc"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004done
4005done
a8b2ad8d 4006IFS=$as_save_IFS
b3076f16 4007
4008fi
4009fi
4010CC=$ac_cv_prog_CC
4011if test -n "$CC"; then
a8b2ad8d 4012 { echo "$as_me:$LINENO: result: $CC" >&5
4013echo "${ECHO_T}$CC" >&6; }
b3076f16 4014else
a8b2ad8d 4015 { echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6; }
b3076f16 4017fi
4018
b3076f16 4019
a8b2ad8d 4020 fi
b3076f16 4021fi
4022if test -z "$CC"; then
4023 # Extract the first word of "cc", so it can be a program name with args.
4024set dummy cc; ac_word=$2
a8b2ad8d 4025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4027if test "${ac_cv_prog_CC+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032else
4033 ac_prog_rejected=no
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4042 ac_prog_rejected=yes
4043 continue
4044 fi
4045 ac_cv_prog_CC="cc"
4046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049done
4050done
a8b2ad8d 4051IFS=$as_save_IFS
b3076f16 4052
4053if test $ac_prog_rejected = yes; then
4054 # We found a bogon in the path, so make sure we never use it.
4055 set dummy $ac_cv_prog_CC
4056 shift
4057 if test $# != 0; then
4058 # We chose a different compiler from the bogus one.
4059 # However, it has the same basename, so the bogon will be chosen
4060 # first if we set CC to just the basename; use the full file name.
4061 shift
4062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4063 fi
4064fi
4065fi
4066fi
4067CC=$ac_cv_prog_CC
4068if test -n "$CC"; then
a8b2ad8d 4069 { echo "$as_me:$LINENO: result: $CC" >&5
4070echo "${ECHO_T}$CC" >&6; }
b3076f16 4071else
a8b2ad8d 4072 { echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6; }
b3076f16 4074fi
4075
a8b2ad8d 4076
b3076f16 4077fi
4078if test -z "$CC"; then
4079 if test -n "$ac_tool_prefix"; then
a8b2ad8d 4080 for ac_prog in cl.exe
b3076f16 4081 do
4082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 4084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4086if test "${ac_cv_prog_CC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091else
4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103done
4104done
a8b2ad8d 4105IFS=$as_save_IFS
b3076f16 4106
4107fi
4108fi
4109CC=$ac_cv_prog_CC
4110if test -n "$CC"; then
a8b2ad8d 4111 { echo "$as_me:$LINENO: result: $CC" >&5
4112echo "${ECHO_T}$CC" >&6; }
b3076f16 4113else
a8b2ad8d 4114 { echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6; }
b3076f16 4116fi
4117
a8b2ad8d 4118
b3076f16 4119 test -n "$CC" && break
4120 done
4121fi
4122if test -z "$CC"; then
4123 ac_ct_CC=$CC
a8b2ad8d 4124 for ac_prog in cl.exe
b3076f16 4125do
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127set dummy $ac_prog; ac_word=$2
a8b2ad8d 4128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 if test -n "$ac_ct_CC"; then
4134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4135else
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4143 ac_cv_prog_ac_ct_CC="$ac_prog"
4144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147done
4148done
a8b2ad8d 4149IFS=$as_save_IFS
b3076f16 4150
4151fi
4152fi
4153ac_ct_CC=$ac_cv_prog_ac_ct_CC
4154if test -n "$ac_ct_CC"; then
a8b2ad8d 4155 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4156echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4157else
a8b2ad8d 4158 { echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6; }
b3076f16 4160fi
4161
a8b2ad8d 4162
b3076f16 4163 test -n "$ac_ct_CC" && break
4164done
4165
a8b2ad8d 4166 if test "x$ac_ct_CC" = x; then
4167 CC=""
4168 else
4169 case $cross_compiling:$ac_tool_warned in
4170yes:)
4171{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4172whose name does not start with the host triplet. If you think this
4173configuration is useful to you, please write to autoconf@gnu.org." >&5
4174echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4175whose name does not start with the host triplet. If you think this
4176configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4177ac_tool_warned=yes ;;
4178esac
4179 CC=$ac_ct_CC
4180 fi
b3076f16 4181fi
4182
4183fi
4184
4185
4186test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4187See \`config.log' for more details." >&5
4188echo "$as_me: error: no acceptable C compiler found in \$PATH
4189See \`config.log' for more details." >&2;}
4190 { (exit 1); exit 1; }; }
4191
4192# Provide some information about the compiler.
a8b2ad8d 4193echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4194ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4195{ (ac_try="$ac_compiler --version >&5"
4196case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }
a8b2ad8d 4205{ (ac_try="$ac_compiler -v >&5"
4206case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }
a8b2ad8d 4215{ (ac_try="$ac_compiler -V >&5"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }
4225
a8b2ad8d 4226{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4227echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4228if test "${ac_cv_c_compiler_gnu+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230else
4231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237
4238int
4239main ()
4240{
4241#ifndef __GNUC__
4242 choke me
4243#endif
4244
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
a8b2ad8d 4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
b3076f16 4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
a8b2ad8d 4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
b3076f16 4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
b3076f16 4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_compiler_gnu=yes
4284else
4285 echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
a8b2ad8d 4288 ac_compiler_gnu=no
b3076f16 4289fi
a8b2ad8d 4290
4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4292ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294fi
a8b2ad8d 4295{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4296echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4297GCC=`test $ac_compiler_gnu = yes && echo yes`
4298ac_test_CFLAGS=${CFLAGS+set}
4299ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4300{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4301echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4302if test "${ac_cv_prog_cc_g+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
a8b2ad8d 4305 ac_save_c_werror_flag=$ac_c_werror_flag
4306 ac_c_werror_flag=yes
4307 ac_cv_prog_cc_g=no
4308 CFLAGS="-g"
4309 cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
4315
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324rm -f conftest.$ac_objext
4325if { (ac_try="$ac_compile"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_compile") 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4339 { (case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_prog_cc_g=yes
4359else
4360 echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 CFLAGS=""
4364 cat >conftest.$ac_ext <<_ACEOF
4365/* confdefs.h. */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h. */
4370
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379rm -f conftest.$ac_objext
4380if { (ac_try="$ac_compile"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_compile") 2>conftest.er1
4387 ac_status=$?
4388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4394 { (case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_try") 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; } &&
4403 { ac_try='test -s conftest.$ac_objext'
4404 { (case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407esac
4408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409 (eval "$ac_try") 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 :
4414else
4415 echo "$as_me: failed program was:" >&5
4416sed 's/^/| /' conftest.$ac_ext >&5
4417
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4419 CFLAGS="-g"
4420 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
4426
4427int
4428main ()
4429{
4430
4431 ;
4432 return 0;
4433}
4434_ACEOF
4435rm -f conftest.$ac_objext
a8b2ad8d 4436if { (ac_try="$ac_compile"
4437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_compile") 2>conftest.er1
b3076f16 4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
a8b2ad8d 4449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4450 { (case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_try") 2>&5
b3076f16 4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; } &&
4459 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4460 { (case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463esac
4464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_try") 2>&5
b3076f16 4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_prog_cc_g=yes
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
a8b2ad8d 4474
4475fi
4476
4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478fi
4479
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4481fi
a8b2ad8d 4482
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4485fi
a8b2ad8d 4486{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4487echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4488if test "$ac_test_CFLAGS" = set; then
4489 CFLAGS=$ac_save_CFLAGS
4490elif test $ac_cv_prog_cc_g = yes; then
4491 if test "$GCC" = yes; then
4492 CFLAGS="-g -O2"
4493 else
4494 CFLAGS="-g"
4495 fi
4496else
4497 if test "$GCC" = yes; then
4498 CFLAGS="-O2"
4499 else
4500 CFLAGS=
4501 fi
4502fi
a8b2ad8d 4503{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4504echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4505if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
a8b2ad8d 4508 ac_cv_prog_cc_c89=no
b3076f16 4509ac_save_CC=$CC
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516#include <stdarg.h>
4517#include <stdio.h>
4518#include <sys/types.h>
4519#include <sys/stat.h>
4520/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4521struct buf { int x; };
4522FILE * (*rcsopen) (struct buf *, struct stat *, int);
4523static char *e (p, i)
4524 char **p;
4525 int i;
4526{
4527 return p[i];
4528}
4529static char *f (char * (*g) (char **, int), char **p, ...)
4530{
4531 char *s;
4532 va_list v;
4533 va_start (v,p);
4534 s = g (p, va_arg (v,int));
4535 va_end (v);
4536 return s;
4537}
4538
4539/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4540 function prototypes and stuff, but not '\xHH' hex character constants.
4541 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4542 as 'x'. The following induces an error, until -std is added to get
b3076f16 4543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4544 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4545 that's true only with -std. */
b3076f16 4546int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4547
a8b2ad8d 4548/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4549 inside strings and character constants. */
4550#define FOO(x) 'x'
4551int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4552
b3076f16 4553int test (int i, double x);
4554struct s1 {int (*f) (int a);};
4555struct s2 {int (*f) (double a);};
4556int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4557int argc;
4558char **argv;
4559int
4560main ()
4561{
4562return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4563 ;
4564 return 0;
4565}
4566_ACEOF
a8b2ad8d 4567for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4569do
4570 CC="$ac_save_CC $ac_arg"
4571 rm -f conftest.$ac_objext
a8b2ad8d 4572if { (ac_try="$ac_compile"
4573case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_compile") 2>conftest.er1
b3076f16 4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } &&
a8b2ad8d 4585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4586 { (case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_try") 2>&5
b3076f16 4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; } &&
4595 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 4596 { (case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
4600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_try") 2>&5
b3076f16 4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
a8b2ad8d 4605 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
a8b2ad8d 4610
b3076f16 4611fi
a8b2ad8d 4612
4613rm -f core conftest.err conftest.$ac_objext
4614 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4615done
a8b2ad8d 4616rm -f conftest.$ac_ext
b3076f16 4617CC=$ac_save_CC
4618
4619fi
a8b2ad8d 4620# AC_CACHE_VAL
4621case "x$ac_cv_prog_cc_c89" in
4622 x)
4623 { echo "$as_me:$LINENO: result: none needed" >&5
4624echo "${ECHO_T}none needed" >&6; } ;;
4625 xno)
4626 { echo "$as_me:$LINENO: result: unsupported" >&5
4627echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4628 *)
a8b2ad8d 4629 CC="$CC $ac_cv_prog_cc_c89"
4630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4631echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4632esac
4633
b3076f16 4634
b3076f16 4635ac_ext=c
4636ac_cpp='$CPP $CPPFLAGS'
4637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
ec1a68c8 4641depcc="$CC" am_compiler_list=
4642
a8b2ad8d 4643{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4644echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4645if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4649 # We make a subdir and do the tests there. Otherwise we can end up
4650 # making bogus files that we don't know about and never remove. For
4651 # instance it was reported that on HP-UX the gcc test will end up
4652 # making a dummy file named `D' -- because `-MD' means `put the output
4653 # in D'.
4654 mkdir conftest.dir
4655 # Copy depcomp to subdir because otherwise we won't find it if we're
4656 # using a relative directory.
4657 cp "$am_depcomp" conftest.dir
4658 cd conftest.dir
4659 # We will build objects and dependencies in a subdirectory because
4660 # it helps to detect inapplicable dependency modes. For instance
4661 # both Tru64's cc and ICC support -MD to output dependencies as a
4662 # side effect of compilation, but ICC will put the dependencies in
4663 # the current directory while Tru64 will put them in the object
4664 # directory.
4665 mkdir sub
4666
4667 am_cv_CC_dependencies_compiler_type=none
4668 if test "$am_compiler_list" = ""; then
4669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4670 fi
4671 for depmode in $am_compiler_list; do
4672 # Setup a source with many dependencies, because some compilers
4673 # like to wrap large dependency lists on column 80 (with \), and
4674 # we should not choose a depcomp mode which is confused by this.
4675 #
4676 # We need to recreate these files for each test, as the compiler may
4677 # overwrite some of them when testing with obscure command lines.
4678 # This happens at least with the AIX C compiler.
4679 : > sub/conftest.c
4680 for i in 1 2 3 4 5 6; do
4681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4682 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4683 # Solaris 8's {/usr,}/bin/sh.
4684 touch sub/conftst$i.h
4685 done
4686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4687
4688 case $depmode in
4689 nosideeffect)
4690 # after this tag, mechanisms are not by side-effect, so they'll
4691 # only be used when explicitly requested
4692 if test "x$enable_dependency_tracking" = xyes; then
4693 continue
4694 else
4695 break
4696 fi
4697 ;;
4698 none) break ;;
4699 esac
4700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4701 # mode. It turns out that the SunPro C++ compiler does not properly
4702 # handle `-M -o', and we need to detect this.
4703 if depmode=$depmode \
4704 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4706 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4707 >/dev/null 2>conftest.err &&
4708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4709 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4711 # icc doesn't choke on unknown options, it will just issue warnings
4712 # or remarks (even with -Werror). So we grep stderr for any message
4713 # that says an option was ignored or not supported.
4714 # When given -MP, icc 7.0 and 7.1 complain thusly:
4715 # icc: Command line warning: ignoring option '-M'; no argument required
4716 # The diagnosis changed in icc 8.0:
4717 # icc: Command line remark: option '-MP' not supported
4718 if (grep 'ignoring option' conftest.err ||
4719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4720 am_cv_CC_dependencies_compiler_type=$depmode
4721 break
4722 fi
4723 fi
4724 done
4725
4726 cd ..
4727 rm -rf conftest.dir
4728else
4729 am_cv_CC_dependencies_compiler_type=none
4730fi
4731
4732fi
a8b2ad8d 4733{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4734echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4735CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4736
4737
4738
4739if
4740 test "x$enable_dependency_tracking" != xno \
4741 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4742 am__fastdepCC_TRUE=
4743 am__fastdepCC_FALSE='#'
4744else
4745 am__fastdepCC_TRUE='#'
4746 am__fastdepCC_FALSE=
4747fi
4748
4749
b3076f16 4750# Find a good install program. We prefer a C program (faster),
4751# so one script is as good as another. But avoid the broken or
4752# incompatible versions:
4753# SysV /etc/install, /usr/sbin/install
4754# SunOS /usr/etc/install
4755# IRIX /sbin/install
4756# AIX /bin/install
4757# AmigaOS /C/install, which installs bootblocks on floppy discs
4758# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4759# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4760# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4761# OS/2's system install, which has a completely different semantic
4762# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4763{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4764echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4765if test -z "$INSTALL"; then
4766if test "${ac_cv_path_install+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 # Account for people who put trailing slashes in PATH elements.
4775case $as_dir/ in
4776 ./ | .// | /cC/* | \
4777 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4778 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4779 /usr/ucb/* ) ;;
4780 *)
4781 # OSF1 and SCO ODT 3.0 have their own names for install.
4782 # Don't use installbsd from OSF since it installs stuff as root
4783 # by default.
4784 for ac_prog in ginstall scoinst install; do
4785 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4786 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4787 if test $ac_prog = install &&
4788 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4789 # AIX install. It has an incompatible calling convention.
4790 :
4791 elif test $ac_prog = install &&
4792 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4793 # program-specific install script used by HP pwplus--don't use.
4794 :
4795 else
4796 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4797 break 3
4798 fi
4799 fi
4800 done
4801 done
4802 ;;
4803esac
4804done
a8b2ad8d 4805IFS=$as_save_IFS
b3076f16 4806
4807
4808fi
4809 if test "${ac_cv_path_install+set}" = set; then
4810 INSTALL=$ac_cv_path_install
4811 else
a8b2ad8d 4812 # As a last resort, use the slow shell script. Don't cache a
4813 # value for INSTALL within a source directory, because that will
b3076f16 4814 # break other packages using the cache if that directory is
a8b2ad8d 4815 # removed, or if the value is a relative name.
b3076f16 4816 INSTALL=$ac_install_sh
4817 fi
4818fi
a8b2ad8d 4819{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4820echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4821
4822# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4823# It thinks the first close brace ends the variable substitution.
4824test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4825
4826test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4827
4828test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4829
2f61d1d7 4830
35305a49 4831if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4836if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
35305a49 4839 if test -n "$RANLIB"; then
4840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4841else
2f61d1d7 4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
35305a49 4847 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
2f61d1d7 4852 fi
35305a49 4853done
2f61d1d7 4854done
a8b2ad8d 4855IFS=$as_save_IFS
2f61d1d7 4856
b3076f16 4857fi
35305a49 4858fi
4859RANLIB=$ac_cv_prog_RANLIB
4860if test -n "$RANLIB"; then
a8b2ad8d 4861 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4862echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4863else
a8b2ad8d 4864 { echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6; }
2f61d1d7 4866fi
2f61d1d7 4867
a8b2ad8d 4868
b3076f16 4869fi
35305a49 4870if test -z "$ac_cv_prog_RANLIB"; then
4871 ac_ct_RANLIB=$RANLIB
4872 # Extract the first word of "ranlib", so it can be a program name with args.
4873set dummy ranlib; ac_word=$2
a8b2ad8d 4874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4876if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
35305a49 4879 if test -n "$ac_ct_RANLIB"; then
4880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4881else
35305a49 4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4889 ac_cv_prog_ac_ct_RANLIB="ranlib"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893done
4894done
a8b2ad8d 4895IFS=$as_save_IFS
35305a49 4896
b3076f16 4897fi
2f61d1d7 4898fi
35305a49 4899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4900if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4901 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4902echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4903else
a8b2ad8d 4904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
b3076f16 4906fi
4907
a8b2ad8d 4908 if test "x$ac_ct_RANLIB" = x; then
4909 RANLIB=":"
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912yes:)
4913{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4914whose name does not start with the host triplet. If you think this
4915configuration is useful to you, please write to autoconf@gnu.org." >&5
4916echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4917whose name does not start with the host triplet. If you think this
4918configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 RANLIB=$ac_ct_RANLIB
4922 fi
2f61d1d7 4923else
35305a49 4924 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4925fi
2f61d1d7 4926
2f61d1d7 4927
a8b2ad8d 4928{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4929echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2f61d1d7 4930LN_S=$as_ln_s
4931if test "$LN_S" = "ln -s"; then
a8b2ad8d 4932 { echo "$as_me:$LINENO: result: yes" >&5
4933echo "${ECHO_T}yes" >&6; }
2f61d1d7 4934else
a8b2ad8d 4935 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4936echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4937fi
4938
a8b2ad8d 4939{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4940echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4941set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4942if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2f61d1d7 4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
35305a49 4945 cat >conftest.make <<\_ACEOF
a8b2ad8d 4946SHELL = /bin/sh
35305a49 4947all:
a8b2ad8d 4948 @echo '@@@%%%=$(MAKE)=@@@%%%'
35305a49 4949_ACEOF
4950# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 4951case `${MAKE-make} -f conftest.make 2>/dev/null` in
4952 *@@@%%%=?*=@@@%%%*)
4953 eval ac_cv_prog_make_${ac_make}_set=yes;;
4954 *)
4955 eval ac_cv_prog_make_${ac_make}_set=no;;
4956esac
35305a49 4957rm -f conftest.make
4958fi
a8b2ad8d 4959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4960 { echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6; }
35305a49 4962 SET_MAKE=
4963else
a8b2ad8d 4964 { echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6; }
35305a49 4966 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4967fi
2f61d1d7 4968
4969ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
a8b2ad8d 4974{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4975echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2f61d1d7 4976# On Suns, sometimes $CPP names a directory.
4977if test -n "$CPP" && test -d "$CPP"; then
4978 CPP=
4979fi
4980if test -z "$CPP"; then
4981 if test "${ac_cv_prog_CPP+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 # Double quotes because CPP needs to be expanded
4985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 do
4987 ac_preproc_ok=false
4988for ac_c_preproc_warn_flag in '' yes
4989do
4990 # Use a header file that comes with gcc, so configuring glibc
b3076f16 4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#ifdef __STDC__
5003# include <limits.h>
5004#else
5005# include <assert.h>
5006#endif
5007 Syntax error
5008_ACEOF
a8b2ad8d 5009if { (ac_try="$ac_cpp conftest.$ac_ext"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
5014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null; then
5022 if test -s conftest.err; then
5023 ac_cpp_err=$ac_c_preproc_warn_flag
5024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5025 else
5026 ac_cpp_err=
5027 fi
5028else
5029 ac_cpp_err=yes
5030fi
5031if test -z "$ac_cpp_err"; then
5032 :
5033else
5034 echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037 # Broken: fails on valid input.
5038continue
5039fi
a8b2ad8d 5040
b3076f16 5041rm -f conftest.err conftest.$ac_ext
5042
a8b2ad8d 5043 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16 5044 # can be detected and how.
5045 cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h. */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h. */
5051#include <ac_nonexistent.h>
5052_ACEOF
a8b2ad8d 5053if { (ac_try="$ac_cpp conftest.$ac_ext"
5054case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057esac
5058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } >/dev/null; then
5066 if test -s conftest.err; then
5067 ac_cpp_err=$ac_c_preproc_warn_flag
5068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5069 else
5070 ac_cpp_err=
5071 fi
5072else
5073 ac_cpp_err=yes
5074fi
5075if test -z "$ac_cpp_err"; then
5076 # Broken: success on invalid input.
5077continue
5078else
5079 echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 # Passes both tests.
5083ac_preproc_ok=:
5084break
5085fi
a8b2ad8d 5086
b3076f16 5087rm -f conftest.err conftest.$ac_ext
5088
5089done
5090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091rm -f conftest.err conftest.$ac_ext
5092if $ac_preproc_ok; then
5093 break
5094fi
5095
5096 done
5097 ac_cv_prog_CPP=$CPP
5098
5099fi
5100 CPP=$ac_cv_prog_CPP
5101else
5102 ac_cv_prog_CPP=$CPP
5103fi
a8b2ad8d 5104{ echo "$as_me:$LINENO: result: $CPP" >&5
5105echo "${ECHO_T}$CPP" >&6; }
b3076f16 5106ac_preproc_ok=false
5107for ac_c_preproc_warn_flag in '' yes
5108do
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
5121#ifdef __STDC__
5122# include <limits.h>
5123#else
5124# include <assert.h>
5125#endif
5126 Syntax error
5127_ACEOF
a8b2ad8d 5128if { (ac_try="$ac_cpp conftest.$ac_ext"
5129case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } >/dev/null; then
5141 if test -s conftest.err; then
5142 ac_cpp_err=$ac_c_preproc_warn_flag
5143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5144 else
5145 ac_cpp_err=
5146 fi
5147else
5148 ac_cpp_err=yes
5149fi
5150if test -z "$ac_cpp_err"; then
5151 :
5152else
5153 echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 # Broken: fails on valid input.
5157continue
5158fi
a8b2ad8d 5159
b3076f16 5160rm -f conftest.err conftest.$ac_ext
5161
a8b2ad8d 5162 # OK, works on sane cases. Now check whether nonexistent headers
b3076f16 5163 # can be detected and how.
5164 cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170#include <ac_nonexistent.h>
5171_ACEOF
a8b2ad8d 5172if { (ac_try="$ac_cpp conftest.$ac_ext"
5173case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176esac
5177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null; then
5185 if test -s conftest.err; then
5186 ac_cpp_err=$ac_c_preproc_warn_flag
5187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5188 else
5189 ac_cpp_err=
5190 fi
5191else
5192 ac_cpp_err=yes
5193fi
5194if test -z "$ac_cpp_err"; then
5195 # Broken: success on invalid input.
5196continue
5197else
5198 echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 # Passes both tests.
5202ac_preproc_ok=:
5203break
5204fi
a8b2ad8d 5205
b3076f16 5206rm -f conftest.err conftest.$ac_ext
5207
5208done
5209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210rm -f conftest.err conftest.$ac_ext
5211if $ac_preproc_ok; then
5212 :
5213else
5214 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5215See \`config.log' for more details." >&5
5216echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5217See \`config.log' for more details." >&2;}
5218 { (exit 1); exit 1; }; }
5219fi
5220
2f61d1d7 5221ac_ext=c
5222ac_cpp='$CPP $CPPFLAGS'
5223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226
5227
a8b2ad8d 5228{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5229echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5230if test "${ac_cv_path_GREP+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 # Extract the first word of "grep ggrep" to use in msg output
5234if test -z "$GREP"; then
5235set dummy grep ggrep; ac_prog_name=$2
5236if test "${ac_cv_path_GREP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 ac_path_GREP_found=false
5240# Loop through the user's path and test for each of PROGNAME-LIST
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in grep ggrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5249 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5250 # Check for GNU ac_path_GREP and select it if it is found.
5251 # Check for GNU $ac_path_GREP
5252case `"$ac_path_GREP" --version 2>&1` in
5253*GNU*)
5254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5255*)
5256 ac_count=0
5257 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5258 while :
5259 do
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 echo 'GREP' >> "conftest.nl"
5264 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 ac_count=`expr $ac_count + 1`
5267 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_GREP="$ac_path_GREP"
5270 ac_path_GREP_max=$ac_count
5271 fi
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5274 done
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276esac
5277
5278
5279 $ac_path_GREP_found && break 3
5280 done
5281done
5282
5283done
5284IFS=$as_save_IFS
5285
5286
5287fi
5288
5289GREP="$ac_cv_path_GREP"
5290if test -z "$GREP"; then
5291 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5292echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5293 { (exit 1); exit 1; }; }
5294fi
5295
5296else
5297 ac_cv_path_GREP=$GREP
5298fi
5299
5300
5301fi
5302{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5303echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5304 GREP="$ac_cv_path_GREP"
5305
5306
5307{ echo "$as_me:$LINENO: checking for egrep" >&5
5308echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5309if test "${ac_cv_path_EGREP+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5313 then ac_cv_path_EGREP="$GREP -E"
5314 else
5315 # Extract the first word of "egrep" to use in msg output
5316if test -z "$EGREP"; then
5317set dummy egrep; ac_prog_name=$2
5318if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
a8b2ad8d 5321 ac_path_EGREP_found=false
5322# Loop through the user's path and test for each of PROGNAME-LIST
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in egrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5332 # Check for GNU ac_path_EGREP and select it if it is found.
5333 # Check for GNU $ac_path_EGREP
5334case `"$ac_path_EGREP" --version 2>&1` in
5335*GNU*)
5336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5337*)
5338 ac_count=0
5339 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 echo 'EGREP' >> "conftest.nl"
5346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 ac_count=`expr $ac_count + 1`
5349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_EGREP="$ac_path_EGREP"
5352 ac_path_EGREP_max=$ac_count
35305a49 5353 fi
a8b2ad8d 5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358esac
5359
5360
5361 $ac_path_EGREP_found && break 3
5362 done
5363done
5364
5365done
5366IFS=$as_save_IFS
5367
5368
5369fi
5370
5371EGREP="$ac_cv_path_EGREP"
5372if test -z "$EGREP"; then
5373 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5374echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5375 { (exit 1); exit 1; }; }
5376fi
5377
5378else
5379 ac_cv_path_EGREP=$EGREP
5380fi
5381
5382
5383 fi
2f61d1d7 5384fi
a8b2ad8d 5385{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5386echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5387 EGREP="$ac_cv_path_EGREP"
35305a49 5388
b3076f16 5389
5390if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5391 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5392echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 5393if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395else
5396 ac_pattern="Autoconf.*'x'"
5397 cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h. */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h. */
5403#include <sgtty.h>
5404Autoconf TIOCGETP
5405_ACEOF
5406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5408 ac_cv_prog_gcc_traditional=yes
5409else
5410 ac_cv_prog_gcc_traditional=no
5411fi
5412rm -f conftest*
5413
5414
5415 if test $ac_cv_prog_gcc_traditional = no; then
5416 cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422#include <termio.h>
5423Autoconf TCGETA
5424_ACEOF
5425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5427 ac_cv_prog_gcc_traditional=yes
5428fi
5429rm -f conftest*
5430
5431 fi
5432fi
a8b2ad8d 5433{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5434echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 5435 if test $ac_cv_prog_gcc_traditional = yes; then
5436 CC="$CC -traditional"
5437 fi
5438fi
5439
5b1166fd 5440# Extract the first word of "gmake", so it can be a program name with args.
5441set dummy gmake; ac_word=$2
a8b2ad8d 5442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5444if test "${ac_cv_prog_MAKER+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 if test -n "$MAKER"; then
5448 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
a8b2ad8d 5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5457 ac_cv_prog_MAKER="gmake"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462done
a8b2ad8d 5463IFS=$as_save_IFS
5b1166fd 5464
5465 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5466fi
5467fi
5468MAKER=$ac_cv_prog_MAKER
5469if test -n "$MAKER"; then
a8b2ad8d 5470 { echo "$as_me:$LINENO: result: $MAKER" >&5
5471echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5472else
a8b2ad8d 5473 { echo "$as_me:$LINENO: result: no" >&5
5474echo "${ECHO_T}no" >&6; }
5b1166fd 5475fi
5476
b3076f16 5477
a8b2ad8d 5478
b3076f16 5479case $target in
5480 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5481 ANSI_SRC=""
5482 ;;
5483 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5484 ANSI_SRC=""
b3076f16 5485 ;;
5486 *-solaris*)
5487 EXTRA_DEFINE="-D__SOLARIS__"
5488 ANSI_SRC="-fno-builtin"
5489 ;;
5490 *-cygwin)
5491 ANSI_SRC="-fno-builtin"
5492 ;;
5493 *-linux*)
5494 EXTRA_DEFINE="-D_GNU_SOURCE"
5495 ANSI_SRC=""
5496 ;;
5497 *)
5498 ANSI_SRC=""
5499 ;;
5500esac
5501CFLAGS="$CFLAGS $EXTRA_DEFINE"
5502
5503
a8b2ad8d 5504{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5505echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 5506if test "${ac_cv_lib_socket_socket+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509 ac_check_lib_save_LIBS=$LIBS
5510LIBS="-lsocket $LIBS"
5511cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h. */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h. */
5517
a8b2ad8d 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. */
b3076f16 5521#ifdef __cplusplus
5522extern "C"
5523#endif
b3076f16 5524char socket ();
5525int
5526main ()
5527{
a8b2ad8d 5528return socket ();
b3076f16 5529 ;
5530 return 0;
5531}
5532_ACEOF
5533rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5534if { (ac_try="$ac_link"
5535case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_link") 2>conftest.er1
b3076f16 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); } &&
a8b2ad8d 5547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548 { (case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_try") 2>&5
b3076f16 5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; } &&
5557 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5558 { (case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_try") 2>&5
b3076f16 5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_lib_socket_socket=yes
5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
a8b2ad8d 5572 ac_cv_lib_socket_socket=no
b3076f16 5573fi
a8b2ad8d 5574
5575rm -f core conftest.err conftest.$ac_objext \
b3076f16 5576 conftest$ac_exeext conftest.$ac_ext
5577LIBS=$ac_check_lib_save_LIBS
5578fi
a8b2ad8d 5579{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5580echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 5581if test $ac_cv_lib_socket_socket = yes; then
5582 cat >>confdefs.h <<_ACEOF
5583#define HAVE_LIBSOCKET 1
5584_ACEOF
5585
5586 LIBS="-lsocket $LIBS"
5587
5588fi
5589
5590
a8b2ad8d 5591{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5592echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 5593if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 ac_check_lib_save_LIBS=$LIBS
5597LIBS="-lnsl $LIBS"
5598cat >conftest.$ac_ext <<_ACEOF
5599/* confdefs.h. */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h. */
5604
a8b2ad8d 5605/* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
b3076f16 5608#ifdef __cplusplus
5609extern "C"
5610#endif
b3076f16 5611char gethostbyname ();
5612int
5613main ()
5614{
a8b2ad8d 5615return gethostbyname ();
b3076f16 5616 ;
5617 return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5621if { (ac_try="$ac_link"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_link") 2>conftest.er1
b3076f16 5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
a8b2ad8d 5634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5635 { (case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638esac
5639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_try") 2>&5
b3076f16 5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5645 { (case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648esac
5649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_try") 2>&5
b3076f16 5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_lib_nsl_gethostbyname=yes
5655else
5656 echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
5658
a8b2ad8d 5659 ac_cv_lib_nsl_gethostbyname=no
b3076f16 5660fi
a8b2ad8d 5661
5662rm -f core conftest.err conftest.$ac_objext \
b3076f16 5663 conftest$ac_exeext conftest.$ac_ext
5664LIBS=$ac_check_lib_save_LIBS
5665fi
a8b2ad8d 5666{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5667echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 5668if test $ac_cv_lib_nsl_gethostbyname = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670#define HAVE_LIBNSL 1
5671_ACEOF
5672
5673 LIBS="-lnsl $LIBS"
5674
5675fi
5676
5677
a8b2ad8d 5678{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5679echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 5680if test "${ac_cv_lib_m_main+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683 ac_check_lib_save_LIBS=$LIBS
5684LIBS="-lm $LIBS"
5685cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h. */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h. */
5691
5692
5693int
5694main ()
5695{
a8b2ad8d 5696return main ();
b3076f16 5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5702if { (ac_try="$ac_link"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_link") 2>conftest.er1
b3076f16 5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
a8b2ad8d 5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719esac
5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_try") 2>&5
b3076f16 5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5726 { (case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_try") 2>&5
b3076f16 5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5735 ac_cv_lib_m_main=yes
5736else
5737 echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
a8b2ad8d 5740 ac_cv_lib_m_main=no
b3076f16 5741fi
a8b2ad8d 5742
5743rm -f core conftest.err conftest.$ac_objext \
b3076f16 5744 conftest$ac_exeext conftest.$ac_ext
5745LIBS=$ac_check_lib_save_LIBS
5746fi
a8b2ad8d 5747{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5748echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 5749if test $ac_cv_lib_m_main = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751#define HAVE_LIBM 1
5752_ACEOF
5753
5754 LIBS="-lm $LIBS"
5755
5756fi
5757
5758
a8b2ad8d 5759{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5760echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5761if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764 ac_check_lib_save_LIBS=$LIBS
5765LIBS="-lGeoIP $LIBS"
5766cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h. */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h. */
5772
a8b2ad8d 5773/* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
21f6caee 5776#ifdef __cplusplus
5777extern "C"
5778#endif
21f6caee 5779char GeoIP_open ();
5780int
5781main ()
5782{
a8b2ad8d 5783return GeoIP_open ();
21f6caee 5784 ;
5785 return 0;
5786}
5787_ACEOF
5788rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5789if { (ac_try="$ac_link"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_link") 2>conftest.er1
21f6caee 5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
a8b2ad8d 5802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
21f6caee 5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 5813 { (case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
21f6caee 5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_lib_GeoIP_GeoIP_open=yes
5823else
5824 echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
a8b2ad8d 5827 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5828fi
a8b2ad8d 5829
5830rm -f core conftest.err conftest.$ac_objext \
21f6caee 5831 conftest$ac_exeext conftest.$ac_ext
5832LIBS=$ac_check_lib_save_LIBS
5833fi
a8b2ad8d 5834{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5835echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5836if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5837 cat >>confdefs.h <<_ACEOF
5838#define HAVE_LIBGEOIP 1
5839_ACEOF
5840
5841 LIBS="-lGeoIP $LIBS"
5842
5843fi
5844
5845
a8b2ad8d 5846{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5847echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 5848if test "${ac_cv_header_stdc+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851 cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
5857#include <stdlib.h>
5858#include <stdarg.h>
5859#include <string.h>
5860#include <float.h>
5861
5862int
5863main ()
5864{
5865
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870rm -f conftest.$ac_objext
a8b2ad8d 5871if { (ac_try="$ac_compile"
5872case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
b3076f16 5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
a8b2ad8d 5884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5888esac
5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
b3076f16 5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 5895 { (case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898esac
5899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_try") 2>&5
b3076f16 5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_header_stdc=yes
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
a8b2ad8d 5909 ac_cv_header_stdc=no
b3076f16 5910fi
a8b2ad8d 5911
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5913
5914if test $ac_cv_header_stdc = yes; then
5915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5916 cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
5922#include <string.h>
5923
5924_ACEOF
5925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926 $EGREP "memchr" >/dev/null 2>&1; then
5927 :
5928else
5929 ac_cv_header_stdc=no
5930fi
5931rm -f conftest*
5932
5933fi
5934
5935if test $ac_cv_header_stdc = yes; then
5936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5937 cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943#include <stdlib.h>
5944
5945_ACEOF
5946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5947 $EGREP "free" >/dev/null 2>&1; then
5948 :
5949else
5950 ac_cv_header_stdc=no
5951fi
5952rm -f conftest*
5953
5954fi
5955
5956if test $ac_cv_header_stdc = yes; then
5957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5958 if test "$cross_compiling" = yes; then
5959 :
5960else
5961 cat >conftest.$ac_ext <<_ACEOF
5962/* confdefs.h. */
5963_ACEOF
5964cat confdefs.h >>conftest.$ac_ext
5965cat >>conftest.$ac_ext <<_ACEOF
5966/* end confdefs.h. */
5967#include <ctype.h>
a8b2ad8d 5968#include <stdlib.h>
b3076f16 5969#if ((' ' & 0x0FF) == 0x020)
5970# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5971# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5972#else
5973# define ISLOWER(c) \
5974 (('a' <= (c) && (c) <= 'i') \
5975 || ('j' <= (c) && (c) <= 'r') \
5976 || ('s' <= (c) && (c) <= 'z'))
5977# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5978#endif
5979
5980#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5981int
5982main ()
5983{
5984 int i;
5985 for (i = 0; i < 256; i++)
5986 if (XOR (islower (i), ISLOWER (i))
5987 || toupper (i) != TOUPPER (i))
a8b2ad8d 5988 return 2;
5989 return 0;
b3076f16 5990}
5991_ACEOF
5992rm -f conftest$ac_exeext
a8b2ad8d 5993if { (ac_try="$ac_link"
5994case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_link") 2>&5
b3076f16 6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
b3076f16 6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 :
6013else
6014 echo "$as_me: program exited with status $ac_status" >&5
6015echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018( exit $ac_status )
6019ac_cv_header_stdc=no
6020fi
a8b2ad8d 6021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 6022fi
a8b2ad8d 6023
6024
b3076f16 6025fi
6026fi
a8b2ad8d 6027{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6028echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 6029if test $ac_cv_header_stdc = yes; then
6030
6031cat >>confdefs.h <<\_ACEOF
6032#define STDC_HEADERS 1
6033_ACEOF
6034
6035fi
6036
6037
a8b2ad8d 6038{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6039echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 6040if test "${ac_cv_header_time+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049#include <sys/types.h>
6050#include <sys/time.h>
6051#include <time.h>
6052
6053int
6054main ()
6055{
6056if ((struct tm *) 0)
6057return 0;
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext
a8b2ad8d 6063if { (ac_try="$ac_compile"
6064case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
b3076f16 6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
a8b2ad8d 6076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6077 { (case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_try") 2>&5
b3076f16 6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6087 { (case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090esac
6091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_try") 2>&5
b3076f16 6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_header_time=yes
6097else
6098 echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
a8b2ad8d 6101 ac_cv_header_time=no
b3076f16 6102fi
a8b2ad8d 6103
6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6105fi
a8b2ad8d 6106{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6107echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 6108if test $ac_cv_header_time = yes; then
6109
6110cat >>confdefs.h <<\_ACEOF
6111#define TIME_WITH_SYS_TIME 1
6112_ACEOF
6113
6114fi
6115
a8b2ad8d 6116{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6117echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 6118if test "${ac_cv_struct_tm+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121 cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
6127#include <sys/types.h>
6128#include <time.h>
6129
6130int
6131main ()
6132{
6133struct tm *tp; tp->tm_sec;
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138rm -f conftest.$ac_objext
a8b2ad8d 6139if { (ac_try="$ac_compile"
6140case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143esac
6144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compile") 2>conftest.er1
b3076f16 6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
a8b2ad8d 6152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
b3076f16 6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6163 { (case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_try") 2>&5
b3076f16 6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_struct_tm=time.h
6173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
a8b2ad8d 6177 ac_cv_struct_tm=sys/time.h
b3076f16 6178fi
a8b2ad8d 6179
6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6181fi
a8b2ad8d 6182{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6183echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
b3076f16 6184if test $ac_cv_struct_tm = sys/time.h; then
6185
6186cat >>confdefs.h <<\_ACEOF
6187#define TM_IN_SYS_TIME 1
6188_ACEOF
6189
6190fi
6191
6192
35305a49 6193# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6204 inttypes.h stdint.h unistd.h
6205do
6206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6207{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35305a49 6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212 cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218$ac_includes_default
6219
6220#include <$ac_header>
6221_ACEOF
6222rm -f conftest.$ac_objext
a8b2ad8d 6223if { (ac_try="$ac_compile"
6224case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227esac
6228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_compile") 2>conftest.er1
35305a49 6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
a8b2ad8d 6236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6237 { (case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240esac
6241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_try") 2>&5
35305a49 6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6247 { (case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250esac
6251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_try") 2>&5
35305a49 6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 eval "$as_ac_Header=yes"
6257else
6258 echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
a8b2ad8d 6261 eval "$as_ac_Header=no"
35305a49 6262fi
a8b2ad8d 6263
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 6265fi
a8b2ad8d 6266ac_res=`eval echo '${'$as_ac_Header'}'`
6267 { echo "$as_me:$LINENO: result: $ac_res" >&5
6268echo "${ECHO_T}$ac_res" >&6; }
35305a49 6269if test `eval echo '${'$as_ac_Header'}'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272_ACEOF
6273
6274fi
6275
6276done
6277
6278
b3076f16 6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
21f6caee 6299
6300
6301for ac_header in GeoIP.h GeoIPCity.h fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
b3076f16 6302do
6303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 6304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309fi
a8b2ad8d 6310ac_res=`eval echo '${'$as_ac_Header'}'`
6311 { echo "$as_me:$LINENO: result: $ac_res" >&5
6312echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6313else
6314 # Is the header compilable?
a8b2ad8d 6315{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 6317cat >conftest.$ac_ext <<_ACEOF
6318/* confdefs.h. */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */
6323$ac_includes_default
6324#include <$ac_header>
6325_ACEOF
6326rm -f conftest.$ac_objext
a8b2ad8d 6327if { (ac_try="$ac_compile"
6328case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compile") 2>conftest.er1
b3076f16 6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
a8b2ad8d 6340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6341 { (case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_try") 2>&5
b3076f16 6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6351 { (case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_try") 2>&5
b3076f16 6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_header_compiler=yes
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
a8b2ad8d 6365 ac_header_compiler=no
b3076f16 6366fi
a8b2ad8d 6367
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6370echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 6371
6372# Is the header present?
a8b2ad8d 6373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 6375cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h. */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h. */
6381#include <$ac_header>
6382_ACEOF
a8b2ad8d 6383if { (ac_try="$ac_cpp conftest.$ac_ext"
6384case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387esac
6388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } >/dev/null; then
6396 if test -s conftest.err; then
6397 ac_cpp_err=$ac_c_preproc_warn_flag
6398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6399 else
6400 ac_cpp_err=
6401 fi
6402else
6403 ac_cpp_err=yes
6404fi
6405if test -z "$ac_cpp_err"; then
6406 ac_header_preproc=yes
6407else
6408 echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 ac_header_preproc=no
6412fi
a8b2ad8d 6413
b3076f16 6414rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6416echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 6417
6418# So? What about this header?
6419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6420 yes:no: )
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6425 ac_header_preproc=yes
6426 ;;
6427 no:yes:* )
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6440 ( cat <<\_ASBOX
63c95a47 6441## -------------------------------------------------- ##
6442## Report this to evilnet-devel@lists.sourceforge.net ##
6443## -------------------------------------------------- ##
b3076f16 6444_ASBOX
a8b2ad8d 6445 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 6446 ;;
6447esac
a8b2ad8d 6448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453 eval "$as_ac_Header=\$ac_header_preproc"
6454fi
a8b2ad8d 6455ac_res=`eval echo '${'$as_ac_Header'}'`
6456 { echo "$as_me:$LINENO: result: $ac_res" >&5
6457echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6458
6459fi
6460if test `eval echo '${'$as_ac_Header'}'` = yes; then
6461 cat >>confdefs.h <<_ACEOF
6462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6463_ACEOF
6464
6465fi
6466
6467done
6468
6469
a8b2ad8d 6470{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6471echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6472if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 cat >conftest.$ac_ext <<_ACEOF
6476/* confdefs.h. */
6477_ACEOF
6478cat confdefs.h >>conftest.$ac_ext
6479cat >>conftest.$ac_ext <<_ACEOF
6480/* end confdefs.h. */
2f61d1d7 6481#include <sys/types.h>
6482#include <sys/socket.h>
b3076f16 6483
6484int
6485main ()
6486{
2f61d1d7 6487static struct sockaddr ac_aggr;
6488if (ac_aggr.sa_len)
b3076f16 6489return 0;
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext
a8b2ad8d 6495if { (ac_try="$ac_compile"
6496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
b3076f16 6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
a8b2ad8d 6508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6509 { (case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512esac
6513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_try") 2>&5
b3076f16 6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6519 { (case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522esac
6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_try") 2>&5
b3076f16 6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
2f61d1d7 6528 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6529else
6530 echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
a8b2ad8d 6533 cat >conftest.$ac_ext <<_ACEOF
b3076f16 6534/* confdefs.h. */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
6538/* end confdefs.h. */
2f61d1d7 6539#include <sys/types.h>
6540#include <sys/socket.h>
b3076f16 6541
6542int
6543main ()
6544{
2f61d1d7 6545static struct sockaddr ac_aggr;
6546if (sizeof ac_aggr.sa_len)
b3076f16 6547return 0;
6548 ;
6549 return 0;
6550}
6551_ACEOF
6552rm -f conftest.$ac_objext
a8b2ad8d 6553if { (ac_try="$ac_compile"
6554case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
b3076f16 6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
a8b2ad8d 6566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6567 { (case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_try") 2>&5
b3076f16 6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6577 { (case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580esac
6581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_try") 2>&5
b3076f16 6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
2f61d1d7 6586 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6587else
6588 echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
a8b2ad8d 6591 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6592fi
a8b2ad8d 6593
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6595fi
a8b2ad8d 6596
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6598fi
a8b2ad8d 6599{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6600echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6601if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 6602
6603cat >>confdefs.h <<\_ACEOF
2f61d1d7 6604#define HAVE_SOCKADDR_SA_LEN
6605_ACEOF
6606
6607fi
6608
a8b2ad8d 6609{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6610echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6611if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620#include <sys/types.h>
6621#include <sys/socket.h>
6622#include <netdb.h>
6623
6624int
6625main ()
6626{
6627static struct addrinfo ac_aggr;
6628if (ac_aggr.ai_flags)
6629return 0;
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634rm -f conftest.$ac_objext
a8b2ad8d 6635if { (ac_try="$ac_compile"
6636case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
a8b2ad8d 6648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
2f61d1d7 6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6659 { (case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662esac
6663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_try") 2>&5
2f61d1d7 6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_member_struct_addrinfo_ai_flags=yes
6669else
6670 echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
a8b2ad8d 6673 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6674/* confdefs.h. */
6675_ACEOF
6676cat confdefs.h >>conftest.$ac_ext
6677cat >>conftest.$ac_ext <<_ACEOF
6678/* end confdefs.h. */
6679#include <sys/types.h>
6680#include <sys/socket.h>
6681#include <netdb.h>
6682
6683int
6684main ()
6685{
6686static struct addrinfo ac_aggr;
6687if (sizeof ac_aggr.ai_flags)
6688return 0;
6689 ;
6690 return 0;
6691}
b3076f16 6692_ACEOF
2f61d1d7 6693rm -f conftest.$ac_objext
a8b2ad8d 6694if { (ac_try="$ac_compile"
6695case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698esac
6699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
a8b2ad8d 6707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
2f61d1d7 6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 6718 { (case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721esac
6722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_try") 2>&5
2f61d1d7 6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 ac_cv_member_struct_addrinfo_ai_flags=yes
6728else
6729 echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6731
a8b2ad8d 6732 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6733fi
a8b2ad8d 6734
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6736fi
a8b2ad8d 6737
6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6739fi
a8b2ad8d 6740{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6741echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6742if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6743
6744cat >>confdefs.h <<\_ACEOF
6745#define HAVE_STRUCT_ADDRINFO
6746_ACEOF
b3076f16 6747
2f61d1d7 6748fi
b3076f16 6749
6750
21f6caee 6751
b3076f16 6752for ac_func in gettimeofday
6753do
6754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6768#define $ac_func innocuous_$ac_func
6769
6770/* System header to define __stub macros and hopefully few prototypes,
6771 which can conflict with char $ac_func (); below.
6772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 <limits.h> exists even on freestanding compilers. */
6774
6775#ifdef __STDC__
6776# include <limits.h>
6777#else
6778# include <assert.h>
6779#endif
6780
6781#undef $ac_func
6782
a8b2ad8d 6783/* Override any GCC internal prototype to avoid an error.
6784 Use char because int might match the return type of a GCC
6785 builtin and then its argument prototype would still apply. */
b3076f16 6786#ifdef __cplusplus
6787extern "C"
b3076f16 6788#endif
b3076f16 6789char $ac_func ();
6790/* The GNU C library defines this for functions which it implements
6791 to always fail with ENOSYS. Some functions are actually named
6792 something starting with __ and the normal name is an alias. */
a8b2ad8d 6793#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6794choke me
b3076f16 6795#endif
6796
6797int
6798main ()
6799{
a8b2ad8d 6800return $ac_func ();
b3076f16 6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6806if { (ac_try="$ac_link"
6807case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810esac
6811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_link") 2>conftest.er1
b3076f16 6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
a8b2ad8d 6819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6820 { (case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823esac
6824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_try") 2>&5
b3076f16 6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6830 { (case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833esac
6834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_try") 2>&5
b3076f16 6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 eval "$as_ac_var=yes"
6840else
6841 echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
a8b2ad8d 6844 eval "$as_ac_var=no"
b3076f16 6845fi
a8b2ad8d 6846
6847rm -f core conftest.err conftest.$ac_objext \
b3076f16 6848 conftest$ac_exeext conftest.$ac_ext
6849fi
a8b2ad8d 6850ac_res=`eval echo '${'$as_ac_var'}'`
6851 { echo "$as_me:$LINENO: result: $ac_res" >&5
6852echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6853if test `eval echo '${'$as_ac_var'}'` = yes; then
6854 cat >>confdefs.h <<_ACEOF
6855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6856_ACEOF
6857
6858fi
6859done
6860
6861if test $ac_cv_func_gettimeofday = no; then
6862
6863for ac_func in ftime
6864do
6865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6866{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6868if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871 cat >conftest.$ac_ext <<_ACEOF
6872/* confdefs.h. */
6873_ACEOF
6874cat confdefs.h >>conftest.$ac_ext
6875cat >>conftest.$ac_ext <<_ACEOF
6876/* end confdefs.h. */
6877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6879#define $ac_func innocuous_$ac_func
6880
6881/* System header to define __stub macros and hopefully few prototypes,
6882 which can conflict with char $ac_func (); below.
6883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6884 <limits.h> exists even on freestanding compilers. */
6885
6886#ifdef __STDC__
6887# include <limits.h>
6888#else
6889# include <assert.h>
6890#endif
6891
6892#undef $ac_func
6893
a8b2ad8d 6894/* Override any GCC internal prototype to avoid an error.
6895 Use char because int might match the return type of a GCC
6896 builtin and then its argument prototype would still apply. */
b3076f16 6897#ifdef __cplusplus
6898extern "C"
b3076f16 6899#endif
b3076f16 6900char $ac_func ();
6901/* The GNU C library defines this for functions which it implements
6902 to always fail with ENOSYS. Some functions are actually named
6903 something starting with __ and the normal name is an alias. */
a8b2ad8d 6904#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6905choke me
b3076f16 6906#endif
6907
6908int
6909main ()
6910{
a8b2ad8d 6911return $ac_func ();
b3076f16 6912 ;
6913 return 0;
6914}
6915_ACEOF
6916rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6917if { (ac_try="$ac_link"
6918case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6921esac
6922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_link") 2>conftest.er1
b3076f16 6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
a8b2ad8d 6930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6931 { (case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934esac
6935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_try") 2>&5
b3076f16 6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 6941 { (case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944esac
6945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_try") 2>&5
b3076f16 6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 eval "$as_ac_var=yes"
6951else
6952 echo "$as_me: failed program was:" >&5
6953sed 's/^/| /' conftest.$ac_ext >&5
6954
a8b2ad8d 6955 eval "$as_ac_var=no"
b3076f16 6956fi
a8b2ad8d 6957
6958rm -f core conftest.err conftest.$ac_objext \
b3076f16 6959 conftest$ac_exeext conftest.$ac_ext
6960fi
a8b2ad8d 6961ac_res=`eval echo '${'$as_ac_var'}'`
6962 { echo "$as_me:$LINENO: result: $ac_res" >&5
6963echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6964if test `eval echo '${'$as_ac_var'}'` = yes; then
6965 cat >>confdefs.h <<_ACEOF
6966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6967_ACEOF
6968
6969else
2f61d1d7 6970 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6971echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
b3076f16 6972 { (exit 1); exit 1; }; }
6973fi
6974done
6975
6976fi
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
5b1166fd 6992for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
b3076f16 6993do
6994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h. */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h. */
7006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7008#define $ac_func innocuous_$ac_func
7009
7010/* System header to define __stub macros and hopefully few prototypes,
7011 which can conflict with char $ac_func (); below.
7012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7013 <limits.h> exists even on freestanding compilers. */
7014
7015#ifdef __STDC__
7016# include <limits.h>
7017#else
7018# include <assert.h>
7019#endif
7020
7021#undef $ac_func
7022
a8b2ad8d 7023/* Override any GCC internal prototype to avoid an error.
7024 Use char because int might match the return type of a GCC
7025 builtin and then its argument prototype would still apply. */
b3076f16 7026#ifdef __cplusplus
7027extern "C"
b3076f16 7028#endif
b3076f16 7029char $ac_func ();
7030/* The GNU C library defines this for functions which it implements
7031 to always fail with ENOSYS. Some functions are actually named
7032 something starting with __ and the normal name is an alias. */
a8b2ad8d 7033#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7034choke me
b3076f16 7035#endif
7036
7037int
7038main ()
7039{
a8b2ad8d 7040return $ac_func ();
b3076f16 7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7046if { (ac_try="$ac_link"
7047case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050esac
7051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_link") 2>conftest.er1
b3076f16 7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
a8b2ad8d 7059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7060 { (case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063esac
7064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_try") 2>&5
b3076f16 7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7070 { (case "(($ac_try" in
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7073esac
7074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_try") 2>&5
b3076f16 7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 eval "$as_ac_var=yes"
7080else
7081 echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
a8b2ad8d 7084 eval "$as_ac_var=no"
b3076f16 7085fi
a8b2ad8d 7086
7087rm -f core conftest.err conftest.$ac_objext \
b3076f16 7088 conftest$ac_exeext conftest.$ac_ext
7089fi
a8b2ad8d 7090ac_res=`eval echo '${'$as_ac_var'}'`
7091 { echo "$as_me:$LINENO: result: $ac_res" >&5
7092echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7093if test `eval echo '${'$as_ac_var'}'` = yes; then
7094 cat >>confdefs.h <<_ACEOF
7095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7096_ACEOF
7097
7098fi
7099done
7100
7101
7102
7103
7104
7105
7106
7107
7108for ac_func in select socket strcspn strspn strtod strtoul
7109do
7110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7111{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115else
7116 cat >conftest.$ac_ext <<_ACEOF
7117/* confdefs.h. */
7118_ACEOF
7119cat confdefs.h >>conftest.$ac_ext
7120cat >>conftest.$ac_ext <<_ACEOF
7121/* end confdefs.h. */
7122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7124#define $ac_func innocuous_$ac_func
7125
7126/* System header to define __stub macros and hopefully few prototypes,
7127 which can conflict with char $ac_func (); below.
7128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7129 <limits.h> exists even on freestanding compilers. */
7130
7131#ifdef __STDC__
7132# include <limits.h>
7133#else
7134# include <assert.h>
7135#endif
7136
7137#undef $ac_func
7138
a8b2ad8d 7139/* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
b3076f16 7142#ifdef __cplusplus
7143extern "C"
b3076f16 7144#endif
b3076f16 7145char $ac_func ();
7146/* The GNU C library defines this for functions which it implements
7147 to always fail with ENOSYS. Some functions are actually named
7148 something starting with __ and the normal name is an alias. */
a8b2ad8d 7149#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7150choke me
b3076f16 7151#endif
7152
7153int
7154main ()
7155{
a8b2ad8d 7156return $ac_func ();
b3076f16 7157 ;
7158 return 0;
7159}
7160_ACEOF
7161rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7162if { (ac_try="$ac_link"
7163case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166esac
7167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_link") 2>conftest.er1
b3076f16 7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
a8b2ad8d 7175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7176 { (case "(($ac_try" in
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7179esac
7180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181 (eval "$ac_try") 2>&5
b3076f16 7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7186 { (case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189esac
7190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_try") 2>&5
b3076f16 7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 eval "$as_ac_var=yes"
7196else
7197 echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
a8b2ad8d 7200 eval "$as_ac_var=no"
b3076f16 7201fi
a8b2ad8d 7202
7203rm -f core conftest.err conftest.$ac_objext \
b3076f16 7204 conftest$ac_exeext conftest.$ac_ext
7205fi
a8b2ad8d 7206ac_res=`eval echo '${'$as_ac_var'}'`
7207 { echo "$as_me:$LINENO: result: $ac_res" >&5
7208echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7209if test `eval echo '${'$as_ac_var'}'` = yes; then
7210 cat >>confdefs.h <<_ACEOF
7211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7212_ACEOF
7213
7214else
2f61d1d7 7215 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
7216echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 7217 { (exit 1); exit 1; }; }
7218fi
7219done
7220
7221
7222# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7223# for constant arguments. Useless!
a8b2ad8d 7224{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7225echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 7226if test "${ac_cv_working_alloca_h+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 cat >conftest.$ac_ext <<_ACEOF
7230/* confdefs.h. */
7231_ACEOF
7232cat confdefs.h >>conftest.$ac_ext
7233cat >>conftest.$ac_ext <<_ACEOF
7234/* end confdefs.h. */
7235#include <alloca.h>
7236int
7237main ()
7238{
7239char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 7240 if (p) return 0;
b3076f16 7241 ;
7242 return 0;
7243}
7244_ACEOF
7245rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7246if { (ac_try="$ac_link"
7247case "(($ac_try" in
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7250esac
7251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_link") 2>conftest.er1
b3076f16 7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
a8b2ad8d 7259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7260 { (case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263esac
7264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_try") 2>&5
b3076f16 7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7270 { (case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273esac
7274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_try") 2>&5
b3076f16 7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_working_alloca_h=yes
7280else
7281 echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
a8b2ad8d 7284 ac_cv_working_alloca_h=no
b3076f16 7285fi
a8b2ad8d 7286
7287rm -f core conftest.err conftest.$ac_objext \
b3076f16 7288 conftest$ac_exeext conftest.$ac_ext
7289fi
a8b2ad8d 7290{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7291echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 7292if test $ac_cv_working_alloca_h = yes; then
7293
7294cat >>confdefs.h <<\_ACEOF
7295#define HAVE_ALLOCA_H 1
7296_ACEOF
7297
7298fi
7299
a8b2ad8d 7300{ echo "$as_me:$LINENO: checking for alloca" >&5
7301echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 7302if test "${ac_cv_func_alloca_works+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311#ifdef __GNUC__
7312# define alloca __builtin_alloca
7313#else
7314# ifdef _MSC_VER
7315# include <malloc.h>
7316# define alloca _alloca
7317# else
7318# if HAVE_ALLOCA_H
7319# include <alloca.h>
7320# else
7321# ifdef _AIX
7322 #pragma alloca
7323# else
7324# ifndef alloca /* predefined by HP cc +Olibcalls */
7325char *alloca ();
7326# endif
7327# endif
7328# endif
7329# endif
7330#endif
7331
7332int
7333main ()
7334{
7335char *p = (char *) alloca (1);
a8b2ad8d 7336 if (p) return 0;
b3076f16 7337 ;
7338 return 0;
7339}
7340_ACEOF
7341rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7342if { (ac_try="$ac_link"
7343case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346esac
7347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_link") 2>conftest.er1
b3076f16 7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
a8b2ad8d 7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359esac
7360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_try") 2>&5
b3076f16 7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7366 { (case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369esac
7370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_try") 2>&5
b3076f16 7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_func_alloca_works=yes
7376else
7377 echo "$as_me: failed program was:" >&5
7378sed 's/^/| /' conftest.$ac_ext >&5
7379
a8b2ad8d 7380 ac_cv_func_alloca_works=no
b3076f16 7381fi
a8b2ad8d 7382
7383rm -f core conftest.err conftest.$ac_objext \
b3076f16 7384 conftest$ac_exeext conftest.$ac_ext
7385fi
a8b2ad8d 7386{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7387echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 7388
7389if test $ac_cv_func_alloca_works = yes; then
7390
7391cat >>confdefs.h <<\_ACEOF
7392#define HAVE_ALLOCA 1
7393_ACEOF
7394
7395else
7396 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7397# that cause trouble. Some versions do not even contain alloca or
7398# contain a buggy version. If you still want to use their alloca,
7399# use ar to extract alloca.o from them instead of compiling alloca.c.
7400
a8b2ad8d 7401ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 7402
7403cat >>confdefs.h <<\_ACEOF
7404#define C_ALLOCA 1
7405_ACEOF
7406
7407
a8b2ad8d 7408{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7409echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 7410if test "${ac_cv_os_cray+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413 cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h. */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h. */
a8b2ad8d 7419#if defined CRAY && ! defined CRAY2
b3076f16 7420webecray
7421#else
7422wenotbecray
7423#endif
7424
7425_ACEOF
7426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7427 $EGREP "webecray" >/dev/null 2>&1; then
7428 ac_cv_os_cray=yes
7429else
7430 ac_cv_os_cray=no
7431fi
7432rm -f conftest*
7433
7434fi
a8b2ad8d 7435{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7436echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 7437if test $ac_cv_os_cray = yes; then
7438 for ac_func in _getb67 GETB67 getb67; do
7439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7440{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7442if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h. */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h. */
7451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7453#define $ac_func innocuous_$ac_func
7454
7455/* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func (); below.
7457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458 <limits.h> exists even on freestanding compilers. */
7459
7460#ifdef __STDC__
7461# include <limits.h>
7462#else
7463# include <assert.h>
7464#endif
7465
7466#undef $ac_func
7467
a8b2ad8d 7468/* Override any GCC internal prototype to avoid an error.
7469 Use char because int might match the return type of a GCC
7470 builtin and then its argument prototype would still apply. */
b3076f16 7471#ifdef __cplusplus
7472extern "C"
b3076f16 7473#endif
b3076f16 7474char $ac_func ();
7475/* The GNU C library defines this for functions which it implements
7476 to always fail with ENOSYS. Some functions are actually named
7477 something starting with __ and the normal name is an alias. */
a8b2ad8d 7478#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7479choke me
b3076f16 7480#endif
7481
7482int
7483main ()
7484{
a8b2ad8d 7485return $ac_func ();
b3076f16 7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7491if { (ac_try="$ac_link"
7492case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495esac
7496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_link") 2>conftest.er1
b3076f16 7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
a8b2ad8d 7504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7505 { (case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_try") 2>&5
b3076f16 7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7515 { (case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518esac
7519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_try") 2>&5
b3076f16 7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 eval "$as_ac_var=yes"
7525else
7526 echo "$as_me: failed program was:" >&5
7527sed 's/^/| /' conftest.$ac_ext >&5
7528
a8b2ad8d 7529 eval "$as_ac_var=no"
b3076f16 7530fi
a8b2ad8d 7531
7532rm -f core conftest.err conftest.$ac_objext \
b3076f16 7533 conftest$ac_exeext conftest.$ac_ext
7534fi
a8b2ad8d 7535ac_res=`eval echo '${'$as_ac_var'}'`
7536 { echo "$as_me:$LINENO: result: $ac_res" >&5
7537echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7538if test `eval echo '${'$as_ac_var'}'` = yes; then
7539
7540cat >>confdefs.h <<_ACEOF
7541#define CRAY_STACKSEG_END $ac_func
7542_ACEOF
7543
7544 break
7545fi
7546
7547 done
7548fi
7549
a8b2ad8d 7550{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7551echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 7552if test "${ac_cv_c_stack_direction+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 if test "$cross_compiling" = yes; then
7556 ac_cv_c_stack_direction=0
7557else
7558 cat >conftest.$ac_ext <<_ACEOF
7559/* confdefs.h. */
7560_ACEOF
7561cat confdefs.h >>conftest.$ac_ext
7562cat >>conftest.$ac_ext <<_ACEOF
7563/* end confdefs.h. */
a8b2ad8d 7564$ac_includes_default
b3076f16 7565int
7566find_stack_direction ()
7567{
7568 static char *addr = 0;
7569 auto char dummy;
7570 if (addr == 0)
7571 {
7572 addr = &dummy;
7573 return find_stack_direction ();
7574 }
7575 else
7576 return (&dummy > addr) ? 1 : -1;
7577}
7578
7579int
7580main ()
7581{
a8b2ad8d 7582 return find_stack_direction () < 0;
b3076f16 7583}
7584_ACEOF
7585rm -f conftest$ac_exeext
a8b2ad8d 7586if { (ac_try="$ac_link"
7587case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590esac
7591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_link") 2>&5
b3076f16 7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7596 { (case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599esac
7600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_try") 2>&5
b3076f16 7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_c_stack_direction=1
7606else
7607 echo "$as_me: program exited with status $ac_status" >&5
7608echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611( exit $ac_status )
7612ac_cv_c_stack_direction=-1
7613fi
a8b2ad8d 7614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7615fi
a8b2ad8d 7616
7617
b3076f16 7618fi
a8b2ad8d 7619{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7620echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 7621
7622cat >>confdefs.h <<_ACEOF
7623#define STACK_DIRECTION $ac_cv_c_stack_direction
7624_ACEOF
7625
7626
7627fi
7628
7629
7630
7631for ac_header in stdlib.h unistd.h
7632do
7633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639fi
a8b2ad8d 7640ac_res=`eval echo '${'$as_ac_Header'}'`
7641 { echo "$as_me:$LINENO: result: $ac_res" >&5
7642echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7643else
7644 # Is the header compilable?
a8b2ad8d 7645{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7647cat >conftest.$ac_ext <<_ACEOF
7648/* confdefs.h. */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
7652/* end confdefs.h. */
7653$ac_includes_default
7654#include <$ac_header>
7655_ACEOF
7656rm -f conftest.$ac_objext
a8b2ad8d 7657if { (ac_try="$ac_compile"
7658case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661esac
7662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
b3076f16 7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
a8b2ad8d 7670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7671 { (case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674esac
7675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676 (eval "$ac_try") 2>&5
b3076f16 7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; } &&
7680 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 7681 { (case "(($ac_try" in
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7684esac
7685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_try") 2>&5
b3076f16 7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_header_compiler=yes
7691else
7692 echo "$as_me: failed program was:" >&5
7693sed 's/^/| /' conftest.$ac_ext >&5
7694
a8b2ad8d 7695 ac_header_compiler=no
b3076f16 7696fi
a8b2ad8d 7697
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7700echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7701
7702# Is the header present?
a8b2ad8d 7703{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7705cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
7711#include <$ac_header>
7712_ACEOF
a8b2ad8d 7713if { (ac_try="$ac_cpp conftest.$ac_ext"
7714case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717esac
7718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } >/dev/null; then
7726 if test -s conftest.err; then
7727 ac_cpp_err=$ac_c_preproc_warn_flag
7728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7729 else
7730 ac_cpp_err=
7731 fi
7732else
7733 ac_cpp_err=yes
7734fi
7735if test -z "$ac_cpp_err"; then
7736 ac_header_preproc=yes
7737else
7738 echo "$as_me: failed program was:" >&5
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 ac_header_preproc=no
7742fi
a8b2ad8d 7743
b3076f16 7744rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7745{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7746echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 7747
7748# So? What about this header?
7749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7750 yes:no: )
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7755 ac_header_preproc=yes
7756 ;;
7757 no:yes:* )
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7770 ( cat <<\_ASBOX
63c95a47 7771## -------------------------------------------------- ##
7772## Report this to evilnet-devel@lists.sourceforge.net ##
7773## -------------------------------------------------- ##
b3076f16 7774_ASBOX
a8b2ad8d 7775 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 7776 ;;
7777esac
a8b2ad8d 7778{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783 eval "$as_ac_Header=\$ac_header_preproc"
7784fi
a8b2ad8d 7785ac_res=`eval echo '${'$as_ac_Header'}'`
7786 { echo "$as_me:$LINENO: result: $ac_res" >&5
7787echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7788
7789fi
7790if test `eval echo '${'$as_ac_Header'}'` = yes; then
7791 cat >>confdefs.h <<_ACEOF
7792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7793_ACEOF
7794
7795fi
7796
7797done
7798
7799
7800for ac_func in getpagesize
7801do
7802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 cat >conftest.$ac_ext <<_ACEOF
7809/* confdefs.h. */
7810_ACEOF
7811cat confdefs.h >>conftest.$ac_ext
7812cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h. */
7814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7816#define $ac_func innocuous_$ac_func
7817
7818/* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func (); below.
7820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7821 <limits.h> exists even on freestanding compilers. */
7822
7823#ifdef __STDC__
7824# include <limits.h>
7825#else
7826# include <assert.h>
7827#endif
7828
7829#undef $ac_func
7830
a8b2ad8d 7831/* Override any GCC internal prototype to avoid an error.
7832 Use char because int might match the return type of a GCC
7833 builtin and then its argument prototype would still apply. */
b3076f16 7834#ifdef __cplusplus
7835extern "C"
b3076f16 7836#endif
b3076f16 7837char $ac_func ();
7838/* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
a8b2ad8d 7841#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7842choke me
b3076f16 7843#endif
7844
7845int
7846main ()
7847{
a8b2ad8d 7848return $ac_func ();
b3076f16 7849 ;
7850 return 0;
7851}
7852_ACEOF
7853rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7854if { (ac_try="$ac_link"
7855case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>conftest.er1
b3076f16 7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
a8b2ad8d 7867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
b3076f16 7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
b3076f16 7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 eval "$as_ac_var=yes"
7888else
7889 echo "$as_me: failed program was:" >&5
7890sed 's/^/| /' conftest.$ac_ext >&5
7891
a8b2ad8d 7892 eval "$as_ac_var=no"
b3076f16 7893fi
a8b2ad8d 7894
7895rm -f core conftest.err conftest.$ac_objext \
b3076f16 7896 conftest$ac_exeext conftest.$ac_ext
7897fi
a8b2ad8d 7898ac_res=`eval echo '${'$as_ac_var'}'`
7899 { echo "$as_me:$LINENO: result: $ac_res" >&5
7900echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7901if test `eval echo '${'$as_ac_var'}'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7904_ACEOF
7905
7906fi
7907done
7908
a8b2ad8d 7909{ echo "$as_me:$LINENO: checking for working mmap" >&5
7910echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 7911if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914 if test "$cross_compiling" = yes; then
7915 ac_cv_func_mmap_fixed_mapped=no
7916else
7917 cat >conftest.$ac_ext <<_ACEOF
7918/* confdefs.h. */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h. */
7923$ac_includes_default
7924/* malloc might have been renamed as rpl_malloc. */
7925#undef malloc
7926
7927/* Thanks to Mike Haertel and Jim Avera for this test.
7928 Here is a matrix of mmap possibilities:
7929 mmap private not fixed
7930 mmap private fixed at somewhere currently unmapped
7931 mmap private fixed at somewhere already mapped
7932 mmap shared not fixed
7933 mmap shared fixed at somewhere currently unmapped
7934 mmap shared fixed at somewhere already mapped
7935 For private mappings, we should verify that changes cannot be read()
7936 back from the file, nor mmap's back from the file at a different
7937 address. (There have been systems where private was not correctly
7938 implemented like the infamous i386 svr4.0, and systems where the
7939 VM page cache was not coherent with the file system buffer cache
7940 like early versions of FreeBSD and possibly contemporary NetBSD.)
7941 For shared mappings, we should conversely verify that changes get
7942 propagated back to all the places they're supposed to be.
7943
7944 Grep wants private fixed already mapped.
7945 The main things grep needs to know about mmap are:
7946 * does it exist and is it safe to write into the mmap'd area
7947 * how to use it (BSD variants) */
7948
7949#include <fcntl.h>
7950#include <sys/mman.h>
7951
7952#if !STDC_HEADERS && !HAVE_STDLIB_H
7953char *malloc ();
7954#endif
7955
7956/* This mess was copied from the GNU getpagesize.h. */
7957#if !HAVE_GETPAGESIZE
7958/* Assume that all systems that can run configure have sys/param.h. */
7959# if !HAVE_SYS_PARAM_H
7960# define HAVE_SYS_PARAM_H 1
7961# endif
7962
7963# ifdef _SC_PAGESIZE
7964# define getpagesize() sysconf(_SC_PAGESIZE)
7965# else /* no _SC_PAGESIZE */
7966# if HAVE_SYS_PARAM_H
7967# include <sys/param.h>
7968# ifdef EXEC_PAGESIZE
7969# define getpagesize() EXEC_PAGESIZE
7970# else /* no EXEC_PAGESIZE */
7971# ifdef NBPG
7972# define getpagesize() NBPG * CLSIZE
7973# ifndef CLSIZE
7974# define CLSIZE 1
7975# endif /* no CLSIZE */
7976# else /* no NBPG */
7977# ifdef NBPC
7978# define getpagesize() NBPC
7979# else /* no NBPC */
7980# ifdef PAGESIZE
7981# define getpagesize() PAGESIZE
7982# endif /* PAGESIZE */
7983# endif /* no NBPC */
7984# endif /* no NBPG */
7985# endif /* no EXEC_PAGESIZE */
7986# else /* no HAVE_SYS_PARAM_H */
7987# define getpagesize() 8192 /* punt totally */
7988# endif /* no HAVE_SYS_PARAM_H */
7989# endif /* no _SC_PAGESIZE */
7990
7991#endif /* no HAVE_GETPAGESIZE */
7992
7993int
7994main ()
7995{
7996 char *data, *data2, *data3;
7997 int i, pagesize;
7998 int fd;
7999
8000 pagesize = getpagesize ();
8001
8002 /* First, make a file with some known garbage in it. */
8003 data = (char *) malloc (pagesize);
8004 if (!data)
a8b2ad8d 8005 return 1;
b3076f16 8006 for (i = 0; i < pagesize; ++i)
8007 *(data + i) = rand ();
8008 umask (0);
8009 fd = creat ("conftest.mmap", 0600);
8010 if (fd < 0)
a8b2ad8d 8011 return 1;
b3076f16 8012 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 8013 return 1;
b3076f16 8014 close (fd);
8015
8016 /* Next, try to mmap the file at a fixed address which already has
8017 something else allocated at it. If we can, also make sure that
8018 we see the same garbage. */
8019 fd = open ("conftest.mmap", O_RDWR);
8020 if (fd < 0)
a8b2ad8d 8021 return 1;
b3076f16 8022 data2 = (char *) malloc (2 * pagesize);
8023 if (!data2)
a8b2ad8d 8024 return 1;
8025 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 8026 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8027 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 8028 return 1;
b3076f16 8029 for (i = 0; i < pagesize; ++i)
8030 if (*(data + i) != *(data2 + i))
a8b2ad8d 8031 return 1;
b3076f16 8032
8033 /* Finally, make sure that changes to the mapped area do not
8034 percolate back to the file as seen by read(). (This is a bug on
8035 some variants of i386 svr4.0.) */
8036 for (i = 0; i < pagesize; ++i)
8037 *(data2 + i) = *(data2 + i) + 1;
8038 data3 = (char *) malloc (pagesize);
8039 if (!data3)
a8b2ad8d 8040 return 1;
b3076f16 8041 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 8042 return 1;
b3076f16 8043 for (i = 0; i < pagesize; ++i)
8044 if (*(data + i) != *(data3 + i))
a8b2ad8d 8045 return 1;
b3076f16 8046 close (fd);
a8b2ad8d 8047 return 0;
b3076f16 8048}
8049_ACEOF
8050rm -f conftest$ac_exeext
a8b2ad8d 8051if { (ac_try="$ac_link"
8052case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055esac
8056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_link") 2>&5
b3076f16 8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 8061 { (case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064esac
8065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_try") 2>&5
b3076f16 8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_func_mmap_fixed_mapped=yes
8071else
8072 echo "$as_me: program exited with status $ac_status" >&5
8073echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076( exit $ac_status )
8077ac_cv_func_mmap_fixed_mapped=no
8078fi
a8b2ad8d 8079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 8080fi
a8b2ad8d 8081
8082
b3076f16 8083fi
a8b2ad8d 8084{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8085echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 8086if test $ac_cv_func_mmap_fixed_mapped = yes; then
8087
8088cat >>confdefs.h <<\_ACEOF
8089#define HAVE_MMAP 1
8090_ACEOF
8091
8092fi
8093rm -f conftest.mmap
8094
8095
a8b2ad8d 8096{ echo "$as_me:$LINENO: checking for sin_len" >&5
8097echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 8098if test "${ac_cv_sin_len+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107#include <sys/types.h>
8108#include <netinet/in.h>
8109int
8110main ()
8111{
8112struct sockaddr_in *sin; sin->sin_len = 0;
8113 ;
8114 return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext
a8b2ad8d 8118if { (ac_try="$ac_compile"
8119case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122esac
8123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
b3076f16 8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
a8b2ad8d 8131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
b3076f16 8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_try") 2>&5
b3076f16 8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 ac_cv_sin_len="yes"
8152else
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
a8b2ad8d 8156 ac_cv_sin_len="no"
b3076f16 8157fi
a8b2ad8d 8158
8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8160fi
a8b2ad8d 8161{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
8162echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 8163if test $ac_cv_sin_len = yes ; then
8164
8165cat >>confdefs.h <<\_ACEOF
8166#define HAVE_SIN_LEN 1
8167_ACEOF
8168
8169fi
8170
a8b2ad8d 8171{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8172echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 8173if test "${ac_cv_type_socklen_t+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
8182#include <sys/types.h>
8183#include<sys/socket.h>
8184
a8b2ad8d 8185typedef socklen_t ac__type_new_;
79886419 8186int
8187main ()
8188{
a8b2ad8d 8189if ((ac__type_new_ *) 0)
79886419 8190 return 0;
a8b2ad8d 8191if (sizeof (ac__type_new_))
79886419 8192 return 0;
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197rm -f conftest.$ac_objext
a8b2ad8d 8198if { (ac_try="$ac_compile"
8199case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202esac
8203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_compile") 2>conftest.er1
79886419 8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
a8b2ad8d 8211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8212 { (case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215esac
8216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_try") 2>&5
79886419 8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225esac
8226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
79886419 8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_type_socklen_t=yes
8232else
8233 echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
a8b2ad8d 8236 ac_cv_type_socklen_t=no
79886419 8237fi
a8b2ad8d 8238
8239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8240fi
a8b2ad8d 8241{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8242echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
79886419 8243if test $ac_cv_type_socklen_t = yes; then
8244 :
8245else
8246
a8b2ad8d 8247 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8248echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
79886419 8249 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252
8253 curl_cv_socklen_t_equiv=
8254 for arg2 in "struct sockaddr" void ; do
8255 for t in int size_t unsigned long "unsigned long" ; do
8256 cat >conftest.$ac_ext <<_ACEOF
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h. */
8262#include <sys/types.h>
8263#include <sys/socket.h>
8264int getpeername (int $arg2 *, $t *);
8265int
8266main ()
8267{
8268$t len;
8269 getpeername(0, 0, &len);
8270 ;
8271 return 0;
8272}
8273_ACEOF
8274rm -f conftest.$ac_objext
a8b2ad8d 8275if { (ac_try="$ac_compile"
8276case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279esac
8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
79886419 8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
a8b2ad8d 8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292esac
8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
79886419 8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
79886419 8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 curl_cv_socklen_t_equiv="$t"
8309 break
8310else
8311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
a8b2ad8d 8314
79886419 8315fi
a8b2ad8d 8316
8317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79886419 8318 done
8319 done
8320
8321fi
8322
a8b2ad8d 8323 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8324echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 8325
8326cat >>confdefs.h <<_ACEOF
8327#define socklen_t $curl_cv_socklen_t_equiv
8328_ACEOF
8329
8330fi
8331
8332
b3076f16 8333OLD_CFLAGS=$CFLAGS
8334CFLAGS="$CFLAGS -W -Wall -Werror"
8335
a8b2ad8d 8336{ echo "$as_me:$LINENO: checking for time_t format" >&5
8337echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 8338if test "${ac_cv_fmt_time_t+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341
8342ac_cv_fmt_time_t=no
8343cat >conftest.$ac_ext <<_ACEOF
8344#include <sys/types.h>
8345#include <stdio.h>
8346void myfunc(void) {
8347 time_t test=0;
8348 printf("%li", test);
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext
a8b2ad8d 8352if { (ac_try="$ac_compile"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
b3076f16 8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
a8b2ad8d 8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
b3076f16 8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8376 { (case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_try") 2>&5
b3076f16 8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_fmt_time_t="\"%li\""
8386else
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
a8b2ad8d 8390
b3076f16 8391fi
a8b2ad8d 8392
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8394if test $ac_cv_fmt_time_t = no; then
8395cat >conftest.$ac_ext <<_ACEOF
8396#include <sys/types.h>
8397#include <stdio.h>
8398void myfunc(void) {
8399 time_t test=0;
8400 printf("%i", test);
8401}
8402_ACEOF
8403rm -f conftest.$ac_objext
a8b2ad8d 8404if { (ac_try="$ac_compile"
8405case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
b3076f16 8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
a8b2ad8d 8417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421esac
8422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
b3076f16 8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8428 { (case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
8432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_try") 2>&5
b3076f16 8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_fmt_time_t="\"%i\""
8438else
8439 echo "$as_me: failed program was:" >&5
8440sed 's/^/| /' conftest.$ac_ext >&5
8441
a8b2ad8d 8442
b3076f16 8443fi
a8b2ad8d 8444
8445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 8446fi
8447if test $ac_cv_fmt_time_t = no; then
8448{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
8449Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
8450echo "$as_me: error: Cannot detect format string for time_t
8451Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
8452 { (exit 1); exit 1; }; }
8453fi
8454
8455fi
8456
8457
8458cat >>confdefs.h <<_ACEOF
8459#define FMT_TIME_T $ac_cv_fmt_time_t
8460_ACEOF
8461
a8b2ad8d 8462{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
8463echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 8464
a8b2ad8d 8465{ echo "$as_me:$LINENO: checking for va_copy" >&5
8466echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 8467if test "${ac_cv_c_va_copy+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469else
8470 cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476#include <stdarg.h>
8477int
8478main ()
8479{
8480va_list ap1, ap2; va_copy(ap1, ap2);
8481 ;
8482 return 0;
8483}
8484_ACEOF
8485rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8486if { (ac_try="$ac_link"
8487case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_link") 2>conftest.er1
b3076f16 8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
a8b2ad8d 8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
8504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
b3076f16 8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
b3076f16 8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_c_va_copy="yes"
8520else
8521 echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
a8b2ad8d 8524 ac_cv_c_va_copy="no"
b3076f16 8525
8526fi
a8b2ad8d 8527
8528rm -f core conftest.err conftest.$ac_objext \
b3076f16 8529 conftest$ac_exeext conftest.$ac_ext
8530fi
a8b2ad8d 8531{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8532echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 8533if test "$ac_cv_c_va_copy" = "yes" ; then
8534
8535cat >>confdefs.h <<\_ACEOF
8536#define HAVE_VA_COPY 1
8537_ACEOF
8538
8539fi
8540
a8b2ad8d 8541{ echo "$as_me:$LINENO: checking for __va_copy" >&5
8542echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 8543if test "${ac_cv_c___va_copy+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545else
8546 cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552#include <stdarg.h>
8553int
8554main ()
8555{
8556va_list ap1, ap2; __va_copy(ap1, ap2);
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8562if { (ac_try="$ac_link"
8563case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_link") 2>conftest.er1
b3076f16 8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
a8b2ad8d 8575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
8580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_try") 2>&5
b3076f16 8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; } &&
8585 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
b3076f16 8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 ac_cv_c___va_copy="yes"
8596else
8597 echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
a8b2ad8d 8600 ac_cv_c___va_copy="no"
b3076f16 8601
8602fi
a8b2ad8d 8603
8604rm -f core conftest.err conftest.$ac_objext \
b3076f16 8605 conftest$ac_exeext conftest.$ac_ext
8606fi
a8b2ad8d 8607{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8608echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 8609if test "$ac_cv_c___va_copy" = "yes" ; then
8610
8611cat >>confdefs.h <<\_ACEOF
8612#define HAVE___VA_COPY 1
8613_ACEOF
8614
8615fi
8616
8617CFLAGS=$OLD_CFLAGS
8618
a8b2ad8d 8619{ echo "$as_me:$LINENO: checking which malloc to use" >&5
8620echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 8621
a8b2ad8d 8622# Check whether --with-malloc was given.
b3076f16 8623if test "${with_malloc+set}" = set; then
a8b2ad8d 8624 withval=$with_malloc;
b3076f16 8625else
8626 withval="system"
a8b2ad8d 8627fi
8628
b3076f16 8629if test "x$withval" = "xsystem" ; then
a8b2ad8d 8630 { echo "$as_me:$LINENO: result: system" >&5
8631echo "${ECHO_T}system" >&6; }
b3076f16 8632
8633cat >>confdefs.h <<\_ACEOF
8634#define WITH_MALLOC_SYSTEM 1
8635_ACEOF
8636
5b1166fd 8637 x3_malloc="System"
b3076f16 8638elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 8639 { echo "$as_me:$LINENO: result: dmalloc" >&5
8640echo "${ECHO_T}dmalloc" >&6; }
b3076f16 8641
8642for ac_header in dmalloc.h
8643do
8644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650fi
a8b2ad8d 8651ac_res=`eval echo '${'$as_ac_Header'}'`
8652 { echo "$as_me:$LINENO: result: $ac_res" >&5
8653echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8654else
8655 # Is the header compilable?
a8b2ad8d 8656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8658cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h. */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h. */
8664$ac_includes_default
8665#include <$ac_header>
8666_ACEOF
8667rm -f conftest.$ac_objext
a8b2ad8d 8668if { (ac_try="$ac_compile"
8669case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672esac
8673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
b3076f16 8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
a8b2ad8d 8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685esac
8686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_try") 2>&5
b3076f16 8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695esac
8696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
b3076f16 8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_header_compiler=yes
8702else
8703 echo "$as_me: failed program was:" >&5
8704sed 's/^/| /' conftest.$ac_ext >&5
8705
a8b2ad8d 8706 ac_header_compiler=no
b3076f16 8707fi
a8b2ad8d 8708
8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8711echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8712
8713# Is the header present?
a8b2ad8d 8714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8716cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h. */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h. */
8722#include <$ac_header>
8723_ACEOF
a8b2ad8d 8724if { (ac_try="$ac_cpp conftest.$ac_ext"
8725case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } >/dev/null; then
8737 if test -s conftest.err; then
8738 ac_cpp_err=$ac_c_preproc_warn_flag
8739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740 else
8741 ac_cpp_err=
8742 fi
8743else
8744 ac_cpp_err=yes
8745fi
8746if test -z "$ac_cpp_err"; then
8747 ac_header_preproc=yes
8748else
8749 echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_header_preproc=no
8753fi
a8b2ad8d 8754
b3076f16 8755rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8757echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8758
8759# So? What about this header?
8760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8761 yes:no: )
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8766 ac_header_preproc=yes
8767 ;;
8768 no:yes:* )
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8781 ( cat <<\_ASBOX
63c95a47 8782## -------------------------------------------------- ##
8783## Report this to evilnet-devel@lists.sourceforge.net ##
8784## -------------------------------------------------- ##
b3076f16 8785_ASBOX
a8b2ad8d 8786 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8787 ;;
8788esac
a8b2ad8d 8789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794 eval "$as_ac_Header=\$ac_header_preproc"
8795fi
a8b2ad8d 8796ac_res=`eval echo '${'$as_ac_Header'}'`
8797 { echo "$as_me:$LINENO: result: $ac_res" >&5
8798echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8799
8800fi
8801if test `eval echo '${'$as_ac_Header'}'` = yes; then
8802 cat >>confdefs.h <<_ACEOF
8803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804_ACEOF
8805
8806else
8807 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8808echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8809 { (exit 1); exit 1; }; }
8810fi
8811
8812done
8813
8814
a8b2ad8d 8815{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8816echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 8817if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 ac_check_lib_save_LIBS=$LIBS
8821LIBS="-ldmalloc $LIBS"
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828
a8b2ad8d 8829/* Override any GCC internal prototype to avoid an error.
8830 Use char because int might match the return type of a GCC
8831 builtin and then its argument prototype would still apply. */
b3076f16 8832#ifdef __cplusplus
8833extern "C"
8834#endif
b3076f16 8835char malloc ();
8836int
8837main ()
8838{
a8b2ad8d 8839return malloc ();
b3076f16 8840 ;
8841 return 0;
8842}
8843_ACEOF
8844rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8845if { (ac_try="$ac_link"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_link") 2>conftest.er1
b3076f16 8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
a8b2ad8d 8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862esac
8863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
b3076f16 8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8872esac
8873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_try") 2>&5
b3076f16 8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_lib_dmalloc_malloc=yes
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
a8b2ad8d 8883 ac_cv_lib_dmalloc_malloc=no
b3076f16 8884fi
a8b2ad8d 8885
8886rm -f core conftest.err conftest.$ac_objext \
b3076f16 8887 conftest$ac_exeext conftest.$ac_ext
8888LIBS=$ac_check_lib_save_LIBS
8889fi
a8b2ad8d 8890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8891echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 8892if test $ac_cv_lib_dmalloc_malloc = yes; then
8893 cat >>confdefs.h <<_ACEOF
8894#define HAVE_LIBDMALLOC 1
8895_ACEOF
8896
8897 LIBS="-ldmalloc $LIBS"
8898
8899else
8900 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8901echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8902 { (exit 1); exit 1; }; }
8903fi
8904
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define WITH_MALLOC_DMALLOC 1
8908_ACEOF
8909
5b1166fd 8910 x3_malloc="DMalloc"
b3076f16 8911elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8912 { echo "$as_me:$LINENO: result: mpatrol" >&5
8913echo "${ECHO_T}mpatrol" >&6; }
b3076f16 8914
8915for ac_header in mpatrol.h
8916do
8917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923fi
a8b2ad8d 8924ac_res=`eval echo '${'$as_ac_Header'}'`
8925 { echo "$as_me:$LINENO: result: $ac_res" >&5
8926echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8927else
8928 # Is the header compilable?
a8b2ad8d 8929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8931cat >conftest.$ac_ext <<_ACEOF
8932/* confdefs.h. */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
8937$ac_includes_default
8938#include <$ac_header>
8939_ACEOF
8940rm -f conftest.$ac_objext
a8b2ad8d 8941if { (ac_try="$ac_compile"
8942case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945esac
8946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_compile") 2>conftest.er1
b3076f16 8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
a8b2ad8d 8954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8955 { (case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_try") 2>&5
b3076f16 8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 8965 { (case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968esac
8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_try") 2>&5
b3076f16 8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_header_compiler=yes
8975else
8976 echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
a8b2ad8d 8979 ac_header_compiler=no
b3076f16 8980fi
a8b2ad8d 8981
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8984echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8985
8986# Is the header present?
a8b2ad8d 8987{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8989cat >conftest.$ac_ext <<_ACEOF
8990/* confdefs.h. */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
8994/* end confdefs.h. */
8995#include <$ac_header>
8996_ACEOF
a8b2ad8d 8997if { (ac_try="$ac_cpp conftest.$ac_ext"
8998case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001esac
9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } >/dev/null; then
9010 if test -s conftest.err; then
9011 ac_cpp_err=$ac_c_preproc_warn_flag
9012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9013 else
9014 ac_cpp_err=
9015 fi
9016else
9017 ac_cpp_err=yes
9018fi
9019if test -z "$ac_cpp_err"; then
9020 ac_header_preproc=yes
9021else
9022 echo "$as_me: failed program was:" >&5
9023sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 ac_header_preproc=no
9026fi
a8b2ad8d 9027
b3076f16 9028rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9031
9032# So? What about this header?
9033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034 yes:no: )
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039 ac_header_preproc=yes
9040 ;;
9041 no:yes:* )
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9054 ( cat <<\_ASBOX
63c95a47 9055## -------------------------------------------------- ##
9056## Report this to evilnet-devel@lists.sourceforge.net ##
9057## -------------------------------------------------- ##
b3076f16 9058_ASBOX
a8b2ad8d 9059 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 9060 ;;
9061esac
a8b2ad8d 9062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066else
9067 eval "$as_ac_Header=\$ac_header_preproc"
9068fi
a8b2ad8d 9069ac_res=`eval echo '${'$as_ac_Header'}'`
9070 { echo "$as_me:$LINENO: result: $ac_res" >&5
9071echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9072
9073fi
9074if test `eval echo '${'$as_ac_Header'}'` = yes; then
9075 cat >>confdefs.h <<_ACEOF
9076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9077_ACEOF
9078
9079else
9080 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
9081echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
9082 { (exit 1); exit 1; }; }
9083fi
9084
9085done
9086
9087
a8b2ad8d 9088{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9089echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 9090if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093 ac_check_lib_save_LIBS=$LIBS
9094LIBS="-lelf $LIBS"
9095cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101
a8b2ad8d 9102/* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
b3076f16 9105#ifdef __cplusplus
9106extern "C"
9107#endif
b3076f16 9108char elf_begin ();
9109int
9110main ()
9111{
a8b2ad8d 9112return elf_begin ();
b3076f16 9113 ;
9114 return 0;
9115}
9116_ACEOF
9117rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9118if { (ac_try="$ac_link"
9119case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122esac
9123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_link") 2>conftest.er1
b3076f16 9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
a8b2ad8d 9131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135esac
9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
b3076f16 9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145esac
9146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
b3076f16 9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_cv_lib_elf_elf_begin=yes
9152else
9153 echo "$as_me: failed program was:" >&5
9154sed 's/^/| /' conftest.$ac_ext >&5
9155
a8b2ad8d 9156 ac_cv_lib_elf_elf_begin=no
b3076f16 9157fi
a8b2ad8d 9158
9159rm -f core conftest.err conftest.$ac_objext \
b3076f16 9160 conftest$ac_exeext conftest.$ac_ext
9161LIBS=$ac_check_lib_save_LIBS
9162fi
a8b2ad8d 9163{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9164echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 9165if test $ac_cv_lib_elf_elf_begin = yes; then
9166 cat >>confdefs.h <<_ACEOF
9167#define HAVE_LIBELF 1
9168_ACEOF
9169
9170 LIBS="-lelf $LIBS"
9171
9172fi
9173
9174
a8b2ad8d 9175{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
9176echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 9177if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179else
9180 ac_check_lib_save_LIBS=$LIBS
9181LIBS="-lmpatrol $LIBS"
9182cat >conftest.$ac_ext <<_ACEOF
9183/* confdefs.h. */
9184_ACEOF
9185cat confdefs.h >>conftest.$ac_ext
9186cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h. */
9188
a8b2ad8d 9189/* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
b3076f16 9192#ifdef __cplusplus
9193extern "C"
9194#endif
b3076f16 9195char __mp_atexit ();
9196int
9197main ()
9198{
a8b2ad8d 9199return __mp_atexit ();
b3076f16 9200 ;
9201 return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9205if { (ac_try="$ac_link"
9206case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_link") 2>conftest.er1
b3076f16 9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
a8b2ad8d 9218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9219 { (case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222esac
9223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_try") 2>&5
b3076f16 9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; } &&
9228 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9229 { (case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232esac
9233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_try") 2>&5
b3076f16 9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_lib_mpatrol___mp_atexit=yes
9239else
9240 echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
a8b2ad8d 9243 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 9244fi
a8b2ad8d 9245
9246rm -f core conftest.err conftest.$ac_objext \
b3076f16 9247 conftest$ac_exeext conftest.$ac_ext
9248LIBS=$ac_check_lib_save_LIBS
9249fi
a8b2ad8d 9250{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
9251echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 9252if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
9253 cat >>confdefs.h <<_ACEOF
9254#define HAVE_LIBMPATROL 1
9255_ACEOF
9256
9257 LIBS="-lmpatrol $LIBS"
9258
9259else
9260 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
9261echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
9262 { (exit 1); exit 1; }; }
9263fi
9264
9265
9266cat >>confdefs.h <<\_ACEOF
9267#define WITH_MALLOC_MPATROL 1
9268_ACEOF
9269
5b1166fd 9270 x3_malloc="MPatrol"
b3076f16 9271elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 9272 { echo "$as_me:$LINENO: result: boehm-gc" >&5
9273echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 9274
9275for ac_header in gc/gc.h
9276do
9277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 9278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283fi
a8b2ad8d 9284ac_res=`eval echo '${'$as_ac_Header'}'`
9285 { echo "$as_me:$LINENO: result: $ac_res" >&5
9286echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9287else
9288 # Is the header compilable?
a8b2ad8d 9289{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 9291cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
9297$ac_includes_default
9298#include <$ac_header>
9299_ACEOF
9300rm -f conftest.$ac_objext
a8b2ad8d 9301if { (ac_try="$ac_compile"
9302case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305esac
9306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_compile") 2>conftest.er1
b3076f16 9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
a8b2ad8d 9314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9315 { (case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318esac
9319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_try") 2>&5
b3076f16 9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 9325 { (case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328esac
9329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_try") 2>&5
b3076f16 9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_header_compiler=yes
9335else
9336 echo "$as_me: failed program was:" >&5
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
a8b2ad8d 9339 ac_header_compiler=no
b3076f16 9340fi
a8b2ad8d 9341
9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9344echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 9345
9346# Is the header present?
a8b2ad8d 9347{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 9349cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355#include <$ac_header>
9356_ACEOF
a8b2ad8d 9357if { (ac_try="$ac_cpp conftest.$ac_ext"
9358case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361esac
9362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } >/dev/null; then
9370 if test -s conftest.err; then
9371 ac_cpp_err=$ac_c_preproc_warn_flag
9372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9373 else
9374 ac_cpp_err=
9375 fi
9376else
9377 ac_cpp_err=yes
9378fi
9379if test -z "$ac_cpp_err"; then
9380 ac_header_preproc=yes
9381else
9382 echo "$as_me: failed program was:" >&5
9383sed 's/^/| /' conftest.$ac_ext >&5
9384
9385 ac_header_preproc=no
9386fi
a8b2ad8d 9387
b3076f16 9388rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9389{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9390echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9391
9392# So? What about this header?
9393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9394 yes:no: )
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9399 ac_header_preproc=yes
9400 ;;
9401 no:yes:* )
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9414 ( cat <<\_ASBOX
63c95a47 9415## -------------------------------------------------- ##
9416## Report this to evilnet-devel@lists.sourceforge.net ##
9417## -------------------------------------------------- ##
b3076f16 9418_ASBOX
a8b2ad8d 9419 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 9420 ;;
9421esac
a8b2ad8d 9422{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426else
9427 eval "$as_ac_Header=\$ac_header_preproc"
9428fi
a8b2ad8d 9429ac_res=`eval echo '${'$as_ac_Header'}'`
9430 { echo "$as_me:$LINENO: result: $ac_res" >&5
9431echo "${ECHO_T}$ac_res" >&6; }
b3076f16 9432
9433fi
9434if test `eval echo '${'$as_ac_Header'}'` = yes; then
9435 cat >>confdefs.h <<_ACEOF
9436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437_ACEOF
9438
9439else
9440 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
9441echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
9442 { (exit 1); exit 1; }; }
9443fi
9444
9445done
9446
9447
a8b2ad8d 9448{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9449echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 9450if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452else
9453 ac_check_lib_save_LIBS=$LIBS
9454LIBS="-ldl $LIBS"
9455cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461
a8b2ad8d 9462/* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
b3076f16 9465#ifdef __cplusplus
9466extern "C"
9467#endif
b3076f16 9468char dlopen ();
9469int
9470main ()
9471{
a8b2ad8d 9472return dlopen ();
b3076f16 9473 ;
9474 return 0;
9475}
9476_ACEOF
9477rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9478if { (ac_try="$ac_link"
9479case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482esac
9483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
b3076f16 9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
a8b2ad8d 9491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9492 { (case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495esac
9496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_try") 2>&5
b3076f16 9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9502 { (case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505esac
9506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
b3076f16 9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_lib_dl_dlopen=yes
9512else
9513 echo "$as_me: failed program was:" >&5
9514sed 's/^/| /' conftest.$ac_ext >&5
9515
a8b2ad8d 9516 ac_cv_lib_dl_dlopen=no
b3076f16 9517fi
a8b2ad8d 9518
9519rm -f core conftest.err conftest.$ac_objext \
b3076f16 9520 conftest$ac_exeext conftest.$ac_ext
9521LIBS=$ac_check_lib_save_LIBS
9522fi
a8b2ad8d 9523{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9524echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 9525if test $ac_cv_lib_dl_dlopen = yes; then
9526 cat >>confdefs.h <<_ACEOF
9527#define HAVE_LIBDL 1
9528_ACEOF
9529
9530 LIBS="-ldl $LIBS"
9531
9532else
9533 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
9534echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
9535 { (exit 1); exit 1; }; }
9536fi
9537
9538
a8b2ad8d 9539{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
9540echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 9541if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543else
9544 ac_check_lib_save_LIBS=$LIBS
9545LIBS="-lgc $LIBS"
9546cat >conftest.$ac_ext <<_ACEOF
9547/* confdefs.h. */
9548_ACEOF
9549cat confdefs.h >>conftest.$ac_ext
9550cat >>conftest.$ac_ext <<_ACEOF
9551/* end confdefs.h. */
9552
a8b2ad8d 9553/* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
b3076f16 9556#ifdef __cplusplus
9557extern "C"
9558#endif
b3076f16 9559char GC_gcollect ();
9560int
9561main ()
9562{
a8b2ad8d 9563return GC_gcollect ();
b3076f16 9564 ;
9565 return 0;
9566}
9567_ACEOF
9568rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9569if { (ac_try="$ac_link"
9570case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
b3076f16 9576 ac_status=$?
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
a8b2ad8d 9582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586esac
9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
b3076f16 9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 9593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
b3076f16 9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_cv_lib_gc_GC_gcollect=yes
9603else
9604 echo "$as_me: failed program was:" >&5
9605sed 's/^/| /' conftest.$ac_ext >&5
9606
a8b2ad8d 9607 ac_cv_lib_gc_GC_gcollect=no
b3076f16 9608fi
a8b2ad8d 9609
9610rm -f core conftest.err conftest.$ac_objext \
b3076f16 9611 conftest$ac_exeext conftest.$ac_ext
9612LIBS=$ac_check_lib_save_LIBS
9613fi
a8b2ad8d 9614{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
9615echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 9616if test $ac_cv_lib_gc_GC_gcollect = yes; then
9617 cat >>confdefs.h <<_ACEOF
9618#define HAVE_LIBGC 1
9619_ACEOF
9620
9621 LIBS="-lgc $LIBS"
9622
9623else
9624 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
9625echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
9626 { (exit 1); exit 1; }; }
9627fi
9628
9629
9630cat >>confdefs.h <<\_ACEOF
9631#define WITH_MALLOC_BOEHM_GC 1
9632_ACEOF
9633
5b1166fd 9634 x3_malloc="Boehm"
b8cb2a14 9635elif test "x$withval" = "xx3" ; then
a8b2ad8d 9636 { echo "$as_me:$LINENO: result: x3" >&5
9637echo "${ECHO_T}x3" >&6; }
ec1a68c8 9638
9639cat >>confdefs.h <<\_ACEOF
b8cb2a14 9640#define WITH_MALLOC_X3 1
ec1a68c8 9641_ACEOF
9642
b8cb2a14 9643 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 9644 x3_malloc="X3"
ceafd592 9645elif test "x$withval" = "xslab" ; then
a8b2ad8d 9646 { echo "$as_me:$LINENO: result: slab" >&5
9647echo "${ECHO_T}slab" >&6; }
ceafd592 9648
9649cat >>confdefs.h <<\_ACEOF
9650#define WITH_MALLOC_SLAB 1
9651_ACEOF
9652
9653 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 9654 x3_malloc="Slab"
b3076f16 9655else
9656 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
9657echo "$as_me: error: Unknown malloc type $withval" >&2;}
9658 { (exit 1); exit 1; }; }
9659fi
9660
a8b2ad8d 9661{ echo "$as_me:$LINENO: checking which protocol to use" >&5
9662echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 9663
a8b2ad8d 9664# Check whether --with-protocol was given.
b3076f16 9665if test "${with_protocol+set}" = set; then
a8b2ad8d 9666 withval=$with_protocol;
b3076f16 9667else
9668 withval="p10"
a8b2ad8d 9669fi
9670
b3076f16 9671if test "x$withval" = "xp10" ; then
a8b2ad8d 9672 { echo "$as_me:$LINENO: result: P10" >&5
9673echo "${ECHO_T}P10" >&6; }
b3076f16 9674
9675cat >>confdefs.h <<\_ACEOF
9676#define WITH_PROTOCOL_P10 1
9677_ACEOF
9678
2f61d1d7 9679 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
b3076f16 9680 PROTO_FILES=proto-p10.c
5b1166fd 9681 x3_ircd="P10"
b3076f16 9682else
9683 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
9684echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
9685 { (exit 1); exit 1; }; }
9686fi
9687
8da89711 9688
9689# Check whether --with-getopt was given.
9690if test "${with_getopt+set}" = set; then
9691 withval=$with_getopt; if test "$withval" = no; then
9692
9693cat >>confdefs.h <<\_ACEOF
9694#define IGNORE_GETOPT 1
9695_ACEOF
9696
9697fi
9698fi
9699
9700
9701{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
9702echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
9703# Check whether --enable-tokens was given.
9704if test "${enable_tokens+set}" = set; then
9705 enableval=$enable_tokens;
9706else
9707 enableval=yes
9708fi
9709
9710if test "z$enableval" = zno ; then
9711 { echo "$as_me:$LINENO: result: no" >&5
9712echo "${ECHO_T}no" >&6; }
9713else
9714
9715cat >>confdefs.h <<\_ACEOF
9716#define ENABLE_TOKENS 1
9717_ACEOF
9718
9719 { echo "$as_me:$LINENO: result: yes" >&5
9720echo "${ECHO_T}yes" >&6; }
9721fi
9722
9723{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
9724echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
9725# Check whether --enable-debug was given.
9726if test "${enable_debug+set}" = set; then
9727 enableval=$enable_debug;
9728 CPPFLAGS="$CPPFLAGS"
e166c31b 9729 { echo "$as_me:$LINENO: result: yes" >&5
9730echo "${ECHO_T}yes" >&6; }
8da89711 9731 x3_debug="Enabled"
e166c31b 9732
9733else
9734
8da89711 9735 CPPFLAGS="$CPPFLAGS -DNDEBUG"
e166c31b 9736 { echo "$as_me:$LINENO: result: no" >&5
9737echo "${ECHO_T}no" >&6; }
8da89711 9738 x3_debug="Disabled"
e166c31b 9739
9740fi
9741
9742
8da89711 9743if test -e src ; then
9744 if test ! -d src ; then
9745 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
9746echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
9747 { (exit 1); exit 1; }; }
9748 fi
9749else
9750 mkdir src
9751fi
9752{ echo "$as_me:$LINENO: checking for extra module files" >&5
9753echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
9754MODULE_DEFINES="src/modules-list.h"
9755echo > $MODULE_DEFINES
9756touch $MODULE_DEFINES
9757# Check whether --enable-modules was given.
9758if test "${enable_modules+set}" = set; then
9759 enableval=$enable_modules;
9760 OIFS="$IFS"
9761 IFS=','
9762 EXTRA_MODULE_OBJS=""
9763 module_list=""
9764 for module in $enableval ; do
9765 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
9766 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
9767 module_list="$module_list $module"
9768 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
9769 if test "x$module" = "xtrack" ; then
9770 TRACK="-D HAVE_TRACK"
e166c31b 9771
9772cat >>confdefs.h <<\_ACEOF
8da89711 9773#define HAVE_TRACK 1
e166c31b 9774_ACEOF
9775
8da89711 9776 fi
9777 if test "x$module" = "xhelpserv" ; then
9778 TRACK="-D HAVE_HELPSERV"
e166c31b 9779
8da89711 9780cat >>confdefs.h <<\_ACEOF
9781#define HAVE_HELPSERV 1
e166c31b 9782_ACEOF
e166c31b 9783
8da89711 9784 fi
9785 done
9786 IFS="$OIFS"
9787 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
9788 { echo "$as_me:$LINENO: result: $module_list" >&5
9789echo "${ECHO_T}$module_list" >&6; }
9790
e166c31b 9791else
e166c31b 9792
8da89711 9793 { echo "$as_me:$LINENO: result: none" >&5
9794echo "${ECHO_T}none" >&6; }
e166c31b 9795
e166c31b 9796fi
e166c31b 9797
e166c31b 9798
8da89711 9799MY_SUBDIRS=""
9800RX_INCLUDES=""
9801RX_LIBS=""
9802if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
9803 MY_SUBDIRS="rx $MY_SUBDIRS"
9804 RX_INCLUDES="-I../rx"
9805 RX_LIBS="../rx/librx.a"
9806fi
9807MY_SUBDIRS="$MY_SUBDIRS src"
9808CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
9809if test "z$USE_MAINTAINER_MODE" = zyes ; then
9810 CFLAGS="$CFLAGS -Werror"
e166c31b 9811fi
9812
9813
8da89711 9814tre_version="0.7.5"
9815withval=''
9816
9817# Check whether --with-tre was given.
9818if test "${with_tre+set}" = set; then
9819 withval=$with_tre;
9820fi
9821
9822if test "x$withval" != "x"; then
9823 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
9824echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
9825 CPPFLAGS="-I$withval/include -L$withval/lib"
9826 LIBS="$LIBS -L$withval/lib"
9827else
9828 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
9829echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
9830 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
9831 LIBS="$LIBS -L${HOME}/lib"
9832fi
9833if test "${ac_cv_header_tre_regex_h+set}" = set; then
9834 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9835echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9836if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838fi
8da89711 9839{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9840echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9841else
9842 # Is the header compilable?
8da89711 9843{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
9844echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
e166c31b 9845cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h. */
9851$ac_includes_default
8da89711 9852#include <tre/regex.h>
e166c31b 9853_ACEOF
9854rm -f conftest.$ac_objext
9855if { (ac_try="$ac_compile"
9856case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_compile") 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest.$ac_objext'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_header_compiler=yes
9889else
9890 echo "$as_me: failed program was:" >&5
9891sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ac_header_compiler=no
9894fi
9895
9896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9898echo "${ECHO_T}$ac_header_compiler" >&6; }
9899
9900# Is the header present?
8da89711 9901{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9902echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
e166c31b 9903cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h. */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h. */
8da89711 9909#include <tre/regex.h>
e166c31b 9910_ACEOF
9911if { (ac_try="$ac_cpp conftest.$ac_ext"
9912case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } >/dev/null; then
9924 if test -s conftest.err; then
9925 ac_cpp_err=$ac_c_preproc_warn_flag
9926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9927 else
9928 ac_cpp_err=
9929 fi
9930else
9931 ac_cpp_err=yes
9932fi
9933if test -z "$ac_cpp_err"; then
9934 ac_header_preproc=yes
9935else
9936 echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_header_preproc=no
9940fi
9941
9942rm -f conftest.err conftest.$ac_ext
9943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9944echo "${ECHO_T}$ac_header_preproc" >&6; }
9945
9946# So? What about this header?
9947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9948 yes:no: )
8da89711 9949 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9950echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9952echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
e166c31b 9953 ac_header_preproc=yes
9954 ;;
9955 no:yes:* )
8da89711 9956 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9957echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9959echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9961echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9963echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9965echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9967echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
e166c31b 9968 ( cat <<\_ASBOX
9969## -------------------------------------------------- ##
9970## Report this to evilnet-devel@lists.sourceforge.net ##
9971## -------------------------------------------------- ##
9972_ASBOX
9973 ) | sed "s/^/$as_me: WARNING: /" >&2
9974 ;;
9975esac
8da89711 9976{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9977echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9978if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980else
8da89711 9981 ac_cv_header_tre_regex_h=$ac_header_preproc
e166c31b 9982fi
8da89711 9983{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9984echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9985
9986fi
8da89711 9987if test $ac_cv_header_tre_regex_h = yes; then
9988 :
e166c31b 9989else
8da89711 9990 { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9991echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
e166c31b 9992 { (exit 1); exit 1; }; }
9993fi
9994
e166c31b 9995
b3076f16 9996
8da89711 9997{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9998echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9999if test "${ac_cv_lib_tre_regexec+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 10001else
8da89711 10002 ac_check_lib_save_LIBS=$LIBS
10003LIBS="-ltre $LIBS"
10004cat >conftest.$ac_ext <<_ACEOF
10005/* confdefs.h. */
b3076f16 10006_ACEOF
8da89711 10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h. */
b3076f16 10010
8da89711 10011/* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014#ifdef __cplusplus
10015extern "C"
10016#endif
10017char regexec ();
10018int
10019main ()
10020{
10021return regexec ();
10022 ;
10023 return 0;
10024}
10025_ACEOF
10026rm -f conftest.$ac_objext conftest$ac_exeext
10027if { (ac_try="$ac_link"
10028case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_link") 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest$ac_exeext'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_lib_tre_regexec=yes
b3076f16 10061else
8da89711 10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10064
8da89711 10065 ac_cv_lib_tre_regexec=no
a8b2ad8d 10066fi
10067
8da89711 10068rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070LIBS=$ac_check_lib_save_LIBS
b3076f16 10071fi
8da89711 10072{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
10073echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
10074if test $ac_cv_lib_tre_regexec = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076#define HAVE_LIBTRE 1
8de34abd 10077_ACEOF
10078
8da89711 10079 LIBS="-ltre $LIBS"
b3076f16 10080
10081else
8da89711 10082 { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
10083echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
10084 { (exit 1); exit 1; }; }
b3076f16 10085fi
10086
35305a49 10087
8da89711 10088core_version="0.2"
35305a49 10089withval=''
10090
8da89711 10091# Check whether --with-coredumper was given.
10092if test "${with_coredumper+set}" = set; then
10093 withval=$with_coredumper;
a8b2ad8d 10094fi
35305a49 10095
35305a49 10096if test "x$withval" != "x"; then
8da89711 10097 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
10098echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
35305a49 10099 CPPFLAGS="-I$withval/include -L$withval/lib"
0754f993 10100 LIBS="$LIBS -L$withval/lib"
35305a49 10101else
8da89711 10102 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
10103echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
35305a49 10104 CPPFLAGS="-I${HOME}/include -L${HOME}/lib"
0754f993 10105 LIBS="$LIBS -L${HOME}/lib"
35305a49 10106fi
8da89711 10107if test "${ac_cv_header_google_coredumper_h+set}" = set; then
10108 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10109echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10110if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112fi
8da89711 10113{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10114echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
35305a49 10115else
10116 # Is the header compilable?
8da89711 10117{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
10118echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
35305a49 10119cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125$ac_includes_default
8da89711 10126#include <google/coredumper.h>
35305a49 10127_ACEOF
10128rm -f conftest.$ac_objext
a8b2ad8d 10129if { (ac_try="$ac_compile"
10130case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_compile") 2>conftest.er1
35305a49 10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
a8b2ad8d 10142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
35305a49 10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest.$ac_objext'
a8b2ad8d 10153 { (case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156esac
10157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_try") 2>&5
35305a49 10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_header_compiler=yes
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
a8b2ad8d 10167 ac_header_compiler=no
35305a49 10168fi
a8b2ad8d 10169
10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10172echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 10173
10174# Is the header present?
8da89711 10175{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
10176echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
35305a49 10177cat >conftest.$ac_ext <<_ACEOF
10178/* confdefs.h. */
10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h. */
8da89711 10183#include <google/coredumper.h>
35305a49 10184_ACEOF
a8b2ad8d 10185if { (ac_try="$ac_cpp conftest.$ac_ext"
10186case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189esac
10190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } >/dev/null; then
10198 if test -s conftest.err; then
10199 ac_cpp_err=$ac_c_preproc_warn_flag
10200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10201 else
10202 ac_cpp_err=
10203 fi
10204else
10205 ac_cpp_err=yes
10206fi
10207if test -z "$ac_cpp_err"; then
10208 ac_header_preproc=yes
10209else
10210 echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_header_preproc=no
10214fi
a8b2ad8d 10215
35305a49 10216rm -f conftest.err conftest.$ac_ext
a8b2ad8d 10217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10218echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 10219
10220# So? What about this header?
10221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10222 yes:no: )
8da89711 10223 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
10224echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
10226echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
35305a49 10227 ac_header_preproc=yes
10228 ;;
10229 no:yes:* )
8da89711 10230 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
10231echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
10233echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
10234 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
10235echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
10237echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
10239echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
10241echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 10242 ( cat <<\_ASBOX
35305a49 10243## -------------------------------------------------- ##
10244## Report this to evilnet-devel@lists.sourceforge.net ##
10245## -------------------------------------------------- ##
10246_ASBOX
a8b2ad8d 10247 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 10248 ;;
10249esac
8da89711 10250{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
10251echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
10252if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
8da89711 10255 ac_cv_header_google_coredumper_h=$ac_header_preproc
10256fi
10257{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
10258echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
10259
10260fi
10261if test $ac_cv_header_google_coredumper_h = yes; then
10262 :
10263else
10264 { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10265echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
10266fi
10267
10268
10269
10270{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
10271echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
10272if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275 ac_check_lib_save_LIBS=$LIBS
10276LIBS="-lcoredumper $LIBS"
10277cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h. */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h. */
10283
10284/* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10287#ifdef __cplusplus
10288extern "C"
10289#endif
10290char WriteCoreDump ();
10291int
10292main ()
10293{
10294return WriteCoreDump ();
10295 ;
10296 return 0;
10297}
10298_ACEOF
10299rm -f conftest.$ac_objext conftest$ac_exeext
10300if { (ac_try="$ac_link"
10301case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304esac
10305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_link") 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10314 { (case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_try") 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327esac
10328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_lib_coredumper_WriteCoreDump=yes
10334else
10335 echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 10339fi
35305a49 10340
8da89711 10341rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343LIBS=$ac_check_lib_save_LIBS
35305a49 10344fi
8da89711 10345{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
10346echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
10347if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
10348 cat >>confdefs.h <<_ACEOF
10349#define HAVE_LIBCOREDUMPER 1
10350_ACEOF
10351
10352 LIBS="-lcoredumper $LIBS"
10353
35305a49 10354else
8da89711 10355 { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
10356echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
35305a49 10357fi
10358
10359
8da89711 10360withval=''
35305a49 10361
8da89711 10362# Check whether --with-ldap was given.
10363if test "${with_ldap+set}" = set; then
10364 withval=$with_ldap;
10365fi
10366
10367if test "x$withval" != "x"; then
10368 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
10369echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
10370 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
10371 LIBS="$LIBS -L$withval/lib"
10372else
10373 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
10374echo "${ECHO_T}Looking for ldap in system " >&6; }
10375fi
10376
10377{ echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
10378echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
10379if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
35305a49 10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382 ac_check_lib_save_LIBS=$LIBS
8da89711 10383LIBS="-lldap $LIBS"
35305a49 10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390
a8b2ad8d 10391/* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
35305a49 10394#ifdef __cplusplus
10395extern "C"
10396#endif
8da89711 10397char ldap_init ();
35305a49 10398int
10399main ()
10400{
8da89711 10401return ldap_init ();
35305a49 10402 ;
10403 return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 10407if { (ac_try="$ac_link"
10408case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411esac
10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_link") 2>conftest.er1
35305a49 10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } &&
a8b2ad8d 10420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10421 { (case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_try") 2>&5
35305a49 10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
a8b2ad8d 10431 { (case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_try") 2>&5
35305a49 10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
8da89711 10440 ac_cv_lib_ldap_ldap_init=yes
5b1166fd 10441else
35305a49 10442 echo "$as_me: failed program was:" >&5
10443sed 's/^/| /' conftest.$ac_ext >&5
10444
8da89711 10445 ac_cv_lib_ldap_ldap_init=no
35305a49 10446fi
a8b2ad8d 10447
10448rm -f core conftest.err conftest.$ac_objext \
35305a49 10449 conftest$ac_exeext conftest.$ac_ext
10450LIBS=$ac_check_lib_save_LIBS
5b1166fd 10451fi
8da89711 10452{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
10453echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
10454if test $ac_cv_lib_ldap_ldap_init = yes; then
b3076f16 10455
b3076f16 10456
8da89711 10457for ac_header in ldap.h
10458do
10459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465fi
8da89711 10466ac_res=`eval echo '${'$as_ac_Header'}'`
10467 { echo "$as_me:$LINENO: result: $ac_res" >&5
10468echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 10469else
10470 # Is the header compilable?
8da89711 10471{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a8b2ad8d 10473cat >conftest.$ac_ext <<_ACEOF
10474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
10479$ac_includes_default
8da89711 10480#include <$ac_header>
a8b2ad8d 10481_ACEOF
10482rm -f conftest.$ac_objext
10483if { (ac_try="$ac_compile"
10484case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487esac
10488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_compile") 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10497 { (case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500esac
10501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_try") 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510esac
10511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_try") 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_header_compiler=yes
10517else
10518 echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10520
a8b2ad8d 10521 ac_header_compiler=no
10522fi
b3076f16 10523
a8b2ad8d 10524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10526echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 10527
a8b2ad8d 10528# Is the header present?
8da89711 10529{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a8b2ad8d 10531cat >conftest.$ac_ext <<_ACEOF
10532/* confdefs.h. */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h. */
8da89711 10537#include <$ac_header>
a8b2ad8d 10538_ACEOF
10539if { (ac_try="$ac_cpp conftest.$ac_ext"
10540case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543esac
10544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } >/dev/null; then
10552 if test -s conftest.err; then
10553 ac_cpp_err=$ac_c_preproc_warn_flag
10554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10555 else
10556 ac_cpp_err=
10557 fi
10558else
10559 ac_cpp_err=yes
10560fi
10561if test -z "$ac_cpp_err"; then
10562 ac_header_preproc=yes
10563else
10564 echo "$as_me: failed program was:" >&5
10565sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 10566
a8b2ad8d 10567 ac_header_preproc=no
10568fi
ec311f39 10569
a8b2ad8d 10570rm -f conftest.err conftest.$ac_ext
10571{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10572echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 10573
a8b2ad8d 10574# So? What about this header?
10575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10576 yes:no: )
8da89711 10577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
a8b2ad8d 10581 ac_header_preproc=yes
10582 ;;
10583 no:yes:* )
8da89711 10584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10591echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 10596 ( cat <<\_ASBOX
10597## -------------------------------------------------- ##
10598## Report this to evilnet-devel@lists.sourceforge.net ##
10599## -------------------------------------------------- ##
10600_ASBOX
10601 ) | sed "s/^/$as_me: WARNING: /" >&2
10602 ;;
10603esac
8da89711 10604{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608else
8da89711 10609 eval "$as_ac_Header=\$ac_header_preproc"
a8b2ad8d 10610fi
8da89711 10611ac_res=`eval echo '${'$as_ac_Header'}'`
10612 { echo "$as_me:$LINENO: result: $ac_res" >&5
10613echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 10614
10615fi
8da89711 10616if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10619_ACEOF
a8b2ad8d 10620
10621
8da89711 10622cat >>confdefs.h <<\_ACEOF
10623#define WITH_LDAP 1
a8b2ad8d 10624_ACEOF
a8b2ad8d 10625
8da89711 10626ldap_message="LDAP library: enabled"
10627
a8b2ad8d 10628else
a8b2ad8d 10629
8da89711 10630if "x$withval" != "x"; then
10631 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
10632echo "$as_me: error: ldap.h not found" >&2;}
10633 { (exit 1); exit 1; }; }
a8b2ad8d 10634fi
10635
a8b2ad8d 10636fi
a8b2ad8d 10637
8da89711 10638done
10639
a8b2ad8d 10640
10641else
8da89711 10642
10643if "x$withval" != "x"; then
10644 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
10645echo "$as_me: error: libldap not found or not valid" >&2;}
10646 { (exit 1); exit 1; }; }
10647fi
10648
10649
a8b2ad8d 10650fi
10651
10652
10653
10654cat >>confdefs.h <<_ACEOF
10655#define CODENAME "${CODENAME}"
10656_ACEOF
10657
10658
10659
10660
10661
10662
10663ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
10664
10665cat >confcache <<\_ACEOF
10666# This file is a shell script that caches the results of configure
10667# tests run on this system so they can be shared between configure
10668# scripts and configure runs, see configure's option --config-cache.
10669# It is not useful on other systems. If it contains results you don't
10670# want to keep, you may remove or edit it.
10671#
b3076f16 10672# config.status only pays attention to the cache file if you give it
10673# the --recheck option to rerun configure.
10674#
10675# `ac_cv_env_foo' variables (set or unset) will be overridden when
10676# loading this file, other *unset* `ac_cv_foo' will be assigned the
10677# following values.
10678
10679_ACEOF
10680
10681# The following way of writing the cache mishandles newlines in values,
10682# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 10683# So, we kill variables containing newlines.
b3076f16 10684# Ultrix sh set writes to stderr and can't be redirected directly,
10685# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 10686(
10687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10688 eval ac_val=\$$ac_var
10689 case $ac_val in #(
10690 *${as_nl}*)
10691 case $ac_var in #(
10692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10693echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10694 esac
10695 case $ac_var in #(
10696 _ | IFS | as_nl) ;; #(
10697 *) $as_unset $ac_var ;;
10698 esac ;;
10699 esac
10700 done
10701
b3076f16 10702 (set) 2>&1 |
a8b2ad8d 10703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10704 *${as_nl}ac_space=\ *)
b3076f16 10705 # `set' does not quote correctly, so add quotes (double-quote
10706 # substitution turns \\\\ into \\, and sed turns \\ into \).
10707 sed -n \
10708 "s/'/'\\\\''/g;
10709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 10710 ;; #(
b3076f16 10711 *)
10712 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 10713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 10714 ;;
a8b2ad8d 10715 esac |
10716 sort
10717) |
b3076f16 10718 sed '
a8b2ad8d 10719 /^ac_cv_env_/b end
b3076f16 10720 t clear
a8b2ad8d 10721 :clear
b3076f16 10722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10723 t end
a8b2ad8d 10724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10725 :end' >>confcache
10726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10727 if test -w "$cache_file"; then
10728 test "x$cache_file" != "x/dev/null" &&
10729 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10730echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 10731 cat confcache >$cache_file
10732 else
a8b2ad8d 10733 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10734echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 10735 fi
10736fi
10737rm -f confcache
10738
10739test "x$prefix" = xNONE && prefix=$ac_default_prefix
10740# Let make expand exec_prefix.
10741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10742
b3076f16 10743DEFS=-DHAVE_CONFIG_H
10744
10745ac_libobjs=
10746ac_ltlibobjs=
10747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10748 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 10749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10750 ac_i=`echo "$ac_i" | sed "$ac_script"`
10751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10752 # will be set to the directory where LIBOBJS objects are built.
10753 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10754 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 10755done
10756LIBOBJS=$ac_libobjs
10757
10758LTLIBOBJS=$ac_ltlibobjs
10759
10760
ec1a68c8 10761if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10762 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10763Usually this means the macro was only invoked conditionally." >&5
10764echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10765Usually this means the macro was only invoked conditionally." >&2;}
10766 { (exit 1); exit 1; }; }
10767fi
10768if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10769 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10770Usually this means the macro was only invoked conditionally." >&5
10771echo "$as_me: error: conditional \"AMDEP\" was never defined.
10772Usually this means the macro was only invoked conditionally." >&2;}
10773 { (exit 1); exit 1; }; }
10774fi
10775if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10776 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10777Usually this means the macro was only invoked conditionally." >&5
10778echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10779Usually this means the macro was only invoked conditionally." >&2;}
10780 { (exit 1); exit 1; }; }
10781fi
10782if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10783 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10784Usually this means the macro was only invoked conditionally." >&5
10785echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10786Usually this means the macro was only invoked conditionally." >&2;}
10787 { (exit 1); exit 1; }; }
10788fi
b3076f16 10789
10790: ${CONFIG_STATUS=./config.status}
10791ac_clean_files_save=$ac_clean_files
10792ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10793{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10794echo "$as_me: creating $CONFIG_STATUS" >&6;}
10795cat >$CONFIG_STATUS <<_ACEOF
10796#! $SHELL
10797# Generated by $as_me.
10798# Run this file to recreate the current configuration.
10799# Compiler output produced by configure, useful for debugging
10800# configure, is in config.log if it exists.
10801
10802debug=false
10803ac_cs_recheck=false
10804ac_cs_silent=false
10805SHELL=\${CONFIG_SHELL-$SHELL}
10806_ACEOF
10807
10808cat >>$CONFIG_STATUS <<\_ACEOF
10809## --------------------- ##
10810## M4sh Initialization. ##
10811## --------------------- ##
10812
10813# Be Bourne compatible
10814if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10815 emulate sh
10816 NULLCMD=:
10817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10818 # is contrary to our usage. Disable this feature.
10819 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 10820 setopt NO_GLOB_SUBST
10821else
10822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
b3076f16 10823fi
a8b2ad8d 10824BIN_SH=xpg4; export BIN_SH # for Tru64
b3076f16 10825DUALCASE=1; export DUALCASE # for MKS sh
10826
a8b2ad8d 10827
10828# PATH needs CR
10829# Avoid depending upon Character Ranges.
10830as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10831as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10832as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10833as_cr_digits='0123456789'
10834as_cr_alnum=$as_cr_Letters$as_cr_digits
10835
10836# The user is always right.
10837if test "${PATH_SEPARATOR+set}" != set; then
10838 echo "#! /bin/sh" >conf$$.sh
10839 echo "exit 0" >>conf$$.sh
10840 chmod +x conf$$.sh
10841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10842 PATH_SEPARATOR=';'
10843 else
10844 PATH_SEPARATOR=:
10845 fi
10846 rm -f conf$$.sh
10847fi
10848
b3076f16 10849# Support unset when possible.
10850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10851 as_unset=unset
10852else
10853 as_unset=false
10854fi
10855
10856
a8b2ad8d 10857# IFS
10858# We need space, tab and new line, in precisely that order. Quoting is
10859# there to prevent editors from complaining about space-tab.
10860# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10861# splitting by setting IFS to empty value.)
10862as_nl='
10863'
10864IFS=" "" $as_nl"
10865
10866# Find who we are. Look in the path if we contain no directory separator.
10867case $0 in
10868 *[\\/]* ) as_myself=$0 ;;
10869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870for as_dir in $PATH
10871do
10872 IFS=$as_save_IFS
10873 test -z "$as_dir" && as_dir=.
10874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10875done
10876IFS=$as_save_IFS
10877
10878 ;;
10879esac
10880# We did not find ourselves, most probably we were run as `sh COMMAND'
10881# in which case we are not to be found in the path.
10882if test "x$as_myself" = x; then
10883 as_myself=$0
10884fi
10885if test ! -f "$as_myself"; then
10886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10887 { (exit 1); exit 1; }
10888fi
10889
b3076f16 10890# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 10891for as_var in ENV MAIL MAILPATH
10892do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10893done
b3076f16 10894PS1='$ '
10895PS2='> '
10896PS4='+ '
10897
10898# NLS nuisances.
10899for as_var in \
10900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10902 LC_TELEPHONE LC_TIME
10903do
10904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10905 eval $as_var=C; export $as_var
10906 else
a8b2ad8d 10907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 10908 fi
10909done
10910
10911# Required to use basename.
a8b2ad8d 10912if expr a : '\(a\)' >/dev/null 2>&1 &&
10913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10914 as_expr=expr
10915else
10916 as_expr=false
10917fi
10918
a8b2ad8d 10919if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 10920 as_basename=basename
10921else
10922 as_basename=false
10923fi
10924
10925
10926# Name of the executable.
a8b2ad8d 10927as_me=`$as_basename -- "$0" ||
b3076f16 10928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10929 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 10930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10931echo X/"$0" |
a8b2ad8d 10932 sed '/^.*\/\([^/][^/]*\)\/*$/{
10933 s//\1/
10934 q
10935 }
10936 /^X\/\(\/\/\)$/{
10937 s//\1/
10938 q
10939 }
10940 /^X\/\(\/\).*/{
10941 s//\1/
10942 q
10943 }
10944 s/.*/./; q'`
b3076f16 10945
a8b2ad8d 10946# CDPATH.
10947$as_unset CDPATH
b3076f16 10948
10949
b3076f16 10950
b3076f16 10951 as_lineno_1=$LINENO
10952 as_lineno_2=$LINENO
b3076f16 10953 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 10954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 10955
10956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10957 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 10958 # line-number line after each line using $LINENO; the second 'sed'
10959 # does the real work. The second script uses 'N' to pair each
10960 # line-number line with the line containing $LINENO, and appends
10961 # trailing '-' during substitution so that $LINENO is not a special
10962 # case at line end.
b3076f16 10963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 10964 # scripts with optimization help from Paolo Bonzini. Blame Lee
10965 # E. McMahon (1931-1989) for sed's syntax. :-)
10966 sed -n '
10967 p
10968 /[$]LINENO/=
10969 ' <$as_myself |
b3076f16 10970 sed '
a8b2ad8d 10971 s/[$]LINENO.*/&-/
10972 t lineno
10973 b
10974 :lineno
b3076f16 10975 N
a8b2ad8d 10976 :loop
10977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 10978 t loop
a8b2ad8d 10979 s/-\n.*//
b3076f16 10980 ' >$as_me.lineno &&
a8b2ad8d 10981 chmod +x "$as_me.lineno" ||
10982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 10983 { (exit 1); exit 1; }; }
10984
10985 # Don't try to exec as it changes $[0], causing all sort of problems
10986 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 10987 # original and so on. Autoconf is especially sensitive to this).
10988 . "./$as_me.lineno"
b3076f16 10989 # Exit status is that of the last command.
10990 exit
10991}
10992
10993
a8b2ad8d 10994if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10995 as_dirname=dirname
10996else
10997 as_dirname=false
10998fi
10999
11000ECHO_C= ECHO_N= ECHO_T=
11001case `echo -n x` in
11002-n*)
11003 case `echo 'x\c'` in
11004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11005 *) ECHO_C='\c';;
11006 esac;;
11007*)
11008 ECHO_N='-n';;
b3076f16 11009esac
11010
a8b2ad8d 11011if expr a : '\(a\)' >/dev/null 2>&1 &&
11012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 11013 as_expr=expr
11014else
11015 as_expr=false
11016fi
11017
11018rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 11019if test -d conf$$.dir; then
11020 rm -f conf$$.dir/conf$$.file
11021else
11022 rm -f conf$$.dir
11023 mkdir conf$$.dir
11024fi
b3076f16 11025echo >conf$$.file
11026if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 11027 as_ln_s='ln -s'
11028 # ... but there are two gotchas:
11029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11031 # In both cases, we have to default to `cp -p'.
11032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 11033 as_ln_s='cp -p'
b3076f16 11034elif ln conf$$.file conf$$ 2>/dev/null; then
11035 as_ln_s=ln
11036else
11037 as_ln_s='cp -p'
11038fi
a8b2ad8d 11039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11040rmdir conf$$.dir 2>/dev/null
b3076f16 11041
11042if mkdir -p . 2>/dev/null; then
11043 as_mkdir_p=:
11044else
11045 test -d ./-p && rmdir ./-p
11046 as_mkdir_p=false
11047fi
11048
a8b2ad8d 11049# Find out whether ``test -x'' works. Don't use a zero-byte file, as
11050# systems may use methods other than mode bits to determine executability.
11051cat >conf$$.file <<_ASEOF
11052#! /bin/sh
11053exit 0
11054_ASEOF
11055chmod +x conf$$.file
11056if test -x conf$$.file >/dev/null 2>&1; then
11057 as_executable_p="test -x"
11058else
11059 as_executable_p=:
11060fi
11061rm -f conf$$.file
b3076f16 11062
11063# Sed expression to map a string onto a valid CPP name.
11064as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11065
11066# Sed expression to map a string onto a valid variable name.
11067as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11068
11069
b3076f16 11070exec 6>&1
11071
a8b2ad8d 11072# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 11073# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 11074# values after options handling.
11075ac_log="
63c95a47 11076This file was extended by X3 $as_me 1.5, which was
a8b2ad8d 11077generated by GNU Autoconf 2.60. Invocation command line was
b3076f16 11078
11079 CONFIG_FILES = $CONFIG_FILES
11080 CONFIG_HEADERS = $CONFIG_HEADERS
11081 CONFIG_LINKS = $CONFIG_LINKS
11082 CONFIG_COMMANDS = $CONFIG_COMMANDS
11083 $ $0 $@
11084
a8b2ad8d 11085on `(hostname || uname -n) 2>/dev/null | sed 1q`
11086"
11087
b3076f16 11088_ACEOF
11089
a8b2ad8d 11090cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 11091# Files that config.status was made for.
a8b2ad8d 11092config_files="$ac_config_files"
11093config_headers="$ac_config_headers"
11094config_commands="$ac_config_commands"
b3076f16 11095
a8b2ad8d 11096_ACEOF
b3076f16 11097
11098cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11099ac_cs_usage="\
11100\`$as_me' instantiates files from templates according to the
11101current configuration.
11102
11103Usage: $0 [OPTIONS] [FILE]...
11104
11105 -h, --help print this help, then exit
11106 -V, --version print version number, then exit
11107 -q, --quiet do not print progress messages
11108 -d, --debug don't remove temporary files
11109 --recheck update $as_me by reconfiguring in the same conditions
11110 --file=FILE[:TEMPLATE]
11111 instantiate the configuration file FILE
11112 --header=FILE[:TEMPLATE]
11113 instantiate the configuration header FILE
11114
11115Configuration files:
11116$config_files
11117
11118Configuration headers:
11119$config_headers
11120
ec1a68c8 11121Configuration commands:
11122$config_commands
11123
b3076f16 11124Report bugs to <bug-autoconf@gnu.org>."
b3076f16 11125
a8b2ad8d 11126_ACEOF
b3076f16 11127cat >>$CONFIG_STATUS <<_ACEOF
11128ac_cs_version="\\
63c95a47 11129X3 config.status 1.5
a8b2ad8d 11130configured by $0, generated by GNU Autoconf 2.60,
11131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 11132
a8b2ad8d 11133Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 11134This config.status script is free software; the Free Software Foundation
11135gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 11136
11137ac_pwd='$ac_pwd'
11138srcdir='$srcdir'
11139INSTALL='$INSTALL'
b3076f16 11140_ACEOF
11141
11142cat >>$CONFIG_STATUS <<\_ACEOF
11143# If no file are specified by the user, then we need to provide default
11144# value. By we need to know if files were specified by the user.
11145ac_need_defaults=:
11146while test $# != 0
11147do
11148 case $1 in
11149 --*=*)
a8b2ad8d 11150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 11152 ac_shift=:
11153 ;;
a8b2ad8d 11154 *)
b3076f16 11155 ac_option=$1
11156 ac_optarg=$2
11157 ac_shift=shift
11158 ;;
b3076f16 11159 esac
11160
11161 case $ac_option in
11162 # Handling of the options.
b3076f16 11163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11164 ac_cs_recheck=: ;;
a8b2ad8d 11165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11166 echo "$ac_cs_version"; exit ;;
11167 --debug | --debu | --deb | --de | --d | -d )
b3076f16 11168 debug=: ;;
11169 --file | --fil | --fi | --f )
11170 $ac_shift
11171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11172 ac_need_defaults=false;;
11173 --header | --heade | --head | --hea )
11174 $ac_shift
11175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11176 ac_need_defaults=false;;
a8b2ad8d 11177 --he | --h)
11178 # Conflict between --help and --header
11179 { echo "$as_me: error: ambiguous option: $1
11180Try \`$0 --help' for more information." >&2
11181 { (exit 1); exit 1; }; };;
11182 --help | --hel | -h )
11183 echo "$ac_cs_usage"; exit ;;
b3076f16 11184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11186 ac_cs_silent=: ;;
11187
11188 # This is an error.
a8b2ad8d 11189 -*) { echo "$as_me: error: unrecognized option: $1
11190Try \`$0 --help' for more information." >&2
b3076f16 11191 { (exit 1); exit 1; }; } ;;
11192
a8b2ad8d 11193 *) ac_config_targets="$ac_config_targets $1"
11194 ac_need_defaults=false ;;
b3076f16 11195
11196 esac
11197 shift
11198done
11199
11200ac_configure_extra_args=
11201
11202if $ac_cs_silent; then
11203 exec 6>/dev/null
11204 ac_configure_extra_args="$ac_configure_extra_args --silent"
11205fi
11206
11207_ACEOF
11208cat >>$CONFIG_STATUS <<_ACEOF
11209if \$ac_cs_recheck; then
a8b2ad8d 11210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11211 CONFIG_SHELL=$SHELL
11212 export CONFIG_SHELL
11213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 11214fi
11215
11216_ACEOF
a8b2ad8d 11217cat >>$CONFIG_STATUS <<\_ACEOF
11218exec 5>>config.log
11219{
11220 echo
11221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11222## Running $as_me. ##
11223_ASBOX
11224 echo "$ac_log"
11225} >&5
b3076f16 11226
a8b2ad8d 11227_ACEOF
ec1a68c8 11228cat >>$CONFIG_STATUS <<_ACEOF
11229#
a8b2ad8d 11230# INIT-COMMANDS
ec1a68c8 11231#
ec1a68c8 11232AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11233
11234_ACEOF
b3076f16 11235
b3076f16 11236cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11237
11238# Handling of arguments.
b3076f16 11239for ac_config_target in $ac_config_targets
11240do
a8b2ad8d 11241 case $ac_config_target in
11242 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11244 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11245 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
11246 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11247
b3076f16 11248 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11249echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11250 { (exit 1); exit 1; }; };;
11251 esac
11252done
11253
a8b2ad8d 11254
b3076f16 11255# If the user did not use the arguments to specify the items to instantiate,
11256# then the envvar interface is used. Set only those that are not.
11257# We use the long form for the default assignment because of an extremely
11258# bizarre bug on SunOS 4.1.3.
11259if $ac_need_defaults; then
11260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 11262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 11263fi
11264
11265# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 11266# simply because there is no reason against having it here, and in addition,
b3076f16 11267# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 11268# Hook for its removal unless debugging.
11269# Note that there is a small window in which the directory will not be cleaned:
11270# after its creation but before its name has been assigned to `$tmp'.
b3076f16 11271$debug ||
11272{
a8b2ad8d 11273 tmp=
11274 trap 'exit_status=$?
11275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11276' 0
b3076f16 11277 trap '{ (exit 1); exit 1; }' 1 2 13 15
11278}
b3076f16 11279# Create a (secure) tmp directory for tmp files.
11280
11281{
a8b2ad8d 11282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 11283 test -n "$tmp" && test -d "$tmp"
11284} ||
11285{
a8b2ad8d 11286 tmp=./conf$$-$RANDOM
11287 (umask 077 && mkdir "$tmp")
b3076f16 11288} ||
11289{
11290 echo "$me: cannot create a temporary directory in ." >&2
11291 { (exit 1); exit 1; }
11292}
11293
b3076f16 11294#
a8b2ad8d 11295# Set up the sed scripts for CONFIG_FILES section.
b3076f16 11296#
11297
11298# No need to generate the scripts if there are no CONFIG_FILES.
11299# This happens for instance when ./config.status config.h
a8b2ad8d 11300if test -n "$CONFIG_FILES"; then
11301
11302_ACEOF
11303
11304
11305
11306ac_delim='%!_!# '
11307for ac_last_try in false false false false false :; do
11308 cat >conf$$subs.sed <<_ACEOF
11309SHELL!$SHELL$ac_delim
11310PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11311PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11312PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11313PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11314PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11315PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11316exec_prefix!$exec_prefix$ac_delim
11317prefix!$prefix$ac_delim
11318program_transform_name!$program_transform_name$ac_delim
11319bindir!$bindir$ac_delim
11320sbindir!$sbindir$ac_delim
11321libexecdir!$libexecdir$ac_delim
11322datarootdir!$datarootdir$ac_delim
11323datadir!$datadir$ac_delim
11324sysconfdir!$sysconfdir$ac_delim
11325sharedstatedir!$sharedstatedir$ac_delim
11326localstatedir!$localstatedir$ac_delim
11327includedir!$includedir$ac_delim
11328oldincludedir!$oldincludedir$ac_delim
11329docdir!$docdir$ac_delim
11330infodir!$infodir$ac_delim
11331htmldir!$htmldir$ac_delim
11332dvidir!$dvidir$ac_delim
11333pdfdir!$pdfdir$ac_delim
11334psdir!$psdir$ac_delim
11335libdir!$libdir$ac_delim
11336localedir!$localedir$ac_delim
11337mandir!$mandir$ac_delim
11338DEFS!$DEFS$ac_delim
11339ECHO_C!$ECHO_C$ac_delim
11340ECHO_N!$ECHO_N$ac_delim
11341ECHO_T!$ECHO_T$ac_delim
11342LIBS!$LIBS$ac_delim
11343build_alias!$build_alias$ac_delim
11344host_alias!$host_alias$ac_delim
11345target_alias!$target_alias$ac_delim
11346build!$build$ac_delim
11347build_cpu!$build_cpu$ac_delim
11348build_vendor!$build_vendor$ac_delim
11349build_os!$build_os$ac_delim
11350host!$host$ac_delim
11351host_cpu!$host_cpu$ac_delim
11352host_vendor!$host_vendor$ac_delim
11353host_os!$host_os$ac_delim
11354target!$target$ac_delim
11355target_cpu!$target_cpu$ac_delim
11356target_vendor!$target_vendor$ac_delim
11357target_os!$target_os$ac_delim
11358INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11359INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11360INSTALL_DATA!$INSTALL_DATA$ac_delim
11361CYGPATH_W!$CYGPATH_W$ac_delim
11362PACKAGE!$PACKAGE$ac_delim
11363VERSION!$VERSION$ac_delim
11364ACLOCAL!$ACLOCAL$ac_delim
11365AUTOCONF!$AUTOCONF$ac_delim
11366AUTOMAKE!$AUTOMAKE$ac_delim
11367AUTOHEADER!$AUTOHEADER$ac_delim
11368MAKEINFO!$MAKEINFO$ac_delim
11369install_sh!$install_sh$ac_delim
11370STRIP!$STRIP$ac_delim
11371INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11372mkdir_p!$mkdir_p$ac_delim
11373AWK!$AWK$ac_delim
11374SET_MAKE!$SET_MAKE$ac_delim
11375am__leading_dot!$am__leading_dot$ac_delim
11376AMTAR!$AMTAR$ac_delim
11377am__tar!$am__tar$ac_delim
11378am__untar!$am__untar$ac_delim
11379MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11380MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11381MAINT!$MAINT$ac_delim
11382CC!$CC$ac_delim
11383CFLAGS!$CFLAGS$ac_delim
11384LDFLAGS!$LDFLAGS$ac_delim
11385CPPFLAGS!$CPPFLAGS$ac_delim
11386ac_ct_CC!$ac_ct_CC$ac_delim
11387EXEEXT!$EXEEXT$ac_delim
11388OBJEXT!$OBJEXT$ac_delim
11389DEPDIR!$DEPDIR$ac_delim
11390am__include!$am__include$ac_delim
11391am__quote!$am__quote$ac_delim
11392AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11393AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11394AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11395CCDEPMODE!$CCDEPMODE$ac_delim
11396am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11397am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11398RANLIB!$RANLIB$ac_delim
11399LN_S!$LN_S$ac_delim
11400CPP!$CPP$ac_delim
11401GREP!$GREP$ac_delim
11402EGREP!$EGREP$ac_delim
11403MAKER!$MAKER$ac_delim
11404ALLOCA!$ALLOCA$ac_delim
11405MODULE_OBJS!$MODULE_OBJS$ac_delim
11406_ACEOF
11407
11408 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11409 break
11410 elif $ac_last_try; then
11411 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11412echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11413 { (exit 1); exit 1; }; }
11414 else
11415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 11416 fi
a8b2ad8d 11417done
b3076f16 11418
a8b2ad8d 11419ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11420if test -n "$ac_eof"; then
11421 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11422 ac_eof=`expr $ac_eof + 1`
11423fi
11424
11425cat >>$CONFIG_STATUS <<_ACEOF
11426cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 11428_ACEOF
a8b2ad8d 11429sed '
11430s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11431s/^/s,@/; s/!/@,|#_!!_#|/
11432:n
11433t n
11434s/'"$ac_delim"'$/,g/; t
11435s/$/\\/; p
11436N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11437' >>$CONFIG_STATUS <conf$$subs.sed
11438rm -f conf$$subs.sed
11439cat >>$CONFIG_STATUS <<_ACEOF
11440CEOF$ac_eof
11441_ACEOF
11442
11443
11444ac_delim='%!_!# '
11445for ac_last_try in false false false false false :; do
11446 cat >conf$$subs.sed <<_ACEOF
11447MY_SUBDIRS!$MY_SUBDIRS$ac_delim
11448RX_INCLUDES!$RX_INCLUDES$ac_delim
11449RX_LIBS!$RX_LIBS$ac_delim
11450TRACK!$TRACK$ac_delim
11451LIBOBJS!$LIBOBJS$ac_delim
11452LTLIBOBJS!$LTLIBOBJS$ac_delim
11453_ACEOF
11454
11455 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
11456 break
11457 elif $ac_last_try; then
11458 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11459echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11460 { (exit 1); exit 1; }; }
11461 else
11462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11463 fi
11464done
11465
11466ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11467if test -n "$ac_eof"; then
11468 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11469 ac_eof=`expr $ac_eof + 1`
11470fi
11471
11472cat >>$CONFIG_STATUS <<_ACEOF
11473cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11475_ACEOF
11476sed '
11477s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11478s/^/s,@/; s/!/@,|#_!!_#|/
11479:n
11480t n
11481s/'"$ac_delim"'$/,g/; t
11482s/$/\\/; p
11483N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11484' >>$CONFIG_STATUS <conf$$subs.sed
11485rm -f conf$$subs.sed
11486cat >>$CONFIG_STATUS <<_ACEOF
11487:end
11488s/|#_!!_#|//g
11489CEOF$ac_eof
11490_ACEOF
11491
11492
11493# VPATH may cause trouble with some makes, so we remove $(srcdir),
11494# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11495# trailing colons and then remove the whole line if VPATH becomes empty
11496# (actually we leave an empty line to preserve line numbers).
11497if test "x$srcdir" = x.; then
11498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11499s/:*\$(srcdir):*/:/
11500s/:*\${srcdir}:*/:/
11501s/:*@srcdir@:*/:/
11502s/^\([^=]*=[ ]*\):*/\1/
11503s/:*$//
11504s/^[^=]*=[ ]*$//
11505}'
11506fi
11507
b3076f16 11508cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 11509fi # test -n "$CONFIG_FILES"
11510
11511
11512for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11513do
11514 case $ac_tag in
11515 :[FHLC]) ac_mode=$ac_tag; continue;;
11516 esac
11517 case $ac_mode$ac_tag in
11518 :[FHL]*:*);;
11519 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11520echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11521 { (exit 1); exit 1; }; };;
11522 :[FH]-) ac_tag=-:-;;
11523 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11524 esac
11525 ac_save_IFS=$IFS
11526 IFS=:
11527 set x $ac_tag
11528 IFS=$ac_save_IFS
11529 shift
11530 ac_file=$1
11531 shift
11532
11533 case $ac_mode in
11534 :L) ac_source=$1;;
11535 :[FH])
11536 ac_file_inputs=
11537 for ac_f
11538 do
11539 case $ac_f in
11540 -) ac_f="$tmp/stdin";;
11541 *) # Look for the file first in the build tree, then in the source tree
11542 # (if the path is not absolute). The absolute path cannot be DOS-style,
11543 # because $ac_f cannot contain `:'.
11544 test -f "$ac_f" ||
11545 case $ac_f in
11546 [\\/$]*) false;;
11547 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11548 esac ||
11549 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11550echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11551 { (exit 1); exit 1; }; };;
11552 esac
11553 ac_file_inputs="$ac_file_inputs $ac_f"
11554 done
11555
11556 # Let's still pretend it is `configure' which instantiates (i.e., don't
11557 # use $as_me), people would be surprised to read:
11558 # /* config.h. Generated by config.status. */
11559 configure_input="Generated from "`IFS=:
11560 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11561 if test x"$ac_file" != x-; then
11562 configure_input="$ac_file. $configure_input"
11563 { echo "$as_me:$LINENO: creating $ac_file" >&5
11564echo "$as_me: creating $ac_file" >&6;}
11565 fi
11566
11567 case $ac_tag in
11568 *:-:* | *:-) cat >"$tmp/stdin";;
11569 esac
11570 ;;
b3076f16 11571 esac
11572
a8b2ad8d 11573 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 11574$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11575 X"$ac_file" : 'X\(//\)[^/]' \| \
11576 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 11577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11578echo X"$ac_file" |
a8b2ad8d 11579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11580 s//\1/
11581 q
11582 }
11583 /^X\(\/\/\)[^/].*/{
11584 s//\1/
11585 q
11586 }
11587 /^X\(\/\/\)$/{
11588 s//\1/
11589 q
11590 }
11591 /^X\(\/\).*/{
11592 s//\1/
11593 q
11594 }
11595 s/.*/./; q'`
11596 { as_dir="$ac_dir"
11597 case $as_dir in #(
11598 -*) as_dir=./$as_dir;;
11599 esac
11600 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 11601 as_dirs=
a8b2ad8d 11602 while :; do
11603 case $as_dir in #(
11604 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11605 *) as_qdir=$as_dir;;
11606 esac
11607 as_dirs="'$as_qdir' $as_dirs"
11608 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 11609$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11610 X"$as_dir" : 'X\(//\)[^/]' \| \
11611 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 11613echo X"$as_dir" |
a8b2ad8d 11614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11615 s//\1/
11616 q
11617 }
11618 /^X\(\/\/\)[^/].*/{
11619 s//\1/
11620 q
11621 }
11622 /^X\(\/\/\)$/{
11623 s//\1/
11624 q
11625 }
11626 /^X\(\/\).*/{
11627 s//\1/
11628 q
11629 }
11630 s/.*/./; q'`
11631 test -d "$as_dir" && break
b3076f16 11632 done
a8b2ad8d 11633 test -z "$as_dirs" || eval "mkdir $as_dirs"
11634 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11635echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 11636 { (exit 1); exit 1; }; }; }
b3076f16 11637 ac_builddir=.
11638
a8b2ad8d 11639case "$ac_dir" in
11640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11641*)
b3076f16 11642 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 11643 # A ".." for each directory in $ac_dir_suffix.
11644 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11645 case $ac_top_builddir_sub in
11646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11648 esac ;;
11649esac
11650ac_abs_top_builddir=$ac_pwd
11651ac_abs_builddir=$ac_pwd$ac_dir_suffix
11652# for backward compatibility:
11653ac_top_builddir=$ac_top_build_prefix
b3076f16 11654
11655case $srcdir in
a8b2ad8d 11656 .) # We are building in place.
b3076f16 11657 ac_srcdir=.
a8b2ad8d 11658 ac_top_srcdir=$ac_top_builddir_sub
11659 ac_abs_top_srcdir=$ac_pwd ;;
11660 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 11661 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 11662 ac_top_srcdir=$srcdir
11663 ac_abs_top_srcdir=$srcdir ;;
11664 *) # Relative name.
11665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11666 ac_top_srcdir=$ac_top_build_prefix$srcdir
11667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 11668esac
a8b2ad8d 11669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 11670
b3076f16 11671
a8b2ad8d 11672 case $ac_mode in
11673 :F)
11674 #
11675 # CONFIG_FILE
11676 #
b3076f16 11677
11678 case $INSTALL in
11679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 11680 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 11681 esac
a8b2ad8d 11682_ACEOF
b3076f16 11683
a8b2ad8d 11684cat >>$CONFIG_STATUS <<\_ACEOF
11685# If the template does not know about datarootdir, expand it.
11686# FIXME: This hack should be removed a few years after 2.60.
11687ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 11688
a8b2ad8d 11689case `sed -n '/datarootdir/ {
11690 p
11691 q
11692}
11693/@datadir@/p
11694/@docdir@/p
11695/@infodir@/p
11696/@localedir@/p
11697/@mandir@/p
11698' $ac_file_inputs` in
11699*datarootdir*) ac_datarootdir_seen=yes;;
11700*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11701 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11702echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11703_ACEOF
11704cat >>$CONFIG_STATUS <<_ACEOF
11705 ac_datarootdir_hack='
11706 s&@datadir@&$datadir&g
11707 s&@docdir@&$docdir&g
11708 s&@infodir@&$infodir&g
11709 s&@localedir@&$localedir&g
11710 s&@mandir@&$mandir&g
11711 s&\\\${datarootdir}&$datarootdir&g' ;;
11712esac
b3076f16 11713_ACEOF
a8b2ad8d 11714
11715# Neutralize VPATH when `$srcdir' = `.'.
11716# Shell code in configure.ac might set extrasub.
11717# FIXME: do we really want to maintain this feature?
b3076f16 11718cat >>$CONFIG_STATUS <<_ACEOF
11719 sed "$ac_vpsub
11720$extrasub
11721_ACEOF
11722cat >>$CONFIG_STATUS <<\_ACEOF
11723:t
11724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 11725s&@configure_input@&$configure_input&;t t
11726s&@top_builddir@&$ac_top_builddir_sub&;t t
11727s&@srcdir@&$ac_srcdir&;t t
11728s&@abs_srcdir@&$ac_abs_srcdir&;t t
11729s&@top_srcdir@&$ac_top_srcdir&;t t
11730s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11731s&@builddir@&$ac_builddir&;t t
11732s&@abs_builddir@&$ac_abs_builddir&;t t
11733s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11734s&@INSTALL@&$ac_INSTALL&;t t
11735$ac_datarootdir_hack
11736" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11737
11738test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11739 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11740 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11741 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11742which seems to be undefined. Please make sure it is defined." >&5
11743echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11744which seems to be undefined. Please make sure it is defined." >&2;}
11745
11746 rm -f "$tmp/stdin"
b3076f16 11747 case $ac_file in
a8b2ad8d 11748 -) cat "$tmp/out"; rm -f "$tmp/out";;
11749 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 11750 esac
a8b2ad8d 11751 ;;
11752 :H)
11753 #
11754 # CONFIG_HEADER
11755 #
11756_ACEOF
11757
11758# Transform confdefs.h into a sed script `conftest.defines', that
11759# substitutes the proper values into config.h.in to produce config.h.
11760rm -f conftest.defines conftest.tail
11761# First, append a space to every undef/define line, to ease matching.
11762echo 's/$/ /' >conftest.defines
11763# Then, protect against being on the right side of a sed subst, or in
11764# an unquoted here document, in config.status. If some macros were
11765# called several times there might be several #defines for the same
11766# symbol, which is useless. But do not sort them, since the last
11767# AC_DEFINE must be honored.
11768ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11769# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11770# NAME is the cpp macro being defined, VALUE is the value it is being given.
11771# PARAMS is the parameter list in the macro definition--in most cases, it's
11772# just an empty string.
11773ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11774ac_dB='\\)[ (].*,\\1define\\2'
11775ac_dC=' '
11776ac_dD=' ,'
11777
11778uniq confdefs.h |
11779 sed -n '
11780 t rset
11781 :rset
11782 s/^[ ]*#[ ]*define[ ][ ]*//
11783 t ok
11784 d
11785 :ok
11786 s/[\\&,]/\\&/g
11787 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11788 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11789 ' >>conftest.defines
11790
11791# Remove the space that was appended to ease matching.
11792# Then replace #undef with comments. This is necessary, for
b3076f16 11793# example, in the case of _POSIX_SOURCE, which is predefined and required
11794# on some systems where configure will not decide to define it.
a8b2ad8d 11795# (The regexp can be short, since the line contains either #define or #undef.)
11796echo 's/ $//
11797s,^[ #]*u.*,/* & */,' >>conftest.defines
11798
11799# Break up conftest.defines:
11800ac_max_sed_lines=50
11801
11802# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11803# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11804# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11805# et cetera.
11806ac_in='$ac_file_inputs'
11807ac_out='"$tmp/out1"'
11808ac_nxt='"$tmp/out2"'
11809
11810while :
b3076f16 11811do
a8b2ad8d 11812 # Write a here document:
11813 cat >>$CONFIG_STATUS <<_ACEOF
11814 # First, check the format of the line:
11815 cat >"\$tmp/defines.sed" <<\\CEOF
11816/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11817/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11818b
11819:def
11820_ACEOF
11821 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 11822 echo 'CEOF
a8b2ad8d 11823 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11824 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11825 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11826 grep . conftest.tail >/dev/null || break
b3076f16 11827 rm -f conftest.defines
11828 mv conftest.tail conftest.defines
11829done
a8b2ad8d 11830rm -f conftest.defines conftest.tail
b3076f16 11831
a8b2ad8d 11832echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 11833cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11834 if test x"$ac_file" != x-; then
a8b2ad8d 11835 echo "/* $configure_input */" >"$tmp/config.h"
11836 cat "$ac_result" >>"$tmp/config.h"
11837 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 11838 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11839echo "$as_me: $ac_file is unchanged" >&6;}
11840 else
b3076f16 11841 rm -f $ac_file
a8b2ad8d 11842 mv "$tmp/config.h" $ac_file
b3076f16 11843 fi
11844 else
a8b2ad8d 11845 echo "/* $configure_input */"
11846 cat "$ac_result"
b3076f16 11847 fi
a8b2ad8d 11848 rm -f "$tmp/out12"
ec1a68c8 11849# Compute $ac_file's index in $config_headers.
11850_am_stamp_count=1
11851for _am_header in $config_headers :; do
11852 case $_am_header in
11853 $ac_file | $ac_file:* )
11854 break ;;
11855 * )
11856 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11857 esac
11858done
a8b2ad8d 11859echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
ec1a68c8 11860$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11861 X$ac_file : 'X\(//\)[^/]' \| \
11862 X$ac_file : 'X\(//\)$' \| \
a8b2ad8d 11863 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11864echo X$ac_file |
a8b2ad8d 11865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11866 s//\1/
11867 q
11868 }
11869 /^X\(\/\/\)[^/].*/{
11870 s//\1/
11871 q
11872 }
11873 /^X\(\/\/\)$/{
11874 s//\1/
11875 q
11876 }
11877 /^X\(\/\).*/{
11878 s//\1/
11879 q
11880 }
11881 s/.*/./; q'`/stamp-h$_am_stamp_count
11882 ;;
ec1a68c8 11883
a8b2ad8d 11884 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11885echo "$as_me: executing $ac_file commands" >&6;}
11886 ;;
11887 esac
ec1a68c8 11888
11889
a8b2ad8d 11890 case $ac_file$ac_mode in
11891 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 11892 # Strip MF so we end up with the name of the file.
11893 mf=`echo "$mf" | sed -e 's/:.*$//'`
11894 # Check whether this is an Automake generated Makefile or not.
11895 # We used to match only the files named `Makefile.in', but
11896 # some people rename them; so instead we look at the file content.
11897 # Grep'ing the first line is not enough: some people post-process
11898 # each Makefile.in and add a new line on top of each file to say so.
11899 # So let's grep whole file.
11900 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
a8b2ad8d 11901 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 11902$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11903 X"$mf" : 'X\(//\)[^/]' \| \
11904 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 11905 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11906echo X"$mf" |
a8b2ad8d 11907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11908 s//\1/
11909 q
11910 }
11911 /^X\(\/\/\)[^/].*/{
11912 s//\1/
11913 q
11914 }
11915 /^X\(\/\/\)$/{
11916 s//\1/
11917 q
11918 }
11919 /^X\(\/\).*/{
11920 s//\1/
11921 q
11922 }
11923 s/.*/./; q'`
ec1a68c8 11924 else
11925 continue
11926 fi
11927 # Extract the definition of DEPDIR, am__include, and am__quote
11928 # from the Makefile without running `make'.
11929 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11930 test -z "$DEPDIR" && continue
11931 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11932 test -z "am__include" && continue
11933 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11934 # When using ansi2knr, U may be empty or an underscore; expand it
11935 U=`sed -n 's/^U = //p' < "$mf"`
11936 # Find all dependency output files, they are included files with
11937 # $(DEPDIR) in their names. We invoke sed twice because it is the
11938 # simplest approach to changing $(DEPDIR) to its actual value in the
11939 # expansion.
11940 for file in `sed -n "
11941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11943 # Make sure the directory exists.
11944 test -f "$dirpart/$file" && continue
a8b2ad8d 11945 fdir=`$as_dirname -- "$file" ||
ec1a68c8 11946$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11947 X"$file" : 'X\(//\)[^/]' \| \
11948 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 11949 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11950echo X"$file" |
a8b2ad8d 11951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11952 s//\1/
11953 q
11954 }
11955 /^X\(\/\/\)[^/].*/{
11956 s//\1/
11957 q
11958 }
11959 /^X\(\/\/\)$/{
11960 s//\1/
11961 q
11962 }
11963 /^X\(\/\).*/{
11964 s//\1/
11965 q
11966 }
11967 s/.*/./; q'`
11968 { as_dir=$dirpart/$fdir
11969 case $as_dir in #(
11970 -*) as_dir=./$as_dir;;
11971 esac
11972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 11973 as_dirs=
a8b2ad8d 11974 while :; do
11975 case $as_dir in #(
11976 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11977 *) as_qdir=$as_dir;;
11978 esac
11979 as_dirs="'$as_qdir' $as_dirs"
11980 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 11981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982 X"$as_dir" : 'X\(//\)[^/]' \| \
11983 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11985echo X"$as_dir" |
a8b2ad8d 11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11987 s//\1/
11988 q
11989 }
11990 /^X\(\/\/\)[^/].*/{
11991 s//\1/
11992 q
11993 }
11994 /^X\(\/\/\)$/{
11995 s//\1/
11996 q
11997 }
11998 /^X\(\/\).*/{
11999 s//\1/
12000 q
12001 }
12002 s/.*/./; q'`
12003 test -d "$as_dir" && break
ec1a68c8 12004 done
a8b2ad8d 12005 test -z "$as_dirs" || eval "mkdir $as_dirs"
12006 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12007echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 12008 { (exit 1); exit 1; }; }; }
ec1a68c8 12009 # echo "creating $dirpart/$file"
12010 echo '# dummy' > "$dirpart/$file"
12011 done
12012done
12013 ;;
a8b2ad8d 12014
ec1a68c8 12015 esac
a8b2ad8d 12016done # for ac_tag
b3076f16 12017
b3076f16 12018
12019{ (exit 0); exit 0; }
12020_ACEOF
12021chmod +x $CONFIG_STATUS
12022ac_clean_files=$ac_clean_files_save
12023
12024
12025# configure is writing to config.log, and then calls config.status.
12026# config.status does its own redirection, appending to config.log.
12027# Unfortunately, on DOS this fails, as config.log is still kept open
12028# by configure, so config.status won't be able to write to it; its
12029# output is simply discarded. So we exec the FD to /dev/null,
12030# effectively closing config.log, so it can be properly (re)opened and
12031# appended to by config.status. When coming back to configure, we
12032# need to make the FD available again.
12033if test "$no_create" != yes; then
12034 ac_cs_success=:
12035 ac_config_status_args=
12036 test "$silent" = yes &&
12037 ac_config_status_args="$ac_config_status_args --quiet"
12038 exec 5>/dev/null
12039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12040 exec 5>>config.log
12041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12042 # would make configure fail if this is the last instruction.
12043 $ac_cs_success || { (exit 1); exit 1; }
12044fi
12045
5b1166fd 12046
12047
12048
12049cat <<EOF
12050
12051Configuration summary
12052=====================
12053
12054X3 is now configured as follows:
12055
12056* Compilation environment
12057
12058 CC = $CC
12059 CFLAGS = $CFLAGS
12060 CPP = $CPP
12061 CPPFLAGS = $CPPFLAGS
12062 LD = $LD
12063 LDFLAGS = $LDFLAGS
12064 LIBS = $LIBS
12065
12066* X3 options
12067
a8b2ad8d 12068 Debug: $x3_debug
12069 Extra Modules: $module_list
12070 Malloc: $x3_malloc
12071 Protocol: $x3_ircd
12072 Regexp Library TRE $tre_version
12073 Coredumper Library Coredumper $core_version
8da89711 12074 $ldap_message
5b1166fd 12075
a8b2ad8d 12076 Install to: $prefix
35305a49 12077
5b1166fd 12078Now you can proceed with compiling X3
12079
12080EOF
12081