]> jfr.im git - irc/evilnet/x3.git/blame - configure
Bumped up trunk version for X3 to 1.6
[irc/evilnet/x3.git] / configure
CommitLineData
b3076f16 1#! /bin/sh
90746c83 2# From configure.in Id: configure.in 2088 2008-03-28 05:40:48Z sirvulcan .
b3076f16 3# Guess values for system-dependent variables and create Makefiles.
90746c83 4# Generated by GNU Autoconf 2.61 for X3 1.6.
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
0bd0bef6 16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 24 setopt NO_GLOB_SUBST
25else
0bd0bef6 26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
b3076f16 30fi
0bd0bef6 31
32
b3076f16 33
a8b2ad8d 34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
b3076f16 56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
a8b2ad8d 64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
b3076f16 97# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
b3076f16 101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
a8b2ad8d 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 115 fi
116done
117
118# Required to use basename.
a8b2ad8d 119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 121 as_expr=expr
122else
123 as_expr=false
124fi
125
a8b2ad8d 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
a8b2ad8d 134as_me=`$as_basename -- "$0" ||
b3076f16 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 138echo X/"$0" |
a8b2ad8d 139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
b3076f16 152
a8b2ad8d 153# CDPATH.
154$as_unset CDPATH
b3076f16 155
b3076f16 156
a8b2ad8d 157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
b3076f16 162fi
163
a8b2ad8d 164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
b3076f16 180
a8b2ad8d 181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
b3076f16 188
a8b2ad8d 189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
b3076f16 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0bd0bef6 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b3076f16 226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
a8b2ad8d 229 case $as_dir in
b3076f16 230 /*)
a8b2ad8d 231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
a8b2ad8d 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
0bd0bef6 251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
a8b2ad8d 255fi
0bd0bef6 256
a8b2ad8d 257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
a8b2ad8d 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
0bd0bef6 272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
a8b2ad8d 276fi
0bd0bef6 277
a8b2ad8d 278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
b3076f16 331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
b3076f16 333 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
b3076f16 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
b3076f16 445 sed '
a8b2ad8d 446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
b3076f16 450 N
a8b2ad8d 451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 453 t loop
a8b2ad8d 454 s/-\n.*//
b3076f16 455 ' >$as_me.lineno &&
a8b2ad8d 456 chmod +x "$as_me.lineno" ||
b3076f16 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
b3076f16 464 # Exit status is that of the last command.
465 exit
466}
467
468
a8b2ad8d 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
b3076f16 484esac
485
a8b2ad8d 486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
b3076f16 500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 508 as_ln_s='cp -p'
b3076f16 509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
a8b2ad8d 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
b3076f16 516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
0bd0bef6 524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
a8b2ad8d 526else
0bd0bef6 527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
a8b2ad8d 544fi
0bd0bef6 545as_executable_p=$as_test_x
b3076f16 546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
b3076f16 554
a8b2ad8d 555exec 7<&0 </dev/null 6>&1
b3076f16 556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
b3076f16 562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
a8b2ad8d 566ac_clean_files=
b3076f16 567ac_config_libobj_dir=.
a8b2ad8d 568LIBOBJS=
b3076f16 569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
b3076f16 575# Identity of this package.
ceafd592 576PACKAGE_NAME='X3'
577PACKAGE_TARNAME='x3'
90746c83 578PACKAGE_VERSION='1.6'
579PACKAGE_STRING='X3 1.6'
63c95a47 580PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
b3076f16 581
582ac_unique_file="src/opserv.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
0bd0bef6 586#ifdef HAVE_SYS_TYPES_H
b3076f16 587# include <sys/types.h>
588#endif
0bd0bef6 589#ifdef HAVE_SYS_STAT_H
b3076f16 590# include <sys/stat.h>
591#endif
0bd0bef6 592#ifdef STDC_HEADERS
b3076f16 593# include <stdlib.h>
594# include <stddef.h>
595#else
0bd0bef6 596# ifdef HAVE_STDLIB_H
b3076f16 597# include <stdlib.h>
598# endif
599#endif
0bd0bef6 600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b3076f16 602# include <memory.h>
603# endif
604# include <string.h>
605#endif
0bd0bef6 606#ifdef HAVE_STRINGS_H
b3076f16 607# include <strings.h>
608#endif
0bd0bef6 609#ifdef HAVE_INTTYPES_H
b3076f16 610# include <inttypes.h>
a8b2ad8d 611#endif
0bd0bef6 612#ifdef HAVE_STDINT_H
a8b2ad8d 613# include <stdint.h>
b3076f16 614#endif
0bd0bef6 615#ifdef HAVE_UNISTD_H
b3076f16 616# include <unistd.h>
617#endif"
618
a8b2ad8d 619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656build
657build_cpu
658build_vendor
659build_os
660host
661host_cpu
662host_vendor
663host_os
664target
665target_cpu
666target_vendor
667target_os
668INSTALL_PROGRAM
669INSTALL_SCRIPT
670INSTALL_DATA
671CYGPATH_W
672PACKAGE
673VERSION
674ACLOCAL
675AUTOCONF
676AUTOMAKE
677AUTOHEADER
678MAKEINFO
679install_sh
680STRIP
681INSTALL_STRIP_PROGRAM
682mkdir_p
683AWK
684SET_MAKE
685am__leading_dot
686AMTAR
687am__tar
688am__untar
689MAINTAINER_MODE_TRUE
690MAINTAINER_MODE_FALSE
691MAINT
692CC
693CFLAGS
694LDFLAGS
695CPPFLAGS
696ac_ct_CC
697EXEEXT
698OBJEXT
699DEPDIR
700am__include
701am__quote
702AMDEP_TRUE
703AMDEP_FALSE
704AMDEPBACKSLASH
705CCDEPMODE
706am__fastdepCC_TRUE
707am__fastdepCC_FALSE
708RANLIB
ff3b058a 709LN_S
ff3b058a 710CPP
0f6fe38c 711GREP
712EGREP
a8b2ad8d 713MAKER
714ALLOCA
715MODULE_OBJS
716MY_SUBDIRS
717RX_INCLUDES
718RX_LIBS
719TRACK
720LIBOBJS
721LTLIBOBJS'
b3076f16 722ac_subst_files=''
a8b2ad8d 723 ac_precious_vars='build_alias
724host_alias
725target_alias
726CC
727CFLAGS
728LDFLAGS
0bd0bef6 729LIBS
a8b2ad8d 730CPPFLAGS
0f6fe38c 731CPP'
a8b2ad8d 732
b3076f16 733
734# Initialize some variables set by options.
735ac_init_help=
736ac_init_version=false
737# The variables have the same names as the options, with
738# dashes changed to underlines.
739cache_file=/dev/null
740exec_prefix=NONE
741no_create=
742no_recursion=
743prefix=NONE
744program_prefix=NONE
745program_suffix=NONE
746program_transform_name=s,x,x,
747silent=
748site=
749srcdir=
750verbose=
751x_includes=NONE
752x_libraries=NONE
753
754# Installation directory options.
755# These are left unexpanded so users can "make install exec_prefix=/foo"
756# and all the variables that are supposed to be based on exec_prefix
757# by default will actually change.
758# Use braces instead of parens because sh, perl, etc. also accept them.
a8b2ad8d 759# (The list follows the same order as the GNU Coding Standards.)
b3076f16 760bindir='${exec_prefix}/bin'
761sbindir='${exec_prefix}/sbin'
762libexecdir='${exec_prefix}/libexec'
a8b2ad8d 763datarootdir='${prefix}/share'
764datadir='${datarootdir}'
b3076f16 765sysconfdir='${prefix}/etc'
766sharedstatedir='${prefix}/com'
767localstatedir='${prefix}/var'
b3076f16 768includedir='${prefix}/include'
769oldincludedir='/usr/include'
a8b2ad8d 770docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
771infodir='${datarootdir}/info'
772htmldir='${docdir}'
773dvidir='${docdir}'
774pdfdir='${docdir}'
775psdir='${docdir}'
776libdir='${exec_prefix}/lib'
777localedir='${datarootdir}/locale'
778mandir='${datarootdir}/man'
b3076f16 779
780ac_prev=
a8b2ad8d 781ac_dashdash=
b3076f16 782for ac_option
783do
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
a8b2ad8d 786 eval $ac_prev=\$ac_option
b3076f16 787 ac_prev=
788 continue
789 fi
790
a8b2ad8d 791 case $ac_option in
792 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *) ac_optarg=yes ;;
794 esac
b3076f16 795
796 # Accept the important Cygnus configure options, so we can diagnose typos.
797
a8b2ad8d 798 case $ac_dashdash$ac_option in
799 --)
800 ac_dashdash=yes ;;
b3076f16 801
802 -bindir | --bindir | --bindi | --bind | --bin | --bi)
803 ac_prev=bindir ;;
804 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 bindir=$ac_optarg ;;
806
807 -build | --build | --buil | --bui | --bu)
808 ac_prev=build_alias ;;
809 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 build_alias=$ac_optarg ;;
811
812 -cache-file | --cache-file | --cache-fil | --cache-fi \
813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814 ac_prev=cache_file ;;
815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817 cache_file=$ac_optarg ;;
818
819 --config-cache | -C)
820 cache_file=config.cache ;;
821
a8b2ad8d 822 -datadir | --datadir | --datadi | --datad)
b3076f16 823 ac_prev=datadir ;;
a8b2ad8d 824 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b3076f16 825 datadir=$ac_optarg ;;
826
a8b2ad8d 827 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828 | --dataroo | --dataro | --datar)
829 ac_prev=datarootdir ;;
830 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832 datarootdir=$ac_optarg ;;
833
b3076f16 834 -disable-* | --disable-*)
835 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836 # Reject names that are not valid shell variable names.
0bd0bef6 837 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 838 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
839 { (exit 1); exit 1; }; }
0bd0bef6 840 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
a8b2ad8d 841 eval enable_$ac_feature=no ;;
842
843 -docdir | --docdir | --docdi | --doc | --do)
844 ac_prev=docdir ;;
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846 docdir=$ac_optarg ;;
847
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 ac_prev=dvidir ;;
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851 dvidir=$ac_optarg ;;
b3076f16 852
853 -enable-* | --enable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855 # Reject names that are not valid shell variable names.
0bd0bef6 856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
0bd0bef6 859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
a8b2ad8d 860 eval enable_$ac_feature=\$ac_optarg ;;
b3076f16 861
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
870
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
874
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
881
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
886
a8b2ad8d 887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
892
b3076f16 893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
899
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
904
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
909
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
916
a8b2ad8d 917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
921
b3076f16 922 -localstatedir | --localstatedir | --localstatedi | --localstated \
a8b2ad8d 923 | --localstate | --localstat | --localsta | --localst | --locals)
b3076f16 924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a8b2ad8d 926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b3076f16 927 localstatedir=$ac_optarg ;;
928
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
933
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
937
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
941
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
945
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
954
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
959
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
966
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
973
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
990
a8b2ad8d 991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
995
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1000
b3076f16 1001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1004
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1010
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1021
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1026
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1031
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1038
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1043
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1046
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1049
1050 -with-* | --with-*)
1051 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
0bd0bef6 1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
0bd0bef6 1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
a8b2ad8d 1057 eval with_$ac_package=\$ac_optarg ;;
b3076f16 1058
1059 -without-* | --without-*)
1060 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
0bd0bef6 1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
b3076f16 1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
0bd0bef6 1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
a8b2ad8d 1066 eval with_$ac_package=no ;;
b3076f16 1067
1068 --x)
1069 # Obsolete; use --with-x.
1070 with_x=yes ;;
1071
1072 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1073 | --x-incl | --x-inc | --x-in | --x-i)
1074 ac_prev=x_includes ;;
1075 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1076 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1077 x_includes=$ac_optarg ;;
1078
1079 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1080 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1081 ac_prev=x_libraries ;;
1082 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1083 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1084 x_libraries=$ac_optarg ;;
1085
1086 -*) { echo "$as_me: error: unrecognized option: $ac_option
1087Try \`$0 --help' for more information." >&2
1088 { (exit 1); exit 1; }; }
1089 ;;
1090
1091 *=*)
1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1096 { (exit 1); exit 1; }; }
a8b2ad8d 1097 eval $ac_envvar=\$ac_optarg
b3076f16 1098 export $ac_envvar ;;
1099
1100 *)
1101 # FIXME: should be removed in autoconf 3.0.
1102 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1103 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1106 ;;
1107
1108 esac
1109done
1110
1111if test -n "$ac_prev"; then
1112 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113 { echo "$as_me: error: missing argument to $ac_option" >&2
1114 { (exit 1); exit 1; }; }
1115fi
1116
a8b2ad8d 1117# Be sure to have absolute directory names.
1118for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121 libdir localedir mandir
b3076f16 1122do
a8b2ad8d 1123 eval ac_val=\$$ac_var
b3076f16 1124 case $ac_val in
a8b2ad8d 1125 [\\/$]* | ?:[\\/]* ) continue;;
1126 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b3076f16 1127 esac
a8b2ad8d 1128 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1129 { (exit 1); exit 1; }; }
b3076f16 1130done
1131
1132# There might be people who depend on the old broken behavior: `$host'
1133# used to hold the argument of --host etc.
1134# FIXME: To remove some day.
1135build=$build_alias
1136host=$host_alias
1137target=$target_alias
1138
1139# FIXME: To remove some day.
1140if test "x$host_alias" != x; then
1141 if test "x$build_alias" = x; then
1142 cross_compiling=maybe
1143 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1144 If a cross compiler is detected then cross compile mode will be used." >&2
1145 elif test "x$build_alias" != "x$host_alias"; then
1146 cross_compiling=yes
1147 fi
1148fi
1149
1150ac_tool_prefix=
1151test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152
1153test "$silent" = yes && exec 6>/dev/null
1154
1155
a8b2ad8d 1156ac_pwd=`pwd` && test -n "$ac_pwd" &&
1157ac_ls_di=`ls -di .` &&
1158ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1159 { echo "$as_me: error: Working directory cannot be determined" >&2
1160 { (exit 1); exit 1; }; }
1161test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1162 { echo "$as_me: error: pwd does not report name of working directory" >&2
1163 { (exit 1); exit 1; }; }
1164
1165
b3076f16 1166# Find the source files, if location was not specified.
1167if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
a8b2ad8d 1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$0" ||
b3076f16 1171$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$0" : 'X\(//\)[^/]' \| \
1173 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 1174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 1175echo X"$0" |
a8b2ad8d 1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1178 q
1179 }
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)$/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\).*/{
1189 s//\1/
1190 q
1191 }
1192 s/.*/./; q'`
b3076f16 1193 srcdir=$ac_confdir
a8b2ad8d 1194 if test ! -r "$srcdir/$ac_unique_file"; then
b3076f16 1195 srcdir=..
1196 fi
1197else
1198 ac_srcdir_defaulted=no
1199fi
a8b2ad8d 1200if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b3076f16 1203 { (exit 1); exit 1; }; }
b3076f16 1204fi
a8b2ad8d 1205ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206ac_abs_confdir=`(
1207 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
b3076f16 1208 { (exit 1); exit 1; }; }
a8b2ad8d 1209 pwd)`
1210# When building in place, set srcdir=.
1211if test "$ac_abs_confdir" = "$ac_pwd"; then
1212 srcdir=.
1213fi
1214# Remove unnecessary trailing slashes from srcdir.
1215# Double slashes in file names in object file debugging info
1216# mess up M-x gdb in Emacs.
1217case $srcdir in
1218*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219esac
1220for ac_var in $ac_precious_vars; do
1221 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_env_${ac_var}_value=\$${ac_var}
1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225done
b3076f16 1226
1227#
1228# Report the --help message.
1229#
1230if test "$ac_init_help" = "long"; then
1231 # Omit some internal or obsolete options to make the list less imposing.
1232 # This message is too long to be a string in the A/UX 3.1 sh.
1233 cat <<_ACEOF
90746c83 1234\`configure' configures X3 1.6 to adapt to many kinds of systems.
b3076f16 1235
1236Usage: $0 [OPTION]... [VAR=VALUE]...
1237
1238To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239VAR=VALUE. See below for descriptions of some of the useful variables.
1240
1241Defaults for the options are specified in brackets.
1242
1243Configuration:
1244 -h, --help display this help and exit
1245 --help=short display options specific to this package
1246 --help=recursive display the short help of all the included packages
1247 -V, --version display version information and exit
1248 -q, --quiet, --silent do not print \`checking...' messages
1249 --cache-file=FILE cache test results in FILE [disabled]
1250 -C, --config-cache alias for \`--cache-file=config.cache'
1251 -n, --no-create do not create output files
1252 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1253
b3076f16 1254Installation directories:
1255 --prefix=PREFIX install architecture-independent files in PREFIX
1256 [$ac_default_prefix]
1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1258 [PREFIX]
1259
1260By default, \`make install' will install all the files in
1261\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263for instance \`--prefix=\$HOME'.
1264
1265For better control, use the options below.
1266
1267Fine tuning of the installation directories:
1268 --bindir=DIR user executables [EPREFIX/bin]
1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1270 --libexecdir=DIR program executables [EPREFIX/libexec]
b3076f16 1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
a8b2ad8d 1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/x3]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
b3076f16 1287_ACEOF
1288
1289 cat <<\_ACEOF
1290
1291Program names:
1292 --program-prefix=PREFIX prepend PREFIX to installed program names
1293 --program-suffix=SUFFIX append SUFFIX to installed program names
1294 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1295
1296System types:
1297 --build=BUILD configure for building on BUILD [guessed]
1298 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1299 --target=TARGET configure for building compilers for TARGET [HOST]
1300_ACEOF
1301fi
1302
1303if test -n "$ac_init_help"; then
1304 case $ac_init_help in
90746c83 1305 short | recursive ) echo "Configuration of X3 1.6:";;
b3076f16 1306 esac
1307 cat <<\_ACEOF
1308
1309Optional Features:
1310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec1a68c8 1312 --enable-maintainer-mode enable make rules and dependencies not useful
1313 (and sometimes confusing) to the casual installer
1314 --disable-dependency-tracking speeds up one-time build
1315 --enable-dependency-tracking do not reject slow dependency extractors
b3076f16 1316 --disable-tokens Disables tokenization of P10 protocol output
1317 (tokens required if linking to ircu 2.10.11)
1318 --enable-debug Enables debugging behaviors
1319 --enable-modules=list,of,modules Enable extra modules
1320
1321Optional Packages:
1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1324 --with-malloc=type Enables use of a special malloc library; one of:
b8cb2a14 1325 system (the default), boehm-gc, dmalloc, mpatrol, x3, slab
b3076f16 1326 --with-protocol=name Choose IRC dialect to support; one of:
7827220c 1327 p10 (the default)
b3076f16 1328 --without-getopt Disables building of the GNU getopt library
a8b2ad8d 1329 --with-tre=PATH Base path to where libtre is installed, such that
1330 PATH/lib/libtre.so and PATH/include/tre/regex.h exist.
1331 --with-coredumper=PATH Base path to where core dumper is installed, such
1332 that PATH/lib/libcoredumper.so and
1333 PATH/include/google/coredumper.h exist.
73d4cc91 1334 --with-ssl=PATH Base path to where openssl is installed
8da89711 1335 --with-ldap=PATH Base path to where the ldap library and headers are installed,
1336 such that PATH/include/ldap.h and PATH/lib/libldap.so exist.
b3076f16 1337
1338Some influential environment variables:
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
0bd0bef6 1343 LIBS libraries to pass to the linker, e.g. -l<library>
a8b2ad8d 1344 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
b3076f16 1346 CPP C preprocessor
1347
1348Use these variables to override the choices made by `configure' or to help
1349it to find libraries and programs with nonstandard names/locations.
1350
63c95a47 1351Report bugs to <evilnet-devel@lists.sourceforge.net>.
b3076f16 1352_ACEOF
a8b2ad8d 1353ac_status=$?
b3076f16 1354fi
1355
1356if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
b3076f16 1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
a8b2ad8d 1359 test -d "$ac_dir" || continue
b3076f16 1360 ac_builddir=.
1361
a8b2ad8d 1362case "$ac_dir" in
1363.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364*)
b3076f16 1365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 1366 # A ".." for each directory in $ac_dir_suffix.
1367 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1368 case $ac_top_builddir_sub in
1369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1371 esac ;;
1372esac
1373ac_abs_top_builddir=$ac_pwd
1374ac_abs_builddir=$ac_pwd$ac_dir_suffix
1375# for backward compatibility:
1376ac_top_builddir=$ac_top_build_prefix
b3076f16 1377
1378case $srcdir in
a8b2ad8d 1379 .) # We are building in place.
b3076f16 1380 ac_srcdir=.
a8b2ad8d 1381 ac_top_srcdir=$ac_top_builddir_sub
1382 ac_abs_top_srcdir=$ac_pwd ;;
1383 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 1384 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 1385 ac_top_srcdir=$srcdir
1386 ac_abs_top_srcdir=$srcdir ;;
1387 *) # Relative name.
1388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1389 ac_top_srcdir=$ac_top_build_prefix$srcdir
1390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 1391esac
a8b2ad8d 1392ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393
1394 cd "$ac_dir" || { ac_status=$?; continue; }
1395 # Check for guested configure.
1396 if test -f "$ac_srcdir/configure.gnu"; then
1397 echo &&
1398 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1399 elif test -f "$ac_srcdir/configure"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure" --help=recursive
b3076f16 1402 else
1403 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
a8b2ad8d 1404 fi || ac_status=$?
1405 cd "$ac_pwd" || { ac_status=$?; break; }
b3076f16 1406 done
1407fi
1408
a8b2ad8d 1409test -n "$ac_init_help" && exit $ac_status
b3076f16 1410if $ac_init_version; then
1411 cat <<\_ACEOF
90746c83 1412X3 configure 1.6
0bd0bef6 1413generated by GNU Autoconf 2.61
b3076f16 1414
a8b2ad8d 1415Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14162002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
b3076f16 1417This configure script is free software; the Free Software Foundation
1418gives unlimited permission to copy, distribute and modify it.
1419_ACEOF
a8b2ad8d 1420 exit
b3076f16 1421fi
a8b2ad8d 1422cat >config.log <<_ACEOF
b3076f16 1423This file contains any messages produced by compilers while
1424running configure, to aid debugging if configure makes a mistake.
1425
90746c83 1426It was created by X3 $as_me 1.6, which was
0bd0bef6 1427generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 1428
1429 $ $0 $@
1430
1431_ACEOF
a8b2ad8d 1432exec 5>>config.log
b3076f16 1433{
1434cat <<_ASUNAME
1435## --------- ##
1436## Platform. ##
1437## --------- ##
1438
1439hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1440uname -m = `(uname -m) 2>/dev/null || echo unknown`
1441uname -r = `(uname -r) 2>/dev/null || echo unknown`
1442uname -s = `(uname -s) 2>/dev/null || echo unknown`
1443uname -v = `(uname -v) 2>/dev/null || echo unknown`
1444
1445/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1446/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1447
1448/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1449/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1450/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
a8b2ad8d 1451/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b3076f16 1452/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1453/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1454/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1455
1456_ASUNAME
1457
1458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459for as_dir in $PATH
1460do
1461 IFS=$as_save_IFS
1462 test -z "$as_dir" && as_dir=.
1463 echo "PATH: $as_dir"
1464done
a8b2ad8d 1465IFS=$as_save_IFS
b3076f16 1466
1467} >&5
1468
1469cat >&5 <<_ACEOF
1470
1471
1472## ----------- ##
1473## Core tests. ##
1474## ----------- ##
1475
1476_ACEOF
1477
1478
1479# Keep a trace of the command line.
1480# Strip out --no-create and --no-recursion so they do not pile up.
1481# Strip out --silent because we don't want to record it for future runs.
1482# Also quote any args containing shell meta-characters.
1483# Make two passes to allow for proper duplicate-argument suppression.
1484ac_configure_args=
1485ac_configure_args0=
1486ac_configure_args1=
b3076f16 1487ac_must_keep_next=false
1488for ac_pass in 1 2
1489do
1490 for ac_arg
1491 do
1492 case $ac_arg in
1493 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1495 | -silent | --silent | --silen | --sile | --sil)
1496 continue ;;
a8b2ad8d 1497 *\'*)
b3076f16 1498 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 esac
1500 case $ac_pass in
1501 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1502 2)
1503 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1504 if test $ac_must_keep_next = true; then
1505 ac_must_keep_next=false # Got value, back to normal.
1506 else
1507 case $ac_arg in
1508 *=* | --config-cache | -C | -disable-* | --disable-* \
1509 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1510 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1511 | -with-* | --with-* | -without-* | --without-* | --x)
1512 case "$ac_configure_args0 " in
1513 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1514 esac
1515 ;;
1516 -* ) ac_must_keep_next=true ;;
1517 esac
1518 fi
a8b2ad8d 1519 ac_configure_args="$ac_configure_args '$ac_arg'"
b3076f16 1520 ;;
1521 esac
1522 done
1523done
1524$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1525$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1526
1527# When interrupted or exit'd, cleanup temporary files, and complete
1528# config.log. We remove comments because anyway the quotes in there
1529# would cause problems or look ugly.
a8b2ad8d 1530# WARNING: Use '\'' to represent an apostrophe within the trap.
1531# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b3076f16 1532trap 'exit_status=$?
1533 # Save into config.log some information that might help in debugging.
1534 {
1535 echo
1536
1537 cat <<\_ASBOX
1538## ---------------- ##
1539## Cache variables. ##
1540## ---------------- ##
1541_ASBOX
1542 echo
1543 # The following way of writing the cache mishandles newlines in values,
a8b2ad8d 1544(
1545 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1546 eval ac_val=\$$ac_var
1547 case $ac_val in #(
1548 *${as_nl}*)
1549 case $ac_var in #(
1550 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1551echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1552 esac
1553 case $ac_var in #(
1554 _ | IFS | as_nl) ;; #(
1555 *) $as_unset $ac_var ;;
1556 esac ;;
1557 esac
1558 done
b3076f16 1559 (set) 2>&1 |
a8b2ad8d 1560 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1561 *${as_nl}ac_space=\ *)
b3076f16 1562 sed -n \
a8b2ad8d 1563 "s/'\''/'\''\\\\'\'''\''/g;
1564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1565 ;; #(
b3076f16 1566 *)
a8b2ad8d 1567 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 1568 ;;
a8b2ad8d 1569 esac |
1570 sort
1571)
b3076f16 1572 echo
1573
1574 cat <<\_ASBOX
1575## ----------------- ##
1576## Output variables. ##
1577## ----------------- ##
1578_ASBOX
1579 echo
1580 for ac_var in $ac_subst_vars
1581 do
a8b2ad8d 1582 eval ac_val=\$$ac_var
1583 case $ac_val in
1584 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 esac
1586 echo "$ac_var='\''$ac_val'\''"
b3076f16 1587 done | sort
1588 echo
1589
1590 if test -n "$ac_subst_files"; then
1591 cat <<\_ASBOX
a8b2ad8d 1592## ------------------- ##
1593## File substitutions. ##
1594## ------------------- ##
b3076f16 1595_ASBOX
1596 echo
1597 for ac_var in $ac_subst_files
1598 do
a8b2ad8d 1599 eval ac_val=\$$ac_var
1600 case $ac_val in
1601 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1602 esac
1603 echo "$ac_var='\''$ac_val'\''"
b3076f16 1604 done | sort
1605 echo
1606 fi
1607
1608 if test -s confdefs.h; then
1609 cat <<\_ASBOX
1610## ----------- ##
1611## confdefs.h. ##
1612## ----------- ##
1613_ASBOX
1614 echo
a8b2ad8d 1615 cat confdefs.h
b3076f16 1616 echo
1617 fi
1618 test "$ac_signal" != 0 &&
1619 echo "$as_me: caught signal $ac_signal"
1620 echo "$as_me: exit $exit_status"
1621 } >&5
a8b2ad8d 1622 rm -f core *.core core.conftest.* &&
1623 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b3076f16 1624 exit $exit_status
a8b2ad8d 1625' 0
b3076f16 1626for ac_signal in 1 2 13 15; do
1627 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1628done
1629ac_signal=0
1630
1631# confdefs.h avoids OS command line length limits that DEFS can exceed.
a8b2ad8d 1632rm -f -r conftest* confdefs.h
b3076f16 1633
1634# Predefined preprocessor variables.
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_NAME "$PACKAGE_NAME"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_VERSION "$PACKAGE_VERSION"
1648_ACEOF
1649
1650
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_STRING "$PACKAGE_STRING"
1653_ACEOF
1654
1655
1656cat >>confdefs.h <<_ACEOF
1657#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1658_ACEOF
1659
1660
1661# Let the site file select an alternate cache file if it wants to.
1662# Prefer explicitly selected file to automatically selected ones.
a8b2ad8d 1663if test -n "$CONFIG_SITE"; then
1664 set x "$CONFIG_SITE"
1665elif test "x$prefix" != xNONE; then
1666 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1667else
1668 set x "$ac_default_prefix/share/config.site" \
1669 "$ac_default_prefix/etc/config.site"
b3076f16 1670fi
a8b2ad8d 1671shift
1672for ac_site_file
1673do
b3076f16 1674 if test -r "$ac_site_file"; then
1675 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1676echo "$as_me: loading site script $ac_site_file" >&6;}
1677 sed 's/^/| /' "$ac_site_file" >&5
1678 . "$ac_site_file"
1679 fi
1680done
1681
1682if test -r "$cache_file"; then
1683 # Some versions of bash will fail to source /dev/null (special
1684 # files actually), so we avoid doing that.
1685 if test -f "$cache_file"; then
1686 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1687echo "$as_me: loading cache $cache_file" >&6;}
1688 case $cache_file in
a8b2ad8d 1689 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1690 *) . "./$cache_file";;
b3076f16 1691 esac
1692 fi
1693else
1694 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1695echo "$as_me: creating cache $cache_file" >&6;}
1696 >$cache_file
1697fi
1698
1699# Check that the precious variables saved in the cache have kept the same
1700# value.
1701ac_cache_corrupted=false
a8b2ad8d 1702for ac_var in $ac_precious_vars; do
b3076f16 1703 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1704 eval ac_new_set=\$ac_env_${ac_var}_set
a8b2ad8d 1705 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1706 eval ac_new_val=\$ac_env_${ac_var}_value
b3076f16 1707 case $ac_old_set,$ac_new_set in
1708 set,)
1709 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1710echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1711 ac_cache_corrupted=: ;;
1712 ,set)
1713 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1714echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1715 ac_cache_corrupted=: ;;
1716 ,);;
1717 *)
1718 if test "x$ac_old_val" != "x$ac_new_val"; then
1719 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1720echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1721 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1722echo "$as_me: former value: $ac_old_val" >&2;}
1723 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1724echo "$as_me: current value: $ac_new_val" >&2;}
1725 ac_cache_corrupted=:
1726 fi;;
1727 esac
1728 # Pass precious variables to config.status.
1729 if test "$ac_new_set" = set; then
1730 case $ac_new_val in
a8b2ad8d 1731 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b3076f16 1732 *) ac_arg=$ac_var=$ac_new_val ;;
1733 esac
1734 case " $ac_configure_args " in
1735 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1736 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1737 esac
1738 fi
1739done
1740if $ac_cache_corrupted; then
1741 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1742echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1743 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1744echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1745 { (exit 1); exit 1; }; }
1746fi
1747
b3076f16 1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
a8b2ad8d 1772ac_ext=c
1773ac_cpp='$CPP $CPPFLAGS'
1774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1776ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3076f16 1777
1778
ceafd592 1779CODENAME=X3
a8b2ad8d 1780ac_config_headers="$ac_config_headers src/config.h"
b3076f16 1781
1782
1783ac_aux_dir=
a8b2ad8d 1784for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1785 if test -f "$ac_dir/install-sh"; then
b3076f16 1786 ac_aux_dir=$ac_dir
1787 ac_install_sh="$ac_aux_dir/install-sh -c"
1788 break
a8b2ad8d 1789 elif test -f "$ac_dir/install.sh"; then
b3076f16 1790 ac_aux_dir=$ac_dir
1791 ac_install_sh="$ac_aux_dir/install.sh -c"
1792 break
a8b2ad8d 1793 elif test -f "$ac_dir/shtool"; then
b3076f16 1794 ac_aux_dir=$ac_dir
1795 ac_install_sh="$ac_aux_dir/shtool install -c"
1796 break
1797 fi
1798done
1799if test -z "$ac_aux_dir"; then
a8b2ad8d 1800 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1801echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b3076f16 1802 { (exit 1); exit 1; }; }
1803fi
a8b2ad8d 1804
1805# These three variables are undocumented and unsupported,
1806# and are intended to be withdrawn in a future Autoconf release.
1807# They can cause serious problems if a builder's source tree is in a directory
1808# whose full name contains unusual characters.
1809ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1810ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1811ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1812
b3076f16 1813
1814# Make sure we can run config.sub.
a8b2ad8d 1815$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1816 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1817echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
b3076f16 1818 { (exit 1); exit 1; }; }
1819
a8b2ad8d 1820{ echo "$as_me:$LINENO: checking build system type" >&5
1821echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
b3076f16 1822if test "${ac_cv_build+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
a8b2ad8d 1825 ac_build_alias=$build_alias
1826test "x$ac_build_alias" = x &&
1827 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1828test "x$ac_build_alias" = x &&
b3076f16 1829 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1830echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1831 { (exit 1); exit 1; }; }
a8b2ad8d 1832ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1833 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1834echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
b3076f16 1835 { (exit 1); exit 1; }; }
1836
1837fi
a8b2ad8d 1838{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1839echo "${ECHO_T}$ac_cv_build" >&6; }
1840case $ac_cv_build in
1841*-*-*) ;;
1842*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1843echo "$as_me: error: invalid value of canonical build" >&2;}
1844 { (exit 1); exit 1; }; };;
1845esac
b3076f16 1846build=$ac_cv_build
a8b2ad8d 1847ac_save_IFS=$IFS; IFS='-'
1848set x $ac_cv_build
1849shift
1850build_cpu=$1
1851build_vendor=$2
1852shift; shift
1853# Remember, the first character of IFS is used to create $*,
1854# except with old shells:
1855build_os=$*
1856IFS=$ac_save_IFS
1857case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1858
1859
1860{ echo "$as_me:$LINENO: checking host system type" >&5
1861echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
b3076f16 1862if test "${ac_cv_host+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
a8b2ad8d 1865 if test "x$host_alias" = x; then
1866 ac_cv_host=$ac_cv_build
1867else
1868 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1869 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1870echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
b3076f16 1871 { (exit 1); exit 1; }; }
a8b2ad8d 1872fi
b3076f16 1873
1874fi
a8b2ad8d 1875{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1876echo "${ECHO_T}$ac_cv_host" >&6; }
1877case $ac_cv_host in
1878*-*-*) ;;
1879*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1880echo "$as_me: error: invalid value of canonical host" >&2;}
1881 { (exit 1); exit 1; }; };;
1882esac
b3076f16 1883host=$ac_cv_host
a8b2ad8d 1884ac_save_IFS=$IFS; IFS='-'
1885set x $ac_cv_host
1886shift
1887host_cpu=$1
1888host_vendor=$2
1889shift; shift
1890# Remember, the first character of IFS is used to create $*,
1891# except with old shells:
1892host_os=$*
1893IFS=$ac_save_IFS
1894case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1895
1896
1897{ echo "$as_me:$LINENO: checking target system type" >&5
1898echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
b3076f16 1899if test "${ac_cv_target+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
a8b2ad8d 1902 if test "x$target_alias" = x; then
1903 ac_cv_target=$ac_cv_host
1904else
1905 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1906 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1907echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
b3076f16 1908 { (exit 1); exit 1; }; }
a8b2ad8d 1909fi
b3076f16 1910
1911fi
a8b2ad8d 1912{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1913echo "${ECHO_T}$ac_cv_target" >&6; }
1914case $ac_cv_target in
1915*-*-*) ;;
1916*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1917echo "$as_me: error: invalid value of canonical target" >&2;}
1918 { (exit 1); exit 1; }; };;
1919esac
b3076f16 1920target=$ac_cv_target
a8b2ad8d 1921ac_save_IFS=$IFS; IFS='-'
1922set x $ac_cv_target
1923shift
1924target_cpu=$1
1925target_vendor=$2
1926shift; shift
1927# Remember, the first character of IFS is used to create $*,
1928# except with old shells:
1929target_os=$*
1930IFS=$ac_save_IFS
1931case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b3076f16 1932
1933
1934# The aliases save the names the user supplied, while $host etc.
1935# will get canonicalized.
1936test -n "$target_alias" &&
1937 test "$program_prefix$program_suffix$program_transform_name" = \
1938 NONENONEs,x,x, &&
1939 program_prefix=${target_alias}-
0f6fe38c 1940am__api_version="1.9"
b3076f16 1941# Find a good install program. We prefer a C program (faster),
1942# so one script is as good as another. But avoid the broken or
1943# incompatible versions:
1944# SysV /etc/install, /usr/sbin/install
1945# SunOS /usr/etc/install
1946# IRIX /sbin/install
1947# AIX /bin/install
1948# AmigaOS /C/install, which installs bootblocks on floppy discs
1949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952# OS/2's system install, which has a completely different semantic
1953# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 1954{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 1956if test -z "$INSTALL"; then
1957if test "${ac_cv_path_install+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 # Account for people who put trailing slashes in PATH elements.
1966case $as_dir/ in
1967 ./ | .// | /cC/* | \
1968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1970 /usr/ucb/* ) ;;
1971 *)
1972 # OSF1 and SCO ODT 3.0 have their own names for install.
1973 # Don't use installbsd from OSF since it installs stuff as root
1974 # by default.
1975 for ac_prog in ginstall scoinst install; do
1976 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 1977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 1978 if test $ac_prog = install &&
1979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980 # AIX install. It has an incompatible calling convention.
1981 :
1982 elif test $ac_prog = install &&
1983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984 # program-specific install script used by HP pwplus--don't use.
1985 :
1986 else
1987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1988 break 3
1989 fi
1990 fi
1991 done
1992 done
1993 ;;
1994esac
1995done
a8b2ad8d 1996IFS=$as_save_IFS
b3076f16 1997
1998
1999fi
2000 if test "${ac_cv_path_install+set}" = set; then
2001 INSTALL=$ac_cv_path_install
2002 else
a8b2ad8d 2003 # As a last resort, use the slow shell script. Don't cache a
2004 # value for INSTALL within a source directory, because that will
b3076f16 2005 # break other packages using the cache if that directory is
a8b2ad8d 2006 # removed, or if the value is a relative name.
b3076f16 2007 INSTALL=$ac_install_sh
2008 fi
2009fi
a8b2ad8d 2010{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2011echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 2012
2013# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2014# It thinks the first close brace ends the variable substitution.
2015test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2016
2017test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2018
2019test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2020
a8b2ad8d 2021{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2022echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
b3076f16 2023# Just in case
2024sleep 1
ec1a68c8 2025echo timestamp > conftest.file
b3076f16 2026# Do `set' in a subshell so we don't clobber the current shell's
2027# arguments. Must try -L first in case configure is actually a
2028# symlink; some systems play weird games with the mod time of symlinks
2029# (eg FreeBSD returns the mod time of the symlink's containing
2030# directory).
2031if (
ec1a68c8 2032 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
b3076f16 2033 if test "$*" = "X"; then
2034 # -L didn't work.
ec1a68c8 2035 set X `ls -t $srcdir/configure conftest.file`
b3076f16 2036 fi
ec1a68c8 2037 rm -f conftest.file
2038 if test "$*" != "X $srcdir/configure conftest.file" \
2039 && test "$*" != "X conftest.file $srcdir/configure"; then
b3076f16 2040
2041 # If neither matched, then we have a broken ls. This can happen
2042 # if, for instance, CONFIG_SHELL is bash and it inherits a
2043 # broken ls alias from the environment. This has actually
2044 # happened. Such a system could not be considered "sane".
2045 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2046alias in your environment" >&5
2047echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2048alias in your environment" >&2;}
2049 { (exit 1); exit 1; }; }
2050 fi
2051
ec1a68c8 2052 test "$2" = conftest.file
b3076f16 2053 )
2054then
2055 # Ok.
2056 :
2057else
2058 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2059Check your system clock" >&5
2060echo "$as_me: error: newly created file is older than distributed files!
2061Check your system clock" >&2;}
2062 { (exit 1); exit 1; }; }
2063fi
a8b2ad8d 2064{ echo "$as_me:$LINENO: result: yes" >&5
2065echo "${ECHO_T}yes" >&6; }
b3076f16 2066test "$program_prefix" != NONE &&
a8b2ad8d 2067 program_transform_name="s&^&$program_prefix&;$program_transform_name"
b3076f16 2068# Use a double $ so make ignores it.
2069test "$program_suffix" != NONE &&
a8b2ad8d 2070 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
b3076f16 2071# Double any \ or $. echo might interpret backslashes.
2072# By default was `s,x,x', remove it if useless.
2073cat <<\_ACEOF >conftest.sed
2074s/[\\$]/&&/g;s/;s,x,x,$//
2075_ACEOF
2076program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
a8b2ad8d 2077rm -f conftest.sed
b3076f16 2078
ec1a68c8 2079# expand $ac_aux_dir to an absolute path
2080am_aux_dir=`cd $ac_aux_dir && pwd`
2081
2082test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2083# Use eval to expand $SHELL
2084if eval "$MISSING --run true"; then
2085 am_missing_run="$MISSING --run "
2086else
2087 am_missing_run=
2088 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2089echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2090fi
2091
0f6fe38c 2092if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2093 # We used to keeping the `.' as first argument, in order to
2094 # allow $(mkdir_p) to be used without argument. As in
2095 # $(mkdir_p) $(somedir)
2096 # where $(somedir) is conditionally defined. However this is wrong
2097 # for two reasons:
2098 # 1. if the package is installed by a user who cannot write `.'
2099 # make install will fail,
2100 # 2. the above comment should most certainly read
2101 # $(mkdir_p) $(DESTDIR)$(somedir)
2102 # so it does not work when $(somedir) is undefined and
2103 # $(DESTDIR) is not.
2104 # To support the latter case, we have to write
2105 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2106 # so the `.' trick is pointless.
2107 mkdir_p='mkdir -p --'
2108else
2109 # On NextStep and OpenStep, the `mkdir' command does not
2110 # recognize any option. It will interpret all options as
2111 # directories to create, and then abort because `.' already
2112 # exists.
2113 for d in ./-p ./--version;
2114 do
2115 test -d $d && rmdir $d
2116 done
2117 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2118 if test -f "$ac_aux_dir/mkinstalldirs"; then
2119 mkdir_p='$(mkinstalldirs)'
ec1a68c8 2120 else
0f6fe38c 2121 mkdir_p='$(install_sh) -d'
ec1a68c8 2122 fi
2123fi
2124
2125for ac_prog in gawk mawk nawk awk
2126do
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128set dummy $ac_prog; ac_word=$2
a8b2ad8d 2129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2131if test "${ac_cv_prog_AWK+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134 if test -n "$AWK"; then
2135 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2136else
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2144 ac_cv_prog_AWK="$ac_prog"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148done
2149done
a8b2ad8d 2150IFS=$as_save_IFS
ec1a68c8 2151
2152fi
2153fi
2154AWK=$ac_cv_prog_AWK
2155if test -n "$AWK"; then
a8b2ad8d 2156 { echo "$as_me:$LINENO: result: $AWK" >&5
2157echo "${ECHO_T}$AWK" >&6; }
ec1a68c8 2158else
a8b2ad8d 2159 { echo "$as_me:$LINENO: result: no" >&5
2160echo "${ECHO_T}no" >&6; }
ec1a68c8 2161fi
2162
a8b2ad8d 2163
ec1a68c8 2164 test -n "$AWK" && break
2165done
2166
a8b2ad8d 2167{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2168echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2169set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2170if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 cat >conftest.make <<\_ACEOF
a8b2ad8d 2174SHELL = /bin/sh
b3076f16 2175all:
a8b2ad8d 2176 @echo '@@@%%%=$(MAKE)=@@@%%%'
b3076f16 2177_ACEOF
2178# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8b2ad8d 2179case `${MAKE-make} -f conftest.make 2>/dev/null` in
2180 *@@@%%%=?*=@@@%%%*)
2181 eval ac_cv_prog_make_${ac_make}_set=yes;;
2182 *)
2183 eval ac_cv_prog_make_${ac_make}_set=no;;
2184esac
b3076f16 2185rm -f conftest.make
2186fi
a8b2ad8d 2187if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2188 { echo "$as_me:$LINENO: result: yes" >&5
2189echo "${ECHO_T}yes" >&6; }
b3076f16 2190 SET_MAKE=
2191else
a8b2ad8d 2192 { echo "$as_me:$LINENO: result: no" >&5
2193echo "${ECHO_T}no" >&6; }
b3076f16 2194 SET_MAKE="MAKE=${MAKE-make}"
2195fi
2196
ec1a68c8 2197rm -rf .tst 2>/dev/null
2198mkdir .tst 2>/dev/null
2199if test -d .tst; then
2200 am__leading_dot=.
2201else
2202 am__leading_dot=_
2203fi
2204rmdir .tst 2>/dev/null
b3076f16 2205
0f6fe38c 2206# test to see if srcdir already configured
2207if test "`cd $srcdir && pwd`" != "`pwd`" &&
2208 test -f $srcdir/config.status; then
2209 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
b3076f16 2210echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2211 { (exit 1); exit 1; }; }
2212fi
2213
ec1a68c8 2214# test whether we have cygpath
2215if test -z "$CYGPATH_W"; then
2216 if (cygpath --version) >/dev/null 2>/dev/null; then
2217 CYGPATH_W='cygpath -w'
2218 else
2219 CYGPATH_W=echo
2220 fi
2221fi
2222
2223
2224# Define the identity of the package.
ceafd592 2225 PACKAGE='x3'
90746c83 2226 VERSION='1.6'
ec1a68c8 2227
2228
b3076f16 2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE "$PACKAGE"
2231_ACEOF
2232
2233
2234cat >>confdefs.h <<_ACEOF
2235#define VERSION "$VERSION"
2236_ACEOF
2237
ec1a68c8 2238# Some tools Automake needs.
b3076f16 2239
ec1a68c8 2240ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
b3076f16 2241
ec1a68c8 2242
2243AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2244
2245
2246AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2247
2248
2249AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2250
2251
2252MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2253
0f6fe38c 2254install_sh=${install_sh-"$am_aux_dir/install-sh"}
ec1a68c8 2255
2256# Installed binaries are usually stripped using `strip' when the user
2257# run `make install-strip'. However `strip' might not be the right
2258# tool to use in cross-compilation environments, therefore Automake
2259# will honor the `STRIP' environment variable to overrule this program.
2260if test "$cross_compiling" != no; then
2261 if test -n "$ac_tool_prefix"; then
2262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2263set dummy ${ac_tool_prefix}strip; ac_word=$2
a8b2ad8d 2264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2266if test "${ac_cv_prog_STRIP+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 2268else
ec1a68c8 2269 if test -n "$STRIP"; then
2270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
a8b2ad8d 2285IFS=$as_save_IFS
b3076f16 2286
ec1a68c8 2287fi
2288fi
2289STRIP=$ac_cv_prog_STRIP
2290if test -n "$STRIP"; then
a8b2ad8d 2291 { echo "$as_me:$LINENO: result: $STRIP" >&5
2292echo "${ECHO_T}$STRIP" >&6; }
b3076f16 2293else
a8b2ad8d 2294 { echo "$as_me:$LINENO: result: no" >&5
2295echo "${ECHO_T}no" >&6; }
b3076f16 2296fi
b2cf3d66 2297
a8b2ad8d 2298
b3076f16 2299fi
ec1a68c8 2300if test -z "$ac_cv_prog_STRIP"; then
2301 ac_ct_STRIP=$STRIP
2302 # Extract the first word of "strip", so it can be a program name with args.
2303set dummy strip; ac_word=$2
a8b2ad8d 2304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ec1a68c8 2306if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309 if test -n "$ac_ct_STRIP"; then
2310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ec1a68c8 2319 ac_cv_prog_ac_ct_STRIP="strip"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
a8b2ad8d 2325IFS=$as_save_IFS
b3076f16 2326
ec1a68c8 2327fi
2328fi
2329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2330if test -n "$ac_ct_STRIP"; then
a8b2ad8d 2331 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2332echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b3076f16 2333else
a8b2ad8d 2334 { echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6; }
b3076f16 2336fi
2337
a8b2ad8d 2338 if test "x$ac_ct_STRIP" = x; then
2339 STRIP=":"
2340 else
2341 case $cross_compiling:$ac_tool_warned in
2342yes:)
2343{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2344whose name does not start with the host triplet. If you think this
2345configuration is useful to you, please write to autoconf@gnu.org." >&5
2346echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2347whose name does not start with the host triplet. If you think this
2348configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2349ac_tool_warned=yes ;;
2350esac
2351 STRIP=$ac_ct_STRIP
2352 fi
b2cf3d66 2353else
ec1a68c8 2354 STRIP="$ac_cv_prog_STRIP"
b3076f16 2355fi
b3076f16 2356
ec1a68c8 2357fi
0f6fe38c 2358INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
ec1a68c8 2359
2360# We need awk for the "check" target. The system "awk" is bad on
2361# some platforms.
2362# Always define AMTAR for backward compatibility.
2363
2364AMTAR=${AMTAR-"${am_missing_run}tar"}
2365
2366am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2367
2368
2369
2370
b3076f16 2371
a8b2ad8d 2372{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2373echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2374 # Check whether --enable-maintainer-mode was given.
b3076f16 2375if test "${enable_maintainer_mode+set}" = set; then
a8b2ad8d 2376 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b3076f16 2377else
2378 USE_MAINTAINER_MODE=no
a8b2ad8d 2379fi
2380
2381 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2382echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
0f6fe38c 2383
2384
2385if test $USE_MAINTAINER_MODE = yes; then
b3076f16 2386 MAINTAINER_MODE_TRUE=
2387 MAINTAINER_MODE_FALSE='#'
2388else
2389 MAINTAINER_MODE_TRUE='#'
2390 MAINTAINER_MODE_FALSE=
2391fi
ec1a68c8 2392
b3076f16 2393 MAINT=$MAINTAINER_MODE_TRUE
2394
2395
2396
ec1a68c8 2397DEPDIR="${am__leading_dot}deps"
2398
a8b2ad8d 2399ac_config_commands="$ac_config_commands depfiles"
ec1a68c8 2400
2401
2402am_make=${MAKE-make}
2403cat > confinc << 'END'
2404am__doit:
2405 @echo done
2406.PHONY: am__doit
2407END
2408# If we don't find an include directive, just comment out the code.
a8b2ad8d 2409{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2410echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
ec1a68c8 2411am__include="#"
2412am__quote=
2413_am_result=none
2414# First try GNU make style include.
2415echo "include confinc" > confmf
2416# We grep out `Entering directory' and `Leaving directory'
2417# messages which can occur if `w' ends up in MAKEFLAGS.
2418# In particular we don't look at `^make:' because GNU make might
2419# be invoked under some other name (usually "gmake"), in which
2420# case it prints its new name instead of `make'.
2421if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2422 am__include=include
2423 am__quote=
2424 _am_result=GNU
2425fi
2426# Now try BSD make style include.
2427if test "$am__include" = "#"; then
2428 echo '.include "confinc"' > confmf
2429 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2430 am__include=.include
2431 am__quote="\""
2432 _am_result=BSD
2433 fi
2434fi
2435
2436
a8b2ad8d 2437{ echo "$as_me:$LINENO: result: $_am_result" >&5
2438echo "${ECHO_T}$_am_result" >&6; }
ec1a68c8 2439rm -f confinc confmf
2440
a8b2ad8d 2441# Check whether --enable-dependency-tracking was given.
ec1a68c8 2442if test "${enable_dependency_tracking+set}" = set; then
a8b2ad8d 2443 enableval=$enable_dependency_tracking;
2444fi
ec1a68c8 2445
ec1a68c8 2446if test "x$enable_dependency_tracking" != xno; then
2447 am_depcomp="$ac_aux_dir/depcomp"
2448 AMDEPBACKSLASH='\'
2449fi
0f6fe38c 2450
2451
2452if test "x$enable_dependency_tracking" != xno; then
ec1a68c8 2453 AMDEP_TRUE=
2454 AMDEP_FALSE='#'
2455else
2456 AMDEP_TRUE='#'
2457 AMDEP_FALSE=
2458fi
2459
2460
0f6fe38c 2461
b3076f16 2462ac_ext=c
2463ac_cpp='$CPP $CPPFLAGS'
2464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2469set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 2470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2472if test "${ac_cv_prog_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489done
2490done
a8b2ad8d 2491IFS=$as_save_IFS
b3076f16 2492
2493fi
2494fi
2495CC=$ac_cv_prog_CC
2496if test -n "$CC"; then
a8b2ad8d 2497 { echo "$as_me:$LINENO: result: $CC" >&5
2498echo "${ECHO_T}$CC" >&6; }
b3076f16 2499else
a8b2ad8d 2500 { echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6; }
b3076f16 2502fi
2503
a8b2ad8d 2504
b3076f16 2505fi
2506if test -z "$ac_cv_prog_CC"; then
2507 ac_ct_CC=$CC
2508 # Extract the first word of "gcc", so it can be a program name with args.
2509set dummy gcc; ac_word=$2
a8b2ad8d 2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515 if test -n "$ac_ct_CC"; then
2516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2525 ac_cv_prog_ac_ct_CC="gcc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529done
2530done
a8b2ad8d 2531IFS=$as_save_IFS
b3076f16 2532
2533fi
2534fi
2535ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536if test -n "$ac_ct_CC"; then
a8b2ad8d 2537 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2538echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2539else
a8b2ad8d 2540 { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
b3076f16 2542fi
2543
a8b2ad8d 2544 if test "x$ac_ct_CC" = x; then
2545 CC=""
2546 else
2547 case $cross_compiling:$ac_tool_warned in
2548yes:)
2549{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2550whose name does not start with the host triplet. If you think this
2551configuration is useful to you, please write to autoconf@gnu.org." >&5
2552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2553whose name does not start with the host triplet. If you think this
2554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557 CC=$ac_ct_CC
2558 fi
b3076f16 2559else
2560 CC="$ac_cv_prog_CC"
2561fi
2562
2563if test -z "$CC"; then
a8b2ad8d 2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 2566set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 2567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2569if test "${ac_cv_prog_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2582 ac_cv_prog_CC="${ac_tool_prefix}cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
a8b2ad8d 2588IFS=$as_save_IFS
b3076f16 2589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
a8b2ad8d 2594 { echo "$as_me:$LINENO: result: $CC" >&5
2595echo "${ECHO_T}$CC" >&6; }
b3076f16 2596else
a8b2ad8d 2597 { echo "$as_me:$LINENO: result: no" >&5
2598echo "${ECHO_T}no" >&6; }
b3076f16 2599fi
2600
b3076f16 2601
a8b2ad8d 2602 fi
b3076f16 2603fi
2604if test -z "$CC"; then
2605 # Extract the first word of "cc", so it can be a program name with args.
2606set dummy cc; ac_word=$2
a8b2ad8d 2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2609if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615 ac_prog_rejected=no
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624 ac_prog_rejected=yes
2625 continue
2626 fi
2627 ac_cv_prog_CC="cc"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631done
2632done
a8b2ad8d 2633IFS=$as_save_IFS
b3076f16 2634
2635if test $ac_prog_rejected = yes; then
2636 # We found a bogon in the path, so make sure we never use it.
2637 set dummy $ac_cv_prog_CC
2638 shift
2639 if test $# != 0; then
2640 # We chose a different compiler from the bogus one.
2641 # However, it has the same basename, so the bogon will be chosen
2642 # first if we set CC to just the basename; use the full file name.
2643 shift
2644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 fi
2646fi
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
a8b2ad8d 2651 { echo "$as_me:$LINENO: result: $CC" >&5
2652echo "${ECHO_T}$CC" >&6; }
b3076f16 2653else
a8b2ad8d 2654 { echo "$as_me:$LINENO: result: no" >&5
2655echo "${ECHO_T}no" >&6; }
b3076f16 2656fi
2657
a8b2ad8d 2658
b3076f16 2659fi
2660if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
a8b2ad8d 2662 for ac_prog in cl.exe
b3076f16 2663 do
2664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 2666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2668if test "${ac_cv_prog_CC+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685done
2686done
a8b2ad8d 2687IFS=$as_save_IFS
b3076f16 2688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
a8b2ad8d 2693 { echo "$as_me:$LINENO: result: $CC" >&5
2694echo "${ECHO_T}$CC" >&6; }
b3076f16 2695else
a8b2ad8d 2696 { echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6; }
b3076f16 2698fi
2699
a8b2ad8d 2700
b3076f16 2701 test -n "$CC" && break
2702 done
2703fi
2704if test -z "$CC"; then
2705 ac_ct_CC=$CC
a8b2ad8d 2706 for ac_prog in cl.exe
b3076f16 2707do
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709set dummy $ac_prog; ac_word=$2
a8b2ad8d 2710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 2712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715 if test -n "$ac_ct_CC"; then
2716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 2725 ac_cv_prog_ac_ct_CC="$ac_prog"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729done
2730done
a8b2ad8d 2731IFS=$as_save_IFS
b3076f16 2732
2733fi
2734fi
2735ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736if test -n "$ac_ct_CC"; then
a8b2ad8d 2737 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2738echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 2739else
a8b2ad8d 2740 { echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6; }
b3076f16 2742fi
2743
a8b2ad8d 2744
b3076f16 2745 test -n "$ac_ct_CC" && break
2746done
2747
a8b2ad8d 2748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752yes:)
2753{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2754whose name does not start with the host triplet. If you think this
2755configuration is useful to you, please write to autoconf@gnu.org." >&5
2756echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2757whose name does not start with the host triplet. If you think this
2758configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761 CC=$ac_ct_CC
2762 fi
b3076f16 2763fi
2764
2765fi
2766
2767
2768test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2769See \`config.log' for more details." >&5
2770echo "$as_me: error: no acceptable C compiler found in \$PATH
2771See \`config.log' for more details." >&2;}
2772 { (exit 1); exit 1; }; }
2773
2774# Provide some information about the compiler.
a8b2ad8d 2775echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 2776ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 2777{ (ac_try="$ac_compiler --version >&5"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
a8b2ad8d 2787{ (ac_try="$ac_compiler -v >&5"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
a8b2ad8d 2797{ (ac_try="$ac_compiler -V >&5"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
2807
2808cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h. */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h. */
2814
2815int
2816main ()
2817{
2818
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823ac_clean_files_save=$ac_clean_files
2824ac_clean_files="$ac_clean_files a.out a.exe b.out"
2825# Try to create an executable without -o first, disregard a.out.
2826# It will help us diagnose broken compilers, and finding out an intuition
2827# of exeext.
a8b2ad8d 2828{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2829echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
b3076f16 2830ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a8b2ad8d 2831#
2832# List of possible output files, starting from the most likely.
2833# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2834# only as a last resort. b.out is created by i960 compilers.
2835ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2836#
2837# The IRIX 6 linker writes into existing files which may not be
2838# executable, retaining their permissions. Remove them first so a
2839# subsequent execution test works.
2840ac_rmfiles=
2841for ac_file in $ac_files
2842do
2843 case $ac_file in
2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846 esac
2847done
2848rm -f $ac_rmfiles
2849
2850if { (ac_try="$ac_link_default"
2851case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_link_default") 2>&5
b3076f16 2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; then
a8b2ad8d 2860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2861# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2862# in a Makefile. We should not override ac_cv_exeext if it was cached,
2863# so that the user can short-circuit this test for compilers unknown to
2864# Autoconf.
0bd0bef6 2865for ac_file in $ac_files ''
b3076f16 2866do
2867 test -f "$ac_file" || continue
2868 case $ac_file in
a8b2ad8d 2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
b3076f16 2870 ;;
2871 [ab].out )
2872 # We found the default executable, but exeext='' is most
2873 # certainly right.
2874 break;;
2875 *.* )
a8b2ad8d 2876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877 then :; else
2878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879 fi
2880 # We set ac_cv_exeext here because the later test for it is not
2881 # safe: cross compilers may not add the suffix if given an `-o'
2882 # argument, so we may need to know it at that point already.
2883 # Even if this section looks crufty: it has the advantage of
2884 # actually working.
b3076f16 2885 break;;
2886 * )
2887 break;;
2888 esac
2889done
a8b2ad8d 2890test "$ac_cv_exeext" = no && ac_cv_exeext=
2891
b3076f16 2892else
0bd0bef6 2893 ac_file=''
2894fi
2895
2896{ echo "$as_me:$LINENO: result: $ac_file" >&5
2897echo "${ECHO_T}$ac_file" >&6; }
2898if test -z "$ac_file"; then
b3076f16 2899 echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: C compiler cannot create executables
2905See \`config.log' for more details." >&2;}
2906 { (exit 77); exit 77; }; }
2907fi
2908
2909ac_exeext=$ac_cv_exeext
b3076f16 2910
a8b2ad8d 2911# Check that the compiler produces executables we can run. If not, either
b3076f16 2912# the compiler is broken, or we cross compile.
a8b2ad8d 2913{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2914echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
b3076f16 2915# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2916# If not cross compiling, check that we can run a simple program.
2917if test "$cross_compiling" != yes; then
2918 if { ac_try='./$ac_file'
a8b2ad8d 2919 { (case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_try") 2>&5
b3076f16 2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 cross_compiling=no
2929 else
2930 if test "$cross_compiling" = maybe; then
2931 cross_compiling=yes
2932 else
2933 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2934If you meant to cross compile, use \`--host'.
2935See \`config.log' for more details." >&5
2936echo "$as_me: error: cannot run C compiled programs.
2937If you meant to cross compile, use \`--host'.
2938See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941 fi
2942fi
a8b2ad8d 2943{ echo "$as_me:$LINENO: result: yes" >&5
2944echo "${ECHO_T}yes" >&6; }
b3076f16 2945
2946rm -f a.out a.exe conftest$ac_cv_exeext b.out
2947ac_clean_files=$ac_clean_files_save
a8b2ad8d 2948# Check that the compiler produces executables we can run. If not, either
b3076f16 2949# the compiler is broken, or we cross compile.
a8b2ad8d 2950{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2951echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2952{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2953echo "${ECHO_T}$cross_compiling" >&6; }
2954
2955{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2956echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2957if { (ac_try="$ac_link"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_link") 2>&5
b3076f16 2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
2967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2968# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2969# work properly (i.e., refer to `conftest.exe'), while it won't with
2970# `rm'.
2971for ac_file in conftest.exe conftest conftest.*; do
2972 test -f "$ac_file" || continue
2973 case $ac_file in
a8b2ad8d 2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
b3076f16 2975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b3076f16 2976 break;;
2977 * ) break;;
2978 esac
2979done
2980else
2981 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2982See \`config.log' for more details." >&5
2983echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2984See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2986fi
2987
2988rm -f conftest$ac_cv_exeext
a8b2ad8d 2989{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2990echo "${ECHO_T}$ac_cv_exeext" >&6; }
b3076f16 2991
2992rm -f conftest.$ac_ext
2993EXEEXT=$ac_cv_exeext
2994ac_exeext=$EXEEXT
a8b2ad8d 2995{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2996echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
b3076f16 2997if test "${ac_cv_objext+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.o conftest.obj
a8b2ad8d 3016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>&5
b3076f16 3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; then
a8b2ad8d 3026 for ac_file in conftest.o conftest.obj conftest.*; do
3027 test -f "$ac_file" || continue;
b3076f16 3028 case $ac_file in
a8b2ad8d 3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
b3076f16 3030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3031 break;;
3032 esac
3033done
3034else
3035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3039See \`config.log' for more details." >&5
3040echo "$as_me: error: cannot compute suffix of object files: cannot compile
3041See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3043fi
3044
3045rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046fi
a8b2ad8d 3047{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3048echo "${ECHO_T}$ac_cv_objext" >&6; }
b3076f16 3049OBJEXT=$ac_cv_objext
3050ac_objext=$OBJEXT
a8b2ad8d 3051{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3052echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 3053if test "${ac_cv_c_compiler_gnu+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055else
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062
3063int
3064main ()
3065{
3066#ifndef __GNUC__
3067 choke me
3068#endif
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
a8b2ad8d 3075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
b3076f16 3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
b3076f16 3091 ac_compiler_gnu=yes
3092else
3093 echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
a8b2ad8d 3096 ac_compiler_gnu=no
b3076f16 3097fi
a8b2ad8d 3098
3099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3100ac_cv_c_compiler_gnu=$ac_compiler_gnu
3101
3102fi
a8b2ad8d 3103{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3104echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 3105GCC=`test $ac_compiler_gnu = yes && echo yes`
3106ac_test_CFLAGS=${CFLAGS+set}
3107ac_save_CFLAGS=$CFLAGS
a8b2ad8d 3108{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3109echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 3110if test "${ac_cv_prog_cc_g+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
a8b2ad8d 3113 ac_save_c_werror_flag=$ac_c_werror_flag
3114 ac_c_werror_flag=yes
3115 ac_cv_prog_cc_g=no
3116 CFLAGS="-g"
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
a8b2ad8d 3149 ac_cv_prog_cc_g=yes
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
a8b2ad8d 3187 :
3188else
3189 echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3193 CFLAGS="-g"
3194 cat >conftest.$ac_ext <<_ACEOF
b3076f16 3195/* confdefs.h. */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h. */
3200
3201int
3202main ()
3203{
3204
3205 ;
3206 return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext
a8b2ad8d 3210if { (ac_try="$ac_compile"
3211case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_compile") 2>conftest.er1
b3076f16 3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3222 (exit $ac_status); } && {
3223 test -z "$ac_c_werror_flag" ||
3224 test ! -s conftest.err
3225 } && test -s conftest.$ac_objext; then
b3076f16 3226 ac_cv_prog_cc_g=yes
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
a8b2ad8d 3231
3232fi
3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235fi
3236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3238fi
a8b2ad8d 3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 3242fi
a8b2ad8d 3243{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 3245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
3250 else
3251 CFLAGS="-g"
3252 fi
3253else
3254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
3256 else
3257 CFLAGS=
3258 fi
3259fi
a8b2ad8d 3260{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
a8b2ad8d 3265 ac_cv_prog_cc_c89=no
b3076f16 3266ac_save_CC=$CC
3267cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#include <stdarg.h>
3274#include <stdio.h>
3275#include <sys/types.h>
3276#include <sys/stat.h>
3277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278struct buf { int x; };
3279FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280static char *e (p, i)
3281 char **p;
3282 int i;
3283{
3284 return p[i];
3285}
3286static char *f (char * (*g) (char **, int), char **p, ...)
3287{
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3294}
3295
3296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 3299 as 'x'. The following induces an error, until -std is added to get
b3076f16 3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 3302 that's true only with -std. */
b3076f16 3303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
a8b2ad8d 3305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307#define FOO(x) 'x'
3308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
b3076f16 3310int test (int i, double x);
3311struct s1 {int (*f) (int a);};
3312struct s2 {int (*f) (double a);};
3313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314int argc;
3315char **argv;
3316int
3317main ()
3318{
3319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322}
3323_ACEOF
a8b2ad8d 3324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 3326do
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
a8b2ad8d 3329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
b3076f16 3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
a8b2ad8d 3345 ac_cv_prog_cc_c89=$ac_arg
b3076f16 3346else
3347 echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
a8b2ad8d 3350
b3076f16 3351fi
a8b2ad8d 3352
3353rm -f core conftest.err conftest.$ac_objext
3354 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 3355done
a8b2ad8d 3356rm -f conftest.$ac_ext
b3076f16 3357CC=$ac_save_CC
3358
3359fi
a8b2ad8d 3360# AC_CACHE_VAL
3361case "x$ac_cv_prog_cc_c89" in
3362 x)
3363 { echo "$as_me:$LINENO: result: none needed" >&5
3364echo "${ECHO_T}none needed" >&6; } ;;
3365 xno)
3366 { echo "$as_me:$LINENO: result: unsupported" >&5
3367echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 3368 *)
a8b2ad8d 3369 CC="$CC $ac_cv_prog_cc_c89"
3370 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3371echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 3372esac
3373
b3076f16 3374
b3076f16 3375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380
ec1a68c8 3381depcc="$CC" am_compiler_list=
3382
a8b2ad8d 3383{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 3385if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389 # We make a subdir and do the tests there. Otherwise we can end up
3390 # making bogus files that we don't know about and never remove. For
3391 # instance it was reported that on HP-UX the gcc test will end up
3392 # making a dummy file named `D' -- because `-MD' means `put the output
3393 # in D'.
3394 mkdir conftest.dir
3395 # Copy depcomp to subdir because otherwise we won't find it if we're
3396 # using a relative directory.
3397 cp "$am_depcomp" conftest.dir
3398 cd conftest.dir
3399 # We will build objects and dependencies in a subdirectory because
3400 # it helps to detect inapplicable dependency modes. For instance
3401 # both Tru64's cc and ICC support -MD to output dependencies as a
3402 # side effect of compilation, but ICC will put the dependencies in
3403 # the current directory while Tru64 will put them in the object
3404 # directory.
3405 mkdir sub
3406
3407 am_cv_CC_dependencies_compiler_type=none
3408 if test "$am_compiler_list" = ""; then
3409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3410 fi
3411 for depmode in $am_compiler_list; do
3412 # Setup a source with many dependencies, because some compilers
3413 # like to wrap large dependency lists on column 80 (with \), and
3414 # we should not choose a depcomp mode which is confused by this.
3415 #
3416 # We need to recreate these files for each test, as the compiler may
3417 # overwrite some of them when testing with obscure command lines.
3418 # This happens at least with the AIX C compiler.
3419 : > sub/conftest.c
3420 for i in 1 2 3 4 5 6; do
3421 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3422 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3423 # Solaris 8's {/usr,}/bin/sh.
3424 touch sub/conftst$i.h
3425 done
3426 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3427
3428 case $depmode in
3429 nosideeffect)
3430 # after this tag, mechanisms are not by side-effect, so they'll
3431 # only be used when explicitly requested
3432 if test "x$enable_dependency_tracking" = xyes; then
3433 continue
3434 else
3435 break
3436 fi
3437 ;;
3438 none) break ;;
3439 esac
3440 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3441 # mode. It turns out that the SunPro C++ compiler does not properly
3442 # handle `-M -o', and we need to detect this.
3443 if depmode=$depmode \
3444 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3446 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3447 >/dev/null 2>conftest.err &&
3448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3449 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3451 # icc doesn't choke on unknown options, it will just issue warnings
3452 # or remarks (even with -Werror). So we grep stderr for any message
3453 # that says an option was ignored or not supported.
3454 # When given -MP, icc 7.0 and 7.1 complain thusly:
3455 # icc: Command line warning: ignoring option '-M'; no argument required
3456 # The diagnosis changed in icc 8.0:
3457 # icc: Command line remark: option '-MP' not supported
3458 if (grep 'ignoring option' conftest.err ||
3459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3460 am_cv_CC_dependencies_compiler_type=$depmode
3461 break
3462 fi
3463 fi
3464 done
3465
3466 cd ..
3467 rm -rf conftest.dir
3468else
3469 am_cv_CC_dependencies_compiler_type=none
3470fi
3471
3472fi
a8b2ad8d 3473{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3474echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 3475CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3476
0f6fe38c 3477
3478
3479if
ec1a68c8 3480 test "x$enable_dependency_tracking" != xno \
3481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3482 am__fastdepCC_TRUE=
3483 am__fastdepCC_FALSE='#'
3484else
3485 am__fastdepCC_TRUE='#'
3486 am__fastdepCC_FALSE=
3487fi
3488
3489
b3076f16 3490
a8b2ad8d 3491{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3492echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
b3076f16 3493if test "${ac_cv_type_signal+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
3502#include <sys/types.h>
3503#include <signal.h>
b3076f16 3504
3505int
3506main ()
3507{
a8b2ad8d 3508return *(signal (0, 0)) (0) == 1;
b3076f16 3509 ;
3510 return 0;
3511}
3512_ACEOF
3513rm -f conftest.$ac_objext
a8b2ad8d 3514if { (ac_try="$ac_compile"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
b3076f16 3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3526 (exit $ac_status); } && {
3527 test -z "$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
a8b2ad8d 3530 ac_cv_type_signal=int
b3076f16 3531else
3532 echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
a8b2ad8d 3535 ac_cv_type_signal=void
b3076f16 3536fi
a8b2ad8d 3537
3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3539fi
a8b2ad8d 3540{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3541echo "${ECHO_T}$ac_cv_type_signal" >&6; }
b3076f16 3542
3543cat >>confdefs.h <<_ACEOF
3544#define RETSIGTYPE $ac_cv_type_signal
3545_ACEOF
3546
3547
a8b2ad8d 3548{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3549echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
b3076f16 3550if test "${ac_cv_c_const+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559
3560int
3561main ()
3562{
3563/* FIXME: Include the comments suggested by Paul. */
3564#ifndef __cplusplus
3565 /* Ultrix mips cc rejects this. */
3566 typedef int charset[2];
0bd0bef6 3567 const charset cs;
b3076f16 3568 /* SunOS 4.1.1 cc rejects this. */
0bd0bef6 3569 char const *const *pcpcc;
3570 char **ppc;
b3076f16 3571 /* NEC SVR4.0.2 mips cc rejects this. */
3572 struct point {int x, y;};
3573 static struct point const zero = {0,0};
3574 /* AIX XL C 1.02.0.0 rejects this.
3575 It does not let you subtract one const X* pointer from another in
3576 an arm of an if-expression whose if-part is not a constant
3577 expression */
3578 const char *g = "string";
0bd0bef6 3579 pcpcc = &g + (g ? g-g : 0);
b3076f16 3580 /* HPUX 7.0 cc rejects these. */
0bd0bef6 3581 ++pcpcc;
3582 ppc = (char**) pcpcc;
3583 pcpcc = (char const *const *) ppc;
b3076f16 3584 { /* SCO 3.2v4 cc rejects this. */
3585 char *t;
3586 char const *s = 0 ? (char *) 0 : (char const *) 0;
3587
3588 *t++ = 0;
a8b2ad8d 3589 if (s) return 0;
b3076f16 3590 }
3591 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3592 int x[] = {25, 17};
3593 const int *foo = &x[0];
3594 ++foo;
3595 }
3596 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3597 typedef const int *iptr;
3598 iptr p = 0;
3599 ++p;
3600 }
3601 { /* AIX XL C 1.02.0.0 rejects this saying
3602 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3603 struct s { int j; const int *ap[3]; };
3604 struct s *b; b->j = 5;
3605 }
3606 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3607 const int foo = 10;
a8b2ad8d 3608 if (!foo) return 0;
b3076f16 3609 }
0bd0bef6 3610 return !cs[0] && !zero.x;
b3076f16 3611#endif
3612
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
a8b2ad8d 3618if { (ac_try="$ac_compile"
3619case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622esac
3623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_compile") 2>conftest.er1
b3076f16 3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest.$ac_objext; then
b3076f16 3634 ac_cv_c_const=yes
3635else
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
a8b2ad8d 3639 ac_cv_c_const=no
b3076f16 3640fi
a8b2ad8d 3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 3643fi
a8b2ad8d 3644{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3645echo "${ECHO_T}$ac_cv_c_const" >&6; }
b3076f16 3646if test $ac_cv_c_const = no; then
3647
3648cat >>confdefs.h <<\_ACEOF
3649#define const
3650_ACEOF
3651
3652fi
3653
0f6fe38c 3654{ echo "$as_me:$LINENO: checking for inline" >&5
3655echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3656if test "${ac_cv_c_inline+set}" = set; then
b3076f16 3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
0f6fe38c 3659 ac_cv_c_inline=no
3660for ac_kw in inline __inline__ __inline; do
3661 cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667#ifndef __cplusplus
3668typedef int foo_t;
3669static $ac_kw foo_t static_foo () {return 0; }
3670$ac_kw foo_t foo () {return 0; }
3671#endif
3672
3673_ACEOF
3674rm -f conftest.$ac_objext
3675if { (ac_try="$ac_compile"
3676case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
0f6fe38c 3691 ac_cv_c_inline=$ac_kw
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696
3697fi
3698
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 test "$ac_cv_c_inline" != no && break
3701done
3702
3703fi
3704{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3705echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3706
3707
3708case $ac_cv_c_inline in
3709 inline | yes) ;;
3710 *)
3711 case $ac_cv_c_inline in
3712 no) ac_val=;;
3713 *) ac_val=$ac_cv_c_inline;;
3714 esac
3715 cat >>confdefs.h <<_ACEOF
3716#ifndef __cplusplus
3717#define inline $ac_val
3718#endif
3719_ACEOF
3720 ;;
3721esac
3722
3723
3724for ac_prog in gawk mawk nawk awk
3725do
3726 # Extract the first word of "$ac_prog", so it can be a program name with args.
3727set dummy $ac_prog; ac_word=$2
3728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3730if test "${ac_cv_prog_AWK+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 if test -n "$AWK"; then
3734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3735else
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0f6fe38c 3743 ac_cv_prog_AWK="$ac_prog"
3744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 break 2
3746 fi
3747done
3748done
3749IFS=$as_save_IFS
3750
3751fi
3752fi
3753AWK=$ac_cv_prog_AWK
3754if test -n "$AWK"; then
3755 { echo "$as_me:$LINENO: result: $AWK" >&5
3756echo "${ECHO_T}$AWK" >&6; }
3757else
3758 { echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6; }
3760fi
b3076f16 3761
a8b2ad8d 3762
b3076f16 3763 test -n "$AWK" && break
3764done
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773set dummy ${ac_tool_prefix}gcc; ac_word=$2
a8b2ad8d 3774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3776if test "${ac_cv_prog_CC+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781else
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793done
3794done
a8b2ad8d 3795IFS=$as_save_IFS
b3076f16 3796
3797fi
3798fi
3799CC=$ac_cv_prog_CC
3800if test -n "$CC"; then
a8b2ad8d 3801 { echo "$as_me:$LINENO: result: $CC" >&5
3802echo "${ECHO_T}$CC" >&6; }
b3076f16 3803else
a8b2ad8d 3804 { echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6; }
b3076f16 3806fi
3807
a8b2ad8d 3808
b3076f16 3809fi
3810if test -z "$ac_cv_prog_CC"; then
3811 ac_ct_CC=$CC
3812 # Extract the first word of "gcc", so it can be a program name with args.
3813set dummy gcc; ac_word=$2
a8b2ad8d 3814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819 if test -n "$ac_ct_CC"; then
3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3829 ac_cv_prog_ac_ct_CC="gcc"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833done
3834done
a8b2ad8d 3835IFS=$as_save_IFS
b3076f16 3836
3837fi
3838fi
3839ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840if test -n "$ac_ct_CC"; then
a8b2ad8d 3841 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3842echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 3843else
a8b2ad8d 3844 { echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6; }
b3076f16 3846fi
3847
a8b2ad8d 3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852yes:)
3853{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3854whose name does not start with the host triplet. If you think this
3855configuration is useful to you, please write to autoconf@gnu.org." >&5
3856echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3857whose name does not start with the host triplet. If you think this
3858configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3859ac_tool_warned=yes ;;
3860esac
3861 CC=$ac_ct_CC
3862 fi
b3076f16 3863else
3864 CC="$ac_cv_prog_CC"
3865fi
3866
3867if test -z "$CC"; then
a8b2ad8d 3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b3076f16 3870set dummy ${ac_tool_prefix}cc; ac_word=$2
a8b2ad8d 3871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3873if test "${ac_cv_prog_CC+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3886 ac_cv_prog_CC="${ac_tool_prefix}cc"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890done
3891done
a8b2ad8d 3892IFS=$as_save_IFS
b3076f16 3893
3894fi
3895fi
3896CC=$ac_cv_prog_CC
3897if test -n "$CC"; then
a8b2ad8d 3898 { echo "$as_me:$LINENO: result: $CC" >&5
3899echo "${ECHO_T}$CC" >&6; }
b3076f16 3900else
a8b2ad8d 3901 { echo "$as_me:$LINENO: result: no" >&5
3902echo "${ECHO_T}no" >&6; }
b3076f16 3903fi
3904
b3076f16 3905
a8b2ad8d 3906 fi
b3076f16 3907fi
3908if test -z "$CC"; then
3909 # Extract the first word of "cc", so it can be a program name with args.
3910set dummy cc; ac_word=$2
a8b2ad8d 3911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3913if test "${ac_cv_prog_CC+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918else
3919 ac_prog_rejected=no
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928 ac_prog_rejected=yes
3929 continue
3930 fi
3931 ac_cv_prog_CC="cc"
3932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936done
a8b2ad8d 3937IFS=$as_save_IFS
b3076f16 3938
3939if test $ac_prog_rejected = yes; then
3940 # We found a bogon in the path, so make sure we never use it.
3941 set dummy $ac_cv_prog_CC
3942 shift
3943 if test $# != 0; then
3944 # We chose a different compiler from the bogus one.
3945 # However, it has the same basename, so the bogon will be chosen
3946 # first if we set CC to just the basename; use the full file name.
3947 shift
3948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3949 fi
3950fi
3951fi
3952fi
3953CC=$ac_cv_prog_CC
3954if test -n "$CC"; then
a8b2ad8d 3955 { echo "$as_me:$LINENO: result: $CC" >&5
3956echo "${ECHO_T}$CC" >&6; }
b3076f16 3957else
a8b2ad8d 3958 { echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6; }
b3076f16 3960fi
3961
a8b2ad8d 3962
b3076f16 3963fi
3964if test -z "$CC"; then
3965 if test -n "$ac_tool_prefix"; then
a8b2ad8d 3966 for ac_prog in cl.exe
b3076f16 3967 do
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a8b2ad8d 3970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 3972if test "${ac_cv_prog_CC+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 3985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989done
3990done
a8b2ad8d 3991IFS=$as_save_IFS
b3076f16 3992
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
a8b2ad8d 3997 { echo "$as_me:$LINENO: result: $CC" >&5
3998echo "${ECHO_T}$CC" >&6; }
b3076f16 3999else
a8b2ad8d 4000 { echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6; }
b3076f16 4002fi
4003
a8b2ad8d 4004
b3076f16 4005 test -n "$CC" && break
4006 done
4007fi
4008if test -z "$CC"; then
4009 ac_ct_CC=$CC
a8b2ad8d 4010 for ac_prog in cl.exe
b3076f16 4011do
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013set dummy $ac_prog; ac_word=$2
a8b2ad8d 4014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
b3076f16 4016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b3076f16 4029 ac_cv_prog_ac_ct_CC="$ac_prog"
4030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033done
4034done
a8b2ad8d 4035IFS=$as_save_IFS
b3076f16 4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
a8b2ad8d 4041 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4042echo "${ECHO_T}$ac_ct_CC" >&6; }
b3076f16 4043else
a8b2ad8d 4044 { echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6; }
b3076f16 4046fi
4047
a8b2ad8d 4048
b3076f16 4049 test -n "$ac_ct_CC" && break
4050done
4051
a8b2ad8d 4052 if test "x$ac_ct_CC" = x; then
4053 CC=""
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056yes:)
4057{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4058whose name does not start with the host triplet. If you think this
4059configuration is useful to you, please write to autoconf@gnu.org." >&5
4060echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4061whose name does not start with the host triplet. If you think this
4062configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4063ac_tool_warned=yes ;;
4064esac
4065 CC=$ac_ct_CC
4066 fi
b3076f16 4067fi
4068
4069fi
4070
4071
4072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4073See \`config.log' for more details." >&5
4074echo "$as_me: error: no acceptable C compiler found in \$PATH
4075See \`config.log' for more details." >&2;}
4076 { (exit 1); exit 1; }; }
4077
4078# Provide some information about the compiler.
a8b2ad8d 4079echo "$as_me:$LINENO: checking for C compiler version" >&5
b3076f16 4080ac_compiler=`set X $ac_compile; echo $2`
a8b2ad8d 4081{ (ac_try="$ac_compiler --version >&5"
4082case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compiler --version >&5") 2>&5
b3076f16 4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }
a8b2ad8d 4091{ (ac_try="$ac_compiler -v >&5"
4092case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_compiler -v >&5") 2>&5
b3076f16 4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }
a8b2ad8d 4101{ (ac_try="$ac_compiler -V >&5"
4102case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_compiler -V >&5") 2>&5
b3076f16 4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }
4111
a8b2ad8d 4112{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4113echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
b3076f16 4114if test "${ac_cv_c_compiler_gnu+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116else
4117 cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */
4123
4124int
4125main ()
4126{
4127#ifndef __GNUC__
4128 choke me
4129#endif
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135rm -f conftest.$ac_objext
a8b2ad8d 4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
b3076f16 4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4148 (exit $ac_status); } && {
4149 test -z "$ac_c_werror_flag" ||
4150 test ! -s conftest.err
4151 } && test -s conftest.$ac_objext; then
b3076f16 4152 ac_compiler_gnu=yes
4153else
4154 echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
a8b2ad8d 4157 ac_compiler_gnu=no
b3076f16 4158fi
a8b2ad8d 4159
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4161ac_cv_c_compiler_gnu=$ac_compiler_gnu
4162
4163fi
a8b2ad8d 4164{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4165echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
b3076f16 4166GCC=`test $ac_compiler_gnu = yes && echo yes`
4167ac_test_CFLAGS=${CFLAGS+set}
4168ac_save_CFLAGS=$CFLAGS
a8b2ad8d 4169{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4170echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
b3076f16 4171if test "${ac_cv_prog_cc_g+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
a8b2ad8d 4174 ac_save_c_werror_flag=$ac_c_werror_flag
4175 ac_c_werror_flag=yes
4176 ac_cv_prog_cc_g=no
4177 CFLAGS="-g"
4178 cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h. */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h. */
4184
4185int
4186main ()
4187{
4188
4189 ;
4190 return 0;
4191}
4192_ACEOF
4193rm -f conftest.$ac_objext
4194if { (ac_try="$ac_compile"
4195case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_compile") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest.$ac_objext; then
a8b2ad8d 4210 ac_cv_prog_cc_g=yes
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 CFLAGS=""
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222
4223int
4224main ()
4225{
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext
4232if { (ac_try="$ac_compile"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_compile") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4244 (exit $ac_status); } && {
4245 test -z "$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4247 } && test -s conftest.$ac_objext; then
a8b2ad8d 4248 :
4249else
4250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4254 CFLAGS="-g"
4255 cat >conftest.$ac_ext <<_ACEOF
b3076f16 4256/* confdefs.h. */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h. */
4261
4262int
4263main ()
4264{
4265
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext
a8b2ad8d 4271if { (ac_try="$ac_compile"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_compile") 2>conftest.er1
b3076f16 4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4283 (exit $ac_status); } && {
4284 test -z "$ac_c_werror_flag" ||
4285 test ! -s conftest.err
4286 } && test -s conftest.$ac_objext; then
b3076f16 4287 ac_cv_prog_cc_g=yes
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
a8b2ad8d 4292
4293fi
4294
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 4299fi
a8b2ad8d 4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 ac_c_werror_flag=$ac_save_c_werror_flag
b3076f16 4303fi
a8b2ad8d 4304{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4305echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
b3076f16 4306if test "$ac_test_CFLAGS" = set; then
4307 CFLAGS=$ac_save_CFLAGS
4308elif test $ac_cv_prog_cc_g = yes; then
4309 if test "$GCC" = yes; then
4310 CFLAGS="-g -O2"
4311 else
4312 CFLAGS="-g"
4313 fi
4314else
4315 if test "$GCC" = yes; then
4316 CFLAGS="-O2"
4317 else
4318 CFLAGS=
4319 fi
4320fi
a8b2ad8d 4321{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4322echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4323if test "${ac_cv_prog_cc_c89+set}" = set; then
b3076f16 4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
a8b2ad8d 4326 ac_cv_prog_cc_c89=no
b3076f16 4327ac_save_CC=$CC
4328cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h. */
4334#include <stdarg.h>
4335#include <stdio.h>
4336#include <sys/types.h>
4337#include <sys/stat.h>
4338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4339struct buf { int x; };
4340FILE * (*rcsopen) (struct buf *, struct stat *, int);
4341static char *e (p, i)
4342 char **p;
4343 int i;
4344{
4345 return p[i];
4346}
4347static char *f (char * (*g) (char **, int), char **p, ...)
4348{
4349 char *s;
4350 va_list v;
4351 va_start (v,p);
4352 s = g (p, va_arg (v,int));
4353 va_end (v);
4354 return s;
4355}
4356
4357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4358 function prototypes and stuff, but not '\xHH' hex character constants.
4359 These don't provoke an error unfortunately, instead are silently treated
a8b2ad8d 4360 as 'x'. The following induces an error, until -std is added to get
b3076f16 4361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4362 array size at least. It's necessary to write '\x00'==0 to get something
a8b2ad8d 4363 that's true only with -std. */
b3076f16 4364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4365
a8b2ad8d 4366/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4367 inside strings and character constants. */
4368#define FOO(x) 'x'
4369int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4370
b3076f16 4371int test (int i, double x);
4372struct s1 {int (*f) (int a);};
4373struct s2 {int (*f) (double a);};
4374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4375int argc;
4376char **argv;
4377int
4378main ()
4379{
4380return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4381 ;
4382 return 0;
4383}
4384_ACEOF
a8b2ad8d 4385for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b3076f16 4387do
4388 CC="$ac_save_CC $ac_arg"
4389 rm -f conftest.$ac_objext
a8b2ad8d 4390if { (ac_try="$ac_compile"
4391case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
b3076f16 4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
a8b2ad8d 4406 ac_cv_prog_cc_c89=$ac_arg
b3076f16 4407else
4408 echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
a8b2ad8d 4411
b3076f16 4412fi
a8b2ad8d 4413
4414rm -f core conftest.err conftest.$ac_objext
4415 test "x$ac_cv_prog_cc_c89" != "xno" && break
b3076f16 4416done
a8b2ad8d 4417rm -f conftest.$ac_ext
b3076f16 4418CC=$ac_save_CC
4419
4420fi
a8b2ad8d 4421# AC_CACHE_VAL
4422case "x$ac_cv_prog_cc_c89" in
4423 x)
4424 { echo "$as_me:$LINENO: result: none needed" >&5
4425echo "${ECHO_T}none needed" >&6; } ;;
4426 xno)
4427 { echo "$as_me:$LINENO: result: unsupported" >&5
4428echo "${ECHO_T}unsupported" >&6; } ;;
b3076f16 4429 *)
a8b2ad8d 4430 CC="$CC $ac_cv_prog_cc_c89"
4431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4432echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
b3076f16 4433esac
4434
b3076f16 4435
b3076f16 4436ac_ext=c
4437ac_cpp='$CPP $CPPFLAGS'
4438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
ec1a68c8 4442depcc="$CC" am_compiler_list=
4443
a8b2ad8d 4444{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4445echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
ec1a68c8 4446if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450 # We make a subdir and do the tests there. Otherwise we can end up
4451 # making bogus files that we don't know about and never remove. For
4452 # instance it was reported that on HP-UX the gcc test will end up
4453 # making a dummy file named `D' -- because `-MD' means `put the output
4454 # in D'.
4455 mkdir conftest.dir
4456 # Copy depcomp to subdir because otherwise we won't find it if we're
4457 # using a relative directory.
4458 cp "$am_depcomp" conftest.dir
4459 cd conftest.dir
4460 # We will build objects and dependencies in a subdirectory because
4461 # it helps to detect inapplicable dependency modes. For instance
4462 # both Tru64's cc and ICC support -MD to output dependencies as a
4463 # side effect of compilation, but ICC will put the dependencies in
4464 # the current directory while Tru64 will put them in the object
4465 # directory.
4466 mkdir sub
4467
4468 am_cv_CC_dependencies_compiler_type=none
4469 if test "$am_compiler_list" = ""; then
4470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4471 fi
4472 for depmode in $am_compiler_list; do
4473 # Setup a source with many dependencies, because some compilers
4474 # like to wrap large dependency lists on column 80 (with \), and
4475 # we should not choose a depcomp mode which is confused by this.
4476 #
4477 # We need to recreate these files for each test, as the compiler may
4478 # overwrite some of them when testing with obscure command lines.
4479 # This happens at least with the AIX C compiler.
4480 : > sub/conftest.c
4481 for i in 1 2 3 4 5 6; do
4482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4484 # Solaris 8's {/usr,}/bin/sh.
4485 touch sub/conftst$i.h
4486 done
4487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4488
4489 case $depmode in
4490 nosideeffect)
4491 # after this tag, mechanisms are not by side-effect, so they'll
4492 # only be used when explicitly requested
4493 if test "x$enable_dependency_tracking" = xyes; then
4494 continue
4495 else
4496 break
4497 fi
4498 ;;
4499 none) break ;;
4500 esac
4501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4502 # mode. It turns out that the SunPro C++ compiler does not properly
4503 # handle `-M -o', and we need to detect this.
4504 if depmode=$depmode \
4505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4508 >/dev/null 2>conftest.err &&
4509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4512 # icc doesn't choke on unknown options, it will just issue warnings
4513 # or remarks (even with -Werror). So we grep stderr for any message
4514 # that says an option was ignored or not supported.
4515 # When given -MP, icc 7.0 and 7.1 complain thusly:
4516 # icc: Command line warning: ignoring option '-M'; no argument required
4517 # The diagnosis changed in icc 8.0:
4518 # icc: Command line remark: option '-MP' not supported
4519 if (grep 'ignoring option' conftest.err ||
4520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4521 am_cv_CC_dependencies_compiler_type=$depmode
4522 break
4523 fi
4524 fi
4525 done
4526
4527 cd ..
4528 rm -rf conftest.dir
4529else
4530 am_cv_CC_dependencies_compiler_type=none
4531fi
4532
4533fi
a8b2ad8d 4534{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4535echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
ec1a68c8 4536CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4537
0f6fe38c 4538
4539
4540if
ec1a68c8 4541 test "x$enable_dependency_tracking" != xno \
4542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4543 am__fastdepCC_TRUE=
4544 am__fastdepCC_FALSE='#'
4545else
4546 am__fastdepCC_TRUE='#'
4547 am__fastdepCC_FALSE=
4548fi
4549
4550
b3076f16 4551# Find a good install program. We prefer a C program (faster),
4552# so one script is as good as another. But avoid the broken or
4553# incompatible versions:
4554# SysV /etc/install, /usr/sbin/install
4555# SunOS /usr/etc/install
4556# IRIX /sbin/install
4557# AIX /bin/install
4558# AmigaOS /C/install, which installs bootblocks on floppy discs
4559# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4560# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4561# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4562# OS/2's system install, which has a completely different semantic
4563# ./install, which can be erroneously created by make from ./install.sh.
a8b2ad8d 4564{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4565echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
b3076f16 4566if test -z "$INSTALL"; then
4567if test "${ac_cv_path_install+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571for as_dir in $PATH
4572do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 # Account for people who put trailing slashes in PATH elements.
4576case $as_dir/ in
4577 ./ | .// | /cC/* | \
4578 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4579 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4580 /usr/ucb/* ) ;;
4581 *)
4582 # OSF1 and SCO ODT 3.0 have their own names for install.
4583 # Don't use installbsd from OSF since it installs stuff as root
4584 # by default.
4585 for ac_prog in ginstall scoinst install; do
4586 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4587 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b3076f16 4588 if test $ac_prog = install &&
4589 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4590 # AIX install. It has an incompatible calling convention.
4591 :
4592 elif test $ac_prog = install &&
4593 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4594 # program-specific install script used by HP pwplus--don't use.
4595 :
4596 else
4597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4598 break 3
4599 fi
4600 fi
4601 done
4602 done
4603 ;;
4604esac
4605done
a8b2ad8d 4606IFS=$as_save_IFS
b3076f16 4607
4608
4609fi
4610 if test "${ac_cv_path_install+set}" = set; then
4611 INSTALL=$ac_cv_path_install
4612 else
a8b2ad8d 4613 # As a last resort, use the slow shell script. Don't cache a
4614 # value for INSTALL within a source directory, because that will
b3076f16 4615 # break other packages using the cache if that directory is
a8b2ad8d 4616 # removed, or if the value is a relative name.
b3076f16 4617 INSTALL=$ac_install_sh
4618 fi
4619fi
a8b2ad8d 4620{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4621echo "${ECHO_T}$INSTALL" >&6; }
b3076f16 4622
4623# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4624# It thinks the first close brace ends the variable substitution.
4625test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4626
4627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4628
4629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4630
0f6fe38c 4631
35305a49 4632if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4634set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8b2ad8d 4635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4637if test "${ac_cv_prog_RANLIB+set}" = set; then
2f61d1d7 4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
35305a49 4640 if test -n "$RANLIB"; then
4641 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4642else
2f61d1d7 4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
35305a49 4648 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4650 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
2f61d1d7 4653 fi
35305a49 4654done
2f61d1d7 4655done
a8b2ad8d 4656IFS=$as_save_IFS
2f61d1d7 4657
b3076f16 4658fi
35305a49 4659fi
4660RANLIB=$ac_cv_prog_RANLIB
4661if test -n "$RANLIB"; then
a8b2ad8d 4662 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4663echo "${ECHO_T}$RANLIB" >&6; }
b3076f16 4664else
a8b2ad8d 4665 { echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6; }
2f61d1d7 4667fi
2f61d1d7 4668
a8b2ad8d 4669
b3076f16 4670fi
35305a49 4671if test -z "$ac_cv_prog_RANLIB"; then
4672 ac_ct_RANLIB=$RANLIB
4673 # Extract the first word of "ranlib", so it can be a program name with args.
4674set dummy ranlib; ac_word=$2
a8b2ad8d 4675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35305a49 4677if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2f61d1d7 4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
35305a49 4680 if test -n "$ac_ct_RANLIB"; then
4681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f61d1d7 4682else
35305a49 4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35305a49 4690 ac_cv_prog_ac_ct_RANLIB="ranlib"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694done
4695done
a8b2ad8d 4696IFS=$as_save_IFS
35305a49 4697
b3076f16 4698fi
2f61d1d7 4699fi
35305a49 4700ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4701if test -n "$ac_ct_RANLIB"; then
a8b2ad8d 4702 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4703echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
b3076f16 4704else
a8b2ad8d 4705 { echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6; }
b3076f16 4707fi
4708
a8b2ad8d 4709 if test "x$ac_ct_RANLIB" = x; then
4710 RANLIB=":"
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713yes:)
4714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4715whose name does not start with the host triplet. If you think this
4716configuration is useful to you, please write to autoconf@gnu.org." >&5
4717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4718whose name does not start with the host triplet. If you think this
4719configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4720ac_tool_warned=yes ;;
4721esac
4722 RANLIB=$ac_ct_RANLIB
4723 fi
2f61d1d7 4724else
35305a49 4725 RANLIB="$ac_cv_prog_RANLIB"
b3076f16 4726fi
2f61d1d7 4727
0f6fe38c 4728
4729{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4730echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4731LN_S=$as_ln_s
4732if test "$LN_S" = "ln -s"; then
4733 { echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6; }
2f61d1d7 4735else
0f6fe38c 4736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4737echo "${ECHO_T}no, using $LN_S" >&6; }
2f61d1d7 4738fi
4739
0f6fe38c 4740{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4741echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4742set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4743if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
2f61d1d7 4745else
0f6fe38c 4746 cat >conftest.make <<\_ACEOF
4747SHELL = /bin/sh
4748all:
4749 @echo '@@@%%%=$(MAKE)=@@@%%%'
4750_ACEOF
4751# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4752case `${MAKE-make} -f conftest.make 2>/dev/null` in
4753 *@@@%%%=?*=@@@%%%*)
4754 eval ac_cv_prog_make_${ac_make}_set=yes;;
4755 *)
4756 eval ac_cv_prog_make_${ac_make}_set=no;;
4757esac
4758rm -f conftest.make
35305a49 4759fi
0f6fe38c 4760if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4761 { echo "$as_me:$LINENO: result: yes" >&5
4762echo "${ECHO_T}yes" >&6; }
4763 SET_MAKE=
35305a49 4764else
0f6fe38c 4765 { echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6; }
4767 SET_MAKE="MAKE=${MAKE-make}"
2f61d1d7 4768fi
2f61d1d7 4769
0f6fe38c 4770ac_ext=c
4771ac_cpp='$CPP $CPPFLAGS'
4772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4776echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4777# On Suns, sometimes $CPP names a directory.
4778if test -n "$CPP" && test -d "$CPP"; then
4779 CPP=
4780fi
4781if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
ff3b058a 4784else
0f6fe38c 4785 # Double quotes because CPP needs to be expanded
4786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4787 do
4788 ac_preproc_ok=false
4789for ac_c_preproc_warn_flag in '' yes
ff3b058a 4790do
0f6fe38c 4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat >conftest.$ac_ext <<_ACEOF
4798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
4803#ifdef __STDC__
4804# include <limits.h>
4805#else
4806# include <assert.h>
4807#endif
4808 Syntax error
4809_ACEOF
4810if { (ac_try="$ac_cpp conftest.$ac_ext"
4811case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814esac
4815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4822 (exit $ac_status); } >/dev/null && {
4823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 }; then
0f6fe38c 4826 :
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831 # Broken: fails on valid input.
4832continue
4833fi
4834
4835rm -f conftest.err conftest.$ac_ext
4836
4837 # OK, works on sane cases. Now check whether nonexistent headers
4838 # can be detected and how.
4839 cat >conftest.$ac_ext <<_ACEOF
4840/* confdefs.h. */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h. */
4845#include <ac_nonexistent.h>
4846_ACEOF
4847if { (ac_try="$ac_cpp conftest.$ac_ext"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4859 (exit $ac_status); } >/dev/null && {
4860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 }; then
0f6fe38c 4863 # Broken: success on invalid input.
4864continue
4865else
4866 echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 # Passes both tests.
4870ac_preproc_ok=:
4871break
4872fi
4873
4874rm -f conftest.err conftest.$ac_ext
4875
ff3b058a 4876done
0f6fe38c 4877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4878rm -f conftest.err conftest.$ac_ext
4879if $ac_preproc_ok; then
4880 break
4881fi
4882
4883 done
4884 ac_cv_prog_CPP=$CPP
4885
4886fi
4887 CPP=$ac_cv_prog_CPP
4888else
4889 ac_cv_prog_CPP=$CPP
4890fi
4891{ echo "$as_me:$LINENO: result: $CPP" >&5
4892echo "${ECHO_T}$CPP" >&6; }
4893ac_preproc_ok=false
4894for ac_c_preproc_warn_flag in '' yes
4895do
4896 # Use a header file that comes with gcc, so configuring glibc
4897 # with a fresh cross-compiler works.
4898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899 # <limits.h> exists even on freestanding compilers.
4900 # On the NeXT, cc -E runs the code through the compiler's parser,
4901 # not just through cpp. "Syntax error" is here to catch this case.
4902 cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h. */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h. */
4908#ifdef __STDC__
4909# include <limits.h>
4910#else
4911# include <assert.h>
4912#endif
4913 Syntax error
4914_ACEOF
4915if { (ac_try="$ac_cpp conftest.$ac_ext"
4916case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919esac
4920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4927 (exit $ac_status); } >/dev/null && {
4928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 }; then
0f6fe38c 4931 :
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 # Broken: fails on valid input.
4937continue
4938fi
4939
4940rm -f conftest.err conftest.$ac_ext
4941
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
4950#include <ac_nonexistent.h>
4951_ACEOF
4952if { (ac_try="$ac_cpp conftest.$ac_ext"
4953case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956esac
4957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 4964 (exit $ac_status); } >/dev/null && {
4965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 }; then
0f6fe38c 4968 # Broken: success on invalid input.
4969continue
4970else
4971 echo "$as_me: failed program was:" >&5
4972sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 # Passes both tests.
4975ac_preproc_ok=:
4976break
4977fi
ff3b058a 4978
0f6fe38c 4979rm -f conftest.err conftest.$ac_ext
4980
4981done
4982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983rm -f conftest.err conftest.$ac_ext
4984if $ac_preproc_ok; then
4985 :
4986else
4987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4988See \`config.log' for more details." >&5
4989echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4990See \`config.log' for more details." >&2;}
4991 { (exit 1); exit 1; }; }
2f61d1d7 4992fi
ff3b058a 4993
0f6fe38c 4994ac_ext=c
4995ac_cpp='$CPP $CPPFLAGS'
4996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998ac_compiler_gnu=$ac_cv_c_compiler_gnu
ff3b058a 4999
ff3b058a 5000
5001{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5002echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5003if test "${ac_cv_path_GREP+set}" = set; then
2f61d1d7 5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
ff3b058a 5006 # Extract the first word of "grep ggrep" to use in msg output
5007if test -z "$GREP"; then
5008set dummy grep ggrep; ac_prog_name=$2
5009if test "${ac_cv_path_GREP+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 ac_path_GREP_found=false
5013# Loop through the user's path and test for each of PROGNAME-LIST
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
a8b2ad8d 5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_prog in grep ggrep; do
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
0bd0bef6 5022 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
a8b2ad8d 5023 # Check for GNU ac_path_GREP and select it if it is found.
5024 # Check for GNU $ac_path_GREP
5025case `"$ac_path_GREP" --version 2>&1` in
5026*GNU*)
5027 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5028*)
5029 ac_count=0
5030 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5031 while :
5032 do
5033 cat "conftest.in" "conftest.in" >"conftest.tmp"
5034 mv "conftest.tmp" "conftest.in"
5035 cp "conftest.in" "conftest.nl"
5036 echo 'GREP' >> "conftest.nl"
5037 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5039 ac_count=`expr $ac_count + 1`
5040 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5041 # Best one so far, save it but keep looking for a better one
5042 ac_cv_path_GREP="$ac_path_GREP"
5043 ac_path_GREP_max=$ac_count
5044 fi
5045 # 10*(2^10) chars as input seems more than enough
5046 test $ac_count -gt 10 && break
5047 done
5048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5049esac
5050
5051
5052 $ac_path_GREP_found && break 3
5053 done
5054done
5055
5056done
5057IFS=$as_save_IFS
5058
5059
5060fi
5061
5062GREP="$ac_cv_path_GREP"
5063if test -z "$GREP"; then
5064 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5065echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5066 { (exit 1); exit 1; }; }
5067fi
5068
5069else
5070 ac_cv_path_GREP=$GREP
5071fi
5072
5073
5074fi
5075{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5076echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5077 GREP="$ac_cv_path_GREP"
5078
5079
5080{ echo "$as_me:$LINENO: checking for egrep" >&5
5081echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5082if test "${ac_cv_path_EGREP+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5086 then ac_cv_path_EGREP="$GREP -E"
5087 else
5088 # Extract the first word of "egrep" to use in msg output
5089if test -z "$EGREP"; then
5090set dummy egrep; ac_prog_name=$2
5091if test "${ac_cv_path_EGREP+set}" = set; then
2f61d1d7 5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
a8b2ad8d 5094 ac_path_EGREP_found=false
5095# Loop through the user's path and test for each of PROGNAME-LIST
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_prog in egrep; do
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
0bd0bef6 5104 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
a8b2ad8d 5105 # Check for GNU ac_path_EGREP and select it if it is found.
0f6fe38c 5106 # Check for GNU $ac_path_EGREP
5107case `"$ac_path_EGREP" --version 2>&1` in
5108*GNU*)
5109 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5110*)
5111 ac_count=0
5112 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5113 while :
5114 do
5115 cat "conftest.in" "conftest.in" >"conftest.tmp"
5116 mv "conftest.tmp" "conftest.in"
5117 cp "conftest.in" "conftest.nl"
5118 echo 'EGREP' >> "conftest.nl"
5119 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121 ac_count=`expr $ac_count + 1`
5122 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5123 # Best one so far, save it but keep looking for a better one
5124 ac_cv_path_EGREP="$ac_path_EGREP"
5125 ac_path_EGREP_max=$ac_count
5126 fi
5127 # 10*(2^10) chars as input seems more than enough
5128 test $ac_count -gt 10 && break
5129 done
5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131esac
ff3b058a 5132
5133
0f6fe38c 5134 $ac_path_EGREP_found && break 3
5135 done
5136done
ff3b058a 5137
0f6fe38c 5138done
5139IFS=$as_save_IFS
ff3b058a 5140
5141
0f6fe38c 5142fi
ff3b058a 5143
0f6fe38c 5144EGREP="$ac_cv_path_EGREP"
5145if test -z "$EGREP"; then
5146 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5147echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5148 { (exit 1); exit 1; }; }
a8b2ad8d 5149fi
5150
5151else
0f6fe38c 5152 ac_cv_path_EGREP=$EGREP
a8b2ad8d 5153fi
0f6fe38c 5154
5155
5156 fi
2f61d1d7 5157fi
0f6fe38c 5158{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5159echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5160 EGREP="$ac_cv_path_EGREP"
5161
b3076f16 5162
5163if test $ac_cv_c_compiler_gnu = yes; then
a8b2ad8d 5164 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5165echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
b3076f16 5166if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 ac_pattern="Autoconf.*'x'"
5170 cat >conftest.$ac_ext <<_ACEOF
5171/* confdefs.h. */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h. */
5176#include <sgtty.h>
5177Autoconf TIOCGETP
5178_ACEOF
5179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5180 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5181 ac_cv_prog_gcc_traditional=yes
5182else
5183 ac_cv_prog_gcc_traditional=no
5184fi
5185rm -f conftest*
5186
5187
5188 if test $ac_cv_prog_gcc_traditional = no; then
5189 cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h. */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h. */
5195#include <termio.h>
5196Autoconf TCGETA
5197_ACEOF
5198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5200 ac_cv_prog_gcc_traditional=yes
5201fi
5202rm -f conftest*
5203
5204 fi
5205fi
a8b2ad8d 5206{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5207echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
b3076f16 5208 if test $ac_cv_prog_gcc_traditional = yes; then
5209 CC="$CC -traditional"
5210 fi
5211fi
5212
5b1166fd 5213# Extract the first word of "gmake", so it can be a program name with args.
5214set dummy gmake; ac_word=$2
a8b2ad8d 5215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5b1166fd 5217if test "${ac_cv_prog_MAKER+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220 if test -n "$MAKER"; then
5221 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
5222else
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
0bd0bef6 5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5b1166fd 5230 ac_cv_prog_MAKER="gmake"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234done
5235done
a8b2ad8d 5236IFS=$as_save_IFS
5b1166fd 5237
5238 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
5239fi
5240fi
5241MAKER=$ac_cv_prog_MAKER
5242if test -n "$MAKER"; then
a8b2ad8d 5243 { echo "$as_me:$LINENO: result: $MAKER" >&5
5244echo "${ECHO_T}$MAKER" >&6; }
5b1166fd 5245else
a8b2ad8d 5246 { echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6; }
5b1166fd 5248fi
5249
b3076f16 5250
a8b2ad8d 5251
b3076f16 5252case $target in
5253 *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
5254 ANSI_SRC=""
5255 ;;
5256 *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
5257 ANSI_SRC=""
b3076f16 5258 ;;
5259 *-solaris*)
5260 EXTRA_DEFINE="-D__SOLARIS__"
5261 ANSI_SRC="-fno-builtin"
5262 ;;
5263 *-cygwin)
5264 ANSI_SRC="-fno-builtin"
5265 ;;
5266 *-linux*)
5267 EXTRA_DEFINE="-D_GNU_SOURCE"
5268 ANSI_SRC=""
5269 ;;
5270 *)
5271 ANSI_SRC=""
5272 ;;
5273esac
5274CFLAGS="$CFLAGS $EXTRA_DEFINE"
5275
5276
a8b2ad8d 5277{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5278echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
b3076f16 5279if test "${ac_cv_lib_socket_socket+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 ac_check_lib_save_LIBS=$LIBS
5283LIBS="-lsocket $LIBS"
5284cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
5290
a8b2ad8d 5291/* Override any GCC internal prototype to avoid an error.
5292 Use char because int might match the return type of a GCC
5293 builtin and then its argument prototype would still apply. */
b3076f16 5294#ifdef __cplusplus
5295extern "C"
5296#endif
b3076f16 5297char socket ();
5298int
5299main ()
5300{
a8b2ad8d 5301return socket ();
b3076f16 5302 ;
5303 return 0;
5304}
5305_ACEOF
5306rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5307if { (ac_try="$ac_link"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_link") 2>conftest.er1
b3076f16 5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest$ac_exeext &&
5323 $as_test_x conftest$ac_exeext; then
b3076f16 5324 ac_cv_lib_socket_socket=yes
5325else
5326 echo "$as_me: failed program was:" >&5
5327sed 's/^/| /' conftest.$ac_ext >&5
5328
a8b2ad8d 5329 ac_cv_lib_socket_socket=no
b3076f16 5330fi
a8b2ad8d 5331
0bd0bef6 5332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5333 conftest$ac_exeext conftest.$ac_ext
5334LIBS=$ac_check_lib_save_LIBS
5335fi
a8b2ad8d 5336{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5337echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
b3076f16 5338if test $ac_cv_lib_socket_socket = yes; then
5339 cat >>confdefs.h <<_ACEOF
5340#define HAVE_LIBSOCKET 1
5341_ACEOF
5342
5343 LIBS="-lsocket $LIBS"
5344
5345fi
5346
5347
a8b2ad8d 5348{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5349echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
b3076f16 5350if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 ac_check_lib_save_LIBS=$LIBS
5354LIBS="-lnsl $LIBS"
5355cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h. */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */
5361
a8b2ad8d 5362/* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
b3076f16 5365#ifdef __cplusplus
5366extern "C"
5367#endif
b3076f16 5368char gethostbyname ();
5369int
5370main ()
5371{
a8b2ad8d 5372return gethostbyname ();
b3076f16 5373 ;
5374 return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5378if { (ac_try="$ac_link"
5379case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_link") 2>conftest.er1
b3076f16 5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest$ac_exeext &&
5394 $as_test_x conftest$ac_exeext; then
b3076f16 5395 ac_cv_lib_nsl_gethostbyname=yes
5396else
5397 echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
a8b2ad8d 5400 ac_cv_lib_nsl_gethostbyname=no
b3076f16 5401fi
a8b2ad8d 5402
0bd0bef6 5403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5404 conftest$ac_exeext conftest.$ac_ext
5405LIBS=$ac_check_lib_save_LIBS
5406fi
a8b2ad8d 5407{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5408echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
b3076f16 5409if test $ac_cv_lib_nsl_gethostbyname = yes; then
5410 cat >>confdefs.h <<_ACEOF
5411#define HAVE_LIBNSL 1
5412_ACEOF
5413
5414 LIBS="-lnsl $LIBS"
5415
5416fi
5417
5418
a8b2ad8d 5419{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5420echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
b3076f16 5421if test "${ac_cv_lib_m_main+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424 ac_check_lib_save_LIBS=$LIBS
5425LIBS="-lm $LIBS"
5426cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432
5433
5434int
5435main ()
5436{
a8b2ad8d 5437return main ();
b3076f16 5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5443if { (ac_try="$ac_link"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
b3076f16 5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
b3076f16 5460 ac_cv_lib_m_main=yes
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
a8b2ad8d 5465 ac_cv_lib_m_main=no
b3076f16 5466fi
a8b2ad8d 5467
0bd0bef6 5468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 5469 conftest$ac_exeext conftest.$ac_ext
5470LIBS=$ac_check_lib_save_LIBS
5471fi
a8b2ad8d 5472{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5473echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
b3076f16 5474if test $ac_cv_lib_m_main = yes; then
5475 cat >>confdefs.h <<_ACEOF
5476#define HAVE_LIBM 1
5477_ACEOF
5478
5479 LIBS="-lm $LIBS"
5480
5481fi
5482
5483
a8b2ad8d 5484{ echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
5485echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; }
21f6caee 5486if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489 ac_check_lib_save_LIBS=$LIBS
5490LIBS="-lGeoIP $LIBS"
5491cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497
a8b2ad8d 5498/* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
21f6caee 5501#ifdef __cplusplus
5502extern "C"
5503#endif
21f6caee 5504char GeoIP_open ();
5505int
5506main ()
5507{
a8b2ad8d 5508return GeoIP_open ();
21f6caee 5509 ;
5510 return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 5514if { (ac_try="$ac_link"
5515case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_link") 2>conftest.er1
21f6caee 5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest$ac_exeext &&
5530 $as_test_x conftest$ac_exeext; then
21f6caee 5531 ac_cv_lib_GeoIP_GeoIP_open=yes
5532else
5533 echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
a8b2ad8d 5536 ac_cv_lib_GeoIP_GeoIP_open=no
21f6caee 5537fi
a8b2ad8d 5538
0bd0bef6 5539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21f6caee 5540 conftest$ac_exeext conftest.$ac_ext
5541LIBS=$ac_check_lib_save_LIBS
5542fi
a8b2ad8d 5543{ echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
5544echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
21f6caee 5545if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
5546 cat >>confdefs.h <<_ACEOF
5547#define HAVE_LIBGEOIP 1
5548_ACEOF
5549
5550 LIBS="-lGeoIP $LIBS"
5551
5552fi
5553
5554
a8b2ad8d 5555{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5556echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
b3076f16 5557if test "${ac_cv_header_stdc+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566#include <stdlib.h>
5567#include <stdarg.h>
5568#include <string.h>
5569#include <float.h>
5570
5571int
5572main ()
5573{
5574
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579rm -f conftest.$ac_objext
a8b2ad8d 5580if { (ac_try="$ac_compile"
5581case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
b3076f16 5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
b3076f16 5596 ac_cv_header_stdc=yes
5597else
5598 echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
a8b2ad8d 5601 ac_cv_header_stdc=no
b3076f16 5602fi
a8b2ad8d 5603
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5605
5606if test $ac_cv_header_stdc = yes; then
5607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5608 cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h. */
5614#include <string.h>
5615
5616_ACEOF
5617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5618 $EGREP "memchr" >/dev/null 2>&1; then
5619 :
5620else
5621 ac_cv_header_stdc=no
5622fi
5623rm -f conftest*
5624
5625fi
5626
5627if test $ac_cv_header_stdc = yes; then
5628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5629 cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635#include <stdlib.h>
5636
5637_ACEOF
5638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5639 $EGREP "free" >/dev/null 2>&1; then
5640 :
5641else
5642 ac_cv_header_stdc=no
5643fi
5644rm -f conftest*
5645
5646fi
5647
5648if test $ac_cv_header_stdc = yes; then
5649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5650 if test "$cross_compiling" = yes; then
5651 :
5652else
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659#include <ctype.h>
a8b2ad8d 5660#include <stdlib.h>
b3076f16 5661#if ((' ' & 0x0FF) == 0x020)
5662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5664#else
5665# define ISLOWER(c) \
5666 (('a' <= (c) && (c) <= 'i') \
5667 || ('j' <= (c) && (c) <= 'r') \
5668 || ('s' <= (c) && (c) <= 'z'))
5669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5670#endif
5671
5672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5673int
5674main ()
5675{
5676 int i;
5677 for (i = 0; i < 256; i++)
5678 if (XOR (islower (i), ISLOWER (i))
5679 || toupper (i) != TOUPPER (i))
a8b2ad8d 5680 return 2;
5681 return 0;
b3076f16 5682}
5683_ACEOF
5684rm -f conftest$ac_exeext
a8b2ad8d 5685if { (ac_try="$ac_link"
5686case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_link") 2>&5
b3076f16 5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 5695 { (case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_try") 2>&5
b3076f16 5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 :
5705else
5706 echo "$as_me: program exited with status $ac_status" >&5
5707echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710( exit $ac_status )
5711ac_cv_header_stdc=no
5712fi
a8b2ad8d 5713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 5714fi
a8b2ad8d 5715
5716
b3076f16 5717fi
5718fi
a8b2ad8d 5719{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
b3076f16 5721if test $ac_cv_header_stdc = yes; then
5722
5723cat >>confdefs.h <<\_ACEOF
5724#define STDC_HEADERS 1
5725_ACEOF
5726
5727fi
5728
5729
a8b2ad8d 5730{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5731echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
b3076f16 5732if test "${ac_cv_header_time+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734else
5735 cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h. */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h. */
5741#include <sys/types.h>
5742#include <sys/time.h>
5743#include <time.h>
5744
5745int
5746main ()
5747{
5748if ((struct tm *) 0)
5749return 0;
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext
a8b2ad8d 5755if { (ac_try="$ac_compile"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compile") 2>conftest.er1
b3076f16 5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5767 (exit $ac_status); } && {
5768 test -z "$ac_c_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest.$ac_objext; then
b3076f16 5771 ac_cv_header_time=yes
5772else
5773 echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
a8b2ad8d 5776 ac_cv_header_time=no
b3076f16 5777fi
a8b2ad8d 5778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 5780fi
a8b2ad8d 5781{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5782echo "${ECHO_T}$ac_cv_header_time" >&6; }
b3076f16 5783if test $ac_cv_header_time = yes; then
5784
5785cat >>confdefs.h <<\_ACEOF
5786#define TIME_WITH_SYS_TIME 1
5787_ACEOF
5788
5789fi
5790
a8b2ad8d 5791{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5792echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
b3076f16 5793if test "${ac_cv_struct_tm+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796 cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
5802#include <sys/types.h>
5803#include <time.h>
5804
5805int
5806main ()
5807{
0bd0bef6 5808struct tm tm;
5809 int *p = &tm.tm_sec;
5810 return !p;
ff3b058a 5811 ;
5812 return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
5816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
a8b2ad8d 5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 5822 (eval "$ac_compile") 2>conftest.er1
35305a49 5823 ac_status=$?
ff3b058a 5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
35305a49 5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
0f6fe38c 5832 ac_cv_struct_tm=time.h
5833else
5834 echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 ac_cv_struct_tm=sys/time.h
5838fi
5839
5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841fi
5842{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5843echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5844if test $ac_cv_struct_tm = sys/time.h; then
5845
5846cat >>confdefs.h <<\_ACEOF
5847#define TM_IN_SYS_TIME 1
5848_ACEOF
5849
5850fi
5851
5852
5853# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5864 inttypes.h stdint.h unistd.h
5865do
5866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878$ac_includes_default
5879
5880#include <$ac_header>
5881_ACEOF
5882rm -f conftest.$ac_objext
5883if { (ac_try="$ac_compile"
5884case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5895 (exit $ac_status); } && {
5896 test -z "$ac_c_werror_flag" ||
5897 test ! -s conftest.err
5898 } && test -s conftest.$ac_objext; then
0f6fe38c 5899 eval "$as_ac_Header=yes"
35305a49 5900else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
0f6fe38c 5904 eval "$as_ac_Header=no"
35305a49 5905fi
a8b2ad8d 5906
5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305a49 5908fi
0f6fe38c 5909ac_res=`eval echo '${'$as_ac_Header'}'`
5910 { echo "$as_me:$LINENO: result: $ac_res" >&5
5911echo "${ECHO_T}$ac_res" >&6; }
5912if test `eval echo '${'$as_ac_Header'}'` = yes; then
5913 cat >>confdefs.h <<_ACEOF
5914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35305a49 5915_ACEOF
5916
5917fi
5918
0f6fe38c 5919done
35305a49 5920
5921
b3076f16 5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
21f6caee 5942
5943
0f6fe38c 5944for 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 5945do
5946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 5947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952fi
a8b2ad8d 5953ac_res=`eval echo '${'$as_ac_Header'}'`
5954 { echo "$as_me:$LINENO: result: $ac_res" >&5
5955echo "${ECHO_T}$ac_res" >&6; }
b3076f16 5956else
5957 # Is the header compilable?
a8b2ad8d 5958{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 5960cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h. */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h. */
5966$ac_includes_default
5967#include <$ac_header>
5968_ACEOF
5969rm -f conftest.$ac_objext
a8b2ad8d 5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
b3076f16 5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 5982 (exit $ac_status); } && {
5983 test -z "$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest.$ac_objext; then
b3076f16 5986 ac_header_compiler=yes
5987else
5988 echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
a8b2ad8d 5991 ac_header_compiler=no
b3076f16 5992fi
a8b2ad8d 5993
5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5996echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 5997
5998# Is the header present?
a8b2ad8d 5999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 6001cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
6007#include <$ac_header>
6008_ACEOF
a8b2ad8d 6009if { (ac_try="$ac_cpp conftest.$ac_ext"
6010case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6021 (exit $ac_status); } >/dev/null && {
6022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 }; then
b3076f16 6025 ac_header_preproc=yes
6026else
6027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ac_header_preproc=no
6031fi
a8b2ad8d 6032
b3076f16 6033rm -f conftest.err conftest.$ac_ext
a8b2ad8d 6034{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6035echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 6036
6037# So? What about this header?
6038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6039 yes:no: )
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6044 ac_header_preproc=yes
6045 ;;
6046 no:yes:* )
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 6059 ( cat <<\_ASBOX
63c95a47 6060## -------------------------------------------------- ##
6061## Report this to evilnet-devel@lists.sourceforge.net ##
6062## -------------------------------------------------- ##
b3076f16 6063_ASBOX
a8b2ad8d 6064 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 6065 ;;
6066esac
a8b2ad8d 6067{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 eval "$as_ac_Header=\$ac_header_preproc"
6073fi
a8b2ad8d 6074ac_res=`eval echo '${'$as_ac_Header'}'`
6075 { echo "$as_me:$LINENO: result: $ac_res" >&5
6076echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6077
6078fi
6079if test `eval echo '${'$as_ac_Header'}'` = yes; then
6080 cat >>confdefs.h <<_ACEOF
6081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6082_ACEOF
6083
6084fi
6085
6086done
6087
6088
a8b2ad8d 6089{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6090echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
2f61d1d7 6091if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b3076f16 6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
2f61d1d7 6100#include <sys/types.h>
6101#include <sys/socket.h>
b3076f16 6102
6103int
6104main ()
6105{
2f61d1d7 6106static struct sockaddr ac_aggr;
6107if (ac_aggr.sa_len)
b3076f16 6108return 0;
6109 ;
6110 return 0;
6111}
6112_ACEOF
6113rm -f conftest.$ac_objext
a8b2ad8d 6114if { (ac_try="$ac_compile"
6115case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_compile") 2>conftest.er1
b3076f16 6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6126 (exit $ac_status); } && {
6127 test -z "$ac_c_werror_flag" ||
6128 test ! -s conftest.err
6129 } && test -s conftest.$ac_objext; then
2f61d1d7 6130 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6131else
6132 echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
a8b2ad8d 6135 cat >conftest.$ac_ext <<_ACEOF
b3076f16 6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h. */
2f61d1d7 6141#include <sys/types.h>
6142#include <sys/socket.h>
b3076f16 6143
6144int
6145main ()
6146{
2f61d1d7 6147static struct sockaddr ac_aggr;
6148if (sizeof ac_aggr.sa_len)
b3076f16 6149return 0;
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext
a8b2ad8d 6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
b3076f16 6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
2f61d1d7 6171 ac_cv_member_struct_sockaddr_sa_len=yes
b3076f16 6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
a8b2ad8d 6176 ac_cv_member_struct_sockaddr_sa_len=no
b3076f16 6177fi
a8b2ad8d 6178
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6180fi
a8b2ad8d 6181
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6183fi
a8b2ad8d 6184{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6185echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
2f61d1d7 6186if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b3076f16 6187
6188cat >>confdefs.h <<\_ACEOF
2f61d1d7 6189#define HAVE_SOCKADDR_SA_LEN
6190_ACEOF
6191
6192fi
6193
a8b2ad8d 6194{ echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5
6195echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; }
2f61d1d7 6196if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198else
6199 cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h. */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h. */
6205#include <sys/types.h>
6206#include <sys/socket.h>
6207#include <netdb.h>
6208
6209int
6210main ()
6211{
6212static struct addrinfo ac_aggr;
6213if (ac_aggr.ai_flags)
6214return 0;
6215 ;
6216 return 0;
6217}
6218_ACEOF
6219rm -f conftest.$ac_objext
a8b2ad8d 6220if { (ac_try="$ac_compile"
6221case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224esac
6225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest.$ac_objext; then
2f61d1d7 6236 ac_cv_member_struct_addrinfo_ai_flags=yes
6237else
6238 echo "$as_me: failed program was:" >&5
6239sed 's/^/| /' conftest.$ac_ext >&5
6240
a8b2ad8d 6241 cat >conftest.$ac_ext <<_ACEOF
2f61d1d7 6242/* confdefs.h. */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h. */
6247#include <sys/types.h>
6248#include <sys/socket.h>
6249#include <netdb.h>
6250
6251int
6252main ()
6253{
6254static struct addrinfo ac_aggr;
6255if (sizeof ac_aggr.ai_flags)
6256return 0;
6257 ;
6258 return 0;
6259}
b3076f16 6260_ACEOF
2f61d1d7 6261rm -f conftest.$ac_objext
a8b2ad8d 6262if { (ac_try="$ac_compile"
6263case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266esac
6267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_compile") 2>conftest.er1
2f61d1d7 6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
2f61d1d7 6278 ac_cv_member_struct_addrinfo_ai_flags=yes
6279else
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6282
a8b2ad8d 6283 ac_cv_member_struct_addrinfo_ai_flags=no
2f61d1d7 6284fi
a8b2ad8d 6285
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2f61d1d7 6287fi
a8b2ad8d 6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 6290fi
a8b2ad8d 6291{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5
6292echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; }
2f61d1d7 6293if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then
6294
6295cat >>confdefs.h <<\_ACEOF
6296#define HAVE_STRUCT_ADDRINFO
6297_ACEOF
b3076f16 6298
2f61d1d7 6299fi
b3076f16 6300
6301
21f6caee 6302
0f6fe38c 6303for ac_func in gettimeofday
6304do
6305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6306{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6308if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6319#define $ac_func innocuous_$ac_func
b3076f16 6320
0f6fe38c 6321/* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char $ac_func (); below.
6323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324 <limits.h> exists even on freestanding compilers. */
b3076f16 6325
0f6fe38c 6326#ifdef __STDC__
6327# include <limits.h>
6328#else
6329# include <assert.h>
6330#endif
b3076f16 6331
0f6fe38c 6332#undef $ac_func
b3076f16 6333
0f6fe38c 6334/* Override any GCC internal prototype to avoid an error.
6335 Use char because int might match the return type of a GCC
6336 builtin and then its argument prototype would still apply. */
6337#ifdef __cplusplus
6338extern "C"
6339#endif
6340char $ac_func ();
6341/* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344#if defined __stub_$ac_func || defined __stub___$ac_func
6345choke me
6346#endif
b3076f16 6347
0f6fe38c 6348int
6349main ()
6350{
6351return $ac_func ();
6352 ;
6353 return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext conftest$ac_exeext
6357if { (ac_try="$ac_link"
6358case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361esac
6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_link") 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6369 (exit $ac_status); } && {
6370 test -z "$ac_c_werror_flag" ||
6371 test ! -s conftest.err
6372 } && test -s conftest$ac_exeext &&
6373 $as_test_x conftest$ac_exeext; then
0f6fe38c 6374 eval "$as_ac_var=yes"
6375else
6376 echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 6378
0f6fe38c 6379 eval "$as_ac_var=no"
6380fi
a8b2ad8d 6381
0bd0bef6 6382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0f6fe38c 6383 conftest$ac_exeext conftest.$ac_ext
6384fi
6385ac_res=`eval echo '${'$as_ac_var'}'`
6386 { echo "$as_me:$LINENO: result: $ac_res" >&5
6387echo "${ECHO_T}$ac_res" >&6; }
6388if test `eval echo '${'$as_ac_var'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391_ACEOF
b3076f16 6392
0f6fe38c 6393fi
6394done
b3076f16 6395
0f6fe38c 6396if test $ac_cv_func_gettimeofday = no; then
b3076f16 6397
0f6fe38c 6398for ac_func in ftime
b3076f16 6399do
6400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6401{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6403if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406 cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h. */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h. */
6412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6414#define $ac_func innocuous_$ac_func
6415
6416/* System header to define __stub macros and hopefully few prototypes,
6417 which can conflict with char $ac_func (); below.
6418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6419 <limits.h> exists even on freestanding compilers. */
6420
6421#ifdef __STDC__
6422# include <limits.h>
6423#else
6424# include <assert.h>
6425#endif
6426
6427#undef $ac_func
6428
a8b2ad8d 6429/* Override any GCC internal prototype to avoid an error.
6430 Use char because int might match the return type of a GCC
6431 builtin and then its argument prototype would still apply. */
b3076f16 6432#ifdef __cplusplus
6433extern "C"
b3076f16 6434#endif
b3076f16 6435char $ac_func ();
6436/* The GNU C library defines this for functions which it implements
6437 to always fail with ENOSYS. Some functions are actually named
6438 something starting with __ and the normal name is an alias. */
a8b2ad8d 6439#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6440choke me
b3076f16 6441#endif
6442
6443int
6444main ()
6445{
a8b2ad8d 6446return $ac_func ();
b3076f16 6447 ;
6448 return 0;
ff3b058a 6449}
6450_ACEOF
6451rm -f conftest.$ac_objext conftest$ac_exeext
6452if { (ac_try="$ac_link"
6453case "(($ac_try" in
a8b2ad8d 6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456esac
6457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ff3b058a 6458 (eval "$ac_link") 2>conftest.er1
b3076f16 6459 ac_status=$?
ff3b058a 6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
b3076f16 6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest$ac_exeext &&
6468 $as_test_x conftest$ac_exeext; then
b3076f16 6469 eval "$as_ac_var=yes"
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
a8b2ad8d 6474 eval "$as_ac_var=no"
b3076f16 6475fi
a8b2ad8d 6476
0bd0bef6 6477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6478 conftest$ac_exeext conftest.$ac_ext
6479fi
a8b2ad8d 6480ac_res=`eval echo '${'$as_ac_var'}'`
6481 { echo "$as_me:$LINENO: result: $ac_res" >&5
6482echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6483if test `eval echo '${'$as_ac_var'}'` = yes; then
6484 cat >>confdefs.h <<_ACEOF
6485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6486_ACEOF
6487
0f6fe38c 6488else
6489 { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5
6490echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;}
6491 { (exit 1); exit 1; }; }
b3076f16 6492fi
6493done
6494
0f6fe38c 6495fi
6496
b3076f16 6497
6498
0f6fe38c 6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
b3076f16 6512do
6513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6514{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6516if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
6525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6527#define $ac_func innocuous_$ac_func
6528
6529/* System header to define __stub macros and hopefully few prototypes,
6530 which can conflict with char $ac_func (); below.
6531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6532 <limits.h> exists even on freestanding compilers. */
6533
6534#ifdef __STDC__
6535# include <limits.h>
6536#else
6537# include <assert.h>
6538#endif
6539
6540#undef $ac_func
6541
a8b2ad8d 6542/* Override any GCC internal prototype to avoid an error.
6543 Use char because int might match the return type of a GCC
6544 builtin and then its argument prototype would still apply. */
b3076f16 6545#ifdef __cplusplus
6546extern "C"
b3076f16 6547#endif
b3076f16 6548char $ac_func ();
6549/* The GNU C library defines this for functions which it implements
6550 to always fail with ENOSYS. Some functions are actually named
6551 something starting with __ and the normal name is an alias. */
a8b2ad8d 6552#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6553choke me
b3076f16 6554#endif
6555
6556int
6557main ()
6558{
a8b2ad8d 6559return $ac_func ();
b3076f16 6560 ;
6561 return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6565if { (ac_try="$ac_link"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_link") 2>conftest.er1
b3076f16 6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6577 (exit $ac_status); } && {
6578 test -z "$ac_c_werror_flag" ||
6579 test ! -s conftest.err
6580 } && test -s conftest$ac_exeext &&
6581 $as_test_x conftest$ac_exeext; then
b3076f16 6582 eval "$as_ac_var=yes"
6583else
6584 echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
a8b2ad8d 6587 eval "$as_ac_var=no"
b3076f16 6588fi
a8b2ad8d 6589
0bd0bef6 6590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6591 conftest$ac_exeext conftest.$ac_ext
6592fi
a8b2ad8d 6593ac_res=`eval echo '${'$as_ac_var'}'`
6594 { echo "$as_me:$LINENO: result: $ac_res" >&5
6595echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6596if test `eval echo '${'$as_ac_var'}'` = yes; then
6597 cat >>confdefs.h <<_ACEOF
6598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6599_ACEOF
6600
6601fi
6602done
6603
6604
6605
6606
6607
6608
6609
0f6fe38c 6610
6611for ac_func in select socket strcspn strspn strtod strtoul
b3076f16 6612do
6613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6614{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6616if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6627#define $ac_func innocuous_$ac_func
6628
6629/* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char $ac_func (); below.
6631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6632 <limits.h> exists even on freestanding compilers. */
6633
6634#ifdef __STDC__
6635# include <limits.h>
6636#else
6637# include <assert.h>
6638#endif
6639
6640#undef $ac_func
6641
a8b2ad8d 6642/* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
b3076f16 6645#ifdef __cplusplus
6646extern "C"
b3076f16 6647#endif
b3076f16 6648char $ac_func ();
6649/* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
a8b2ad8d 6652#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6653choke me
b3076f16 6654#endif
6655
6656int
6657main ()
6658{
a8b2ad8d 6659return $ac_func ();
b3076f16 6660 ;
6661 return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6665if { (ac_try="$ac_link"
6666case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669esac
6670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_link") 2>conftest.er1
b3076f16 6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest$ac_exeext &&
6681 $as_test_x conftest$ac_exeext; then
b3076f16 6682 eval "$as_ac_var=yes"
6683else
6684 echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
6686
a8b2ad8d 6687 eval "$as_ac_var=no"
b3076f16 6688fi
a8b2ad8d 6689
0bd0bef6 6690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6691 conftest$ac_exeext conftest.$ac_ext
6692fi
a8b2ad8d 6693ac_res=`eval echo '${'$as_ac_var'}'`
6694 { echo "$as_me:$LINENO: result: $ac_res" >&5
6695echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6696if test `eval echo '${'$as_ac_var'}'` = yes; then
6697 cat >>confdefs.h <<_ACEOF
6698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6699_ACEOF
6700
6701else
2f61d1d7 6702 { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5
6703echo "$as_me: error: a required function was not found. X3 build will fail." >&2;}
b3076f16 6704 { (exit 1); exit 1; }; }
6705fi
6706done
6707
6708
6709# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6710# for constant arguments. Useless!
a8b2ad8d 6711{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6712echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
b3076f16 6713if test "${ac_cv_working_alloca_h+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716 cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
6722#include <alloca.h>
6723int
6724main ()
6725{
6726char *p = (char *) alloca (2 * sizeof (int));
a8b2ad8d 6727 if (p) return 0;
b3076f16 6728 ;
6729 return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6733if { (ac_try="$ac_link"
6734case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737esac
6738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_link") 2>conftest.er1
b3076f16 6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext &&
6749 $as_test_x conftest$ac_exeext; then
b3076f16 6750 ac_cv_working_alloca_h=yes
6751else
6752 echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
a8b2ad8d 6755 ac_cv_working_alloca_h=no
b3076f16 6756fi
a8b2ad8d 6757
0bd0bef6 6758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6759 conftest$ac_exeext conftest.$ac_ext
6760fi
a8b2ad8d 6761{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6762echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
b3076f16 6763if test $ac_cv_working_alloca_h = yes; then
6764
6765cat >>confdefs.h <<\_ACEOF
6766#define HAVE_ALLOCA_H 1
6767_ACEOF
6768
6769fi
6770
a8b2ad8d 6771{ echo "$as_me:$LINENO: checking for alloca" >&5
6772echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
b3076f16 6773if test "${ac_cv_func_alloca_works+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782#ifdef __GNUC__
6783# define alloca __builtin_alloca
6784#else
6785# ifdef _MSC_VER
6786# include <malloc.h>
6787# define alloca _alloca
6788# else
0bd0bef6 6789# ifdef HAVE_ALLOCA_H
b3076f16 6790# include <alloca.h>
6791# else
6792# ifdef _AIX
6793 #pragma alloca
6794# else
6795# ifndef alloca /* predefined by HP cc +Olibcalls */
6796char *alloca ();
6797# endif
6798# endif
6799# endif
6800# endif
6801#endif
6802
6803int
6804main ()
6805{
6806char *p = (char *) alloca (1);
a8b2ad8d 6807 if (p) return 0;
b3076f16 6808 ;
6809 return 0;
6810}
6811_ACEOF
6812rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6813if { (ac_try="$ac_link"
6814case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817esac
6818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819 (eval "$ac_link") 2>conftest.er1
b3076f16 6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6825 (exit $ac_status); } && {
6826 test -z "$ac_c_werror_flag" ||
6827 test ! -s conftest.err
6828 } && test -s conftest$ac_exeext &&
6829 $as_test_x conftest$ac_exeext; then
b3076f16 6830 ac_cv_func_alloca_works=yes
6831else
6832 echo "$as_me: failed program was:" >&5
6833sed 's/^/| /' conftest.$ac_ext >&5
6834
a8b2ad8d 6835 ac_cv_func_alloca_works=no
b3076f16 6836fi
a8b2ad8d 6837
0bd0bef6 6838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6839 conftest$ac_exeext conftest.$ac_ext
6840fi
a8b2ad8d 6841{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6842echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
b3076f16 6843
6844if test $ac_cv_func_alloca_works = yes; then
6845
6846cat >>confdefs.h <<\_ACEOF
6847#define HAVE_ALLOCA 1
6848_ACEOF
6849
6850else
6851 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6852# that cause trouble. Some versions do not even contain alloca or
6853# contain a buggy version. If you still want to use their alloca,
6854# use ar to extract alloca.o from them instead of compiling alloca.c.
6855
a8b2ad8d 6856ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b3076f16 6857
6858cat >>confdefs.h <<\_ACEOF
6859#define C_ALLOCA 1
6860_ACEOF
6861
6862
a8b2ad8d 6863{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6864echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
b3076f16 6865if test "${ac_cv_os_cray+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
a8b2ad8d 6874#if defined CRAY && ! defined CRAY2
b3076f16 6875webecray
6876#else
6877wenotbecray
6878#endif
6879
6880_ACEOF
6881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882 $EGREP "webecray" >/dev/null 2>&1; then
6883 ac_cv_os_cray=yes
6884else
6885 ac_cv_os_cray=no
6886fi
6887rm -f conftest*
6888
6889fi
a8b2ad8d 6890{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6891echo "${ECHO_T}$ac_cv_os_cray" >&6; }
b3076f16 6892if test $ac_cv_os_cray = yes; then
6893 for ac_func in _getb67 GETB67 getb67; do
6894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 6895{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900 cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h. */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h. */
6906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6908#define $ac_func innocuous_$ac_func
6909
6910/* System header to define __stub macros and hopefully few prototypes,
6911 which can conflict with char $ac_func (); below.
6912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6913 <limits.h> exists even on freestanding compilers. */
6914
6915#ifdef __STDC__
6916# include <limits.h>
6917#else
6918# include <assert.h>
6919#endif
6920
6921#undef $ac_func
6922
a8b2ad8d 6923/* Override any GCC internal prototype to avoid an error.
6924 Use char because int might match the return type of a GCC
6925 builtin and then its argument prototype would still apply. */
b3076f16 6926#ifdef __cplusplus
6927extern "C"
b3076f16 6928#endif
b3076f16 6929char $ac_func ();
6930/* The GNU C library defines this for functions which it implements
6931 to always fail with ENOSYS. Some functions are actually named
6932 something starting with __ and the normal name is an alias. */
a8b2ad8d 6933#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 6934choke me
b3076f16 6935#endif
6936
6937int
6938main ()
6939{
a8b2ad8d 6940return $ac_func ();
b3076f16 6941 ;
6942 return 0;
6943}
6944_ACEOF
6945rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 6946if { (ac_try="$ac_link"
6947case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950esac
6951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_link") 2>conftest.er1
b3076f16 6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 6958 (exit $ac_status); } && {
6959 test -z "$ac_c_werror_flag" ||
6960 test ! -s conftest.err
6961 } && test -s conftest$ac_exeext &&
6962 $as_test_x conftest$ac_exeext; then
b3076f16 6963 eval "$as_ac_var=yes"
6964else
6965 echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
a8b2ad8d 6968 eval "$as_ac_var=no"
b3076f16 6969fi
a8b2ad8d 6970
0bd0bef6 6971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 6972 conftest$ac_exeext conftest.$ac_ext
6973fi
a8b2ad8d 6974ac_res=`eval echo '${'$as_ac_var'}'`
6975 { echo "$as_me:$LINENO: result: $ac_res" >&5
6976echo "${ECHO_T}$ac_res" >&6; }
b3076f16 6977if test `eval echo '${'$as_ac_var'}'` = yes; then
6978
6979cat >>confdefs.h <<_ACEOF
6980#define CRAY_STACKSEG_END $ac_func
6981_ACEOF
6982
6983 break
6984fi
6985
6986 done
6987fi
6988
a8b2ad8d 6989{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6990echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
b3076f16 6991if test "${ac_cv_c_stack_direction+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 if test "$cross_compiling" = yes; then
6995 ac_cv_c_stack_direction=0
6996else
6997 cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
a8b2ad8d 7003$ac_includes_default
b3076f16 7004int
7005find_stack_direction ()
7006{
7007 static char *addr = 0;
7008 auto char dummy;
7009 if (addr == 0)
7010 {
7011 addr = &dummy;
7012 return find_stack_direction ();
7013 }
7014 else
7015 return (&dummy > addr) ? 1 : -1;
7016}
7017
7018int
7019main ()
7020{
a8b2ad8d 7021 return find_stack_direction () < 0;
b3076f16 7022}
7023_ACEOF
7024rm -f conftest$ac_exeext
a8b2ad8d 7025if { (ac_try="$ac_link"
7026case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029esac
7030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 (eval "$ac_link") 2>&5
b3076f16 7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7035 { (case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7038esac
7039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_try") 2>&5
b3076f16 7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_c_stack_direction=1
7045else
7046 echo "$as_me: program exited with status $ac_status" >&5
7047echo "$as_me: failed program was:" >&5
7048sed 's/^/| /' conftest.$ac_ext >&5
7049
7050( exit $ac_status )
7051ac_cv_c_stack_direction=-1
7052fi
a8b2ad8d 7053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7054fi
a8b2ad8d 7055
7056
b3076f16 7057fi
a8b2ad8d 7058{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7059echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
b3076f16 7060
7061cat >>confdefs.h <<_ACEOF
7062#define STACK_DIRECTION $ac_cv_c_stack_direction
7063_ACEOF
7064
7065
7066fi
7067
7068
7069
7070for ac_header in stdlib.h unistd.h
7071do
7072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078fi
a8b2ad8d 7079ac_res=`eval echo '${'$as_ac_Header'}'`
7080 { echo "$as_me:$LINENO: result: $ac_res" >&5
7081echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7082else
7083 # Is the header compilable?
a8b2ad8d 7084{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7086cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h. */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h. */
7092$ac_includes_default
7093#include <$ac_header>
7094_ACEOF
7095rm -f conftest.$ac_objext
a8b2ad8d 7096if { (ac_try="$ac_compile"
7097case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100esac
7101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_compile") 2>conftest.er1
b3076f16 7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7108 (exit $ac_status); } && {
7109 test -z "$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7111 } && test -s conftest.$ac_objext; then
b3076f16 7112 ac_header_compiler=yes
7113else
7114 echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
a8b2ad8d 7117 ac_header_compiler=no
b3076f16 7118fi
a8b2ad8d 7119
7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7122echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7123
7124# Is the header present?
a8b2ad8d 7125{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7127cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h. */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h. */
7133#include <$ac_header>
7134_ACEOF
a8b2ad8d 7135if { (ac_try="$ac_cpp conftest.$ac_ext"
7136case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139esac
7140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7147 (exit $ac_status); } >/dev/null && {
7148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 }; then
b3076f16 7151 ac_header_preproc=yes
7152else
7153 echo "$as_me: failed program was:" >&5
7154sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 ac_header_preproc=no
7157fi
a8b2ad8d 7158
b3076f16 7159rm -f conftest.err conftest.$ac_ext
a8b2ad8d 7160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7161echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 7162
7163# So? What about this header?
7164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7165 yes:no: )
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7170 ac_header_preproc=yes
7171 ;;
7172 no:yes:* )
7173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 7185 ( cat <<\_ASBOX
63c95a47 7186## -------------------------------------------------- ##
7187## Report this to evilnet-devel@lists.sourceforge.net ##
7188## -------------------------------------------------- ##
b3076f16 7189_ASBOX
a8b2ad8d 7190 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 7191 ;;
7192esac
a8b2ad8d 7193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198 eval "$as_ac_Header=\$ac_header_preproc"
7199fi
a8b2ad8d 7200ac_res=`eval echo '${'$as_ac_Header'}'`
7201 { echo "$as_me:$LINENO: result: $ac_res" >&5
7202echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7203
7204fi
7205if test `eval echo '${'$as_ac_Header'}'` = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208_ACEOF
7209
7210fi
7211
7212done
7213
7214
7215for ac_func in getpagesize
7216do
7217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a8b2ad8d 7218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
7229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7231#define $ac_func innocuous_$ac_func
7232
7233/* System header to define __stub macros and hopefully few prototypes,
7234 which can conflict with char $ac_func (); below.
7235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236 <limits.h> exists even on freestanding compilers. */
7237
7238#ifdef __STDC__
7239# include <limits.h>
7240#else
7241# include <assert.h>
7242#endif
7243
7244#undef $ac_func
7245
a8b2ad8d 7246/* Override any GCC internal prototype to avoid an error.
7247 Use char because int might match the return type of a GCC
7248 builtin and then its argument prototype would still apply. */
b3076f16 7249#ifdef __cplusplus
7250extern "C"
b3076f16 7251#endif
b3076f16 7252char $ac_func ();
7253/* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
a8b2ad8d 7256#if defined __stub_$ac_func || defined __stub___$ac_func
b3076f16 7257choke me
b3076f16 7258#endif
7259
7260int
7261main ()
7262{
a8b2ad8d 7263return $ac_func ();
b3076f16 7264 ;
7265 return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7269if { (ac_try="$ac_link"
7270case "(($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_link") 2>conftest.er1
b3076f16 7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest$ac_exeext &&
7285 $as_test_x conftest$ac_exeext; then
b3076f16 7286 eval "$as_ac_var=yes"
7287else
7288 echo "$as_me: failed program was:" >&5
7289sed 's/^/| /' conftest.$ac_ext >&5
7290
a8b2ad8d 7291 eval "$as_ac_var=no"
b3076f16 7292fi
a8b2ad8d 7293
0bd0bef6 7294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7295 conftest$ac_exeext conftest.$ac_ext
7296fi
a8b2ad8d 7297ac_res=`eval echo '${'$as_ac_var'}'`
7298 { echo "$as_me:$LINENO: result: $ac_res" >&5
7299echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7300if test `eval echo '${'$as_ac_var'}'` = yes; then
7301 cat >>confdefs.h <<_ACEOF
7302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7303_ACEOF
7304
7305fi
7306done
7307
a8b2ad8d 7308{ echo "$as_me:$LINENO: checking for working mmap" >&5
7309echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
b3076f16 7310if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 if test "$cross_compiling" = yes; then
7314 ac_cv_func_mmap_fixed_mapped=no
7315else
7316 cat >conftest.$ac_ext <<_ACEOF
7317/* confdefs.h. */
7318_ACEOF
7319cat confdefs.h >>conftest.$ac_ext
7320cat >>conftest.$ac_ext <<_ACEOF
7321/* end confdefs.h. */
7322$ac_includes_default
7323/* malloc might have been renamed as rpl_malloc. */
7324#undef malloc
7325
7326/* Thanks to Mike Haertel and Jim Avera for this test.
7327 Here is a matrix of mmap possibilities:
7328 mmap private not fixed
7329 mmap private fixed at somewhere currently unmapped
7330 mmap private fixed at somewhere already mapped
7331 mmap shared not fixed
7332 mmap shared fixed at somewhere currently unmapped
7333 mmap shared fixed at somewhere already mapped
7334 For private mappings, we should verify that changes cannot be read()
7335 back from the file, nor mmap's back from the file at a different
7336 address. (There have been systems where private was not correctly
7337 implemented like the infamous i386 svr4.0, and systems where the
7338 VM page cache was not coherent with the file system buffer cache
7339 like early versions of FreeBSD and possibly contemporary NetBSD.)
7340 For shared mappings, we should conversely verify that changes get
7341 propagated back to all the places they're supposed to be.
7342
7343 Grep wants private fixed already mapped.
7344 The main things grep needs to know about mmap are:
7345 * does it exist and is it safe to write into the mmap'd area
7346 * how to use it (BSD variants) */
7347
7348#include <fcntl.h>
7349#include <sys/mman.h>
7350
0bd0bef6 7351#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b3076f16 7352char *malloc ();
7353#endif
7354
7355/* This mess was copied from the GNU getpagesize.h. */
0bd0bef6 7356#ifndef HAVE_GETPAGESIZE
b3076f16 7357/* Assume that all systems that can run configure have sys/param.h. */
0bd0bef6 7358# ifndef HAVE_SYS_PARAM_H
b3076f16 7359# define HAVE_SYS_PARAM_H 1
7360# endif
7361
7362# ifdef _SC_PAGESIZE
7363# define getpagesize() sysconf(_SC_PAGESIZE)
7364# else /* no _SC_PAGESIZE */
0bd0bef6 7365# ifdef HAVE_SYS_PARAM_H
b3076f16 7366# include <sys/param.h>
7367# ifdef EXEC_PAGESIZE
7368# define getpagesize() EXEC_PAGESIZE
7369# else /* no EXEC_PAGESIZE */
7370# ifdef NBPG
7371# define getpagesize() NBPG * CLSIZE
7372# ifndef CLSIZE
7373# define CLSIZE 1
7374# endif /* no CLSIZE */
7375# else /* no NBPG */
7376# ifdef NBPC
7377# define getpagesize() NBPC
7378# else /* no NBPC */
7379# ifdef PAGESIZE
7380# define getpagesize() PAGESIZE
7381# endif /* PAGESIZE */
7382# endif /* no NBPC */
7383# endif /* no NBPG */
7384# endif /* no EXEC_PAGESIZE */
7385# else /* no HAVE_SYS_PARAM_H */
7386# define getpagesize() 8192 /* punt totally */
7387# endif /* no HAVE_SYS_PARAM_H */
7388# endif /* no _SC_PAGESIZE */
7389
7390#endif /* no HAVE_GETPAGESIZE */
7391
7392int
7393main ()
7394{
7395 char *data, *data2, *data3;
7396 int i, pagesize;
7397 int fd;
7398
7399 pagesize = getpagesize ();
7400
7401 /* First, make a file with some known garbage in it. */
7402 data = (char *) malloc (pagesize);
7403 if (!data)
a8b2ad8d 7404 return 1;
b3076f16 7405 for (i = 0; i < pagesize; ++i)
7406 *(data + i) = rand ();
7407 umask (0);
7408 fd = creat ("conftest.mmap", 0600);
7409 if (fd < 0)
a8b2ad8d 7410 return 1;
b3076f16 7411 if (write (fd, data, pagesize) != pagesize)
a8b2ad8d 7412 return 1;
b3076f16 7413 close (fd);
7414
7415 /* Next, try to mmap the file at a fixed address which already has
7416 something else allocated at it. If we can, also make sure that
7417 we see the same garbage. */
7418 fd = open ("conftest.mmap", O_RDWR);
7419 if (fd < 0)
a8b2ad8d 7420 return 1;
b3076f16 7421 data2 = (char *) malloc (2 * pagesize);
7422 if (!data2)
a8b2ad8d 7423 return 1;
7424 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b3076f16 7425 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7426 MAP_PRIVATE | MAP_FIXED, fd, 0L))
a8b2ad8d 7427 return 1;
b3076f16 7428 for (i = 0; i < pagesize; ++i)
7429 if (*(data + i) != *(data2 + i))
a8b2ad8d 7430 return 1;
b3076f16 7431
7432 /* Finally, make sure that changes to the mapped area do not
7433 percolate back to the file as seen by read(). (This is a bug on
7434 some variants of i386 svr4.0.) */
7435 for (i = 0; i < pagesize; ++i)
7436 *(data2 + i) = *(data2 + i) + 1;
7437 data3 = (char *) malloc (pagesize);
7438 if (!data3)
a8b2ad8d 7439 return 1;
b3076f16 7440 if (read (fd, data3, pagesize) != pagesize)
a8b2ad8d 7441 return 1;
b3076f16 7442 for (i = 0; i < pagesize; ++i)
7443 if (*(data + i) != *(data3 + i))
a8b2ad8d 7444 return 1;
b3076f16 7445 close (fd);
a8b2ad8d 7446 return 0;
b3076f16 7447}
7448_ACEOF
7449rm -f conftest$ac_exeext
a8b2ad8d 7450if { (ac_try="$ac_link"
7451case "(($ac_try" in
7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 *) ac_try_echo=$ac_try;;
7454esac
7455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456 (eval "$ac_link") 2>&5
b3076f16 7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a8b2ad8d 7460 { (case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463esac
7464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_try") 2>&5
b3076f16 7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_func_mmap_fixed_mapped=yes
7470else
7471 echo "$as_me: program exited with status $ac_status" >&5
7472echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
7475( exit $ac_status )
7476ac_cv_func_mmap_fixed_mapped=no
7477fi
a8b2ad8d 7478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b3076f16 7479fi
a8b2ad8d 7480
7481
b3076f16 7482fi
a8b2ad8d 7483{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7484echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
b3076f16 7485if test $ac_cv_func_mmap_fixed_mapped = yes; then
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define HAVE_MMAP 1
7489_ACEOF
7490
7491fi
7492rm -f conftest.mmap
7493
7494
a8b2ad8d 7495{ echo "$as_me:$LINENO: checking for sin_len" >&5
7496echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; }
b3076f16 7497if test "${ac_cv_sin_len+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500 cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
7506#include <sys/types.h>
7507#include <netinet/in.h>
7508int
7509main ()
7510{
7511struct sockaddr_in *sin; sin->sin_len = 0;
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516rm -f conftest.$ac_objext
a8b2ad8d 7517if { (ac_try="$ac_compile"
7518case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
7522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
b3076f16 7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
b3076f16 7533 ac_cv_sin_len="yes"
7534else
7535 echo "$as_me: failed program was:" >&5
7536sed 's/^/| /' conftest.$ac_ext >&5
7537
a8b2ad8d 7538 ac_cv_sin_len="no"
b3076f16 7539fi
a8b2ad8d 7540
7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7542fi
a8b2ad8d 7543{ echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5
7544echo "${ECHO_T}$ac_cv_sin_len" >&6; }
b3076f16 7545if test $ac_cv_sin_len = yes ; then
7546
7547cat >>confdefs.h <<\_ACEOF
7548#define HAVE_SIN_LEN 1
7549_ACEOF
7550
7551fi
7552
a8b2ad8d 7553{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7554echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
79886419 7555if test "${ac_cv_type_socklen_t+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7564#include <sys/types.h>
7565#include<sys/socket.h>
7566
a8b2ad8d 7567typedef socklen_t ac__type_new_;
79886419 7568int
7569main ()
7570{
a8b2ad8d 7571if ((ac__type_new_ *) 0)
79886419 7572 return 0;
a8b2ad8d 7573if (sizeof (ac__type_new_))
79886419 7574 return 0;
7575 ;
7576 return 0;
7577}
7578_ACEOF
7579rm -f conftest.$ac_objext
a8b2ad8d 7580if { (ac_try="$ac_compile"
7581case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584esac
7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_compile") 2>conftest.er1
79886419 7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7592 (exit $ac_status); } && {
7593 test -z "$ac_c_werror_flag" ||
7594 test ! -s conftest.err
7595 } && test -s conftest.$ac_objext; then
0f6fe38c 7596 ac_cv_type_socklen_t=yes
ff3b058a 7597else
7598 echo "$as_me: failed program was:" >&5
7599sed 's/^/| /' conftest.$ac_ext >&5
7600
0f6fe38c 7601 ac_cv_type_socklen_t=no
ff3b058a 7602fi
7603
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff3b058a 7605fi
0f6fe38c 7606{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7607echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7608if test $ac_cv_type_socklen_t = yes; then
7609 :
7610else
ff3b058a 7611
0f6fe38c 7612 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
7613echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
7614 if test "${curl_cv_socklen_t_equiv+set}" = set; then
ff3b058a 7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
0f6fe38c 7617
7618 curl_cv_socklen_t_equiv=
7619 for arg2 in "struct sockaddr" void ; do
7620 for t in int size_t unsigned long "unsigned long" ; do
7621 cat >conftest.$ac_ext <<_ACEOF
ff3b058a 7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
0f6fe38c 7627#include <sys/types.h>
7628#include <sys/socket.h>
7629int getpeername (int $arg2 *, $t *);
7630int
7631main ()
7632{
7633$t len;
7634 getpeername(0, 0, &len);
7635 ;
7636 return 0;
7637}
79886419 7638_ACEOF
7639rm -f conftest.$ac_objext
a8b2ad8d 7640if { (ac_try="$ac_compile"
7641case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644esac
7645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_compile") 2>conftest.er1
79886419 7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
0f6fe38c 7656 curl_cv_socklen_t_equiv="$t"
7657 break
79886419 7658else
7659 echo "$as_me: failed program was:" >&5
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
a8b2ad8d 7662
79886419 7663fi
a8b2ad8d 7664
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0f6fe38c 7666 done
7667 done
79886419 7668
7669fi
7670
0f6fe38c 7671 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
7672echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
79886419 7673
0f6fe38c 7674cat >>confdefs.h <<_ACEOF
7675#define socklen_t $curl_cv_socklen_t_equiv
79886419 7676_ACEOF
7677
0f6fe38c 7678fi
7679
7680
7681OLD_CFLAGS=$CFLAGS
7682CFLAGS="$CFLAGS -W -Wall -Werror"
b3076f16 7683
a8b2ad8d 7684{ echo "$as_me:$LINENO: checking for time_t format" >&5
7685echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; }
b3076f16 7686if test "${ac_cv_fmt_time_t+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689
7690ac_cv_fmt_time_t=no
7691cat >conftest.$ac_ext <<_ACEOF
7692#include <sys/types.h>
7693#include <stdio.h>
7694void myfunc(void) {
7695 time_t test=0;
7696 printf("%li", test);
7697}
7698_ACEOF
7699rm -f conftest.$ac_objext
a8b2ad8d 7700if { (ac_try="$ac_compile"
7701case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704esac
7705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
b3076f16 7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
b3076f16 7716 ac_cv_fmt_time_t="\"%li\""
7717else
7718 echo "$as_me: failed program was:" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5
7720
a8b2ad8d 7721
b3076f16 7722fi
a8b2ad8d 7723
7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7725if test $ac_cv_fmt_time_t = no; then
7726cat >conftest.$ac_ext <<_ACEOF
7727#include <sys/types.h>
7728#include <stdio.h>
7729void myfunc(void) {
7730 time_t test=0;
7731 printf("%i", test);
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
a8b2ad8d 7735if { (ac_try="$ac_compile"
7736case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739esac
7740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_compile") 2>conftest.er1
b3076f16 7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
b3076f16 7751 ac_cv_fmt_time_t="\"%i\""
7752else
7753 echo "$as_me: failed program was:" >&5
7754sed 's/^/| /' conftest.$ac_ext >&5
7755
a8b2ad8d 7756
b3076f16 7757fi
a8b2ad8d 7758
7759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b3076f16 7760fi
7761if test $ac_cv_fmt_time_t = no; then
7762{ { echo "$as_me:$LINENO: error: Cannot detect format string for time_t
7763Please check sys/types.h for the typedef of time_t and submit to a developer" >&5
7764echo "$as_me: error: Cannot detect format string for time_t
7765Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;}
7766 { (exit 1); exit 1; }; }
7767fi
7768
7769fi
7770
7771
7772cat >>confdefs.h <<_ACEOF
7773#define FMT_TIME_T $ac_cv_fmt_time_t
7774_ACEOF
7775
a8b2ad8d 7776{ echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5
7777echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; }
b3076f16 7778
a8b2ad8d 7779{ echo "$as_me:$LINENO: checking for va_copy" >&5
7780echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
b3076f16 7781if test "${ac_cv_c_va_copy+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790#include <stdarg.h>
7791int
7792main ()
7793{
7794va_list ap1, ap2; va_copy(ap1, ap2);
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7800if { (ac_try="$ac_link"
7801case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_link") 2>conftest.er1
b3076f16 7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest$ac_exeext &&
7816 $as_test_x conftest$ac_exeext; then
b3076f16 7817 ac_cv_c_va_copy="yes"
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
a8b2ad8d 7822 ac_cv_c_va_copy="no"
b3076f16 7823
7824fi
a8b2ad8d 7825
0bd0bef6 7826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7827 conftest$ac_exeext conftest.$ac_ext
7828fi
a8b2ad8d 7829{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
7830echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
b3076f16 7831if test "$ac_cv_c_va_copy" = "yes" ; then
7832
7833cat >>confdefs.h <<\_ACEOF
7834#define HAVE_VA_COPY 1
7835_ACEOF
7836
7837fi
7838
a8b2ad8d 7839{ echo "$as_me:$LINENO: checking for __va_copy" >&5
7840echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
b3076f16 7841if test "${ac_cv_c___va_copy+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h. */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
7849/* end confdefs.h. */
7850#include <stdarg.h>
7851int
7852main ()
7853{
7854va_list ap1, ap2; __va_copy(ap1, ap2);
7855 ;
7856 return 0;
7857}
7858_ACEOF
7859rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 7860if { (ac_try="$ac_link"
7861case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
b3076f16 7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest$ac_exeext &&
7876 $as_test_x conftest$ac_exeext; then
b3076f16 7877 ac_cv_c___va_copy="yes"
7878else
7879 echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
a8b2ad8d 7882 ac_cv_c___va_copy="no"
b3076f16 7883
7884fi
a8b2ad8d 7885
0bd0bef6 7886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 7887 conftest$ac_exeext conftest.$ac_ext
7888fi
a8b2ad8d 7889{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
7890echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
b3076f16 7891if test "$ac_cv_c___va_copy" = "yes" ; then
7892
7893cat >>confdefs.h <<\_ACEOF
7894#define HAVE___VA_COPY 1
7895_ACEOF
7896
7897fi
7898
7899CFLAGS=$OLD_CFLAGS
7900
a8b2ad8d 7901{ echo "$as_me:$LINENO: checking which malloc to use" >&5
7902echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; }
b3076f16 7903
a8b2ad8d 7904# Check whether --with-malloc was given.
b3076f16 7905if test "${with_malloc+set}" = set; then
a8b2ad8d 7906 withval=$with_malloc;
b3076f16 7907else
7908 withval="system"
a8b2ad8d 7909fi
7910
b3076f16 7911if test "x$withval" = "xsystem" ; then
a8b2ad8d 7912 { echo "$as_me:$LINENO: result: system" >&5
7913echo "${ECHO_T}system" >&6; }
b3076f16 7914
7915cat >>confdefs.h <<\_ACEOF
7916#define WITH_MALLOC_SYSTEM 1
7917_ACEOF
7918
5b1166fd 7919 x3_malloc="System"
b3076f16 7920elif test "x$withval" = "xdmalloc" ; then
a8b2ad8d 7921 { echo "$as_me:$LINENO: result: dmalloc" >&5
7922echo "${ECHO_T}dmalloc" >&6; }
b3076f16 7923
7924for ac_header in dmalloc.h
7925do
7926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 7927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932fi
a8b2ad8d 7933ac_res=`eval echo '${'$as_ac_Header'}'`
7934 { echo "$as_me:$LINENO: result: $ac_res" >&5
7935echo "${ECHO_T}$ac_res" >&6; }
b3076f16 7936else
7937 # Is the header compilable?
a8b2ad8d 7938{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 7940cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946$ac_includes_default
7947#include <$ac_header>
7948_ACEOF
7949rm -f conftest.$ac_objext
a8b2ad8d 7950if { (ac_try="$ac_compile"
7951case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954esac
7955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_compile") 2>conftest.er1
b3076f16 7957 ac_status=$?
7958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 7962 (exit $ac_status); } && {
7963 test -z "$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7965 } && test -s conftest.$ac_objext; then
b3076f16 7966 ac_header_compiler=yes
7967else
7968 echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
a8b2ad8d 7971 ac_header_compiler=no
b3076f16 7972fi
a8b2ad8d 7973
7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7976echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 7977
7978# Is the header present?
a8b2ad8d 7979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 7981cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987#include <$ac_header>
7988_ACEOF
a8b2ad8d 7989if { (ac_try="$ac_cpp conftest.$ac_ext"
7990case "(($ac_try" in
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7993esac
7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8001 (exit $ac_status); } >/dev/null && {
8002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 }; then
b3076f16 8005 ac_header_preproc=yes
8006else
8007 echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 ac_header_preproc=no
8011fi
a8b2ad8d 8012
b3076f16 8013rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8015echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8016
8017# So? What about this header?
8018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8019 yes:no: )
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8024 ac_header_preproc=yes
8025 ;;
8026 no:yes:* )
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8039 ( cat <<\_ASBOX
63c95a47 8040## -------------------------------------------------- ##
8041## Report this to evilnet-devel@lists.sourceforge.net ##
8042## -------------------------------------------------- ##
b3076f16 8043_ASBOX
a8b2ad8d 8044 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8045 ;;
8046esac
a8b2ad8d 8047{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 eval "$as_ac_Header=\$ac_header_preproc"
8053fi
a8b2ad8d 8054ac_res=`eval echo '${'$as_ac_Header'}'`
8055 { echo "$as_me:$LINENO: result: $ac_res" >&5
8056echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8057
8058fi
8059if test `eval echo '${'$as_ac_Header'}'` = yes; then
8060 cat >>confdefs.h <<_ACEOF
8061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8062_ACEOF
8063
8064else
8065 { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5
8066echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;}
8067 { (exit 1); exit 1; }; }
8068fi
8069
8070done
8071
8072
a8b2ad8d 8073{ echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
8074echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
b3076f16 8075if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077else
8078 ac_check_lib_save_LIBS=$LIBS
8079LIBS="-ldmalloc $LIBS"
8080cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h. */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h. */
8086
a8b2ad8d 8087/* Override any GCC internal prototype to avoid an error.
8088 Use char because int might match the return type of a GCC
8089 builtin and then its argument prototype would still apply. */
b3076f16 8090#ifdef __cplusplus
8091extern "C"
8092#endif
b3076f16 8093char malloc ();
8094int
8095main ()
8096{
a8b2ad8d 8097return malloc ();
b3076f16 8098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8103if { (ac_try="$ac_link"
8104case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_link") 2>conftest.er1
b3076f16 8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest$ac_exeext &&
8119 $as_test_x conftest$ac_exeext; then
b3076f16 8120 ac_cv_lib_dmalloc_malloc=yes
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
a8b2ad8d 8125 ac_cv_lib_dmalloc_malloc=no
b3076f16 8126fi
a8b2ad8d 8127
0bd0bef6 8128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8129 conftest$ac_exeext conftest.$ac_ext
8130LIBS=$ac_check_lib_save_LIBS
8131fi
a8b2ad8d 8132{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
8133echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
b3076f16 8134if test $ac_cv_lib_dmalloc_malloc = yes; then
8135 cat >>confdefs.h <<_ACEOF
8136#define HAVE_LIBDMALLOC 1
8137_ACEOF
8138
8139 LIBS="-ldmalloc $LIBS"
8140
8141else
8142 { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5
8143echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;}
8144 { (exit 1); exit 1; }; }
8145fi
8146
8147
8148cat >>confdefs.h <<\_ACEOF
8149#define WITH_MALLOC_DMALLOC 1
8150_ACEOF
8151
5b1166fd 8152 x3_malloc="DMalloc"
b3076f16 8153elif test "x$withval" = "xmpatrol" ; then
a8b2ad8d 8154 { echo "$as_me:$LINENO: result: mpatrol" >&5
8155echo "${ECHO_T}mpatrol" >&6; }
b3076f16 8156
8157for ac_header in mpatrol.h
8158do
8159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165fi
a8b2ad8d 8166ac_res=`eval echo '${'$as_ac_Header'}'`
8167 { echo "$as_me:$LINENO: result: $ac_res" >&5
8168echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8169else
8170 # Is the header compilable?
a8b2ad8d 8171{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8173cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
8179$ac_includes_default
8180#include <$ac_header>
8181_ACEOF
8182rm -f conftest.$ac_objext
a8b2ad8d 8183if { (ac_try="$ac_compile"
8184case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_compile") 2>conftest.er1
b3076f16 8190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8195 (exit $ac_status); } && {
8196 test -z "$ac_c_werror_flag" ||
8197 test ! -s conftest.err
8198 } && test -s conftest.$ac_objext; then
b3076f16 8199 ac_header_compiler=yes
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
a8b2ad8d 8204 ac_header_compiler=no
b3076f16 8205fi
a8b2ad8d 8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8209echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8210
8211# Is the header present?
a8b2ad8d 8212{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8214cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
8220#include <$ac_header>
8221_ACEOF
a8b2ad8d 8222if { (ac_try="$ac_cpp conftest.$ac_ext"
8223case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8234 (exit $ac_status); } >/dev/null && {
8235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 }; then
b3076f16 8238 ac_header_preproc=yes
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_header_preproc=no
8244fi
a8b2ad8d 8245
b3076f16 8246rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8248echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8249
8250# So? What about this header?
8251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8252 yes:no: )
8253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8257 ac_header_preproc=yes
8258 ;;
8259 no:yes:* )
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8272 ( cat <<\_ASBOX
63c95a47 8273## -------------------------------------------------- ##
8274## Report this to evilnet-devel@lists.sourceforge.net ##
8275## -------------------------------------------------- ##
b3076f16 8276_ASBOX
a8b2ad8d 8277 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8278 ;;
8279esac
a8b2ad8d 8280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285 eval "$as_ac_Header=\$ac_header_preproc"
8286fi
a8b2ad8d 8287ac_res=`eval echo '${'$as_ac_Header'}'`
8288 { echo "$as_me:$LINENO: result: $ac_res" >&5
8289echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8290
8291fi
8292if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8295_ACEOF
8296
8297else
8298 { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5
8299echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;}
8300 { (exit 1); exit 1; }; }
8301fi
8302
8303done
8304
8305
a8b2ad8d 8306{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
8307echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
b3076f16 8308if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310else
8311 ac_check_lib_save_LIBS=$LIBS
8312LIBS="-lelf $LIBS"
8313cat >conftest.$ac_ext <<_ACEOF
8314/* confdefs.h. */
8315_ACEOF
8316cat confdefs.h >>conftest.$ac_ext
8317cat >>conftest.$ac_ext <<_ACEOF
8318/* end confdefs.h. */
8319
a8b2ad8d 8320/* Override any GCC internal prototype to avoid an error.
8321 Use char because int might match the return type of a GCC
8322 builtin and then its argument prototype would still apply. */
b3076f16 8323#ifdef __cplusplus
8324extern "C"
8325#endif
b3076f16 8326char elf_begin ();
8327int
8328main ()
8329{
a8b2ad8d 8330return elf_begin ();
b3076f16 8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8336if { (ac_try="$ac_link"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_link") 2>conftest.er1
b3076f16 8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest$ac_exeext &&
8352 $as_test_x conftest$ac_exeext; then
b3076f16 8353 ac_cv_lib_elf_elf_begin=yes
8354else
8355 echo "$as_me: failed program was:" >&5
8356sed 's/^/| /' conftest.$ac_ext >&5
8357
a8b2ad8d 8358 ac_cv_lib_elf_elf_begin=no
b3076f16 8359fi
a8b2ad8d 8360
0bd0bef6 8361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8362 conftest$ac_exeext conftest.$ac_ext
8363LIBS=$ac_check_lib_save_LIBS
8364fi
a8b2ad8d 8365{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
8366echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
b3076f16 8367if test $ac_cv_lib_elf_elf_begin = yes; then
8368 cat >>confdefs.h <<_ACEOF
8369#define HAVE_LIBELF 1
8370_ACEOF
8371
8372 LIBS="-lelf $LIBS"
8373
8374fi
8375
8376
a8b2ad8d 8377{ echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5
8378echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; }
b3076f16 8379if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382 ac_check_lib_save_LIBS=$LIBS
8383LIBS="-lmpatrol $LIBS"
8384cat >conftest.$ac_ext <<_ACEOF
8385/* confdefs.h. */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h. */
8390
a8b2ad8d 8391/* Override any GCC internal prototype to avoid an error.
8392 Use char because int might match the return type of a GCC
8393 builtin and then its argument prototype would still apply. */
b3076f16 8394#ifdef __cplusplus
8395extern "C"
8396#endif
b3076f16 8397char __mp_atexit ();
8398int
8399main ()
8400{
a8b2ad8d 8401return __mp_atexit ();
b3076f16 8402 ;
8403 return 0;
8404}
8405_ACEOF
8406rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8407if { (ac_try="$ac_link"
8408case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411esac
8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_link") 2>conftest.er1
b3076f16 8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest$ac_exeext &&
8423 $as_test_x conftest$ac_exeext; then
b3076f16 8424 ac_cv_lib_mpatrol___mp_atexit=yes
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
a8b2ad8d 8429 ac_cv_lib_mpatrol___mp_atexit=no
b3076f16 8430fi
a8b2ad8d 8431
0bd0bef6 8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8433 conftest$ac_exeext conftest.$ac_ext
8434LIBS=$ac_check_lib_save_LIBS
8435fi
a8b2ad8d 8436{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5
8437echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; }
b3076f16 8438if test $ac_cv_lib_mpatrol___mp_atexit = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440#define HAVE_LIBMPATROL 1
8441_ACEOF
8442
8443 LIBS="-lmpatrol $LIBS"
8444
8445else
8446 { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5
8447echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;}
8448 { (exit 1); exit 1; }; }
8449fi
8450
8451
8452cat >>confdefs.h <<\_ACEOF
8453#define WITH_MALLOC_MPATROL 1
8454_ACEOF
8455
5b1166fd 8456 x3_malloc="MPatrol"
b3076f16 8457elif test "x$withval" = "xboehm-gc" ; then
a8b2ad8d 8458 { echo "$as_me:$LINENO: result: boehm-gc" >&5
8459echo "${ECHO_T}boehm-gc" >&6; }
b3076f16 8460
8461for ac_header in gc/gc.h
8462do
8463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a8b2ad8d 8464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469fi
a8b2ad8d 8470ac_res=`eval echo '${'$as_ac_Header'}'`
8471 { echo "$as_me:$LINENO: result: $ac_res" >&5
8472echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8473else
8474 # Is the header compilable?
a8b2ad8d 8475{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
b3076f16 8477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483$ac_includes_default
ff3b058a 8484#include <$ac_header>
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (ac_try="$ac_compile"
8488case "(($ac_try" in
a8b2ad8d 8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
0f6fe38c 8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
b3076f16 8503 ac_header_compiler=yes
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
a8b2ad8d 8508 ac_header_compiler=no
b3076f16 8509fi
a8b2ad8d 8510
8511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 8514
8515# Is the header present?
a8b2ad8d 8516{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
b3076f16 8518cat >conftest.$ac_ext <<_ACEOF
8519/* confdefs.h. */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h. */
8524#include <$ac_header>
8525_ACEOF
a8b2ad8d 8526if { (ac_try="$ac_cpp conftest.$ac_ext"
8527case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530esac
8531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b3076f16 8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8538 (exit $ac_status); } >/dev/null && {
8539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 }; then
b3076f16 8542 ac_header_preproc=yes
8543else
8544 echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 ac_header_preproc=no
8548fi
a8b2ad8d 8549
b3076f16 8550rm -f conftest.err conftest.$ac_ext
a8b2ad8d 8551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 8553
8554# So? What about this header?
8555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556 yes:no: )
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8561 ac_header_preproc=yes
8562 ;;
8563 no:yes:* )
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 8576 ( cat <<\_ASBOX
63c95a47 8577## -------------------------------------------------- ##
8578## Report this to evilnet-devel@lists.sourceforge.net ##
8579## -------------------------------------------------- ##
b3076f16 8580_ASBOX
a8b2ad8d 8581 ) | sed "s/^/$as_me: WARNING: /" >&2
b3076f16 8582 ;;
8583esac
a8b2ad8d 8584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b3076f16 8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588else
8589 eval "$as_ac_Header=\$ac_header_preproc"
8590fi
a8b2ad8d 8591ac_res=`eval echo '${'$as_ac_Header'}'`
8592 { echo "$as_me:$LINENO: result: $ac_res" >&5
8593echo "${ECHO_T}$ac_res" >&6; }
b3076f16 8594
8595fi
8596if test `eval echo '${'$as_ac_Header'}'` = yes; then
8597 cat >>confdefs.h <<_ACEOF
8598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8599_ACEOF
8600
8601else
8602 { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5
8603echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;}
8604 { (exit 1); exit 1; }; }
8605fi
8606
8607done
8608
8609
a8b2ad8d 8610{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8611echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
b3076f16 8612if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614else
8615 ac_check_lib_save_LIBS=$LIBS
8616LIBS="-ldl $LIBS"
8617cat >conftest.$ac_ext <<_ACEOF
8618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
8623
a8b2ad8d 8624/* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
b3076f16 8627#ifdef __cplusplus
8628extern "C"
8629#endif
b3076f16 8630char dlopen ();
8631int
8632main ()
8633{
a8b2ad8d 8634return dlopen ();
b3076f16 8635 ;
8636 return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8640if { (ac_try="$ac_link"
8641case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644esac
8645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_link") 2>conftest.er1
b3076f16 8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest$ac_exeext &&
8656 $as_test_x conftest$ac_exeext; then
b3076f16 8657 ac_cv_lib_dl_dlopen=yes
8658else
8659 echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
a8b2ad8d 8662 ac_cv_lib_dl_dlopen=no
b3076f16 8663fi
a8b2ad8d 8664
0bd0bef6 8665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8666 conftest$ac_exeext conftest.$ac_ext
8667LIBS=$ac_check_lib_save_LIBS
8668fi
a8b2ad8d 8669{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8670echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
b3076f16 8671if test $ac_cv_lib_dl_dlopen = yes; then
8672 cat >>confdefs.h <<_ACEOF
8673#define HAVE_LIBDL 1
8674_ACEOF
8675
8676 LIBS="-ldl $LIBS"
8677
8678else
8679 { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5
8680echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;}
8681 { (exit 1); exit 1; }; }
8682fi
8683
8684
a8b2ad8d 8685{ echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5
8686echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; }
b3076f16 8687if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 ac_check_lib_save_LIBS=$LIBS
8691LIBS="-lgc $LIBS"
8692cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h. */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h. */
8698
a8b2ad8d 8699/* Override any GCC internal prototype to avoid an error.
8700 Use char because int might match the return type of a GCC
8701 builtin and then its argument prototype would still apply. */
b3076f16 8702#ifdef __cplusplus
8703extern "C"
8704#endif
b3076f16 8705char GC_gcollect ();
8706int
8707main ()
8708{
a8b2ad8d 8709return GC_gcollect ();
b3076f16 8710 ;
8711 return 0;
8712}
8713_ACEOF
8714rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 8715if { (ac_try="$ac_link"
8716case "(($ac_try" in
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8719esac
8720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_link") 2>conftest.er1
b3076f16 8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest$ac_exeext &&
8731 $as_test_x conftest$ac_exeext; then
b3076f16 8732 ac_cv_lib_gc_GC_gcollect=yes
8733else
8734 echo "$as_me: failed program was:" >&5
8735sed 's/^/| /' conftest.$ac_ext >&5
8736
a8b2ad8d 8737 ac_cv_lib_gc_GC_gcollect=no
b3076f16 8738fi
a8b2ad8d 8739
0bd0bef6 8740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b3076f16 8741 conftest$ac_exeext conftest.$ac_ext
8742LIBS=$ac_check_lib_save_LIBS
8743fi
a8b2ad8d 8744{ echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5
8745echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; }
b3076f16 8746if test $ac_cv_lib_gc_GC_gcollect = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748#define HAVE_LIBGC 1
8749_ACEOF
8750
8751 LIBS="-lgc $LIBS"
8752
8753else
8754 { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5
8755echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;}
8756 { (exit 1); exit 1; }; }
8757fi
8758
8759
8760cat >>confdefs.h <<\_ACEOF
8761#define WITH_MALLOC_BOEHM_GC 1
8762_ACEOF
8763
5b1166fd 8764 x3_malloc="Boehm"
b8cb2a14 8765elif test "x$withval" = "xx3" ; then
a8b2ad8d 8766 { echo "$as_me:$LINENO: result: x3" >&5
8767echo "${ECHO_T}x3" >&6; }
ec1a68c8 8768
8769cat >>confdefs.h <<\_ACEOF
b8cb2a14 8770#define WITH_MALLOC_X3 1
ec1a68c8 8771_ACEOF
8772
b8cb2a14 8773 MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
5b1166fd 8774 x3_malloc="X3"
ceafd592 8775elif test "x$withval" = "xslab" ; then
a8b2ad8d 8776 { echo "$as_me:$LINENO: result: slab" >&5
8777echo "${ECHO_T}slab" >&6; }
ceafd592 8778
8779cat >>confdefs.h <<\_ACEOF
8780#define WITH_MALLOC_SLAB 1
8781_ACEOF
8782
8783 MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
5b1166fd 8784 x3_malloc="Slab"
b3076f16 8785else
8786 { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
8787echo "$as_me: error: Unknown malloc type $withval" >&2;}
8788 { (exit 1); exit 1; }; }
8789fi
8790
a8b2ad8d 8791{ echo "$as_me:$LINENO: checking which protocol to use" >&5
8792echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; }
b3076f16 8793
a8b2ad8d 8794# Check whether --with-protocol was given.
b3076f16 8795if test "${with_protocol+set}" = set; then
a8b2ad8d 8796 withval=$with_protocol;
b3076f16 8797else
8798 withval="p10"
a8b2ad8d 8799fi
8800
b3076f16 8801if test "x$withval" = "xp10" ; then
a8b2ad8d 8802 { echo "$as_me:$LINENO: result: P10" >&5
8803echo "${ECHO_T}P10" >&6; }
b3076f16 8804
8805cat >>confdefs.h <<\_ACEOF
8806#define WITH_PROTOCOL_P10 1
8807_ACEOF
8808
2f61d1d7 8809 MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
0f6fe38c 8810 PROTO_FILES=proto-p10.c
5b1166fd 8811 x3_ircd="P10"
b3076f16 8812else
8813 { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
8814echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
8815 { (exit 1); exit 1; }; }
8816fi
8817
8da89711 8818
8819# Check whether --with-getopt was given.
8820if test "${with_getopt+set}" = set; then
8821 withval=$with_getopt; if test "$withval" = no; then
8822
8823cat >>confdefs.h <<\_ACEOF
8824#define IGNORE_GETOPT 1
8825_ACEOF
8826
8827fi
8828fi
8829
8830
8831{ echo "$as_me:$LINENO: checking whether to enable tokenization" >&5
8832echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; }
8833# Check whether --enable-tokens was given.
8834if test "${enable_tokens+set}" = set; then
8835 enableval=$enable_tokens;
8836else
8837 enableval=yes
8838fi
8839
8840if test "z$enableval" = zno ; then
8841 { echo "$as_me:$LINENO: result: no" >&5
8842echo "${ECHO_T}no" >&6; }
8843else
8844
8845cat >>confdefs.h <<\_ACEOF
8846#define ENABLE_TOKENS 1
8847_ACEOF
8848
8849 { echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6; }
8851fi
8852
8853{ echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5
8854echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; }
8855# Check whether --enable-debug was given.
8856if test "${enable_debug+set}" = set; then
8857 enableval=$enable_debug;
8858 CPPFLAGS="$CPPFLAGS"
e166c31b 8859 { echo "$as_me:$LINENO: result: yes" >&5
8860echo "${ECHO_T}yes" >&6; }
8da89711 8861 x3_debug="Enabled"
e166c31b 8862
8863else
8864
8da89711 8865 CPPFLAGS="$CPPFLAGS -DNDEBUG"
e166c31b 8866 { echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6; }
8da89711 8868 x3_debug="Disabled"
e166c31b 8869
8870fi
8871
8872
8da89711 8873if test -e src ; then
8874 if test ! -d src ; then
8875 { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5
8876echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;}
8877 { (exit 1); exit 1; }; }
8878 fi
8879else
8880 mkdir src
8881fi
8882{ echo "$as_me:$LINENO: checking for extra module files" >&5
8883echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; }
8884MODULE_DEFINES="src/modules-list.h"
8885echo > $MODULE_DEFINES
8886touch $MODULE_DEFINES
8887# Check whether --enable-modules was given.
8888if test "${enable_modules+set}" = set; then
8889 enableval=$enable_modules;
8890 OIFS="$IFS"
8891 IFS=','
8892 EXTRA_MODULE_OBJS=""
8893 module_list=""
8894 for module in $enableval ; do
8895 module=`echo $module | sed -e s/^mod-// -e s/\.c\$//`
8896 EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
8897 module_list="$module_list $module"
8898 echo "WITH_MODULE($module)" >> $MODULE_DEFINES
8899 if test "x$module" = "xtrack" ; then
8900 TRACK="-D HAVE_TRACK"
e166c31b 8901
8902cat >>confdefs.h <<\_ACEOF
8da89711 8903#define HAVE_TRACK 1
e166c31b 8904_ACEOF
8905
8da89711 8906 fi
8907 if test "x$module" = "xhelpserv" ; then
8908 TRACK="-D HAVE_HELPSERV"
e166c31b 8909
8da89711 8910cat >>confdefs.h <<\_ACEOF
8911#define HAVE_HELPSERV 1
e166c31b 8912_ACEOF
e166c31b 8913
8da89711 8914 fi
8915 done
8916 IFS="$OIFS"
8917 MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
8918 { echo "$as_me:$LINENO: result: $module_list" >&5
8919echo "${ECHO_T}$module_list" >&6; }
8920
e166c31b 8921else
e166c31b 8922
8da89711 8923 { echo "$as_me:$LINENO: result: none" >&5
8924echo "${ECHO_T}none" >&6; }
e166c31b 8925
e166c31b 8926fi
e166c31b 8927
e166c31b 8928
8da89711 8929MY_SUBDIRS=""
8930RX_INCLUDES=""
8931RX_LIBS=""
8932if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then
8933 MY_SUBDIRS="rx $MY_SUBDIRS"
8934 RX_INCLUDES="-I../rx"
8935 RX_LIBS="../rx/librx.a"
8936fi
8937MY_SUBDIRS="$MY_SUBDIRS src"
8938CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
8939if test "z$USE_MAINTAINER_MODE" = zyes ; then
0f6fe38c 8940 CFLAGS="$CFLAGS -Werror"
e166c31b 8941fi
8942
8943
8da89711 8944tre_version="0.7.5"
8945withval=''
8946
8947# Check whether --with-tre was given.
8948if test "${with_tre+set}" = set; then
8949 withval=$with_tre;
8950fi
8951
8952if test "x$withval" != "x"; then
8953 { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5
8954echo "${ECHO_T}Using include dir $withval to find libtre" >&6; }
39edf54a 8955 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
8da89711 8956 LIBS="$LIBS -L$withval/lib"
8957else
8958 { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5
8959echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; }
39edf54a 8960 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
8da89711 8961 LIBS="$LIBS -L${HOME}/lib"
8962fi
8963if test "${ac_cv_header_tre_regex_h+set}" = set; then
8964 { echo "$as_me:$LINENO: checking for tre/regex.h" >&5
8965echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
8966if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968fi
8da89711 8969{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
8970echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 8971else
8972 # Is the header compilable?
8da89711 8973{ echo "$as_me:$LINENO: checking tre/regex.h usability" >&5
8974echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; }
e166c31b 8975cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h. */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h. */
8981$ac_includes_default
8da89711 8982#include <tre/regex.h>
e166c31b 8983_ACEOF
8984rm -f conftest.$ac_objext
8985if { (ac_try="$ac_compile"
8986case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_compile") 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest.$ac_objext; then
e166c31b 9001 ac_header_compiler=yes
9002else
9003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 ac_header_compiler=no
9007fi
9008
9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9011echo "${ECHO_T}$ac_header_compiler" >&6; }
9012
9013# Is the header present?
8da89711 9014{ echo "$as_me:$LINENO: checking tre/regex.h presence" >&5
9015echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; }
e166c31b 9016cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
8da89711 9022#include <tre/regex.h>
e166c31b 9023_ACEOF
9024if { (ac_try="$ac_cpp conftest.$ac_ext"
9025case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028esac
9029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9036 (exit $ac_status); } >/dev/null && {
9037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 }; then
e166c31b 9040 ac_header_preproc=yes
9041else
9042 echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_header_preproc=no
9046fi
9047
9048rm -f conftest.err conftest.$ac_ext
9049{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9050echo "${ECHO_T}$ac_header_preproc" >&6; }
9051
9052# So? What about this header?
9053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9054 yes:no: )
8da89711 9055 { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
9056echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5
9058echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;}
e166c31b 9059 ac_header_preproc=yes
9060 ;;
9061 no:yes:* )
8da89711 9062 { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5
9063echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5
9065echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5
9067echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5
9069echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5
9071echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5
9073echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;}
e166c31b 9074 ( cat <<\_ASBOX
9075## -------------------------------------------------- ##
9076## Report this to evilnet-devel@lists.sourceforge.net ##
9077## -------------------------------------------------- ##
9078_ASBOX
9079 ) | sed "s/^/$as_me: WARNING: /" >&2
9080 ;;
9081esac
8da89711 9082{ echo "$as_me:$LINENO: checking for tre/regex.h" >&5
9083echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; }
9084if test "${ac_cv_header_tre_regex_h+set}" = set; then
e166c31b 9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
8da89711 9087 ac_cv_header_tre_regex_h=$ac_header_preproc
e166c31b 9088fi
8da89711 9089{ echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5
9090echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; }
e166c31b 9091
9092fi
8da89711 9093if test $ac_cv_header_tre_regex_h = yes; then
9094 :
e166c31b 9095else
0bd0bef6 9096 { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9097echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
e166c31b 9098 { (exit 1); exit 1; }; }
9099fi
9100
e166c31b 9101
b3076f16 9102
8da89711 9103{ echo "$as_me:$LINENO: checking for regexec in -ltre" >&5
9104echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; }
9105if test "${ac_cv_lib_tre_regexec+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
b3076f16 9107else
8da89711 9108 ac_check_lib_save_LIBS=$LIBS
9109LIBS="-ltre $LIBS"
9110cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h. */
b3076f16 9112_ACEOF
8da89711 9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h. */
b3076f16 9116
8da89711 9117/* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9120#ifdef __cplusplus
9121extern "C"
9122#endif
9123char regexec ();
9124int
9125main ()
9126{
9127return regexec ();
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (ac_try="$ac_link"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9145 (exit $ac_status); } && {
9146 test -z "$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9148 } && test -s conftest$ac_exeext &&
9149 $as_test_x conftest$ac_exeext; then
8da89711 9150 ac_cv_lib_tre_regexec=yes
b3076f16 9151else
8da89711 9152 echo "$as_me: failed program was:" >&5
9153sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9154
8da89711 9155 ac_cv_lib_tre_regexec=no
a8b2ad8d 9156fi
9157
0bd0bef6 9158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 9159 conftest$ac_exeext conftest.$ac_ext
9160LIBS=$ac_check_lib_save_LIBS
b3076f16 9161fi
8da89711 9162{ echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5
9163echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; }
9164if test $ac_cv_lib_tre_regexec = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166#define HAVE_LIBTRE 1
8de34abd 9167_ACEOF
9168
8da89711 9169 LIBS="-ltre $LIBS"
b3076f16 9170
9171else
0bd0bef6 9172 { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5
9173echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For convenience, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;}
8da89711 9174 { (exit 1); exit 1; }; }
b3076f16 9175fi
9176
35305a49 9177
2784452e 9178core_version="1.1"
35305a49 9179withval=''
9180
8da89711 9181# Check whether --with-coredumper was given.
9182if test "${with_coredumper+set}" = set; then
9183 withval=$with_coredumper;
a8b2ad8d 9184fi
35305a49 9185
35305a49 9186if test "x$withval" != "x"; then
8da89711 9187 { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5
9188echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; }
39edf54a 9189 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
0754f993 9190 LIBS="$LIBS -L$withval/lib"
35305a49 9191else
8da89711 9192 { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5
9193echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; }
39edf54a 9194 CPPFLAGS="$CPPFLAGS -I${HOME}/include -L${HOME}/lib"
2784452e 9195 LIBS="$LIBS -Wl,--rpath -Wl,${HOME}/lib"
35305a49 9196fi
8da89711 9197if test "${ac_cv_header_google_coredumper_h+set}" = set; then
9198 { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9199echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9200if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202fi
8da89711 9203{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9204echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
35305a49 9205else
9206 # Is the header compilable?
8da89711 9207{ echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5
9208echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; }
35305a49 9209cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h. */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h. */
9215$ac_includes_default
8da89711 9216#include <google/coredumper.h>
35305a49 9217_ACEOF
9218rm -f conftest.$ac_objext
a8b2ad8d 9219if { (ac_try="$ac_compile"
9220case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223esac
9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
35305a49 9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.$ac_objext; then
35305a49 9235 ac_header_compiler=yes
9236else
9237 echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
9239
a8b2ad8d 9240 ac_header_compiler=no
35305a49 9241fi
a8b2ad8d 9242
9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9245echo "${ECHO_T}$ac_header_compiler" >&6; }
35305a49 9246
9247# Is the header present?
8da89711 9248{ echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5
9249echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; }
35305a49 9250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
8da89711 9256#include <google/coredumper.h>
35305a49 9257_ACEOF
a8b2ad8d 9258if { (ac_try="$ac_cpp conftest.$ac_ext"
9259case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35305a49 9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9270 (exit $ac_status); } >/dev/null && {
9271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9272 test ! -s conftest.err
9273 }; then
35305a49 9274 ac_header_preproc=yes
9275else
9276 echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 ac_header_preproc=no
9280fi
a8b2ad8d 9281
35305a49 9282rm -f conftest.err conftest.$ac_ext
a8b2ad8d 9283{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9284echo "${ECHO_T}$ac_header_preproc" >&6; }
35305a49 9285
9286# So? What about this header?
9287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9288 yes:no: )
8da89711 9289 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5
9290echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5
9292echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;}
35305a49 9293 ac_header_preproc=yes
9294 ;;
9295 no:yes:* )
8da89711 9296 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5
9297echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5
9299echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5
9301echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5
9303echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5
9305echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5
9307echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9308 ( cat <<\_ASBOX
35305a49 9309## -------------------------------------------------- ##
9310## Report this to evilnet-devel@lists.sourceforge.net ##
9311## -------------------------------------------------- ##
9312_ASBOX
a8b2ad8d 9313 ) | sed "s/^/$as_me: WARNING: /" >&2
35305a49 9314 ;;
9315esac
8da89711 9316{ echo "$as_me:$LINENO: checking for google/coredumper.h" >&5
9317echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; }
9318if test "${ac_cv_header_google_coredumper_h+set}" = set; then
35305a49 9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320else
8da89711 9321 ac_cv_header_google_coredumper_h=$ac_header_preproc
9322fi
9323{ echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5
9324echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; }
9325
9326fi
9327if test $ac_cv_header_google_coredumper_h = yes; then
9328 :
9329else
0bd0bef6 9330 { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
9331echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
8da89711 9332fi
9333
9334
9335
9336{ echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5
9337echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; }
9338if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340else
9341 ac_check_lib_save_LIBS=$LIBS
9342LIBS="-lcoredumper $LIBS"
9343cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349
9350/* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
9353#ifdef __cplusplus
9354extern "C"
9355#endif
9356char WriteCoreDump ();
9357int
9358main ()
9359{
9360return WriteCoreDump ();
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext conftest$ac_exeext
9366if { (ac_try="$ac_link"
9367case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370esac
9371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_link") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest$ac_exeext &&
9382 $as_test_x conftest$ac_exeext; then
8da89711 9383 ac_cv_lib_coredumper_WriteCoreDump=yes
9384else
9385 echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_cv_lib_coredumper_WriteCoreDump=no
35305a49 9389fi
35305a49 9390
0bd0bef6 9391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8da89711 9392 conftest$ac_exeext conftest.$ac_ext
9393LIBS=$ac_check_lib_save_LIBS
35305a49 9394fi
8da89711 9395{ echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5
9396echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; }
9397if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then
9398 cat >>confdefs.h <<_ACEOF
9399#define HAVE_LIBCOREDUMPER 1
9400_ACEOF
9401
9402 LIBS="-lcoredumper $LIBS"
9403
35305a49 9404else
0bd0bef6 9405 { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5
9406echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For convenience, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; }
35305a49 9407fi
9408
9409
73d4cc91 9410withval=''
9411
9412# Check whether --with-ssl was given.
9413if test "${with_ssl+set}" = set; then
9414 withval=$with_ssl;
9415fi
9416
9417if test "x$withval" != "x"; then
9418 { echo "$as_me:$LINENO: result: Using include dir $withval to find openssl" >&5
9419echo "${ECHO_T}Using include dir $withval to find openssl" >&6; }
9420 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9421 LIBS="$LIBS -L$withval/lib"
9422else
9423 { echo "$as_me:$LINENO: result: Looking for openssl in system " >&5
9424echo "${ECHO_T}Looking for openssl in system " >&6; }
9425fi
9426
9427{ echo "$as_me:$LINENO: checking for BIO_new in -lssl" >&5
9428echo $ECHO_N "checking for BIO_new in -lssl... $ECHO_C" >&6; }
9429if test "${ac_cv_lib_ssl_BIO_new+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 ac_check_lib_save_LIBS=$LIBS
9433LIBS="-lssl $LIBS"
9434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h. */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440
9441/* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
9444#ifdef __cplusplus
9445extern "C"
9446#endif
9447char BIO_new ();
9448int
9449main ()
9450{
9451return BIO_new ();
9452 ;
9453 return 0;
9454}
9455_ACEOF
9456rm -f conftest.$ac_objext conftest$ac_exeext
9457if { (ac_try="$ac_link"
9458case "(($ac_try" in
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9461esac
9462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_link") 2>conftest.er1
9464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
9472 } && test -s conftest$ac_exeext &&
9473 $as_test_x conftest$ac_exeext; then
73d4cc91 9474 ac_cv_lib_ssl_BIO_new=yes
9475else
9476 echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
9479 ac_cv_lib_ssl_BIO_new=no
9480fi
9481
0bd0bef6 9482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73d4cc91 9483 conftest$ac_exeext conftest.$ac_ext
9484LIBS=$ac_check_lib_save_LIBS
9485fi
9486{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_BIO_new" >&5
9487echo "${ECHO_T}$ac_cv_lib_ssl_BIO_new" >&6; }
9488if test $ac_cv_lib_ssl_BIO_new = yes; then
9489
9490LIBS="-lssl $LIBS"
9491
9492for ac_header in openssl/bio.h
9493do
9494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500fi
9501ac_res=`eval echo '${'$as_ac_Header'}'`
9502 { echo "$as_me:$LINENO: result: $ac_res" >&5
9503echo "${ECHO_T}$ac_res" >&6; }
9504else
9505 # Is the header compilable?
9506{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9508cat >conftest.$ac_ext <<_ACEOF
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514$ac_includes_default
9515#include <$ac_header>
9516_ACEOF
9517rm -f conftest.$ac_objext
9518if { (ac_try="$ac_compile"
9519case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522esac
9523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_compile") 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest.$ac_objext; then
73d4cc91 9534 ac_header_compiler=yes
9535else
9536 echo "$as_me: failed program was:" >&5
9537sed 's/^/| /' conftest.$ac_ext >&5
9538
9539 ac_header_compiler=no
9540fi
9541
9542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544echo "${ECHO_T}$ac_header_compiler" >&6; }
9545
9546# Is the header present?
9547{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9549cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555#include <$ac_header>
9556_ACEOF
9557if { (ac_try="$ac_cpp conftest.$ac_ext"
9558case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9569 (exit $ac_status); } >/dev/null && {
9570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 }; then
73d4cc91 9573 ac_header_preproc=yes
9574else
9575 echo "$as_me: failed program was:" >&5
9576sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ac_header_preproc=no
9579fi
9580
9581rm -f conftest.err conftest.$ac_ext
9582{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9583echo "${ECHO_T}$ac_header_preproc" >&6; }
9584
9585# So? What about this header?
9586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9587 yes:no: )
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9591echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9592 ac_header_preproc=yes
9593 ;;
9594 no:yes:* )
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9600echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9602echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9606echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9607 ( cat <<\_ASBOX
9608## -------------------------------------------------- ##
9609## Report this to evilnet-devel@lists.sourceforge.net ##
9610## -------------------------------------------------- ##
9611_ASBOX
9612 ) | sed "s/^/$as_me: WARNING: /" >&2
9613 ;;
9614esac
9615{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 eval "$as_ac_Header=\$ac_header_preproc"
9621fi
9622ac_res=`eval echo '${'$as_ac_Header'}'`
9623 { echo "$as_me:$LINENO: result: $ac_res" >&5
9624echo "${ECHO_T}$ac_res" >&6; }
9625
9626fi
9627if test `eval echo '${'$as_ac_Header'}'` = yes; then
9628 cat >>confdefs.h <<_ACEOF
9629#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9630_ACEOF
9631
9632
9633cat >>confdefs.h <<\_ACEOF
9634#define WITH_SSL 1
9635_ACEOF
9636
9637ssl_message="LDAP library: enabled"
9638
9639else
9640
9641if test "x$withval" != "x"; then
9642 { { echo "$as_me:$LINENO: error: ssl headers not found" >&5
9643echo "$as_me: error: ssl headers not found" >&2;}
9644 { (exit 1); exit 1; }; }
9645fi
9646
9647fi
9648
9649done
9650
9651
9652else
9653
9654if test "x$withval" != "x"; then
9655 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9656echo "$as_me: error: libldap not found or not valid" >&2;}
9657 { (exit 1); exit 1; }; }
9658fi
9659
9660
9661fi
9662
9663{ echo "$as_me:$LINENO: result: $LIBS" >&5
9664echo "${ECHO_T}$LIBS" >&6; }
9665
9666
8da89711 9667withval=''
35305a49 9668
8da89711 9669# Check whether --with-ldap was given.
9670if test "${with_ldap+set}" = set; then
9671 withval=$with_ldap;
9672fi
9673
9674if test "x$withval" != "x"; then
9675 { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5
9676echo "${ECHO_T}Using include dir $withval to find libldap" >&6; }
9677 CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib"
9678 LIBS="$LIBS -L$withval/lib"
9679else
9680 { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5
9681echo "${ECHO_T}Looking for ldap in system " >&6; }
9682fi
9683
39edf54a 9684{ echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
9685echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6; }
9686if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
35305a49 9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 ac_check_lib_save_LIBS=$LIBS
8da89711 9690LIBS="-lldap $LIBS"
35305a49 9691cat >conftest.$ac_ext <<_ACEOF
9692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h. */
9697
a8b2ad8d 9698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
35305a49 9701#ifdef __cplusplus
9702extern "C"
9703#endif
39edf54a 9704char ldap_simple_bind_s ();
35305a49 9705int
9706main ()
9707{
39edf54a 9708return ldap_simple_bind_s ();
35305a49 9709 ;
9710 return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext conftest$ac_exeext
a8b2ad8d 9714if { (ac_try="$ac_link"
9715case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
35305a49 9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
39edf54a 9731 ac_cv_lib_ldap_ldap_simple_bind_s=yes
5b1166fd 9732else
35305a49 9733 echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
39edf54a 9736 ac_cv_lib_ldap_ldap_simple_bind_s=no
35305a49 9737fi
a8b2ad8d 9738
0bd0bef6 9739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35305a49 9740 conftest$ac_exeext conftest.$ac_ext
9741LIBS=$ac_check_lib_save_LIBS
5b1166fd 9742fi
39edf54a 9743{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
9744echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
9745if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
b3076f16 9746
39edf54a 9747LIBS="-lldap $LIBS"
b3076f16 9748
8da89711 9749for ac_header in ldap.h
9750do
9751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757fi
8da89711 9758ac_res=`eval echo '${'$as_ac_Header'}'`
9759 { echo "$as_me:$LINENO: result: $ac_res" >&5
9760echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 9761else
9762 # Is the header compilable?
8da89711 9763{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a8b2ad8d 9765cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
9771$ac_includes_default
8da89711 9772#include <$ac_header>
a8b2ad8d 9773_ACEOF
9774rm -f conftest.$ac_objext
9775if { (ac_try="$ac_compile"
9776case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779esac
9780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest.$ac_objext; then
a8b2ad8d 9791 ac_header_compiler=yes
9792else
9793 echo "$as_me: failed program was:" >&5
9794sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9795
a8b2ad8d 9796 ac_header_compiler=no
9797fi
b3076f16 9798
a8b2ad8d 9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9801echo "${ECHO_T}$ac_header_compiler" >&6; }
b3076f16 9802
a8b2ad8d 9803# Is the header present?
8da89711 9804{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a8b2ad8d 9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
8da89711 9812#include <$ac_header>
a8b2ad8d 9813_ACEOF
9814if { (ac_try="$ac_cpp conftest.$ac_ext"
9815case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818esac
9819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0bd0bef6 9826 (exit $ac_status); } >/dev/null && {
9827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9828 test ! -s conftest.err
9829 }; then
a8b2ad8d 9830 ac_header_preproc=yes
9831else
9832 echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
b3076f16 9834
a8b2ad8d 9835 ac_header_preproc=no
9836fi
ec311f39 9837
a8b2ad8d 9838rm -f conftest.err conftest.$ac_ext
9839{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9840echo "${ECHO_T}$ac_header_preproc" >&6; }
b3076f16 9841
a8b2ad8d 9842# So? What about this header?
9843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9844 yes:no: )
8da89711 9845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
a8b2ad8d 9849 ac_header_preproc=yes
9850 ;;
9851 no:yes:* )
8da89711 9852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a8b2ad8d 9864 ( cat <<\_ASBOX
9865## -------------------------------------------------- ##
9866## Report this to evilnet-devel@lists.sourceforge.net ##
9867## -------------------------------------------------- ##
9868_ASBOX
9869 ) | sed "s/^/$as_me: WARNING: /" >&2
9870 ;;
9871esac
8da89711 9872{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a8b2ad8d 9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
8da89711 9877 eval "$as_ac_Header=\$ac_header_preproc"
a8b2ad8d 9878fi
8da89711 9879ac_res=`eval echo '${'$as_ac_Header'}'`
9880 { echo "$as_me:$LINENO: result: $ac_res" >&5
9881echo "${ECHO_T}$ac_res" >&6; }
a8b2ad8d 9882
9883fi
8da89711 9884if test `eval echo '${'$as_ac_Header'}'` = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9887_ACEOF
a8b2ad8d 9888
9889
8da89711 9890cat >>confdefs.h <<\_ACEOF
9891#define WITH_LDAP 1
a8b2ad8d 9892_ACEOF
a8b2ad8d 9893
8da89711 9894ldap_message="LDAP library: enabled"
9895
a8b2ad8d 9896else
a8b2ad8d 9897
db9a9a8a 9898if test "x$withval" != "x"; then
8da89711 9899 { { echo "$as_me:$LINENO: error: ldap.h not found" >&5
9900echo "$as_me: error: ldap.h not found" >&2;}
9901 { (exit 1); exit 1; }; }
a8b2ad8d 9902fi
9903
a8b2ad8d 9904fi
a8b2ad8d 9905
8da89711 9906done
9907
a8b2ad8d 9908
9909else
8da89711 9910
db9a9a8a 9911if test "x$withval" != "x"; then
8da89711 9912 { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5
9913echo "$as_me: error: libldap not found or not valid" >&2;}
9914 { (exit 1); exit 1; }; }
9915fi
9916
9917
a8b2ad8d 9918fi
9919
39edf54a 9920{ echo "$as_me:$LINENO: result: $LIBS" >&5
9921echo "${ECHO_T}$LIBS" >&6; }
a8b2ad8d 9922
9923
9924cat >>confdefs.h <<_ACEOF
9925#define CODENAME "${CODENAME}"
9926_ACEOF
9927
9928
9929
9930
9931
9932
9933ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
9934
9935cat >confcache <<\_ACEOF
9936# This file is a shell script that caches the results of configure
9937# tests run on this system so they can be shared between configure
9938# scripts and configure runs, see configure's option --config-cache.
9939# It is not useful on other systems. If it contains results you don't
9940# want to keep, you may remove or edit it.
9941#
b3076f16 9942# config.status only pays attention to the cache file if you give it
9943# the --recheck option to rerun configure.
9944#
9945# `ac_cv_env_foo' variables (set or unset) will be overridden when
9946# loading this file, other *unset* `ac_cv_foo' will be assigned the
9947# following values.
9948
9949_ACEOF
9950
9951# The following way of writing the cache mishandles newlines in values,
9952# but we know of no workaround that is simple, portable, and efficient.
a8b2ad8d 9953# So, we kill variables containing newlines.
b3076f16 9954# Ultrix sh set writes to stderr and can't be redirected directly,
9955# and sets the high bit in the cache file unless we assign to the vars.
a8b2ad8d 9956(
9957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9958 eval ac_val=\$$ac_var
9959 case $ac_val in #(
9960 *${as_nl}*)
9961 case $ac_var in #(
9962 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9963echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9964 esac
9965 case $ac_var in #(
9966 _ | IFS | as_nl) ;; #(
9967 *) $as_unset $ac_var ;;
9968 esac ;;
9969 esac
9970 done
9971
b3076f16 9972 (set) 2>&1 |
a8b2ad8d 9973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9974 *${as_nl}ac_space=\ *)
b3076f16 9975 # `set' does not quote correctly, so add quotes (double-quote
9976 # substitution turns \\\\ into \\, and sed turns \\ into \).
9977 sed -n \
9978 "s/'/'\\\\''/g;
9979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a8b2ad8d 9980 ;; #(
b3076f16 9981 *)
9982 # `set' quotes correctly as required by POSIX, so do not add quotes.
a8b2ad8d 9983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b3076f16 9984 ;;
a8b2ad8d 9985 esac |
9986 sort
9987) |
b3076f16 9988 sed '
a8b2ad8d 9989 /^ac_cv_env_/b end
b3076f16 9990 t clear
a8b2ad8d 9991 :clear
b3076f16 9992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9993 t end
a8b2ad8d 9994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9995 :end' >>confcache
9996if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9997 if test -w "$cache_file"; then
9998 test "x$cache_file" != "x/dev/null" &&
9999 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10000echo "$as_me: updating cache $cache_file" >&6;}
b3076f16 10001 cat confcache >$cache_file
10002 else
a8b2ad8d 10003 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10004echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b3076f16 10005 fi
10006fi
10007rm -f confcache
10008
10009test "x$prefix" = xNONE && prefix=$ac_default_prefix
10010# Let make expand exec_prefix.
10011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10012
b3076f16 10013DEFS=-DHAVE_CONFIG_H
10014
10015ac_libobjs=
10016ac_ltlibobjs=
10017for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10018 # 1. Remove the extension, and $U if already installed.
a8b2ad8d 10019 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10020 ac_i=`echo "$ac_i" | sed "$ac_script"`
10021 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10022 # will be set to the directory where LIBOBJS objects are built.
10023 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10024 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b3076f16 10025done
10026LIBOBJS=$ac_libobjs
10027
10028LTLIBOBJS=$ac_ltlibobjs
10029
10030
ec1a68c8 10031if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10032 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10033Usually this means the macro was only invoked conditionally." >&5
10034echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10035Usually this means the macro was only invoked conditionally." >&2;}
10036 { (exit 1); exit 1; }; }
10037fi
10038if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10039 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10040Usually this means the macro was only invoked conditionally." >&5
10041echo "$as_me: error: conditional \"AMDEP\" was never defined.
10042Usually this means the macro was only invoked conditionally." >&2;}
10043 { (exit 1); exit 1; }; }
10044fi
10045if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10046 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10047Usually this means the macro was only invoked conditionally." >&5
10048echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10049Usually this means the macro was only invoked conditionally." >&2;}
10050 { (exit 1); exit 1; }; }
10051fi
10052if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10053 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10054Usually this means the macro was only invoked conditionally." >&5
10055echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10056Usually this means the macro was only invoked conditionally." >&2;}
10057 { (exit 1); exit 1; }; }
10058fi
b3076f16 10059
10060: ${CONFIG_STATUS=./config.status}
10061ac_clean_files_save=$ac_clean_files
10062ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10063{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10064echo "$as_me: creating $CONFIG_STATUS" >&6;}
10065cat >$CONFIG_STATUS <<_ACEOF
10066#! $SHELL
10067# Generated by $as_me.
10068# Run this file to recreate the current configuration.
10069# Compiler output produced by configure, useful for debugging
10070# configure, is in config.log if it exists.
10071
10072debug=false
10073ac_cs_recheck=false
10074ac_cs_silent=false
10075SHELL=\${CONFIG_SHELL-$SHELL}
10076_ACEOF
10077
10078cat >>$CONFIG_STATUS <<\_ACEOF
10079## --------------------- ##
10080## M4sh Initialization. ##
10081## --------------------- ##
10082
0bd0bef6 10083# Be more Bourne compatible
10084DUALCASE=1; export DUALCASE # for MKS sh
b3076f16 10085if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10086 emulate sh
10087 NULLCMD=:
10088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10089 # is contrary to our usage. Disable this feature.
10090 alias -g '${1+"$@"}'='"$@"'
a8b2ad8d 10091 setopt NO_GLOB_SUBST
10092else
0bd0bef6 10093 case `(set -o) 2>/dev/null` in
10094 *posix*) set -o posix ;;
10095esac
10096
b3076f16 10097fi
0bd0bef6 10098
10099
b3076f16 10100
a8b2ad8d 10101
10102# PATH needs CR
10103# Avoid depending upon Character Ranges.
10104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10107as_cr_digits='0123456789'
10108as_cr_alnum=$as_cr_Letters$as_cr_digits
10109
10110# The user is always right.
10111if test "${PATH_SEPARATOR+set}" != set; then
10112 echo "#! /bin/sh" >conf$$.sh
10113 echo "exit 0" >>conf$$.sh
10114 chmod +x conf$$.sh
10115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10116 PATH_SEPARATOR=';'
10117 else
10118 PATH_SEPARATOR=:
10119 fi
10120 rm -f conf$$.sh
10121fi
10122
b3076f16 10123# Support unset when possible.
10124if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10125 as_unset=unset
10126else
10127 as_unset=false
10128fi
10129
10130
a8b2ad8d 10131# IFS
10132# We need space, tab and new line, in precisely that order. Quoting is
10133# there to prevent editors from complaining about space-tab.
10134# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10135# splitting by setting IFS to empty value.)
10136as_nl='
10137'
10138IFS=" "" $as_nl"
10139
10140# Find who we are. Look in the path if we contain no directory separator.
10141case $0 in
10142 *[\\/]* ) as_myself=$0 ;;
10143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10149done
10150IFS=$as_save_IFS
10151
10152 ;;
10153esac
10154# We did not find ourselves, most probably we were run as `sh COMMAND'
10155# in which case we are not to be found in the path.
10156if test "x$as_myself" = x; then
10157 as_myself=$0
10158fi
10159if test ! -f "$as_myself"; then
10160 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10161 { (exit 1); exit 1; }
10162fi
10163
b3076f16 10164# Work around bugs in pre-3.0 UWIN ksh.
a8b2ad8d 10165for as_var in ENV MAIL MAILPATH
10166do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10167done
b3076f16 10168PS1='$ '
10169PS2='> '
10170PS4='+ '
10171
10172# NLS nuisances.
10173for as_var in \
10174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10176 LC_TELEPHONE LC_TIME
10177do
10178 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10179 eval $as_var=C; export $as_var
10180 else
a8b2ad8d 10181 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b3076f16 10182 fi
10183done
10184
10185# Required to use basename.
a8b2ad8d 10186if expr a : '\(a\)' >/dev/null 2>&1 &&
10187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10188 as_expr=expr
10189else
10190 as_expr=false
10191fi
10192
a8b2ad8d 10193if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b3076f16 10194 as_basename=basename
10195else
10196 as_basename=false
10197fi
10198
10199
10200# Name of the executable.
a8b2ad8d 10201as_me=`$as_basename -- "$0" ||
b3076f16 10202$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10203 X"$0" : 'X\(//\)$' \| \
a8b2ad8d 10204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10205echo X/"$0" |
a8b2ad8d 10206 sed '/^.*\/\([^/][^/]*\)\/*$/{
10207 s//\1/
10208 q
10209 }
10210 /^X\/\(\/\/\)$/{
10211 s//\1/
10212 q
10213 }
10214 /^X\/\(\/\).*/{
10215 s//\1/
10216 q
10217 }
10218 s/.*/./; q'`
b3076f16 10219
a8b2ad8d 10220# CDPATH.
10221$as_unset CDPATH
b3076f16 10222
10223
b3076f16 10224
b3076f16 10225 as_lineno_1=$LINENO
10226 as_lineno_2=$LINENO
b3076f16 10227 test "x$as_lineno_1" != "x$as_lineno_2" &&
a8b2ad8d 10228 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b3076f16 10229
10230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10231 # uniformly replaced by the line number. The first 'sed' inserts a
a8b2ad8d 10232 # line-number line after each line using $LINENO; the second 'sed'
10233 # does the real work. The second script uses 'N' to pair each
10234 # line-number line with the line containing $LINENO, and appends
10235 # trailing '-' during substitution so that $LINENO is not a special
10236 # case at line end.
b3076f16 10237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
a8b2ad8d 10238 # scripts with optimization help from Paolo Bonzini. Blame Lee
10239 # E. McMahon (1931-1989) for sed's syntax. :-)
10240 sed -n '
10241 p
10242 /[$]LINENO/=
10243 ' <$as_myself |
b3076f16 10244 sed '
a8b2ad8d 10245 s/[$]LINENO.*/&-/
10246 t lineno
10247 b
10248 :lineno
b3076f16 10249 N
a8b2ad8d 10250 :loop
10251 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b3076f16 10252 t loop
a8b2ad8d 10253 s/-\n.*//
b3076f16 10254 ' >$as_me.lineno &&
a8b2ad8d 10255 chmod +x "$as_me.lineno" ||
10256 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b3076f16 10257 { (exit 1); exit 1; }; }
10258
10259 # Don't try to exec as it changes $[0], causing all sort of problems
10260 # (the dirname of $[0] is not the place where we might find the
a8b2ad8d 10261 # original and so on. Autoconf is especially sensitive to this).
10262 . "./$as_me.lineno"
b3076f16 10263 # Exit status is that of the last command.
10264 exit
10265}
10266
10267
a8b2ad8d 10268if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10269 as_dirname=dirname
10270else
10271 as_dirname=false
10272fi
10273
10274ECHO_C= ECHO_N= ECHO_T=
10275case `echo -n x` in
10276-n*)
10277 case `echo 'x\c'` in
10278 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10279 *) ECHO_C='\c';;
10280 esac;;
10281*)
10282 ECHO_N='-n';;
b3076f16 10283esac
10284
a8b2ad8d 10285if expr a : '\(a\)' >/dev/null 2>&1 &&
10286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b3076f16 10287 as_expr=expr
10288else
10289 as_expr=false
10290fi
10291
10292rm -f conf$$ conf$$.exe conf$$.file
a8b2ad8d 10293if test -d conf$$.dir; then
10294 rm -f conf$$.dir/conf$$.file
10295else
10296 rm -f conf$$.dir
10297 mkdir conf$$.dir
10298fi
b3076f16 10299echo >conf$$.file
10300if ln -s conf$$.file conf$$ 2>/dev/null; then
a8b2ad8d 10301 as_ln_s='ln -s'
10302 # ... but there are two gotchas:
10303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10305 # In both cases, we have to default to `cp -p'.
10306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b3076f16 10307 as_ln_s='cp -p'
b3076f16 10308elif ln conf$$.file conf$$ 2>/dev/null; then
10309 as_ln_s=ln
10310else
10311 as_ln_s='cp -p'
10312fi
a8b2ad8d 10313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10314rmdir conf$$.dir 2>/dev/null
b3076f16 10315
10316if mkdir -p . 2>/dev/null; then
10317 as_mkdir_p=:
10318else
10319 test -d ./-p && rmdir ./-p
10320 as_mkdir_p=false
10321fi
10322
0bd0bef6 10323if test -x / >/dev/null 2>&1; then
10324 as_test_x='test -x'
a8b2ad8d 10325else
0bd0bef6 10326 if ls -dL / >/dev/null 2>&1; then
10327 as_ls_L_option=L
10328 else
10329 as_ls_L_option=
10330 fi
10331 as_test_x='
10332 eval sh -c '\''
10333 if test -d "$1"; then
10334 test -d "$1/.";
10335 else
10336 case $1 in
10337 -*)set "./$1";;
10338 esac;
10339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10340 ???[sx]*):;;*)false;;esac;fi
10341 '\'' sh
10342 '
a8b2ad8d 10343fi
0bd0bef6 10344as_executable_p=$as_test_x
b3076f16 10345
10346# Sed expression to map a string onto a valid CPP name.
10347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10348
10349# Sed expression to map a string onto a valid variable name.
10350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10351
10352
b3076f16 10353exec 6>&1
10354
a8b2ad8d 10355# Save the log message, to keep $[0] and so on meaningful, and to
b3076f16 10356# report actual input values of CONFIG_FILES etc. instead of their
a8b2ad8d 10357# values after options handling.
10358ac_log="
90746c83 10359This file was extended by X3 $as_me 1.6, which was
0bd0bef6 10360generated by GNU Autoconf 2.61. Invocation command line was
b3076f16 10361
10362 CONFIG_FILES = $CONFIG_FILES
10363 CONFIG_HEADERS = $CONFIG_HEADERS
10364 CONFIG_LINKS = $CONFIG_LINKS
10365 CONFIG_COMMANDS = $CONFIG_COMMANDS
10366 $ $0 $@
10367
a8b2ad8d 10368on `(hostname || uname -n) 2>/dev/null | sed 1q`
10369"
10370
b3076f16 10371_ACEOF
10372
a8b2ad8d 10373cat >>$CONFIG_STATUS <<_ACEOF
b3076f16 10374# Files that config.status was made for.
a8b2ad8d 10375config_files="$ac_config_files"
10376config_headers="$ac_config_headers"
10377config_commands="$ac_config_commands"
b3076f16 10378
a8b2ad8d 10379_ACEOF
b3076f16 10380
10381cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 10382ac_cs_usage="\
10383\`$as_me' instantiates files from templates according to the
10384current configuration.
10385
10386Usage: $0 [OPTIONS] [FILE]...
10387
10388 -h, --help print this help, then exit
0bd0bef6 10389 -V, --version print version number and configuration settings, then exit
b3076f16 10390 -q, --quiet do not print progress messages
10391 -d, --debug don't remove temporary files
10392 --recheck update $as_me by reconfiguring in the same conditions
10393 --file=FILE[:TEMPLATE]
10394 instantiate the configuration file FILE
10395 --header=FILE[:TEMPLATE]
10396 instantiate the configuration header FILE
10397
10398Configuration files:
10399$config_files
10400
10401Configuration headers:
10402$config_headers
10403
ec1a68c8 10404Configuration commands:
10405$config_commands
10406
b3076f16 10407Report bugs to <bug-autoconf@gnu.org>."
b3076f16 10408
a8b2ad8d 10409_ACEOF
b3076f16 10410cat >>$CONFIG_STATUS <<_ACEOF
10411ac_cs_version="\\
90746c83 10412X3 config.status 1.6
0bd0bef6 10413configured by $0, generated by GNU Autoconf 2.61,
a8b2ad8d 10414 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b3076f16 10415
a8b2ad8d 10416Copyright (C) 2006 Free Software Foundation, Inc.
b3076f16 10417This config.status script is free software; the Free Software Foundation
10418gives unlimited permission to copy, distribute and modify it."
a8b2ad8d 10419
10420ac_pwd='$ac_pwd'
10421srcdir='$srcdir'
10422INSTALL='$INSTALL'
b3076f16 10423_ACEOF
10424
10425cat >>$CONFIG_STATUS <<\_ACEOF
10426# If no file are specified by the user, then we need to provide default
10427# value. By we need to know if files were specified by the user.
10428ac_need_defaults=:
10429while test $# != 0
10430do
10431 case $1 in
10432 --*=*)
a8b2ad8d 10433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10434 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b3076f16 10435 ac_shift=:
10436 ;;
a8b2ad8d 10437 *)
b3076f16 10438 ac_option=$1
10439 ac_optarg=$2
10440 ac_shift=shift
10441 ;;
b3076f16 10442 esac
10443
10444 case $ac_option in
10445 # Handling of the options.
b3076f16 10446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10447 ac_cs_recheck=: ;;
a8b2ad8d 10448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10449 echo "$ac_cs_version"; exit ;;
10450 --debug | --debu | --deb | --de | --d | -d )
b3076f16 10451 debug=: ;;
10452 --file | --fil | --fi | --f )
10453 $ac_shift
10454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10455 ac_need_defaults=false;;
10456 --header | --heade | --head | --hea )
10457 $ac_shift
10458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10459 ac_need_defaults=false;;
a8b2ad8d 10460 --he | --h)
10461 # Conflict between --help and --header
10462 { echo "$as_me: error: ambiguous option: $1
10463Try \`$0 --help' for more information." >&2
10464 { (exit 1); exit 1; }; };;
10465 --help | --hel | -h )
10466 echo "$ac_cs_usage"; exit ;;
b3076f16 10467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10468 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10469 ac_cs_silent=: ;;
10470
10471 # This is an error.
a8b2ad8d 10472 -*) { echo "$as_me: error: unrecognized option: $1
10473Try \`$0 --help' for more information." >&2
b3076f16 10474 { (exit 1); exit 1; }; } ;;
10475
a8b2ad8d 10476 *) ac_config_targets="$ac_config_targets $1"
10477 ac_need_defaults=false ;;
b3076f16 10478
10479 esac
10480 shift
10481done
10482
10483ac_configure_extra_args=
10484
10485if $ac_cs_silent; then
10486 exec 6>/dev/null
10487 ac_configure_extra_args="$ac_configure_extra_args --silent"
10488fi
10489
10490_ACEOF
10491cat >>$CONFIG_STATUS <<_ACEOF
10492if \$ac_cs_recheck; then
a8b2ad8d 10493 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10494 CONFIG_SHELL=$SHELL
10495 export CONFIG_SHELL
10496 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b3076f16 10497fi
10498
10499_ACEOF
a8b2ad8d 10500cat >>$CONFIG_STATUS <<\_ACEOF
10501exec 5>>config.log
10502{
10503 echo
10504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10505## Running $as_me. ##
10506_ASBOX
10507 echo "$ac_log"
10508} >&5
b3076f16 10509
a8b2ad8d 10510_ACEOF
ec1a68c8 10511cat >>$CONFIG_STATUS <<_ACEOF
10512#
a8b2ad8d 10513# INIT-COMMANDS
ec1a68c8 10514#
ec1a68c8 10515AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10516
10517_ACEOF
b3076f16 10518
b3076f16 10519cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 10520
10521# Handling of arguments.
b3076f16 10522for ac_config_target in $ac_config_targets
10523do
a8b2ad8d 10524 case $ac_config_target in
10525 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10527 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10528 "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
10529 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10530
b3076f16 10531 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10532echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10533 { (exit 1); exit 1; }; };;
10534 esac
10535done
10536
a8b2ad8d 10537
b3076f16 10538# If the user did not use the arguments to specify the items to instantiate,
10539# then the envvar interface is used. Set only those that are not.
10540# We use the long form for the default assignment because of an extremely
10541# bizarre bug on SunOS 4.1.3.
10542if $ac_need_defaults; then
10543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ec1a68c8 10545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b3076f16 10546fi
10547
10548# Have a temporary directory for convenience. Make it in the build tree
a8b2ad8d 10549# simply because there is no reason against having it here, and in addition,
b3076f16 10550# creating and moving files from /tmp can sometimes cause problems.
a8b2ad8d 10551# Hook for its removal unless debugging.
10552# Note that there is a small window in which the directory will not be cleaned:
10553# after its creation but before its name has been assigned to `$tmp'.
b3076f16 10554$debug ||
10555{
a8b2ad8d 10556 tmp=
10557 trap 'exit_status=$?
10558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10559' 0
b3076f16 10560 trap '{ (exit 1); exit 1; }' 1 2 13 15
10561}
b3076f16 10562# Create a (secure) tmp directory for tmp files.
10563
10564{
a8b2ad8d 10565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b3076f16 10566 test -n "$tmp" && test -d "$tmp"
10567} ||
10568{
a8b2ad8d 10569 tmp=./conf$$-$RANDOM
10570 (umask 077 && mkdir "$tmp")
b3076f16 10571} ||
10572{
10573 echo "$me: cannot create a temporary directory in ." >&2
10574 { (exit 1); exit 1; }
10575}
10576
b3076f16 10577#
a8b2ad8d 10578# Set up the sed scripts for CONFIG_FILES section.
b3076f16 10579#
10580
10581# No need to generate the scripts if there are no CONFIG_FILES.
10582# This happens for instance when ./config.status config.h
a8b2ad8d 10583if test -n "$CONFIG_FILES"; then
10584
10585_ACEOF
10586
10587
10588
10589ac_delim='%!_!# '
10590for ac_last_try in false false false false false :; do
10591 cat >conf$$subs.sed <<_ACEOF
10592SHELL!$SHELL$ac_delim
10593PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10594PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10595PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10596PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10597PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10598PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10599exec_prefix!$exec_prefix$ac_delim
10600prefix!$prefix$ac_delim
10601program_transform_name!$program_transform_name$ac_delim
10602bindir!$bindir$ac_delim
10603sbindir!$sbindir$ac_delim
10604libexecdir!$libexecdir$ac_delim
10605datarootdir!$datarootdir$ac_delim
10606datadir!$datadir$ac_delim
10607sysconfdir!$sysconfdir$ac_delim
10608sharedstatedir!$sharedstatedir$ac_delim
10609localstatedir!$localstatedir$ac_delim
10610includedir!$includedir$ac_delim
10611oldincludedir!$oldincludedir$ac_delim
10612docdir!$docdir$ac_delim
10613infodir!$infodir$ac_delim
10614htmldir!$htmldir$ac_delim
10615dvidir!$dvidir$ac_delim
10616pdfdir!$pdfdir$ac_delim
10617psdir!$psdir$ac_delim
10618libdir!$libdir$ac_delim
10619localedir!$localedir$ac_delim
10620mandir!$mandir$ac_delim
10621DEFS!$DEFS$ac_delim
10622ECHO_C!$ECHO_C$ac_delim
10623ECHO_N!$ECHO_N$ac_delim
10624ECHO_T!$ECHO_T$ac_delim
10625LIBS!$LIBS$ac_delim
10626build_alias!$build_alias$ac_delim
10627host_alias!$host_alias$ac_delim
10628target_alias!$target_alias$ac_delim
10629build!$build$ac_delim
10630build_cpu!$build_cpu$ac_delim
10631build_vendor!$build_vendor$ac_delim
10632build_os!$build_os$ac_delim
10633host!$host$ac_delim
10634host_cpu!$host_cpu$ac_delim
10635host_vendor!$host_vendor$ac_delim
10636host_os!$host_os$ac_delim
10637target!$target$ac_delim
10638target_cpu!$target_cpu$ac_delim
10639target_vendor!$target_vendor$ac_delim
10640target_os!$target_os$ac_delim
10641INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10642INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10643INSTALL_DATA!$INSTALL_DATA$ac_delim
10644CYGPATH_W!$CYGPATH_W$ac_delim
10645PACKAGE!$PACKAGE$ac_delim
10646VERSION!$VERSION$ac_delim
10647ACLOCAL!$ACLOCAL$ac_delim
10648AUTOCONF!$AUTOCONF$ac_delim
10649AUTOMAKE!$AUTOMAKE$ac_delim
10650AUTOHEADER!$AUTOHEADER$ac_delim
10651MAKEINFO!$MAKEINFO$ac_delim
10652install_sh!$install_sh$ac_delim
10653STRIP!$STRIP$ac_delim
10654INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10655mkdir_p!$mkdir_p$ac_delim
10656AWK!$AWK$ac_delim
10657SET_MAKE!$SET_MAKE$ac_delim
10658am__leading_dot!$am__leading_dot$ac_delim
10659AMTAR!$AMTAR$ac_delim
10660am__tar!$am__tar$ac_delim
10661am__untar!$am__untar$ac_delim
10662MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10663MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10664MAINT!$MAINT$ac_delim
10665CC!$CC$ac_delim
10666CFLAGS!$CFLAGS$ac_delim
10667LDFLAGS!$LDFLAGS$ac_delim
10668CPPFLAGS!$CPPFLAGS$ac_delim
10669ac_ct_CC!$ac_ct_CC$ac_delim
10670EXEEXT!$EXEEXT$ac_delim
10671OBJEXT!$OBJEXT$ac_delim
10672DEPDIR!$DEPDIR$ac_delim
10673am__include!$am__include$ac_delim
10674am__quote!$am__quote$ac_delim
10675AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10676AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10677AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10678CCDEPMODE!$CCDEPMODE$ac_delim
10679am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10680am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10681RANLIB!$RANLIB$ac_delim
0f6fe38c 10682LN_S!$LN_S$ac_delim
10683CPP!$CPP$ac_delim
a8b2ad8d 10684GREP!$GREP$ac_delim
10685EGREP!$EGREP$ac_delim
0f6fe38c 10686MAKER!$MAKER$ac_delim
10687ALLOCA!$ALLOCA$ac_delim
10688MODULE_OBJS!$MODULE_OBJS$ac_delim
a8b2ad8d 10689_ACEOF
10690
10691 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10692 break
10693 elif $ac_last_try; then
10694 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10695echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10696 { (exit 1); exit 1; }; }
10697 else
10698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b3076f16 10699 fi
a8b2ad8d 10700done
b3076f16 10701
a8b2ad8d 10702ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10703if test -n "$ac_eof"; then
10704 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10705 ac_eof=`expr $ac_eof + 1`
10706fi
10707
10708cat >>$CONFIG_STATUS <<_ACEOF
10709cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10710/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b3076f16 10711_ACEOF
a8b2ad8d 10712sed '
10713s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10714s/^/s,@/; s/!/@,|#_!!_#|/
10715:n
10716t n
10717s/'"$ac_delim"'$/,g/; t
10718s/$/\\/; p
10719N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10720' >>$CONFIG_STATUS <conf$$subs.sed
10721rm -f conf$$subs.sed
10722cat >>$CONFIG_STATUS <<_ACEOF
10723CEOF$ac_eof
10724_ACEOF
10725
10726
10727ac_delim='%!_!# '
10728for ac_last_try in false false false false false :; do
10729 cat >conf$$subs.sed <<_ACEOF
10730MY_SUBDIRS!$MY_SUBDIRS$ac_delim
10731RX_INCLUDES!$RX_INCLUDES$ac_delim
10732RX_LIBS!$RX_LIBS$ac_delim
10733TRACK!$TRACK$ac_delim
10734LIBOBJS!$LIBOBJS$ac_delim
10735LTLIBOBJS!$LTLIBOBJS$ac_delim
10736_ACEOF
10737
0f6fe38c 10738 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
a8b2ad8d 10739 break
10740 elif $ac_last_try; then
10741 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10742echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10743 { (exit 1); exit 1; }; }
10744 else
10745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10746 fi
10747done
10748
10749ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10750if test -n "$ac_eof"; then
10751 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10752 ac_eof=`expr $ac_eof + 1`
10753fi
10754
10755cat >>$CONFIG_STATUS <<_ACEOF
10756cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10757/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10758_ACEOF
10759sed '
10760s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10761s/^/s,@/; s/!/@,|#_!!_#|/
10762:n
10763t n
10764s/'"$ac_delim"'$/,g/; t
10765s/$/\\/; p
10766N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10767' >>$CONFIG_STATUS <conf$$subs.sed
10768rm -f conf$$subs.sed
10769cat >>$CONFIG_STATUS <<_ACEOF
10770:end
10771s/|#_!!_#|//g
10772CEOF$ac_eof
10773_ACEOF
10774
10775
10776# VPATH may cause trouble with some makes, so we remove $(srcdir),
10777# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10778# trailing colons and then remove the whole line if VPATH becomes empty
10779# (actually we leave an empty line to preserve line numbers).
10780if test "x$srcdir" = x.; then
10781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10782s/:*\$(srcdir):*/:/
10783s/:*\${srcdir}:*/:/
10784s/:*@srcdir@:*/:/
10785s/^\([^=]*=[ ]*\):*/\1/
10786s/:*$//
10787s/^[^=]*=[ ]*$//
10788}'
10789fi
10790
b3076f16 10791cat >>$CONFIG_STATUS <<\_ACEOF
a8b2ad8d 10792fi # test -n "$CONFIG_FILES"
10793
10794
10795for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10796do
10797 case $ac_tag in
10798 :[FHLC]) ac_mode=$ac_tag; continue;;
10799 esac
10800 case $ac_mode$ac_tag in
10801 :[FHL]*:*);;
10802 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10803echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10804 { (exit 1); exit 1; }; };;
10805 :[FH]-) ac_tag=-:-;;
10806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10807 esac
10808 ac_save_IFS=$IFS
10809 IFS=:
10810 set x $ac_tag
10811 IFS=$ac_save_IFS
10812 shift
10813 ac_file=$1
10814 shift
10815
10816 case $ac_mode in
10817 :L) ac_source=$1;;
10818 :[FH])
10819 ac_file_inputs=
10820 for ac_f
10821 do
10822 case $ac_f in
10823 -) ac_f="$tmp/stdin";;
10824 *) # Look for the file first in the build tree, then in the source tree
10825 # (if the path is not absolute). The absolute path cannot be DOS-style,
10826 # because $ac_f cannot contain `:'.
10827 test -f "$ac_f" ||
10828 case $ac_f in
10829 [\\/$]*) false;;
10830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10831 esac ||
10832 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10833echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10834 { (exit 1); exit 1; }; };;
10835 esac
10836 ac_file_inputs="$ac_file_inputs $ac_f"
10837 done
10838
10839 # Let's still pretend it is `configure' which instantiates (i.e., don't
10840 # use $as_me), people would be surprised to read:
10841 # /* config.h. Generated by config.status. */
10842 configure_input="Generated from "`IFS=:
10843 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10844 if test x"$ac_file" != x-; then
10845 configure_input="$ac_file. $configure_input"
10846 { echo "$as_me:$LINENO: creating $ac_file" >&5
10847echo "$as_me: creating $ac_file" >&6;}
10848 fi
10849
10850 case $ac_tag in
10851 *:-:* | *:-) cat >"$tmp/stdin";;
10852 esac
10853 ;;
b3076f16 10854 esac
10855
a8b2ad8d 10856 ac_dir=`$as_dirname -- "$ac_file" ||
b3076f16 10857$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10858 X"$ac_file" : 'X\(//\)[^/]' \| \
10859 X"$ac_file" : 'X\(//\)$' \| \
a8b2ad8d 10860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10861echo X"$ac_file" |
a8b2ad8d 10862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10863 s//\1/
10864 q
10865 }
10866 /^X\(\/\/\)[^/].*/{
10867 s//\1/
10868 q
10869 }
10870 /^X\(\/\/\)$/{
10871 s//\1/
10872 q
10873 }
10874 /^X\(\/\).*/{
10875 s//\1/
10876 q
10877 }
10878 s/.*/./; q'`
10879 { as_dir="$ac_dir"
10880 case $as_dir in #(
10881 -*) as_dir=./$as_dir;;
10882 esac
10883 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
b3076f16 10884 as_dirs=
a8b2ad8d 10885 while :; do
10886 case $as_dir in #(
10887 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10888 *) as_qdir=$as_dir;;
10889 esac
10890 as_dirs="'$as_qdir' $as_dirs"
10891 as_dir=`$as_dirname -- "$as_dir" ||
b3076f16 10892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10893 X"$as_dir" : 'X\(//\)[^/]' \| \
10894 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 10895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
b3076f16 10896echo X"$as_dir" |
a8b2ad8d 10897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10898 s//\1/
10899 q
10900 }
10901 /^X\(\/\/\)[^/].*/{
10902 s//\1/
10903 q
10904 }
10905 /^X\(\/\/\)$/{
10906 s//\1/
10907 q
10908 }
10909 /^X\(\/\).*/{
10910 s//\1/
10911 q
10912 }
10913 s/.*/./; q'`
10914 test -d "$as_dir" && break
b3076f16 10915 done
a8b2ad8d 10916 test -z "$as_dirs" || eval "mkdir $as_dirs"
10917 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10918echo "$as_me: error: cannot create directory $as_dir" >&2;}
b3076f16 10919 { (exit 1); exit 1; }; }; }
b3076f16 10920 ac_builddir=.
10921
a8b2ad8d 10922case "$ac_dir" in
10923.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10924*)
b3076f16 10925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
a8b2ad8d 10926 # A ".." for each directory in $ac_dir_suffix.
10927 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10928 case $ac_top_builddir_sub in
10929 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10930 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10931 esac ;;
10932esac
10933ac_abs_top_builddir=$ac_pwd
10934ac_abs_builddir=$ac_pwd$ac_dir_suffix
10935# for backward compatibility:
10936ac_top_builddir=$ac_top_build_prefix
b3076f16 10937
10938case $srcdir in
a8b2ad8d 10939 .) # We are building in place.
b3076f16 10940 ac_srcdir=.
a8b2ad8d 10941 ac_top_srcdir=$ac_top_builddir_sub
10942 ac_abs_top_srcdir=$ac_pwd ;;
10943 [\\/]* | ?:[\\/]* ) # Absolute name.
b3076f16 10944 ac_srcdir=$srcdir$ac_dir_suffix;
a8b2ad8d 10945 ac_top_srcdir=$srcdir
10946 ac_abs_top_srcdir=$srcdir ;;
10947 *) # Relative name.
10948 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10949 ac_top_srcdir=$ac_top_build_prefix$srcdir
10950 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b3076f16 10951esac
a8b2ad8d 10952ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b3076f16 10953
b3076f16 10954
a8b2ad8d 10955 case $ac_mode in
10956 :F)
10957 #
10958 # CONFIG_FILE
10959 #
b3076f16 10960
10961 case $INSTALL in
10962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a8b2ad8d 10963 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
b3076f16 10964 esac
a8b2ad8d 10965_ACEOF
b3076f16 10966
a8b2ad8d 10967cat >>$CONFIG_STATUS <<\_ACEOF
10968# If the template does not know about datarootdir, expand it.
10969# FIXME: This hack should be removed a few years after 2.60.
10970ac_datarootdir_hack=; ac_datarootdir_seen=
b8cb2a14 10971
a8b2ad8d 10972case `sed -n '/datarootdir/ {
10973 p
10974 q
10975}
10976/@datadir@/p
10977/@docdir@/p
10978/@infodir@/p
10979/@localedir@/p
10980/@mandir@/p
10981' $ac_file_inputs` in
10982*datarootdir*) ac_datarootdir_seen=yes;;
10983*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10984 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10985echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10986_ACEOF
10987cat >>$CONFIG_STATUS <<_ACEOF
10988 ac_datarootdir_hack='
10989 s&@datadir@&$datadir&g
10990 s&@docdir@&$docdir&g
10991 s&@infodir@&$infodir&g
10992 s&@localedir@&$localedir&g
10993 s&@mandir@&$mandir&g
10994 s&\\\${datarootdir}&$datarootdir&g' ;;
10995esac
b3076f16 10996_ACEOF
a8b2ad8d 10997
10998# Neutralize VPATH when `$srcdir' = `.'.
10999# Shell code in configure.ac might set extrasub.
11000# FIXME: do we really want to maintain this feature?
b3076f16 11001cat >>$CONFIG_STATUS <<_ACEOF
11002 sed "$ac_vpsub
11003$extrasub
11004_ACEOF
11005cat >>$CONFIG_STATUS <<\_ACEOF
11006:t
11007/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
a8b2ad8d 11008s&@configure_input@&$configure_input&;t t
11009s&@top_builddir@&$ac_top_builddir_sub&;t t
11010s&@srcdir@&$ac_srcdir&;t t
11011s&@abs_srcdir@&$ac_abs_srcdir&;t t
11012s&@top_srcdir@&$ac_top_srcdir&;t t
11013s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11014s&@builddir@&$ac_builddir&;t t
11015s&@abs_builddir@&$ac_abs_builddir&;t t
11016s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11017s&@INSTALL@&$ac_INSTALL&;t t
11018$ac_datarootdir_hack
11019" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11020
11021test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11024 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11025which seems to be undefined. Please make sure it is defined." >&5
11026echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11027which seems to be undefined. Please make sure it is defined." >&2;}
11028
11029 rm -f "$tmp/stdin"
b3076f16 11030 case $ac_file in
a8b2ad8d 11031 -) cat "$tmp/out"; rm -f "$tmp/out";;
11032 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
b3076f16 11033 esac
a8b2ad8d 11034 ;;
11035 :H)
11036 #
11037 # CONFIG_HEADER
11038 #
11039_ACEOF
11040
11041# Transform confdefs.h into a sed script `conftest.defines', that
11042# substitutes the proper values into config.h.in to produce config.h.
11043rm -f conftest.defines conftest.tail
11044# First, append a space to every undef/define line, to ease matching.
11045echo 's/$/ /' >conftest.defines
11046# Then, protect against being on the right side of a sed subst, or in
11047# an unquoted here document, in config.status. If some macros were
11048# called several times there might be several #defines for the same
11049# symbol, which is useless. But do not sort them, since the last
11050# AC_DEFINE must be honored.
11051ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11052# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11053# NAME is the cpp macro being defined, VALUE is the value it is being given.
11054# PARAMS is the parameter list in the macro definition--in most cases, it's
11055# just an empty string.
11056ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11057ac_dB='\\)[ (].*,\\1define\\2'
11058ac_dC=' '
11059ac_dD=' ,'
11060
11061uniq confdefs.h |
11062 sed -n '
11063 t rset
11064 :rset
11065 s/^[ ]*#[ ]*define[ ][ ]*//
11066 t ok
11067 d
11068 :ok
11069 s/[\\&,]/\\&/g
11070 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11071 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11072 ' >>conftest.defines
11073
11074# Remove the space that was appended to ease matching.
11075# Then replace #undef with comments. This is necessary, for
b3076f16 11076# example, in the case of _POSIX_SOURCE, which is predefined and required
11077# on some systems where configure will not decide to define it.
a8b2ad8d 11078# (The regexp can be short, since the line contains either #define or #undef.)
11079echo 's/ $//
11080s,^[ #]*u.*,/* & */,' >>conftest.defines
11081
11082# Break up conftest.defines:
11083ac_max_sed_lines=50
11084
11085# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11086# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11087# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11088# et cetera.
11089ac_in='$ac_file_inputs'
11090ac_out='"$tmp/out1"'
11091ac_nxt='"$tmp/out2"'
11092
11093while :
b3076f16 11094do
a8b2ad8d 11095 # Write a here document:
11096 cat >>$CONFIG_STATUS <<_ACEOF
11097 # First, check the format of the line:
11098 cat >"\$tmp/defines.sed" <<\\CEOF
11099/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11100/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11101b
11102:def
11103_ACEOF
11104 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
b3076f16 11105 echo 'CEOF
a8b2ad8d 11106 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11107 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11108 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11109 grep . conftest.tail >/dev/null || break
b3076f16 11110 rm -f conftest.defines
11111 mv conftest.tail conftest.defines
11112done
a8b2ad8d 11113rm -f conftest.defines conftest.tail
b3076f16 11114
a8b2ad8d 11115echo "ac_result=$ac_in" >>$CONFIG_STATUS
b3076f16 11116cat >>$CONFIG_STATUS <<\_ACEOF
b3076f16 11117 if test x"$ac_file" != x-; then
a8b2ad8d 11118 echo "/* $configure_input */" >"$tmp/config.h"
11119 cat "$ac_result" >>"$tmp/config.h"
11120 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
b3076f16 11121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11122echo "$as_me: $ac_file is unchanged" >&6;}
11123 else
b3076f16 11124 rm -f $ac_file
a8b2ad8d 11125 mv "$tmp/config.h" $ac_file
b3076f16 11126 fi
11127 else
a8b2ad8d 11128 echo "/* $configure_input */"
11129 cat "$ac_result"
b3076f16 11130 fi
a8b2ad8d 11131 rm -f "$tmp/out12"
ec1a68c8 11132# Compute $ac_file's index in $config_headers.
11133_am_stamp_count=1
11134for _am_header in $config_headers :; do
11135 case $_am_header in
11136 $ac_file | $ac_file:* )
11137 break ;;
11138 * )
11139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11140 esac
11141done
a8b2ad8d 11142echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
ec1a68c8 11143$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11144 X$ac_file : 'X\(//\)[^/]' \| \
11145 X$ac_file : 'X\(//\)$' \| \
a8b2ad8d 11146 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11147echo X$ac_file |
a8b2ad8d 11148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11149 s//\1/
11150 q
11151 }
11152 /^X\(\/\/\)[^/].*/{
11153 s//\1/
11154 q
11155 }
11156 /^X\(\/\/\)$/{
11157 s//\1/
11158 q
11159 }
11160 /^X\(\/\).*/{
11161 s//\1/
11162 q
11163 }
11164 s/.*/./; q'`/stamp-h$_am_stamp_count
11165 ;;
ec1a68c8 11166
a8b2ad8d 11167 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11168echo "$as_me: executing $ac_file commands" >&6;}
11169 ;;
11170 esac
ec1a68c8 11171
11172
a8b2ad8d 11173 case $ac_file$ac_mode in
11174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
ec1a68c8 11175 # Strip MF so we end up with the name of the file.
11176 mf=`echo "$mf" | sed -e 's/:.*$//'`
11177 # Check whether this is an Automake generated Makefile or not.
11178 # We used to match only the files named `Makefile.in', but
11179 # some people rename them; so instead we look at the file content.
11180 # Grep'ing the first line is not enough: some people post-process
11181 # each Makefile.in and add a new line on top of each file to say so.
0f6fe38c 11182 # So let's grep whole file.
11183 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
a8b2ad8d 11184 dirpart=`$as_dirname -- "$mf" ||
ec1a68c8 11185$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11186 X"$mf" : 'X\(//\)[^/]' \| \
11187 X"$mf" : 'X\(//\)$' \| \
a8b2ad8d 11188 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11189echo X"$mf" |
a8b2ad8d 11190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11191 s//\1/
11192 q
11193 }
11194 /^X\(\/\/\)[^/].*/{
11195 s//\1/
11196 q
11197 }
11198 /^X\(\/\/\)$/{
11199 s//\1/
11200 q
11201 }
11202 /^X\(\/\).*/{
11203 s//\1/
11204 q
11205 }
11206 s/.*/./; q'`
ec1a68c8 11207 else
11208 continue
11209 fi
11210 # Extract the definition of DEPDIR, am__include, and am__quote
11211 # from the Makefile without running `make'.
11212 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11213 test -z "$DEPDIR" && continue
11214 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11215 test -z "am__include" && continue
11216 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11217 # When using ansi2knr, U may be empty or an underscore; expand it
11218 U=`sed -n 's/^U = //p' < "$mf"`
11219 # Find all dependency output files, they are included files with
11220 # $(DEPDIR) in their names. We invoke sed twice because it is the
11221 # simplest approach to changing $(DEPDIR) to its actual value in the
11222 # expansion.
11223 for file in `sed -n "
11224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11226 # Make sure the directory exists.
11227 test -f "$dirpart/$file" && continue
a8b2ad8d 11228 fdir=`$as_dirname -- "$file" ||
ec1a68c8 11229$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11230 X"$file" : 'X\(//\)[^/]' \| \
11231 X"$file" : 'X\(//\)$' \| \
a8b2ad8d 11232 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11233echo X"$file" |
a8b2ad8d 11234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11235 s//\1/
11236 q
11237 }
11238 /^X\(\/\/\)[^/].*/{
11239 s//\1/
11240 q
11241 }
11242 /^X\(\/\/\)$/{
11243 s//\1/
11244 q
11245 }
11246 /^X\(\/\).*/{
11247 s//\1/
11248 q
11249 }
11250 s/.*/./; q'`
11251 { as_dir=$dirpart/$fdir
11252 case $as_dir in #(
11253 -*) as_dir=./$as_dir;;
11254 esac
11255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ec1a68c8 11256 as_dirs=
a8b2ad8d 11257 while :; do
11258 case $as_dir in #(
11259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11260 *) as_qdir=$as_dir;;
11261 esac
11262 as_dirs="'$as_qdir' $as_dirs"
11263 as_dir=`$as_dirname -- "$as_dir" ||
ec1a68c8 11264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11265 X"$as_dir" : 'X\(//\)[^/]' \| \
11266 X"$as_dir" : 'X\(//\)$' \| \
a8b2ad8d 11267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec1a68c8 11268echo X"$as_dir" |
a8b2ad8d 11269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11270 s//\1/
11271 q
11272 }
11273 /^X\(\/\/\)[^/].*/{
11274 s//\1/
11275 q
11276 }
11277 /^X\(\/\/\)$/{
11278 s//\1/
11279 q
11280 }
11281 /^X\(\/\).*/{
11282 s//\1/
11283 q
11284 }
11285 s/.*/./; q'`
11286 test -d "$as_dir" && break
ec1a68c8 11287 done
a8b2ad8d 11288 test -z "$as_dirs" || eval "mkdir $as_dirs"
11289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11290echo "$as_me: error: cannot create directory $as_dir" >&2;}
ec1a68c8 11291 { (exit 1); exit 1; }; }; }
ec1a68c8 11292 # echo "creating $dirpart/$file"
11293 echo '# dummy' > "$dirpart/$file"
11294 done
11295done
11296 ;;
a8b2ad8d 11297
ec1a68c8 11298 esac
a8b2ad8d 11299done # for ac_tag
b3076f16 11300
b3076f16 11301
11302{ (exit 0); exit 0; }
11303_ACEOF
11304chmod +x $CONFIG_STATUS
11305ac_clean_files=$ac_clean_files_save
11306
11307
11308# configure is writing to config.log, and then calls config.status.
11309# config.status does its own redirection, appending to config.log.
11310# Unfortunately, on DOS this fails, as config.log is still kept open
11311# by configure, so config.status won't be able to write to it; its
11312# output is simply discarded. So we exec the FD to /dev/null,
11313# effectively closing config.log, so it can be properly (re)opened and
11314# appended to by config.status. When coming back to configure, we
11315# need to make the FD available again.
11316if test "$no_create" != yes; then
11317 ac_cs_success=:
11318 ac_config_status_args=
11319 test "$silent" = yes &&
11320 ac_config_status_args="$ac_config_status_args --quiet"
11321 exec 5>/dev/null
11322 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11323 exec 5>>config.log
11324 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11325 # would make configure fail if this is the last instruction.
11326 $ac_cs_success || { (exit 1); exit 1; }
11327fi
11328
5b1166fd 11329
11330
11331
11332cat <<EOF
11333
11334Configuration summary
11335=====================
11336
11337X3 is now configured as follows:
11338
11339* Compilation environment
11340
11341 CC = $CC
11342 CFLAGS = $CFLAGS
11343 CPP = $CPP
11344 CPPFLAGS = $CPPFLAGS
11345 LD = $LD
11346 LDFLAGS = $LDFLAGS
11347 LIBS = $LIBS
11348
11349* X3 options
11350
a8b2ad8d 11351 Debug: $x3_debug
11352 Extra Modules: $module_list
11353 Malloc: $x3_malloc
11354 Protocol: $x3_ircd
11355 Regexp Library TRE $tre_version
11356 Coredumper Library Coredumper $core_version
8da89711 11357 $ldap_message
5b1166fd 11358
a8b2ad8d 11359 Install to: $prefix
35305a49 11360
5b1166fd 11361Now you can proceed with compiling X3
11362
11363EOF
11364