]> jfr.im git - irc/ircd-hybrid/bopm.git/blame - configure
Fixed missing ; in config-parser.y
[irc/ircd-hybrid/bopm.git] / configure
CommitLineData
f6649e03 1#! /bin/sh
f6649e03 2# Guess values for system-dependent variables and create Makefiles.
e646634b 3# Generated by GNU Autoconf 2.53 for bopm 3.0.
f6649e03 4#
c185a5dd 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
10891472 6# Free Software Foundation, Inc.
f6649e03 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
e646634b 9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
c185a5dd 17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
10891472 20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
e646634b 29# NLS nuisances.
c185a5dd 30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
e646634b 37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
82c895e3 61
62
10891472 63# Name of the executable.
e646634b 64as_me=`(basename "$0") 2>/dev/null ||
c185a5dd 65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
e646634b 88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
c185a5dd 89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
10891472 188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
c185a5dd 215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10891472 220
10891472 221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
e646634b 229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
c185a5dd 230
10891472 231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
f6649e03 242ac_default_prefix=/usr/local
10891472 243cross_compiling=no
244subdirs=
c185a5dd 245MFLAGS=
246MAKEFLAGS=
10891472 247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
c185a5dd 254# Identity of this package.
255PACKAGE_NAME='bopm'
256PACKAGE_TARNAME='bopm'
96f78544 257PACKAGE_VERSION='3.0'
258PACKAGE_STRING='bopm 3.0'
c185a5dd 259PACKAGE_BUGREPORT=''
260
2c75ac1f 261ac_unique_file="src/opercmd.h"
262ac_default_prefix=\${HOME}/bopm
10891472 263# Factoring default headers for most tests.
264ac_includes_default="\
265#include <stdio.h>
266#if HAVE_SYS_TYPES_H
267# include <sys/types.h>
268#endif
269#if HAVE_SYS_STAT_H
270# include <sys/stat.h>
271#endif
272#if STDC_HEADERS
273# include <stdlib.h>
274# include <stddef.h>
275#else
276# if HAVE_STDLIB_H
277# include <stdlib.h>
278# endif
279#endif
280#if HAVE_STRING_H
281# if !STDC_HEADERS && HAVE_MEMORY_H
282# include <memory.h>
283# endif
284# include <string.h>
285#endif
286#if HAVE_STRINGS_H
287# include <strings.h>
288#endif
289#if HAVE_INTTYPES_H
290# include <inttypes.h>
291#else
292# if HAVE_STDINT_H
293# include <stdint.h>
294# endif
295#endif
296#if HAVE_UNISTD_H
297# include <unistd.h>
298#endif"
f6649e03 299
205810b2 300ac_subdirs_all="$ac_subdirs_all src/libopm"
c185a5dd 301
f6649e03 302# Initialize some variables set by options.
10891472 303ac_init_help=
304ac_init_version=false
f6649e03 305# The variables have the same names as the options, with
306# dashes changed to underlines.
273c4d04 307cache_file=/dev/null
f6649e03 308exec_prefix=NONE
f6649e03 309no_create=
f6649e03 310no_recursion=
311prefix=NONE
312program_prefix=NONE
313program_suffix=NONE
314program_transform_name=s,x,x,
315silent=
316site=
317srcdir=
f6649e03 318verbose=
319x_includes=NONE
320x_libraries=NONE
10891472 321
322# Installation directory options.
323# These are left unexpanded so users can "make install exec_prefix=/foo"
324# and all the variables that are supposed to be based on exec_prefix
325# by default will actually change.
326# Use braces instead of parens because sh, perl, etc. also accept them.
f6649e03 327bindir='${exec_prefix}/bin'
328sbindir='${exec_prefix}/sbin'
329libexecdir='${exec_prefix}/libexec'
330datadir='${prefix}/share'
331sysconfdir='${prefix}/etc'
332sharedstatedir='${prefix}/com'
333localstatedir='${prefix}/var'
334libdir='${exec_prefix}/lib'
335includedir='${prefix}/include'
336oldincludedir='/usr/include'
337infodir='${prefix}/info'
338mandir='${prefix}/man'
339
f6649e03 340ac_prev=
341for ac_option
342do
f6649e03 343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
346 ac_prev=
347 continue
348 fi
349
10891472 350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
f6649e03 351
352 # Accept the important Cygnus configure options, so we can diagnose typos.
353
10891472 354 case $ac_option in
f6649e03 355
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 ac_prev=bindir ;;
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
10891472 359 bindir=$ac_optarg ;;
f6649e03 360
361 -build | --build | --buil | --bui | --bu)
10891472 362 ac_prev=build_alias ;;
f6649e03 363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
10891472 364 build_alias=$ac_optarg ;;
f6649e03 365
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10891472 371 cache_file=$ac_optarg ;;
372
373 --config-cache | -C)
374 cache_file=config.cache ;;
f6649e03 375
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 ac_prev=datadir ;;
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 | --da=*)
10891472 380 datadir=$ac_optarg ;;
f6649e03 381
382 -disable-* | --disable-*)
10891472 383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
f6649e03 384 # Reject names that are not valid shell variable names.
10891472 385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
f6649e03 390
391 -enable-* | --enable-*)
10891472 392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
f6649e03 393 # Reject names that are not valid shell variable names.
10891472 394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 case $ac_option in
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
f6649e03 400 *) ac_optarg=yes ;;
401 esac
10891472 402 eval "enable_$ac_feature='$ac_optarg'" ;;
f6649e03 403
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
10891472 411 exec_prefix=$ac_optarg ;;
f6649e03 412
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
415 with_gas=yes ;;
416
10891472 417 -help | --help | --hel | --he | -h)
418 ac_init_help=long ;;
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
f6649e03 423
424 -host | --host | --hos | --ho)
10891472 425 ac_prev=host_alias ;;
f6649e03 426 -host=* | --host=* | --hos=* | --ho=*)
10891472 427 host_alias=$ac_optarg ;;
f6649e03 428
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
10891472 434 includedir=$ac_optarg ;;
f6649e03 435
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 ac_prev=infodir ;;
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
10891472 439 infodir=$ac_optarg ;;
f6649e03 440
441 -libdir | --libdir | --libdi | --libd)
442 ac_prev=libdir ;;
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
10891472 444 libdir=$ac_optarg ;;
f6649e03 445
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
10891472 451 libexecdir=$ac_optarg ;;
f6649e03 452
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
10891472 460 localstatedir=$ac_optarg ;;
f6649e03 461
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 ac_prev=mandir ;;
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10891472 465 mandir=$ac_optarg ;;
f6649e03 466
467 -nfp | --nfp | --nf)
468 # Obsolete; use --without-fp.
469 with_fp=no ;;
470
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c185a5dd 472 | --no-cr | --no-c | -n)
f6649e03 473 no_create=yes ;;
474
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 no_recursion=yes ;;
478
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10891472 486 oldincludedir=$ac_optarg ;;
f6649e03 487
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 ac_prev=prefix ;;
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10891472 491 prefix=$ac_optarg ;;
f6649e03 492
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10891472 498 program_prefix=$ac_optarg ;;
f6649e03 499
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10891472 505 program_suffix=$ac_optarg ;;
f6649e03 506
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
10891472 522 program_transform_name=$ac_optarg ;;
f6649e03 523
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
526 silent=yes ;;
527
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 ac_prev=sbindir ;;
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 | --sbi=* | --sb=*)
10891472 532 sbindir=$ac_optarg ;;
f6649e03 533
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
537 | --sha | --sh)
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 | --sha=* | --sh=*)
10891472 543 sharedstatedir=$ac_optarg ;;
f6649e03 544
545 -site | --site | --sit)
546 ac_prev=site ;;
547 -site=* | --site=* | --sit=*)
10891472 548 site=$ac_optarg ;;
f6649e03 549
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 ac_prev=srcdir ;;
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10891472 553 srcdir=$ac_optarg ;;
f6649e03 554
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10891472 560 sysconfdir=$ac_optarg ;;
f6649e03 561
562 -target | --target | --targe | --targ | --tar | --ta | --t)
10891472 563 ac_prev=target_alias ;;
f6649e03 564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10891472 565 target_alias=$ac_optarg ;;
f6649e03 566
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 verbose=yes ;;
569
10891472 570 -version | --version | --versio | --versi | --vers | -V)
571 ac_init_version=: ;;
f6649e03 572
573 -with-* | --with-*)
10891472 574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
f6649e03 575 # Reject names that are not valid shell variable names.
10891472 576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
f6649e03 579 ac_package=`echo $ac_package| sed 's/-/_/g'`
10891472 580 case $ac_option in
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
f6649e03 582 *) ac_optarg=yes ;;
583 esac
10891472 584 eval "with_$ac_package='$ac_optarg'" ;;
f6649e03 585
586 -without-* | --without-*)
10891472 587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
f6649e03 588 # Reject names that are not valid shell variable names.
10891472 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
f6649e03 594
595 --x)
596 # Obsolete; use --with-x.
597 with_x=yes ;;
598
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
10891472 604 x_includes=$ac_optarg ;;
f6649e03 605
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10891472 611 x_libraries=$ac_optarg ;;
f6649e03 612
10891472 613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
f6649e03 616 ;;
617
10891472 618 *=*)
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
626 export $ac_envvar ;;
627
f6649e03 628 *)
10891472 629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
f6649e03 634 ;;
635
636 esac
637done
638
639if test -n "$ac_prev"; then
10891472 640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
f6649e03 643fi
f6649e03 644
10891472 645# Be sure to have absolute paths.
646for ac_var in exec_prefix prefix
647do
648 eval ac_val=$`echo $ac_var`
649 case $ac_val in
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
c185a5dd 651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10891472 652 { (exit 1); exit 1; }; };;
653 esac
654done
f6649e03 655
10891472 656# Be sure to have absolute paths.
657for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
f6649e03 659do
10891472 660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* ) ;;
c185a5dd 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
10891472 664 { (exit 1); exit 1; }; };;
f6649e03 665 esac
666done
667
10891472 668# There might be people who depend on the old broken behavior: `$host'
669# used to hold the argument of --host etc.
c185a5dd 670# FIXME: To remove some day.
10891472 671build=$build_alias
672host=$host_alias
673target=$target_alias
674
c185a5dd 675# FIXME: To remove some day.
10891472 676if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
682 cross_compiling=yes
683 fi
684fi
f6649e03 685
10891472 686ac_tool_prefix=
687test -n "$host_alias" && ac_tool_prefix=$host_alias-
f6649e03 688
10891472 689test "$silent" = yes && exec 6>/dev/null
f6649e03 690
c185a5dd 691
f6649e03 692# Find the source files, if location was not specified.
693if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
c185a5dd 696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
702echo X"$0" |
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
707 s/.*/./; q'`
f6649e03 708 srcdir=$ac_confdir
709 if test ! -r $srcdir/$ac_unique_file; then
710 srcdir=..
711 fi
712else
713 ac_srcdir_defaulted=no
714fi
715if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
c185a5dd 717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
10891472 718 { (exit 1); exit 1; }; }
f6649e03 719 else
c185a5dd 720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
10891472 721 { (exit 1); exit 1; }; }
f6649e03 722 fi
723fi
10891472 724srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725ac_env_build_alias_set=${build_alias+set}
726ac_env_build_alias_value=$build_alias
727ac_cv_env_build_alias_set=${build_alias+set}
728ac_cv_env_build_alias_value=$build_alias
729ac_env_host_alias_set=${host_alias+set}
730ac_env_host_alias_value=$host_alias
731ac_cv_env_host_alias_set=${host_alias+set}
732ac_cv_env_host_alias_value=$host_alias
733ac_env_target_alias_set=${target_alias+set}
734ac_env_target_alias_value=$target_alias
735ac_cv_env_target_alias_set=${target_alias+set}
736ac_cv_env_target_alias_value=$target_alias
737ac_env_CC_set=${CC+set}
738ac_env_CC_value=$CC
739ac_cv_env_CC_set=${CC+set}
740ac_cv_env_CC_value=$CC
741ac_env_CFLAGS_set=${CFLAGS+set}
742ac_env_CFLAGS_value=$CFLAGS
743ac_cv_env_CFLAGS_set=${CFLAGS+set}
744ac_cv_env_CFLAGS_value=$CFLAGS
745ac_env_LDFLAGS_set=${LDFLAGS+set}
746ac_env_LDFLAGS_value=$LDFLAGS
747ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748ac_cv_env_LDFLAGS_value=$LDFLAGS
749ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_env_CPPFLAGS_value=$CPPFLAGS
751ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
757
758#
759# Report the --help message.
760#
761if test "$ac_init_help" = "long"; then
762 # Omit some internal or obsolete options to make the list less imposing.
763 # This message is too long to be a string in the A/UX 3.1 sh.
c185a5dd 764 cat <<_ACEOF
96f78544 765\`configure' configures bopm 3.0 to adapt to many kinds of systems.
10891472 766
767Usage: $0 [OPTION]... [VAR=VALUE]...
768
769To assign environment variables (e.g., CC, CFLAGS...), specify them as
770VAR=VALUE. See below for descriptions of some of the useful variables.
771
772Defaults for the options are specified in brackets.
773
774Configuration:
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
784
c185a5dd 785_ACEOF
10891472 786
c185a5dd 787 cat <<_ACEOF
10891472 788Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
790 [$ac_default_prefix]
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 [PREFIX]
793
794By default, \`make install' will install all the files in
795\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797for instance \`--prefix=\$HOME'.
798
799For better control, use the options below.
800
801Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --sbindir=DIR system admin executables [EPREFIX/sbin]
804 --libexecdir=DIR program executables [EPREFIX/libexec]
805 --datadir=DIR read-only architecture-independent data [PREFIX/share]
806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
808 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
809 --libdir=DIR object code libraries [EPREFIX/lib]
810 --includedir=DIR C header files [PREFIX/include]
811 --oldincludedir=DIR C header files for non-gcc [/usr/include]
812 --infodir=DIR info documentation [PREFIX/info]
813 --mandir=DIR man documentation [PREFIX/man]
c185a5dd 814_ACEOF
10891472 815
c185a5dd 816 cat <<\_ACEOF
2c75ac1f 817
818Program names:
819 --program-prefix=PREFIX prepend PREFIX to installed program names
820 --program-suffix=SUFFIX append SUFFIX to installed program names
821 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
c185a5dd 822_ACEOF
10891472 823fi
824
825if test -n "$ac_init_help"; then
2c75ac1f 826 case $ac_init_help in
96f78544 827 short | recursive ) echo "Configuration of bopm 3.0:";;
2c75ac1f 828 esac
c185a5dd 829 cat <<\_ACEOF
10891472 830
f015a5b8 831Optional Features:
832 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
833 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
834 --enable-maintainer-mode enable make rules and dependencies not useful
835 (and sometimes confusing) to the casual installer
273c4d04 836 --enable-ipv6 Enable IPV6 support
837 --disable-dependency-tracking Speeds up one-time builds
838 --enable-dependency-tracking Do not reject slow dependency extractors
f015a5b8 839
10891472 840Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
10891472 843 --with-select use select() instead of poll()
273c4d04 844 --with-unreal you need this if you are using Unreal ircd (any
845 version)
59950ee6 846 --with-extra-fascism Add extra gcc3-specific warning flags
10891472 847
848Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
855 CPP C preprocessor
856
857Use these variables to override the choices made by `configure' or to help
858it to find libraries and programs with nonstandard names/locations.
859
c185a5dd 860_ACEOF
10891472 861fi
f6649e03 862
10891472 863if test "$ac_init_help" = "recursive"; then
864 # If there are subdirs, report their specific --help.
865 ac_popdir=`pwd`
c185a5dd 866 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
867 test -d $ac_dir || continue
868 ac_builddir=.
869
870if test "$ac_dir" != .; then
871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
872 # A "../" for each directory in $ac_dir_suffix.
873 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874else
875 ac_dir_suffix= ac_top_builddir=
876fi
10891472 877
c185a5dd 878case $srcdir in
879 .) # No --srcdir option. We are building in place.
880 ac_srcdir=.
881 if test -z "$ac_top_builddir"; then
882 ac_top_srcdir=.
883 else
884 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 fi ;;
886 [\\/]* | ?:[\\/]* ) # Absolute path.
887 ac_srcdir=$srcdir$ac_dir_suffix;
888 ac_top_srcdir=$srcdir ;;
889 *) # Relative path.
890 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
891 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892esac
893# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
894# absolute.
895ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
e646634b 896ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
c185a5dd 897ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
898ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899
900 cd $ac_dir
10891472 901 # Check for guested configure; otherwise get Cygnus style configure.
c185a5dd 902 if test -f $ac_srcdir/configure.gnu; then
10891472 903 echo
c185a5dd 904 $SHELL $ac_srcdir/configure.gnu --help=recursive
905 elif test -f $ac_srcdir/configure; then
10891472 906 echo
c185a5dd 907 $SHELL $ac_srcdir/configure --help=recursive
908 elif test -f $ac_srcdir/configure.ac ||
909 test -f $ac_srcdir/configure.in; then
10891472 910 echo
911 $ac_configure --help
912 else
c185a5dd 913 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
10891472 914 fi
915 cd $ac_popdir
916 done
917fi
918
919test -n "$ac_init_help" && exit 0
920if $ac_init_version; then
c185a5dd 921 cat <<\_ACEOF
96f78544 922bopm configure 3.0
e646634b 923generated by GNU Autoconf 2.53
10891472 924
c185a5dd 925Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
10891472 926Free Software Foundation, Inc.
927This configure script is free software; the Free Software Foundation
928gives unlimited permission to copy, distribute and modify it.
c185a5dd 929_ACEOF
10891472 930 exit 0
931fi
932exec 5>config.log
c185a5dd 933cat >&5 <<_ACEOF
10891472 934This file contains any messages produced by compilers while
935running configure, to aid debugging if configure makes a mistake.
936
96f78544 937It was created by bopm $as_me 3.0, which was
e646634b 938generated by GNU Autoconf 2.53. Invocation command line was
10891472 939
940 $ $0 $@
941
c185a5dd 942_ACEOF
10891472 943{
944cat <<_ASUNAME
c185a5dd 945## --------- ##
946## Platform. ##
947## --------- ##
10891472 948
949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950uname -m = `(uname -m) 2>/dev/null || echo unknown`
951uname -r = `(uname -r) 2>/dev/null || echo unknown`
952uname -s = `(uname -s) 2>/dev/null || echo unknown`
953uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957
958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965
cc2baf42 966_ASUNAME
c185a5dd 967
968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969for as_dir in $PATH
970do
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974done
975
10891472 976} >&5
977
c185a5dd 978cat >&5 <<_ACEOF
979
980
981## ----------- ##
982## Core tests. ##
983## ----------- ##
984
985_ACEOF
10891472 986
10891472 987
988# Keep a trace of the command line.
989# Strip out --no-create and --no-recursion so they do not pile up.
990# Also quote any args containing shell meta-characters.
991ac_configure_args=
992ac_sep=
993for ac_arg
994do
995 case $ac_arg in
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c185a5dd 997 | --no-cr | --no-c | -n ) continue ;;
10891472 998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
c185a5dd 999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 continue ;;
10891472 1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
c185a5dd 1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 esac
e646634b 1004 case " $ac_configure_args " in
1005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1006 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007 ac_sep=" " ;;
1008 esac
10891472 1009 # Get rid of the leading space.
1010done
1011
1012# When interrupted or exit'd, cleanup temporary files, and complete
1013# config.log. We remove comments because anyway the quotes in there
1014# would cause problems or look ugly.
c185a5dd 1015# WARNING: Be sure not to use single quotes in there, as some shells,
1016# such as our DU 5.0 friend, will then `close' the trap.
10891472 1017trap 'exit_status=$?
1018 # Save into config.log some information that might help in debugging.
c185a5dd 1019 {
1020 echo
1021 cat <<\_ASBOX
1022## ---------------- ##
1023## Cache variables. ##
1024## ---------------- ##
1025_ASBOX
1026 echo
1027 # The following way of writing the cache mishandles newlines in values,
10891472 1028{
1029 (set) 2>&1 |
1030 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1031 *ac_space=\ *)
1032 sed -n \
1033 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035 ;;
1036 *)
1037 sed -n \
1038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 ;;
1040 esac;
c185a5dd 1041}
1042 echo
1043 if test -s confdefs.h; then
1044 cat <<\_ASBOX
1045## ----------- ##
1046## confdefs.h. ##
1047## ----------- ##
1048_ASBOX
1049 echo
e646634b 1050 sed "/^$/d" confdefs.h
c185a5dd 1051 echo
1052 fi
1053 test "$ac_signal" != 0 &&
1054 echo "$as_me: caught signal $ac_signal"
1055 echo "$as_me: exit $exit_status"
1056 } >&5
1057 rm -f core core.* *.core &&
1058 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
10891472 1059 exit $exit_status
1060 ' 0
1061for ac_signal in 1 2 13 15; do
1062 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1063done
1064ac_signal=0
1065
1066# confdefs.h avoids OS command line length limits that DEFS can exceed.
1067rm -rf conftest* confdefs.h
1068# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1069echo >confdefs.h
1070
c185a5dd 1071# Predefined preprocessor variables.
1072
1073cat >>confdefs.h <<_ACEOF
1074#define PACKAGE_NAME "$PACKAGE_NAME"
1075_ACEOF
1076
1077
1078cat >>confdefs.h <<_ACEOF
1079#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1080_ACEOF
1081
1082
1083cat >>confdefs.h <<_ACEOF
1084#define PACKAGE_VERSION "$PACKAGE_VERSION"
1085_ACEOF
1086
1087
1088cat >>confdefs.h <<_ACEOF
1089#define PACKAGE_STRING "$PACKAGE_STRING"
1090_ACEOF
1091
1092
1093cat >>confdefs.h <<_ACEOF
1094#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1095_ACEOF
1096
1097
10891472 1098# Let the site file select an alternate cache file if it wants to.
f6649e03 1099# Prefer explicitly selected file to automatically selected ones.
1100if test -z "$CONFIG_SITE"; then
1101 if test "x$prefix" != xNONE; then
1102 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1103 else
1104 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1105 fi
1106fi
1107for ac_site_file in $CONFIG_SITE; do
1108 if test -r "$ac_site_file"; then
c185a5dd 1109 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
10891472 1110echo "$as_me: loading site script $ac_site_file" >&6;}
c185a5dd 1111 sed 's/^/| /' "$ac_site_file" >&5
f6649e03 1112 . "$ac_site_file"
1113 fi
1114done
1115
1116if test -r "$cache_file"; then
10891472 1117 # Some versions of bash will fail to source /dev/null (special
1118 # files actually), so we avoid doing that.
1119 if test -f "$cache_file"; then
c185a5dd 1120 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
10891472 1121echo "$as_me: loading cache $cache_file" >&6;}
1122 case $cache_file in
1123 [\\/]* | ?:[\\/]* ) . $cache_file;;
1124 *) . ./$cache_file;;
1125 esac
1126 fi
f6649e03 1127else
c185a5dd 1128 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
10891472 1129echo "$as_me: creating cache $cache_file" >&6;}
1130 >$cache_file
f6649e03 1131fi
1132
10891472 1133# Check that the precious variables saved in the cache have kept the same
1134# value.
1135ac_cache_corrupted=false
1136for ac_var in `(set) 2>&1 |
1137 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1139 eval ac_new_set=\$ac_env_${ac_var}_set
1140 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1141 eval ac_new_val="\$ac_env_${ac_var}_value"
1142 case $ac_old_set,$ac_new_set in
1143 set,)
c185a5dd 1144 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10891472 1145echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1146 ac_cache_corrupted=: ;;
1147 ,set)
c185a5dd 1148 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
10891472 1149echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1150 ac_cache_corrupted=: ;;
1151 ,);;
1152 *)
1153 if test "x$ac_old_val" != "x$ac_new_val"; then
c185a5dd 1154 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10891472 1155echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
c185a5dd 1156 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
10891472 1157echo "$as_me: former value: $ac_old_val" >&2;}
c185a5dd 1158 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
10891472 1159echo "$as_me: current value: $ac_new_val" >&2;}
1160 ac_cache_corrupted=:
1161 fi;;
1162 esac
c185a5dd 1163 # Pass precious variables to config.status.
10891472 1164 if test "$ac_new_set" = set; then
1165 case $ac_new_val in
1166 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
c185a5dd 1167 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1168 *) ac_arg=$ac_var=$ac_new_val ;;
1169 esac
1170 case " $ac_configure_args " in
1171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1172 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
10891472 1173 esac
f6649e03 1174 fi
10891472 1175done
1176if $ac_cache_corrupted; then
c185a5dd 1177 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
10891472 1178echo "$as_me: error: changes in the environment can compromise the build" >&2;}
c185a5dd 1179 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
10891472 1180echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1181 { (exit 1); exit 1; }; }
f6649e03 1182fi
1183
10891472 1184ac_ext=c
1185ac_cpp='$CPP $CPPFLAGS'
1186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1188ac_compiler_gnu=$ac_cv_c_compiler_gnu
f6649e03 1189
c185a5dd 1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
cc2baf42 1215
273c4d04 1216# Add the stamp file to the list of files AC keeps track of,
1217# along with our hook.
e646634b 1218ac_config_headers="$ac_config_headers src/setup.h"
273c4d04 1219
1220
1221
1222am__api_version="1.6"
2c75ac1f 1223ac_aux_dir=
1224for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1225 if test -f $ac_dir/install-sh; then
1226 ac_aux_dir=$ac_dir
1227 ac_install_sh="$ac_aux_dir/install-sh -c"
1228 break
1229 elif test -f $ac_dir/install.sh; then
1230 ac_aux_dir=$ac_dir
1231 ac_install_sh="$ac_aux_dir/install.sh -c"
1232 break
1233 elif test -f $ac_dir/shtool; then
1234 ac_aux_dir=$ac_dir
1235 ac_install_sh="$ac_aux_dir/shtool install -c"
1236 break
1237 fi
1238done
1239if test -z "$ac_aux_dir"; then
c185a5dd 1240 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2c75ac1f 1241echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1242 { (exit 1); exit 1; }; }
1243fi
1244ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1245ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1246ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1247
1248# Find a good install program. We prefer a C program (faster),
1249# so one script is as good as another. But avoid the broken or
1250# incompatible versions:
1251# SysV /etc/install, /usr/sbin/install
1252# SunOS /usr/etc/install
1253# IRIX /sbin/install
1254# AIX /bin/install
1255# AmigaOS /C/install, which installs bootblocks on floppy discs
1256# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1257# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1258# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1259# ./install, which can be erroneously created by make from ./install.sh.
c185a5dd 1260echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1261echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2c75ac1f 1262if test -z "$INSTALL"; then
1263if test "${ac_cv_path_install+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1265else
c185a5dd 1266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1267for as_dir in $PATH
1268do
1269 IFS=$as_save_IFS
1270 test -z "$as_dir" && as_dir=.
1271 # Account for people who put trailing slashes in PATH elements.
1272case $as_dir/ in
1273 ./ | .// | /cC/* | \
1274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1275 /usr/ucb/* ) ;;
1276 *)
1277 # OSF1 and SCO ODT 3.0 have their own names for install.
1278 # Don't use installbsd from OSF since it installs stuff as root
1279 # by default.
1280 for ac_prog in ginstall scoinst install; do
1281 for ac_exec_ext in '' $ac_executable_extensions; do
1282 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1283 if test $ac_prog = install &&
1284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1285 # AIX install. It has an incompatible calling convention.
1286 :
1287 elif test $ac_prog = install &&
1288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1289 # program-specific install script used by HP pwplus--don't use.
1290 :
1291 else
1292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1293 break 3
1294 fi
1295 fi
2c75ac1f 1296 done
c185a5dd 1297 done
1298 ;;
1299esac
1300done
1301
2c75ac1f 1302
1303fi
1304 if test "${ac_cv_path_install+set}" = set; then
1305 INSTALL=$ac_cv_path_install
1306 else
1307 # As a last resort, use the slow shell script. We don't cache a
1308 # path for INSTALL within a source directory, because that will
1309 # break other packages using the cache if that directory is
1310 # removed, or if the path is relative.
1311 INSTALL=$ac_install_sh
1312 fi
1313fi
c185a5dd 1314echo "$as_me:$LINENO: result: $INSTALL" >&5
2c75ac1f 1315echo "${ECHO_T}$INSTALL" >&6
1316
1317# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1318# It thinks the first close brace ends the variable substitution.
1319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1320
1321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1322
1323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1324
c185a5dd 1325echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2c75ac1f 1326echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1327# Just in case
1328sleep 1
273c4d04 1329echo timestamp > conftest.file
2c75ac1f 1330# Do `set' in a subshell so we don't clobber the current shell's
1331# arguments. Must try -L first in case configure is actually a
1332# symlink; some systems play weird games with the mod time of symlinks
1333# (eg FreeBSD returns the mod time of the symlink's containing
1334# directory).
1335if (
273c4d04 1336 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2c75ac1f 1337 if test "$*" = "X"; then
1338 # -L didn't work.
273c4d04 1339 set X `ls -t $srcdir/configure conftest.file`
2c75ac1f 1340 fi
273c4d04 1341 rm -f conftest.file
1342 if test "$*" != "X $srcdir/configure conftest.file" \
1343 && test "$*" != "X conftest.file $srcdir/configure"; then
2c75ac1f 1344
1345 # If neither matched, then we have a broken ls. This can happen
1346 # if, for instance, CONFIG_SHELL is bash and it inherits a
1347 # broken ls alias from the environment. This has actually
1348 # happened. Such a system could not be considered "sane".
c185a5dd 1349 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2c75ac1f 1350alias in your environment" >&5
1351echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1352alias in your environment" >&2;}
1353 { (exit 1); exit 1; }; }
1354 fi
1355
273c4d04 1356 test "$2" = conftest.file
2c75ac1f 1357 )
1358then
1359 # Ok.
1360 :
1361else
c185a5dd 1362 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2c75ac1f 1363Check your system clock" >&5
1364echo "$as_me: error: newly created file is older than distributed files!
1365Check your system clock" >&2;}
1366 { (exit 1); exit 1; }; }
1367fi
c185a5dd 1368echo "$as_me:$LINENO: result: yes" >&5
2c75ac1f 1369echo "${ECHO_T}yes" >&6
1370test "$program_prefix" != NONE &&
1371 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1372# Use a double $ so make ignores it.
1373test "$program_suffix" != NONE &&
1374 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1375# Double any \ or $. echo might interpret backslashes.
1376# By default was `s,x,x', remove it if useless.
1377cat <<\_ACEOF >conftest.sed
1378s/[\\$]/&&/g;s/;s,x,x,$//
1379_ACEOF
1380program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1381rm conftest.sed
1382
273c4d04 1383
1384# expand $ac_aux_dir to an absolute path
1385am_aux_dir=`cd $ac_aux_dir && pwd`
1386
1387test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1388# Use eval to expand $SHELL
1389if eval "$MISSING --run true"; then
1390 am_missing_run="$MISSING --run "
1391else
1392 am_missing_run=
1393 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1394echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1395fi
1396
1397for ac_prog in gawk mawk nawk awk
1398do
1399 # Extract the first word of "$ac_prog", so it can be a program name with args.
1400set dummy $ac_prog; ac_word=$2
1401echo "$as_me:$LINENO: checking for $ac_word" >&5
1402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403if test "${ac_cv_prog_AWK+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 if test -n "$AWK"; then
1407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1408else
1409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410for as_dir in $PATH
1411do
1412 IFS=$as_save_IFS
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416 ac_cv_prog_AWK="$ac_prog"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418 break 2
1419 fi
1420done
1421done
1422
1423fi
1424fi
1425AWK=$ac_cv_prog_AWK
1426if test -n "$AWK"; then
1427 echo "$as_me:$LINENO: result: $AWK" >&5
1428echo "${ECHO_T}$AWK" >&6
1429else
1430 echo "$as_me:$LINENO: result: no" >&5
1431echo "${ECHO_T}no" >&6
1432fi
1433
1434 test -n "$AWK" && break
1435done
1436
c185a5dd 1437echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2c75ac1f 1438echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1439set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1440if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
c185a5dd 1443 cat >conftest.make <<\_ACEOF
2c75ac1f 1444all:
1445 @echo 'ac_maketemp="${MAKE}"'
c185a5dd 1446_ACEOF
2c75ac1f 1447# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1448eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1449if test -n "$ac_maketemp"; then
1450 eval ac_cv_prog_make_${ac_make}_set=yes
1451else
1452 eval ac_cv_prog_make_${ac_make}_set=no
1453fi
1454rm -f conftest.make
1455fi
1456if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
c185a5dd 1457 echo "$as_me:$LINENO: result: yes" >&5
2c75ac1f 1458echo "${ECHO_T}yes" >&6
1459 SET_MAKE=
1460else
c185a5dd 1461 echo "$as_me:$LINENO: result: no" >&5
2c75ac1f 1462echo "${ECHO_T}no" >&6
1463 SET_MAKE="MAKE=${MAKE-make}"
1464fi
1465
273c4d04 1466 # test to see if srcdir already configured
1467if test "`cd $srcdir && pwd`" != "`pwd`" &&
1468 test -f $srcdir/config.status; then
c185a5dd 1469 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2c75ac1f 1470echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473
273c4d04 1474# Define the identity of the package.
1475 PACKAGE=bopm
96f78544 1476 VERSION=3.0
273c4d04 1477
1478
c185a5dd 1479cat >>confdefs.h <<_ACEOF
2c75ac1f 1480#define PACKAGE "$PACKAGE"
c185a5dd 1481_ACEOF
2c75ac1f 1482
c185a5dd 1483
1484cat >>confdefs.h <<_ACEOF
2c75ac1f 1485#define VERSION "$VERSION"
c185a5dd 1486_ACEOF
1487
273c4d04 1488# Some tools Automake needs.
1489
1490ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
c185a5dd 1491
2c75ac1f 1492
273c4d04 1493AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1494
1495
1496AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1497
1498
1499AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1500
1501
1502MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1503
1504
1505AMTAR=${AMTAR-"${am_missing_run}tar"}
1506
1507install_sh=${install_sh-"$am_aux_dir/install-sh"}
1508
1509# Installed binaries are usually stripped using `strip' when the user
1510# run `make install-strip'. However `strip' might not be the right
1511# tool to use in cross-compilation environments, therefore Automake
1512# will honor the `STRIP' environment variable to overrule this program.
1513if test "$cross_compiling" != no; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1516set dummy ${ac_tool_prefix}strip; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_STRIP+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
2c75ac1f 1521else
273c4d04 1522 if test -n "$STRIP"; then
1523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536done
1537done
2c75ac1f 1538
273c4d04 1539fi
1540fi
1541STRIP=$ac_cv_prog_STRIP
1542if test -n "$STRIP"; then
1543 echo "$as_me:$LINENO: result: $STRIP" >&5
1544echo "${ECHO_T}$STRIP" >&6
2c75ac1f 1545else
273c4d04 1546 echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
2c75ac1f 1548fi
1549
2c75ac1f 1550fi
273c4d04 1551if test -z "$ac_cv_prog_STRIP"; then
1552 ac_ct_STRIP=$STRIP
1553 # Extract the first word of "strip", so it can be a program name with args.
1554set dummy strip; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$ac_ct_STRIP"; then
1561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_STRIP="strip"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
2c75ac1f 1576
273c4d04 1577 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1578fi
1579fi
1580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1581if test -n "$ac_ct_STRIP"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1583echo "${ECHO_T}$ac_ct_STRIP" >&6
2c75ac1f 1584else
273c4d04 1585 echo "$as_me:$LINENO: result: no" >&5
1586echo "${ECHO_T}no" >&6
2c75ac1f 1587fi
1588
273c4d04 1589 STRIP=$ac_ct_STRIP
2c75ac1f 1590else
273c4d04 1591 STRIP="$ac_cv_prog_STRIP"
2c75ac1f 1592fi
1593
273c4d04 1594fi
1595INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
c185a5dd 1596
273c4d04 1597# We need awk for the "check" target. The system "awk" is bad on
1598# some platforms.
c185a5dd 1599
2c75ac1f 1600
f6649e03 1601
c185a5dd 1602
1603echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
f015a5b8 1604echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1605 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1606if test "${enable_maintainer_mode+set}" = set; then
1607 enableval="$enable_maintainer_mode"
1608 USE_MAINTAINER_MODE=$enableval
1609else
1610 USE_MAINTAINER_MODE=no
1611fi;
c185a5dd 1612 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
f015a5b8 1613echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1614
c185a5dd 1615
f015a5b8 1616if test $USE_MAINTAINER_MODE = yes; then
1617 MAINTAINER_MODE_TRUE=
1618 MAINTAINER_MODE_FALSE='#'
1619else
1620 MAINTAINER_MODE_TRUE='#'
1621 MAINTAINER_MODE_FALSE=
1622fi
273c4d04 1623
f015a5b8 1624 MAINT=$MAINTAINER_MODE_TRUE
1625
c185a5dd 1626
1627
1628
5bd052df 1629# Check whether --with-select or --without-select was given.
1630if test "${with_select+set}" = set; then
1631 withval="$with_select"
273c4d04 1632 with_select="yes"
5bd052df 1633else
273c4d04 1634 with_select="no"
10891472 1635fi;
5bd052df 1636
eedb8c58 1637# Check whether --with-unreal or --without-unreal was given.
1638if test "${with_unreal+set}" = set; then
1639 withval="$with_unreal"
273c4d04 1640 with_unreal="yes"
eedb8c58 1641else
273c4d04 1642 with_unreal="no"
10891472 1643fi;
eedb8c58 1644
59950ee6 1645# Check whether --with-extra-fascism or --without-extra-fascism was given.
1646if test "${with_extra_fascism+set}" = set; then
1647 withval="$with_extra_fascism"
1648 CFLAGS="$CFLAGS -g -ggdb -O0 -W -Wfloat-equal -Wbad-function-cast -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
1649fi;
1650
1651
c185a5dd 1652# Check whether --enable-ipv6 or --disable-ipv6 was given.
1653if test "${enable_ipv6+set}" = set; then
1654 enableval="$enable_ipv6"
273c4d04 1655 ac_cv_ipv6=$enableval
c185a5dd 1656else
273c4d04 1657 ac_cv_ipv6="no"
c185a5dd 1658fi;
1659
273c4d04 1660echo "$as_me:$LINENO: checking whether to enable IPv6 features" >&5
1661echo $ECHO_N "checking whether to enable IPv6 features... $ECHO_C" >&6
1662
c185a5dd 1663if test "$ac_cv_ipv6" = "yes" ; then
1664
1665cat >>confdefs.h <<\_ACEOF
1666#define IPV6 1
1667_ACEOF
1668
273c4d04 1669 echo "$as_me:$LINENO: result: yes" >&5
1670echo "${ECHO_T}yes" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
c185a5dd 1674fi
1675
10891472 1676ac_ext=c
1677ac_cpp='$CPP $CPPFLAGS'
1678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1680ac_compiler_gnu=$ac_cv_c_compiler_gnu
1681if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1683set dummy ${ac_tool_prefix}gcc; ac_word=$2
c185a5dd 1684echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1688else
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1691else
c185a5dd 1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1702 fi
1703done
10891472 1704done
1705
f6649e03 1706fi
1707fi
10891472 1708CC=$ac_cv_prog_CC
f6649e03 1709if test -n "$CC"; then
c185a5dd 1710 echo "$as_me:$LINENO: result: $CC" >&5
10891472 1711echo "${ECHO_T}$CC" >&6
f6649e03 1712else
c185a5dd 1713 echo "$as_me:$LINENO: result: no" >&5
10891472 1714echo "${ECHO_T}no" >&6
f6649e03 1715fi
1716
10891472 1717fi
1718if test -z "$ac_cv_prog_CC"; then
1719 ac_ct_CC=$CC
1720 # Extract the first word of "gcc", so it can be a program name with args.
1721set dummy gcc; ac_word=$2
c185a5dd 1722echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1726else
10891472 1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f6649e03 1729else
c185a5dd 1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="gcc"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741done
10891472 1742done
1743
f6649e03 1744fi
1745fi
10891472 1746ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747if test -n "$ac_ct_CC"; then
c185a5dd 1748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10891472 1749echo "${ECHO_T}$ac_ct_CC" >&6
1750else
c185a5dd 1751 echo "$as_me:$LINENO: result: no" >&5
10891472 1752echo "${ECHO_T}no" >&6
f6649e03 1753fi
10891472 1754
1755 CC=$ac_ct_CC
f6649e03 1756else
10891472 1757 CC="$ac_cv_prog_CC"
f6649e03 1758fi
1759
10891472 1760if test -z "$CC"; then
1761 if test -n "$ac_tool_prefix"; then
1762 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1763set dummy ${ac_tool_prefix}cc; ac_word=$2
c185a5dd 1764echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 1768else
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1771else
c185a5dd 1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_CC="${ac_tool_prefix}cc"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1782 fi
1783done
10891472 1784done
1785
f6649e03 1786fi
1787fi
10891472 1788CC=$ac_cv_prog_CC
f6649e03 1789if test -n "$CC"; then
c185a5dd 1790 echo "$as_me:$LINENO: result: $CC" >&5
10891472 1791echo "${ECHO_T}$CC" >&6
f6649e03 1792else
c185a5dd 1793 echo "$as_me:$LINENO: result: no" >&5
10891472 1794echo "${ECHO_T}no" >&6
f6649e03 1795fi
10891472 1796
1797fi
1798if test -z "$ac_cv_prog_CC"; then
1799 ac_ct_CC=$CC
1800 # Extract the first word of "cc", so it can be a program name with args.
1801set dummy cc; ac_word=$2
c185a5dd 1802echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807 if test -n "$ac_ct_CC"; then
1808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809else
c185a5dd 1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_ac_ct_CC="cc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1820 fi
1821done
10891472 1822done
1823
1824fi
1825fi
1826ac_ct_CC=$ac_cv_prog_ac_ct_CC
1827if test -n "$ac_ct_CC"; then
c185a5dd 1828 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10891472 1829echo "${ECHO_T}$ac_ct_CC" >&6
1830else
c185a5dd 1831 echo "$as_me:$LINENO: result: no" >&5
10891472 1832echo "${ECHO_T}no" >&6
f6649e03 1833fi
1834
10891472 1835 CC=$ac_ct_CC
1836else
1837 CC="$ac_cv_prog_CC"
1838fi
f6649e03 1839
10891472 1840fi
1841if test -z "$CC"; then
1842 # Extract the first word of "cc", so it can be a program name with args.
1843set dummy cc; ac_word=$2
c185a5dd 1844echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851else
1852 ac_prog_rejected=no
c185a5dd 1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1861 ac_prog_rejected=yes
1862 continue
1863 fi
1864 ac_cv_prog_CC="cc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
10891472 1869done
1870
1871if test $ac_prog_rejected = yes; then
1872 # We found a bogon in the path, so make sure we never use it.
1873 set dummy $ac_cv_prog_CC
1874 shift
1875 if test $# != 0; then
1876 # We chose a different compiler from the bogus one.
1877 # However, it has the same basename, so the bogon will be chosen
1878 # first if we set CC to just the basename; use the full file name.
1879 shift
e646634b 1880 set dummy "$as_dir/$ac_word" ${1+"$@"}
1881 shift
1882 ac_cv_prog_CC="$@"
10891472 1883 fi
1884fi
1885fi
1886fi
1887CC=$ac_cv_prog_CC
1888if test -n "$CC"; then
c185a5dd 1889 echo "$as_me:$LINENO: result: $CC" >&5
10891472 1890echo "${ECHO_T}$CC" >&6
1891else
c185a5dd 1892 echo "$as_me:$LINENO: result: no" >&5
10891472 1893echo "${ECHO_T}no" >&6
1894fi
1895
1896fi
1897if test -z "$CC"; then
1898 if test -n "$ac_tool_prefix"; then
1899 for ac_prog in cl
1900 do
1901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1902set dummy $ac_tool_prefix$ac_prog; ac_word=$2
c185a5dd 1903echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1910else
c185a5dd 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922done
10891472 1923done
1924
1925fi
1926fi
1927CC=$ac_cv_prog_CC
1928if test -n "$CC"; then
c185a5dd 1929 echo "$as_me:$LINENO: result: $CC" >&5
10891472 1930echo "${ECHO_T}$CC" >&6
1931else
c185a5dd 1932 echo "$as_me:$LINENO: result: no" >&5
10891472 1933echo "${ECHO_T}no" >&6
1934fi
1935
1936 test -n "$CC" && break
1937 done
1938fi
1939if test -z "$CC"; then
1940 ac_ct_CC=$CC
1941 for ac_prog in cl
1942do
1943 # Extract the first word of "$ac_prog", so it can be a program name with args.
1944set dummy $ac_prog; ac_word=$2
c185a5dd 1945echo "$as_me:$LINENO: checking for $ac_word" >&5
10891472 1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952else
c185a5dd 1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="$ac_prog"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964done
10891472 1965done
1966
1967fi
1968fi
1969ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970if test -n "$ac_ct_CC"; then
c185a5dd 1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10891472 1972echo "${ECHO_T}$ac_ct_CC" >&6
1973else
c185a5dd 1974 echo "$as_me:$LINENO: result: no" >&5
10891472 1975echo "${ECHO_T}no" >&6
1976fi
1977
1978 test -n "$ac_ct_CC" && break
1979done
1980
1981 CC=$ac_ct_CC
1982fi
f6649e03 1983
10891472 1984fi
f6649e03 1985
c185a5dd 1986
1987test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1988echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
10891472 1989 { (exit 1); exit 1; }; }
1990
1991# Provide some information about the compiler.
c185a5dd 1992echo "$as_me:$LINENO:" \
10891472 1993 "checking for C compiler version" >&5
1994ac_compiler=`set X $ac_compile; echo $2`
c185a5dd 1995{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10891472 1996 (eval $ac_compiler --version </dev/null >&5) 2>&5
1997 ac_status=$?
c185a5dd 1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 1999 (exit $ac_status); }
c185a5dd 2000{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10891472 2001 (eval $ac_compiler -v </dev/null >&5) 2>&5
2002 ac_status=$?
c185a5dd 2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2004 (exit $ac_status); }
c185a5dd 2005{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10891472 2006 (eval $ac_compiler -V </dev/null >&5) 2>&5
2007 ac_status=$?
c185a5dd 2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2009 (exit $ac_status); }
2010
2011cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2012#line $LINENO "configure"
f6649e03 2013#include "confdefs.h"
2014
e646634b 2015#ifdef F77_DUMMY_MAIN
2016# ifdef __cplusplus
2017 extern "C"
2018# endif
2019 int F77_DUMMY_MAIN() { return 1; }
2020#endif
10891472 2021int
2022main ()
2023{
2024
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029ac_clean_files_save=$ac_clean_files
2030ac_clean_files="$ac_clean_files a.out a.exe"
2031# Try to create an executable without -o first, disregard a.out.
2032# It will help us diagnose broken compilers, and finding out an intuition
2033# of exeext.
c185a5dd 2034echo "$as_me:$LINENO: checking for C compiler default output" >&5
10891472 2035echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
c185a5dd 2037if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10891472 2038 (eval $ac_link_default) 2>&5
2039 ac_status=$?
c185a5dd 2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2041 (exit $ac_status); }; then
2042 # Find the output, starting from the most likely. This scheme is
2043# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2044# resort.
c185a5dd 2045
2046# Be careful to initialize this variable, since it used to be cached.
2047# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048ac_cv_exeext=
e646634b 2049for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2050 ls a.out conftest 2>/dev/null;
2051 ls a.* conftest.* 2>/dev/null`; do
10891472 2052 case $ac_file in
e646634b 2053 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
10891472 2054 a.out ) # We found the default executable, but exeext='' is most
2055 # certainly right.
2056 break;;
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2059 export ac_cv_exeext
2060 break;;
2061 * ) break;;
2062 esac
2063done
2064else
2065 echo "$as_me: failed program was:" >&5
2066cat conftest.$ac_ext >&5
e646634b 2067{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2068echo "$as_me: error: C compiler cannot create executables" >&2;}
10891472 2069 { (exit 77); exit 77; }; }
2070fi
2071
2072ac_exeext=$ac_cv_exeext
c185a5dd 2073echo "$as_me:$LINENO: result: $ac_file" >&5
10891472 2074echo "${ECHO_T}$ac_file" >&6
2075
2076# Check the compiler produces executables we can run. If not, either
2077# the compiler is broken, or we cross compile.
c185a5dd 2078echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10891472 2079echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081# If not cross compiling, check that we can run a simple program.
2082if test "$cross_compiling" != yes; then
2083 if { ac_try='./$ac_file'
c185a5dd 2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2085 (eval $ac_try) 2>&5
2086 ac_status=$?
c185a5dd 2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2088 (exit $ac_status); }; }; then
2089 cross_compiling=no
f6649e03 2090 else
10891472 2091 if test "$cross_compiling" = maybe; then
2092 cross_compiling=yes
2093 else
c185a5dd 2094 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10891472 2095If you meant to cross compile, use \`--host'." >&5
2096echo "$as_me: error: cannot run C compiled programs.
2097If you meant to cross compile, use \`--host'." >&2;}
2098 { (exit 1); exit 1; }; }
2099 fi
f6649e03 2100 fi
10891472 2101fi
c185a5dd 2102echo "$as_me:$LINENO: result: yes" >&5
10891472 2103echo "${ECHO_T}yes" >&6
2104
2105rm -f a.out a.exe conftest$ac_cv_exeext
2106ac_clean_files=$ac_clean_files_save
2107# Check the compiler produces executables we can run. If not, either
2108# the compiler is broken, or we cross compile.
c185a5dd 2109echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10891472 2110echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
c185a5dd 2111echo "$as_me:$LINENO: result: $cross_compiling" >&5
10891472 2112echo "${ECHO_T}$cross_compiling" >&6
2113
c185a5dd 2114echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 2117 (eval $ac_link) 2>&5
2118 ac_status=$?
c185a5dd 2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2120 (exit $ac_status); }; then
2121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2123# work properly (i.e., refer to `conftest.exe'), while it won't with
2124# `rm'.
e646634b 2125for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
10891472 2126 case $ac_file in
e646634b 2127 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
10891472 2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129 export ac_cv_exeext
2130 break;;
2131 * ) break;;
2132 esac
2133done
f6649e03 2134else
c185a5dd 2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2136echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
10891472 2137 { (exit 1); exit 1; }; }
f6649e03 2138fi
10891472 2139
2140rm -f conftest$ac_cv_exeext
c185a5dd 2141echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10891472 2142echo "${ECHO_T}$ac_cv_exeext" >&6
2143
2144rm -f conftest.$ac_ext
2145EXEEXT=$ac_cv_exeext
2146ac_exeext=$EXEEXT
c185a5dd 2147echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10891472 2149if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2153#line $LINENO "configure"
10891472 2154#include "confdefs.h"
2155
e646634b 2156#ifdef F77_DUMMY_MAIN
2157# ifdef __cplusplus
2158 extern "C"
2159# endif
2160 int F77_DUMMY_MAIN() { return 1; }
2161#endif
10891472 2162int
2163main ()
2164{
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170rm -f conftest.o conftest.obj
c185a5dd 2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 2172 (eval $ac_compile) 2>&5
2173 ac_status=$?
c185a5dd 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2175 (exit $ac_status); }; then
2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177 case $ac_file in
e646634b 2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
10891472 2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180 break;;
2181 esac
2182done
f6649e03 2183else
10891472 2184 echo "$as_me: failed program was:" >&5
2185cat conftest.$ac_ext >&5
c185a5dd 2186{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2187echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
10891472 2188 { (exit 1); exit 1; }; }
f6649e03 2189fi
10891472 2190
2191rm -f conftest.$ac_cv_objext conftest.$ac_ext
f6649e03 2192fi
c185a5dd 2193echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10891472 2194echo "${ECHO_T}$ac_cv_objext" >&6
2195OBJEXT=$ac_cv_objext
2196ac_objext=$OBJEXT
c185a5dd 2197echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10891472 2198echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2203#line $LINENO "configure"
10891472 2204#include "confdefs.h"
f6649e03 2205
e646634b 2206#ifdef F77_DUMMY_MAIN
2207# ifdef __cplusplus
2208 extern "C"
2209# endif
2210 int F77_DUMMY_MAIN() { return 1; }
2211#endif
10891472 2212int
2213main ()
2214{
2215#ifndef __GNUC__
2216 choke me
2217#endif
f6649e03 2218
10891472 2219 ;
2220 return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
c185a5dd 2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 2225 (eval $ac_compile) 2>&5
2226 ac_status=$?
c185a5dd 2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
c185a5dd 2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2231 (eval $ac_try) 2>&5
2232 ac_status=$?
c185a5dd 2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2234 (exit $ac_status); }; }; then
2235 ac_compiler_gnu=yes
f6649e03 2236else
10891472 2237 echo "$as_me: failed program was:" >&5
2238cat conftest.$ac_ext >&5
2239ac_compiler_gnu=no
f6649e03 2240fi
10891472 2241rm -f conftest.$ac_objext conftest.$ac_ext
2242ac_cv_c_compiler_gnu=$ac_compiler_gnu
f6649e03 2243
10891472 2244fi
c185a5dd 2245echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10891472 2246echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247GCC=`test $ac_compiler_gnu = yes && echo yes`
2248ac_test_CFLAGS=${CFLAGS+set}
2249ac_save_CFLAGS=$CFLAGS
2250CFLAGS="-g"
c185a5dd 2251echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10891472 2252echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253if test "${ac_cv_prog_cc_g+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2255else
10891472 2256 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2257#line $LINENO "configure"
10891472 2258#include "confdefs.h"
2259
e646634b 2260#ifdef F77_DUMMY_MAIN
2261# ifdef __cplusplus
2262 extern "C"
2263# endif
2264 int F77_DUMMY_MAIN() { return 1; }
2265#endif
10891472 2266int
2267main ()
2268{
2269
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274rm -f conftest.$ac_objext
c185a5dd 2275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 2276 (eval $ac_compile) 2>&5
2277 ac_status=$?
c185a5dd 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
c185a5dd 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2282 (eval $ac_try) 2>&5
2283 ac_status=$?
c185a5dd 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2285 (exit $ac_status); }; }; then
f6649e03 2286 ac_cv_prog_cc_g=yes
2287else
10891472 2288 echo "$as_me: failed program was:" >&5
2289cat conftest.$ac_ext >&5
2290ac_cv_prog_cc_g=no
f6649e03 2291fi
10891472 2292rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 2293fi
c185a5dd 2294echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10891472 2295echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f6649e03 2296if test "$ac_test_CFLAGS" = set; then
10891472 2297 CFLAGS=$ac_save_CFLAGS
f6649e03 2298elif test $ac_cv_prog_cc_g = yes; then
2299 if test "$GCC" = yes; then
2300 CFLAGS="-g -O2"
2301 else
2302 CFLAGS="-g"
2303 fi
2304else
2305 if test "$GCC" = yes; then
2306 CFLAGS="-O2"
2307 else
2308 CFLAGS=
2309 fi
2310fi
10891472 2311# Some people use a C++ compiler to compile C. Since we use `exit',
2312# in C++ we need to declare it. In case someone uses the same compiler
2313# for both compiling C and C++ we need to have the C++ compiler decide
2314# the declaration of exit, since it's the most demanding environment.
2315cat >conftest.$ac_ext <<_ACEOF
2316#ifndef __cplusplus
2317 choke me
2318#endif
2319_ACEOF
2320rm -f conftest.$ac_objext
c185a5dd 2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 2322 (eval $ac_compile) 2>&5
2323 ac_status=$?
c185a5dd 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
c185a5dd 2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2328 (eval $ac_try) 2>&5
2329 ac_status=$?
c185a5dd 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
2333 ''\
2334 '#include <stdlib.h>' \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2339 'void exit (int);'
2340do
2341 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2342#line $LINENO "configure"
10891472 2343#include "confdefs.h"
2344#include <stdlib.h>
2345$ac_declaration
e646634b 2346#ifdef F77_DUMMY_MAIN
2347# ifdef __cplusplus
2348 extern "C"
2349# endif
2350 int F77_DUMMY_MAIN() { return 1; }
2351#endif
10891472 2352int
2353main ()
2354{
2355exit (42);
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360rm -f conftest.$ac_objext
c185a5dd 2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 2362 (eval $ac_compile) 2>&5
2363 ac_status=$?
c185a5dd 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2365 (exit $ac_status); } &&
2366 { ac_try='test -s conftest.$ac_objext'
c185a5dd 2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2368 (eval $ac_try) 2>&5
2369 ac_status=$?
c185a5dd 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2371 (exit $ac_status); }; }; then
2372 :
2373else
2374 echo "$as_me: failed program was:" >&5
2375cat conftest.$ac_ext >&5
2376continue
2377fi
2378rm -f conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2380#line $LINENO "configure"
10891472 2381#include "confdefs.h"
2382$ac_declaration
e646634b 2383#ifdef F77_DUMMY_MAIN
2384# ifdef __cplusplus
2385 extern "C"
2386# endif
2387 int F77_DUMMY_MAIN() { return 1; }
2388#endif
10891472 2389int
2390main ()
2391{
2392exit (42);
2393 ;
2394 return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
c185a5dd 2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 2399 (eval $ac_compile) 2>&5
2400 ac_status=$?
c185a5dd 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
c185a5dd 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2405 (eval $ac_try) 2>&5
2406 ac_status=$?
c185a5dd 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2408 (exit $ac_status); }; }; then
2409 break
2410else
2411 echo "$as_me: failed program was:" >&5
2412cat conftest.$ac_ext >&5
2413fi
2414rm -f conftest.$ac_objext conftest.$ac_ext
2415done
2416rm -f conftest*
2417if test -n "$ac_declaration"; then
2418 echo '#ifdef __cplusplus' >>confdefs.h
2419 echo $ac_declaration >>confdefs.h
2420 echo '#endif' >>confdefs.h
2421fi
f6649e03 2422
10891472 2423else
2424 echo "$as_me: failed program was:" >&5
2425cat conftest.$ac_ext >&5
2426fi
2427rm -f conftest.$ac_objext conftest.$ac_ext
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
273c4d04 2433rm -f .deps 2>/dev/null
2434mkdir .deps 2>/dev/null
2435if test -d .deps; then
2436 DEPDIR=.deps
2437else
2438 # MS-DOS does not allow filenames that begin with a dot.
2439 DEPDIR=_deps
2440fi
2441rmdir .deps 2>/dev/null
2442
2443
e646634b 2444ac_config_commands="$ac_config_commands depfiles"
273c4d04 2445
2446
2447am_make=${MAKE-make}
2448cat > confinc << 'END'
2449doit:
2450 @echo done
2451END
2452# If we don't find an include directive, just comment out the code.
2453echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2454echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2455am__include="#"
2456am__quote=
2457_am_result=none
2458# First try GNU make style include.
2459echo "include confinc" > confmf
2460# We grep out `Entering directory' and `Leaving directory'
2461# messages which can occur if `w' ends up in MAKEFLAGS.
2462# In particular we don't look at `^make:' because GNU make might
2463# be invoked under some other name (usually "gmake"), in which
2464# case it prints its new name instead of `make'.
2465if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2466 am__include=include
2467 am__quote=
2468 _am_result=GNU
2469fi
2470# Now try BSD make style include.
2471if test "$am__include" = "#"; then
2472 echo '.include "confinc"' > confmf
2473 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2474 am__include=.include
2475 am__quote="\""
2476 _am_result=BSD
2477 fi
2478fi
2479
2480
2481echo "$as_me:$LINENO: result: $_am_result" >&5
2482echo "${ECHO_T}$_am_result" >&6
2483rm -f confinc confmf
2484
2485# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2486if test "${enable_dependency_tracking+set}" = set; then
2487 enableval="$enable_dependency_tracking"
2488
2489fi;
2490if test "x$enable_dependency_tracking" != xno; then
2491 am_depcomp="$ac_aux_dir/depcomp"
2492 AMDEPBACKSLASH='\'
2493fi
2494
2495
2496if test "x$enable_dependency_tracking" != xno; then
2497 AMDEP_TRUE=
2498 AMDEP_FALSE='#'
2499else
2500 AMDEP_TRUE='#'
2501 AMDEP_FALSE=
2502fi
2503
2504
2505
2506
2507depcc="$CC" am_compiler_list=
2508
2509echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2510echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2511if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2515 # We make a subdir and do the tests there. Otherwise we can end up
2516 # making bogus files that we don't know about and never remove. For
2517 # instance it was reported that on HP-UX the gcc test will end up
2518 # making a dummy file named `D' -- because `-MD' means `put the output
2519 # in D'.
2520 mkdir conftest.dir
2521 # Copy depcomp to subdir because otherwise we won't find it if we're
2522 # using a relative directory.
2523 cp "$am_depcomp" conftest.dir
2524 cd conftest.dir
2525
2526 am_cv_CC_dependencies_compiler_type=none
2527 if test "$am_compiler_list" = ""; then
2528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2529 fi
2530 for depmode in $am_compiler_list; do
2531 # We need to recreate these files for each test, as the compiler may
2532 # overwrite some of them when testing with obscure command lines.
2533 # This happens at least with the AIX C compiler.
2534 echo '#include "conftest.h"' > conftest.c
2535 echo 'int i;' > conftest.h
2536 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2537
2538 case $depmode in
2539 nosideeffect)
2540 # after this tag, mechanisms are not by side-effect, so they'll
2541 # only be used when explicitly requested
2542 if test "x$enable_dependency_tracking" = xyes; then
2543 continue
2544 else
2545 break
2546 fi
2547 ;;
2548 none) break ;;
2549 esac
2550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2551 # mode. It turns out that the SunPro C++ compiler does not properly
2552 # handle `-M -o', and we need to detect this.
2553 if depmode=$depmode \
2554 source=conftest.c object=conftest.o \
2555 depfile=conftest.Po tmpdepfile=conftest.TPo \
2556 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2557 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2559 am_cv_CC_dependencies_compiler_type=$depmode
2560 break
2561 fi
2562 done
2563
2564 cd ..
2565 rm -rf conftest.dir
2566else
2567 am_cv_CC_dependencies_compiler_type=none
2568fi
2569
2570fi
2571echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2572echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2574
f6649e03 2575
c185a5dd 2576
2577
2578
10891472 2579ac_ext=c
2580ac_cpp='$CPP $CPPFLAGS'
2581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583ac_compiler_gnu=$ac_cv_c_compiler_gnu
c185a5dd 2584echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10891472 2585echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
f6649e03 2586# On Suns, sometimes $CPP names a directory.
2587if test -n "$CPP" && test -d "$CPP"; then
2588 CPP=
2589fi
2590if test -z "$CPP"; then
10891472 2591 if test "${ac_cv_prog_CPP+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2593else
10891472 2594 # Double quotes because CPP needs to be expanded
2595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2596 do
2597 ac_preproc_ok=false
2598for ac_c_preproc_warn_flag in '' yes
2599do
2600 # Use a header file that comes with gcc, so configuring glibc
2601 # with a fresh cross-compiler works.
f6649e03 2602 # On the NeXT, cc -E runs the code through the compiler's parser,
10891472 2603 # not just through cpp. "Syntax error" is here to catch this case.
2604 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2605#line $LINENO "configure"
f6649e03 2606#include "confdefs.h"
2607#include <assert.h>
10891472 2608 Syntax error
2609_ACEOF
c185a5dd 2610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2612 ac_status=$?
e646634b 2613 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 2614 rm -f conftest.er1
2615 cat conftest.err >&5
c185a5dd 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2617 (exit $ac_status); } >/dev/null; then
2618 if test -s conftest.err; then
2619 ac_cpp_err=$ac_c_preproc_warn_flag
2620 else
2621 ac_cpp_err=
2622 fi
2623else
2624 ac_cpp_err=yes
2625fi
2626if test -z "$ac_cpp_err"; then
f6649e03 2627 :
2628else
10891472 2629 echo "$as_me: failed program was:" >&5
f6649e03 2630 cat conftest.$ac_ext >&5
10891472 2631 # Broken: fails on valid input.
2632continue
2633fi
2634rm -f conftest.err conftest.$ac_ext
2635
2636 # OK, works on sane cases. Now check whether non-existent headers
2637 # can be detected and how.
2638 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2639#line $LINENO "configure"
f6649e03 2640#include "confdefs.h"
10891472 2641#include <ac_nonexistent.h>
2642_ACEOF
c185a5dd 2643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645 ac_status=$?
e646634b 2646 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 2647 rm -f conftest.er1
2648 cat conftest.err >&5
c185a5dd 2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2650 (exit $ac_status); } >/dev/null; then
2651 if test -s conftest.err; then
2652 ac_cpp_err=$ac_c_preproc_warn_flag
2653 else
2654 ac_cpp_err=
2655 fi
2656else
2657 ac_cpp_err=yes
2658fi
2659if test -z "$ac_cpp_err"; then
2660 # Broken: success on invalid input.
2661continue
f6649e03 2662else
10891472 2663 echo "$as_me: failed program was:" >&5
f6649e03 2664 cat conftest.$ac_ext >&5
10891472 2665 # Passes both tests.
2666ac_preproc_ok=:
2667break
2668fi
2669rm -f conftest.err conftest.$ac_ext
2670
2671done
2672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2673rm -f conftest.err conftest.$ac_ext
2674if $ac_preproc_ok; then
2675 break
2676fi
2677
2678 done
2679 ac_cv_prog_CPP=$CPP
2680
2681fi
2682 CPP=$ac_cv_prog_CPP
2683else
2684 ac_cv_prog_CPP=$CPP
2685fi
c185a5dd 2686echo "$as_me:$LINENO: result: $CPP" >&5
10891472 2687echo "${ECHO_T}$CPP" >&6
2688ac_preproc_ok=false
2689for ac_c_preproc_warn_flag in '' yes
2690do
2691 # Use a header file that comes with gcc, so configuring glibc
2692 # with a fresh cross-compiler works.
2693 # On the NeXT, cc -E runs the code through the compiler's parser,
2694 # not just through cpp. "Syntax error" is here to catch this case.
2695 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2696#line $LINENO "configure"
f6649e03 2697#include "confdefs.h"
2698#include <assert.h>
10891472 2699 Syntax error
2700_ACEOF
c185a5dd 2701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703 ac_status=$?
e646634b 2704 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 2705 rm -f conftest.er1
2706 cat conftest.err >&5
c185a5dd 2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2708 (exit $ac_status); } >/dev/null; then
2709 if test -s conftest.err; then
2710 ac_cpp_err=$ac_c_preproc_warn_flag
2711 else
2712 ac_cpp_err=
2713 fi
2714else
2715 ac_cpp_err=yes
2716fi
2717if test -z "$ac_cpp_err"; then
f6649e03 2718 :
2719else
10891472 2720 echo "$as_me: failed program was:" >&5
f6649e03 2721 cat conftest.$ac_ext >&5
10891472 2722 # Broken: fails on valid input.
2723continue
f6649e03 2724fi
10891472 2725rm -f conftest.err conftest.$ac_ext
2726
2727 # OK, works on sane cases. Now check whether non-existent headers
2728 # can be detected and how.
2729 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2730#line $LINENO "configure"
10891472 2731#include "confdefs.h"
2732#include <ac_nonexistent.h>
2733_ACEOF
c185a5dd 2734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2736 ac_status=$?
e646634b 2737 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 2738 rm -f conftest.er1
2739 cat conftest.err >&5
c185a5dd 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2744 else
2745 ac_cpp_err=
2746 fi
2747else
2748 ac_cpp_err=yes
f6649e03 2749fi
10891472 2750if test -z "$ac_cpp_err"; then
2751 # Broken: success on invalid input.
2752continue
2753else
2754 echo "$as_me: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 # Passes both tests.
2757ac_preproc_ok=:
2758break
f6649e03 2759fi
10891472 2760rm -f conftest.err conftest.$ac_ext
2761
2762done
2763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764rm -f conftest.err conftest.$ac_ext
2765if $ac_preproc_ok; then
2766 :
f6649e03 2767else
c185a5dd 2768 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
10891472 2769echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2770 { (exit 1); exit 1; }; }
f6649e03 2771fi
f6649e03 2772
10891472 2773ac_ext=c
2774ac_cpp='$CPP $CPPFLAGS'
2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778
c185a5dd 2779
2780echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10891472 2781echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2782if test "${ac_cv_header_stdc+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 2784else
10891472 2785 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2786#line $LINENO "configure"
f6649e03 2787#include "confdefs.h"
2788#include <stdlib.h>
2789#include <stdarg.h>
2790#include <string.h>
2791#include <float.h>
10891472 2792
2793_ACEOF
c185a5dd 2794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 2795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796 ac_status=$?
e646634b 2797 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 2798 rm -f conftest.er1
2799 cat conftest.err >&5
c185a5dd 2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2801 (exit $ac_status); } >/dev/null; then
2802 if test -s conftest.err; then
2803 ac_cpp_err=$ac_c_preproc_warn_flag
2804 else
2805 ac_cpp_err=
2806 fi
2807else
2808 ac_cpp_err=yes
2809fi
2810if test -z "$ac_cpp_err"; then
f6649e03 2811 ac_cv_header_stdc=yes
2812else
10891472 2813 echo "$as_me: failed program was:" >&5
f6649e03 2814 cat conftest.$ac_ext >&5
f6649e03 2815 ac_cv_header_stdc=no
2816fi
10891472 2817rm -f conftest.err conftest.$ac_ext
f6649e03 2818
2819if test $ac_cv_header_stdc = yes; then
2820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10891472 2821 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2822#line $LINENO "configure"
f6649e03 2823#include "confdefs.h"
2824#include <string.h>
10891472 2825
2826_ACEOF
f6649e03 2827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e646634b 2828 egrep "memchr" >/dev/null 2>&1; then
f6649e03 2829 :
2830else
f6649e03 2831 ac_cv_header_stdc=no
2832fi
2833rm -f conftest*
2834
2835fi
2836
2837if test $ac_cv_header_stdc = yes; then
2838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10891472 2839 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2840#line $LINENO "configure"
f6649e03 2841#include "confdefs.h"
2842#include <stdlib.h>
10891472 2843
2844_ACEOF
f6649e03 2845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e646634b 2846 egrep "free" >/dev/null 2>&1; then
f6649e03 2847 :
2848else
f6649e03 2849 ac_cv_header_stdc=no
2850fi
2851rm -f conftest*
2852
2853fi
2854
2855if test $ac_cv_header_stdc = yes; then
2856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10891472 2857 if test "$cross_compiling" = yes; then
f6649e03 2858 :
2859else
10891472 2860 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2861#line $LINENO "configure"
f6649e03 2862#include "confdefs.h"
2863#include <ctype.h>
10891472 2864#if ((' ' & 0x0FF) == 0x020)
2865# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2866# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2867#else
2868# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2869 || ('j' <= (c) && (c) <= 'r') \
2870 || ('s' <= (c) && (c) <= 'z'))
2871# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2872#endif
f6649e03 2873
10891472 2874#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2875int
2876main ()
2877{
2878 int i;
2879 for (i = 0; i < 256; i++)
2880 if (XOR (islower (i), ISLOWER (i))
2881 || toupper (i) != TOUPPER (i))
2882 exit(2);
2883 exit (0);
2884}
2885_ACEOF
2886rm -f conftest$ac_exeext
c185a5dd 2887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 2888 (eval $ac_link) 2>&5
2889 ac_status=$?
c185a5dd 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c185a5dd 2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 2893 (eval $ac_try) 2>&5
2894 ac_status=$?
c185a5dd 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 2896 (exit $ac_status); }; }; then
f6649e03 2897 :
2898else
10891472 2899 echo "$as_me: program exited with status $ac_status" >&5
2900echo "$as_me: failed program was:" >&5
2901cat conftest.$ac_ext >&5
c185a5dd 2902( exit $ac_status )
10891472 2903ac_cv_header_stdc=no
f6649e03 2904fi
e646634b 2905rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f6649e03 2906fi
f6649e03 2907fi
2908fi
c185a5dd 2909echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10891472 2910echo "${ECHO_T}$ac_cv_header_stdc" >&6
f6649e03 2911if test $ac_cv_header_stdc = yes; then
10891472 2912
c185a5dd 2913cat >>confdefs.h <<\_ACEOF
f6649e03 2914#define STDC_HEADERS 1
c185a5dd 2915_ACEOF
f6649e03 2916
2917fi
2918
c185a5dd 2919
5bd052df 2920if test "$with_select" = "yes"; then
2921 echo "use of select() forced, skipping poll() checks..."
10891472 2922
c185a5dd 2923cat >>confdefs.h <<\_ACEOF
5bd052df 2924#define WITH_SELECT 1
c185a5dd 2925_ACEOF
10891472 2926
10891472 2927else
c185a5dd 2928 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10891472 2929
c185a5dd 2930
2931
2932
2933
2934
2935
2936
2937
2938for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2939 inttypes.h stdint.h unistd.h
c99ff383 2940do
2941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c185a5dd 2942echo "$as_me:$LINENO: checking for $ac_header" >&5
c99ff383 2943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2944if eval "test \"\${$as_ac_Header+set}\" = set"; then
10891472 2945 echo $ECHO_N "(cached) $ECHO_C" >&6
10891472 2946else
cc2baf42 2947 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 2948#line $LINENO "configure"
10891472 2949#include "confdefs.h"
c185a5dd 2950$ac_includes_default
2951
c99ff383 2952#include <$ac_header>
10891472 2953_ACEOF
c185a5dd 2954rm -f conftest.$ac_objext
2955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 eval "$as_ac_Header=yes"
2967else
2968 echo "$as_me: failed program was:" >&5
2969cat conftest.$ac_ext >&5
2970eval "$as_ac_Header=no"
2971fi
2972rm -f conftest.$ac_objext conftest.$ac_ext
2973fi
2974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2976if test `eval echo '${'$as_ac_Header'}'` = yes; then
2977 cat >>confdefs.h <<_ACEOF
2978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2979_ACEOF
2980
2981fi
2982
2983done
2984
2985
2986
2987for ac_header in sys/poll.h
2988do
2989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2990if eval "test \"\${$as_ac_Header+set}\" = set"; then
2991 echo "$as_me:$LINENO: checking for $ac_header" >&5
2992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2993if eval "test \"\${$as_ac_Header+set}\" = set"; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995fi
2996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2998else
2999 # Is the header compilable?
3000echo "$as_me:$LINENO: checking $ac_header usability" >&5
3001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3002cat >conftest.$ac_ext <<_ACEOF
3003#line $LINENO "configure"
3004#include "confdefs.h"
3005$ac_includes_default
3006#include <$ac_header>
3007_ACEOF
3008rm -f conftest.$ac_objext
3009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 (eval $ac_try) 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 ac_header_compiler=yes
3021else
3022 echo "$as_me: failed program was:" >&5
3023cat conftest.$ac_ext >&5
3024ac_header_compiler=no
3025fi
3026rm -f conftest.$ac_objext conftest.$ac_ext
3027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3028echo "${ECHO_T}$ac_header_compiler" >&6
3029
3030# Is the header present?
3031echo "$as_me:$LINENO: checking $ac_header presence" >&5
3032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3033cat >conftest.$ac_ext <<_ACEOF
3034#line $LINENO "configure"
3035#include "confdefs.h"
3036#include <$ac_header>
3037_ACEOF
3038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040 ac_status=$?
e646634b 3041 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 3042 rm -f conftest.er1
3043 cat conftest.err >&5
c185a5dd 3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 else
3049 ac_cpp_err=
3050 fi
3051else
3052 ac_cpp_err=yes
3053fi
3054if test -z "$ac_cpp_err"; then
c185a5dd 3055 ac_header_preproc=yes
10891472 3056else
3057 echo "$as_me: failed program was:" >&5
5bd052df 3058 cat conftest.$ac_ext >&5
c185a5dd 3059 ac_header_preproc=no
5bd052df 3060fi
10891472 3061rm -f conftest.err conftest.$ac_ext
c185a5dd 3062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3063echo "${ECHO_T}$ac_header_preproc" >&6
3064
3065# So? What about this header?
3066case $ac_header_compiler:$ac_header_preproc in
3067 yes:no )
3068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3072 no:yes )
3073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3079esac
3080echo "$as_me:$LINENO: checking for $ac_header" >&5
3081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3082if eval "test \"\${$as_ac_Header+set}\" = set"; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 eval "$as_ac_Header=$ac_header_preproc"
10891472 3086fi
c185a5dd 3087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
c99ff383 3088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c185a5dd 3089
3090fi
c99ff383 3091if test `eval echo '${'$as_ac_Header'}'` = yes; then
c185a5dd 3092 cat >>confdefs.h <<_ACEOF
c99ff383 3093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c185a5dd 3094_ACEOF
c99ff383 3095 have_poll_sys_h=yes
5bd052df 3096else
10891472 3097 have_sys_poll_h=no
5bd052df 3098fi
c185a5dd 3099
c99ff383 3100done
3101
5bd052df 3102fi
3103
eedb8c58 3104if test "$with_unreal" = "yes"; then
3105 echo "configuring for Unreal ircd"
10891472 3106
c185a5dd 3107cat >>confdefs.h <<\_ACEOF
eedb8c58 3108#define WITH_UNREAL 1
c185a5dd 3109_ACEOF
eedb8c58 3110
3111fi
3112
c185a5dd 3113
3114
3115
3116
cc2baf42 3117for ac_header in fcntl.h sys/time.h unistd.h strings.h
f6649e03 3118do
10891472 3119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c185a5dd 3120if eval "test \"\${$as_ac_Header+set}\" = set"; then
3121 echo "$as_me:$LINENO: checking for $ac_header" >&5
10891472 3122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3123if eval "test \"\${$as_ac_Header+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
c185a5dd 3125fi
3126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891472 3128else
c185a5dd 3129 # Is the header compilable?
3130echo "$as_me:$LINENO: checking $ac_header usability" >&5
3131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3132cat >conftest.$ac_ext <<_ACEOF
3133#line $LINENO "configure"
3134#include "confdefs.h"
3135$ac_includes_default
3136#include <$ac_header>
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_header_compiler=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153cat conftest.$ac_ext >&5
3154ac_header_compiler=no
3155fi
3156rm -f conftest.$ac_objext conftest.$ac_ext
3157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3158echo "${ECHO_T}$ac_header_compiler" >&6
3159
3160# Is the header present?
3161echo "$as_me:$LINENO: checking $ac_header presence" >&5
3162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3163cat >conftest.$ac_ext <<_ACEOF
3164#line $LINENO "configure"
10891472 3165#include "confdefs.h"
3166#include <$ac_header>
3167_ACEOF
c185a5dd 3168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891472 3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 ac_status=$?
e646634b 3171 egrep -v '^ *\+' conftest.er1 >conftest.err
10891472 3172 rm -f conftest.er1
3173 cat conftest.err >&5
c185a5dd 3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_c_preproc_warn_flag
3178 else
3179 ac_cpp_err=
3180 fi
3181else
3182 ac_cpp_err=yes
f6649e03 3183fi
10891472 3184if test -z "$ac_cpp_err"; then
c185a5dd 3185 ac_header_preproc=yes
f6649e03 3186else
10891472 3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
c185a5dd 3189 ac_header_preproc=no
10891472 3190fi
3191rm -f conftest.err conftest.$ac_ext
c185a5dd 3192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3193echo "${ECHO_T}$ac_header_preproc" >&6
3194
3195# So? What about this header?
3196case $ac_header_compiler:$ac_header_preproc in
3197 yes:no )
3198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3202 no:yes )
3203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3209esac
3210echo "$as_me:$LINENO: checking for $ac_header" >&5
3211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3212if eval "test \"\${$as_ac_Header+set}\" = set"; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215 eval "$as_ac_Header=$ac_header_preproc"
10891472 3216fi
c185a5dd 3217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10891472 3218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c185a5dd 3219
3220fi
10891472 3221if test `eval echo '${'$as_ac_Header'}'` = yes; then
c185a5dd 3222 cat >>confdefs.h <<_ACEOF
10891472 3223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c185a5dd 3224_ACEOF
10891472 3225
f6649e03 3226fi
c185a5dd 3227
10891472 3228done
f6649e03 3229
c185a5dd 3230
e646634b 3231echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3232echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3233if test "${ac_cv_prog_cc_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 ac_cv_prog_cc_stdc=no
3237ac_save_CC=$CC
3238cat >conftest.$ac_ext <<_ACEOF
3239#line $LINENO "configure"
3240#include "confdefs.h"
3241#include <stdarg.h>
3242#include <stdio.h>
3243#include <sys/types.h>
3244#include <sys/stat.h>
3245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246struct buf { int x; };
3247FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248static char *e (p, i)
3249 char **p;
3250 int i;
3251{
3252 return p[i];
3253}
3254static char *f (char * (*g) (char **, int), char **p, ...)
3255{
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3262}
3263int test (int i, double x);
3264struct s1 {int (*f) (int a);};
3265struct s2 {int (*f) (double a);};
3266int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3267int argc;
3268char **argv;
3269#ifdef F77_DUMMY_MAIN
3270# ifdef __cplusplus
3271 extern "C"
3272# endif
3273 int F77_DUMMY_MAIN() { return 1; }
3274#endif
3275int
3276main ()
3277{
3278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283# Don't try gcc -ansi; that turns off useful extensions and
3284# breaks some systems' header files.
3285# AIX -qlanglvl=ansi
3286# Ultrix and OSF/1 -std1
3287# HP-UX 10.20 and later -Ae
3288# HP-UX older versions -Aa -D_HPUX_SOURCE
3289# SVR4 -Xc -D__EXTENSIONS__
3290for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3291do
3292 CC="$ac_save_CC $ac_arg"
3293 rm -f conftest.$ac_objext
3294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_prog_cc_stdc=$ac_arg
3306break
3307else
3308 echo "$as_me: failed program was:" >&5
3309cat conftest.$ac_ext >&5
3310fi
3311rm -f conftest.$ac_objext
3312done
3313rm -f conftest.$ac_ext conftest.$ac_objext
3314CC=$ac_save_CC
3315
3316fi
3317
3318case "x$ac_cv_prog_cc_stdc" in
3319 x|xno)
3320 echo "$as_me:$LINENO: result: none needed" >&5
3321echo "${ECHO_T}none needed" >&6 ;;
3322 *)
3323 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3324echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3325 CC="$CC $ac_cv_prog_cc_stdc" ;;
3326esac
3327
c185a5dd 3328echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10891472 3329echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3330if test "${ac_cv_c_const+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3334#line $LINENO "configure"
10891472 3335#include "confdefs.h"
3336
e646634b 3337#ifdef F77_DUMMY_MAIN
3338# ifdef __cplusplus
3339 extern "C"
3340# endif
3341 int F77_DUMMY_MAIN() { return 1; }
3342#endif
10891472 3343int
3344main ()
3345{
3346/* FIXME: Include the comments suggested by Paul. */
3347#ifndef __cplusplus
3348 /* Ultrix mips cc rejects this. */
3349 typedef int charset[2];
3350 const charset x;
3351 /* SunOS 4.1.1 cc rejects this. */
3352 char const *const *ccp;
3353 char **p;
3354 /* NEC SVR4.0.2 mips cc rejects this. */
3355 struct point {int x, y;};
3356 static struct point const zero = {0,0};
3357 /* AIX XL C 1.02.0.0 rejects this.
3358 It does not let you subtract one const X* pointer from another in
3359 an arm of an if-expression whose if-part is not a constant
3360 expression */
3361 const char *g = "string";
3362 ccp = &g + (g ? g-g : 0);
3363 /* HPUX 7.0 cc rejects these. */
3364 ++ccp;
3365 p = (char**) ccp;
3366 ccp = (char const *const *) p;
3367 { /* SCO 3.2v4 cc rejects this. */
3368 char *t;
3369 char const *s = 0 ? (char *) 0 : (char const *) 0;
3370
3371 *t++ = 0;
3372 }
3373 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3374 int x[] = {25, 17};
3375 const int *foo = &x[0];
3376 ++foo;
3377 }
3378 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3379 typedef const int *iptr;
3380 iptr p = 0;
3381 ++p;
3382 }
3383 { /* AIX XL C 1.02.0.0 rejects this saying
3384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3385 struct s { int j; const int *ap[3]; };
3386 struct s *b; b->j = 5;
3387 }
3388 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3389 const int foo = 10;
3390 }
3391#endif
f6649e03 3392
10891472 3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
c185a5dd 3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 3399 (eval $ac_compile) 2>&5
3400 ac_status=$?
c185a5dd 3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3402 (exit $ac_status); } &&
3403 { ac_try='test -s conftest.$ac_objext'
c185a5dd 3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3405 (eval $ac_try) 2>&5
3406 ac_status=$?
c185a5dd 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3408 (exit $ac_status); }; }; then
f6649e03 3409 ac_cv_c_const=yes
3410else
10891472 3411 echo "$as_me: failed program was:" >&5
3412cat conftest.$ac_ext >&5
3413ac_cv_c_const=no
f6649e03 3414fi
10891472 3415rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 3416fi
c185a5dd 3417echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10891472 3418echo "${ECHO_T}$ac_cv_c_const" >&6
f6649e03 3419if test $ac_cv_c_const = no; then
10891472 3420
c185a5dd 3421cat >>confdefs.h <<\_ACEOF
10891472 3422#define const
3423_ACEOF
f6649e03 3424
3425fi
3426
c185a5dd 3427echo "$as_me:$LINENO: checking for size_t" >&5
10891472 3428echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3429if test "${ac_cv_type_size_t+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 3431else
10891472 3432 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3433#line $LINENO "configure"
f6649e03 3434#include "confdefs.h"
10891472 3435$ac_includes_default
e646634b 3436#ifdef F77_DUMMY_MAIN
3437# ifdef __cplusplus
3438 extern "C"
3439# endif
3440 int F77_DUMMY_MAIN() { return 1; }
3441#endif
10891472 3442int
3443main ()
3444{
3445if ((size_t *) 0)
3446 return 0;
3447if (sizeof (size_t))
3448 return 0;
3449 ;
3450 return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
c185a5dd 3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 3455 (eval $ac_compile) 2>&5
3456 ac_status=$?
c185a5dd 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3458 (exit $ac_status); } &&
3459 { ac_try='test -s conftest.$ac_objext'
c185a5dd 3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3461 (eval $ac_try) 2>&5
3462 ac_status=$?
c185a5dd 3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3464 (exit $ac_status); }; }; then
f6649e03 3465 ac_cv_type_size_t=yes
3466else
10891472 3467 echo "$as_me: failed program was:" >&5
3468cat conftest.$ac_ext >&5
3469ac_cv_type_size_t=no
f6649e03 3470fi
10891472 3471rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 3472fi
c185a5dd 3473echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10891472 3474echo "${ECHO_T}$ac_cv_type_size_t" >&6
3475if test $ac_cv_type_size_t = yes; then
3476 :
3477else
3478
c185a5dd 3479cat >>confdefs.h <<_ACEOF
f6649e03 3480#define size_t unsigned
c185a5dd 3481_ACEOF
f6649e03 3482
3483fi
3484
c185a5dd 3485echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10891472 3486echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3487if test "${ac_cv_header_time+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 3489else
10891472 3490 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3491#line $LINENO "configure"
f6649e03 3492#include "confdefs.h"
3493#include <sys/types.h>
3494#include <sys/time.h>
3495#include <time.h>
10891472 3496
e646634b 3497#ifdef F77_DUMMY_MAIN
3498# ifdef __cplusplus
3499 extern "C"
3500# endif
3501 int F77_DUMMY_MAIN() { return 1; }
3502#endif
10891472 3503int
3504main ()
3505{
3506if ((struct tm *) 0)
3507return 0;
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext
c185a5dd 3513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 3514 (eval $ac_compile) 2>&5
3515 ac_status=$?
c185a5dd 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest.$ac_objext'
c185a5dd 3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3520 (eval $ac_try) 2>&5
3521 ac_status=$?
c185a5dd 3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3523 (exit $ac_status); }; }; then
f6649e03 3524 ac_cv_header_time=yes
3525else
10891472 3526 echo "$as_me: failed program was:" >&5
3527cat conftest.$ac_ext >&5
3528ac_cv_header_time=no
f6649e03 3529fi
10891472 3530rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 3531fi
c185a5dd 3532echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10891472 3533echo "${ECHO_T}$ac_cv_header_time" >&6
f6649e03 3534if test $ac_cv_header_time = yes; then
10891472 3535
c185a5dd 3536cat >>confdefs.h <<\_ACEOF
f6649e03 3537#define TIME_WITH_SYS_TIME 1
c185a5dd 3538_ACEOF
f6649e03 3539
3540fi
3541
c185a5dd 3542echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10891472 3543echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3544if test "${ac_cv_struct_tm+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 3546else
10891472 3547 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3548#line $LINENO "configure"
f6649e03 3549#include "confdefs.h"
3550#include <sys/types.h>
3551#include <time.h>
10891472 3552
e646634b 3553#ifdef F77_DUMMY_MAIN
3554# ifdef __cplusplus
3555 extern "C"
3556# endif
3557 int F77_DUMMY_MAIN() { return 1; }
3558#endif
10891472 3559int
3560main ()
3561{
f6649e03 3562struct tm *tp; tp->tm_sec;
10891472 3563 ;
3564 return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext
c185a5dd 3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 3569 (eval $ac_compile) 2>&5
3570 ac_status=$?
c185a5dd 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3572 (exit $ac_status); } &&
3573 { ac_try='test -s conftest.$ac_objext'
c185a5dd 3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3575 (eval $ac_try) 2>&5
3576 ac_status=$?
c185a5dd 3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3578 (exit $ac_status); }; }; then
f6649e03 3579 ac_cv_struct_tm=time.h
3580else
10891472 3581 echo "$as_me: failed program was:" >&5
3582cat conftest.$ac_ext >&5
3583ac_cv_struct_tm=sys/time.h
f6649e03 3584fi
10891472 3585rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 3586fi
c185a5dd 3587echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10891472 3588echo "${ECHO_T}$ac_cv_struct_tm" >&6
f6649e03 3589if test $ac_cv_struct_tm = sys/time.h; then
10891472 3590
c185a5dd 3591cat >>confdefs.h <<\_ACEOF
f6649e03 3592#define TM_IN_SYS_TIME 1
c185a5dd 3593_ACEOF
f6649e03 3594
3595fi
3596
c185a5dd 3597
3598echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10891472 3599echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3600if test "${ac_cv_type_signal+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 3602else
10891472 3603 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3604#line $LINENO "configure"
f6649e03 3605#include "confdefs.h"
3606#include <sys/types.h>
3607#include <signal.h>
3608#ifdef signal
10891472 3609# undef signal
f6649e03 3610#endif
3611#ifdef __cplusplus
3612extern "C" void (*signal (int, void (*)(int)))(int);
3613#else
3614void (*signal ()) ();
3615#endif
3616
e646634b 3617#ifdef F77_DUMMY_MAIN
3618# ifdef __cplusplus
3619 extern "C"
3620# endif
3621 int F77_DUMMY_MAIN() { return 1; }
3622#endif
10891472 3623int
3624main ()
3625{
f6649e03 3626int i;
10891472 3627 ;
3628 return 0;
3629}
3630_ACEOF
3631rm -f conftest.$ac_objext
c185a5dd 3632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 3633 (eval $ac_compile) 2>&5
3634 ac_status=$?
c185a5dd 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3636 (exit $ac_status); } &&
3637 { ac_try='test -s conftest.$ac_objext'
c185a5dd 3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3639 (eval $ac_try) 2>&5
3640 ac_status=$?
c185a5dd 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3642 (exit $ac_status); }; }; then
f6649e03 3643 ac_cv_type_signal=void
3644else
10891472 3645 echo "$as_me: failed program was:" >&5
3646cat conftest.$ac_ext >&5
3647ac_cv_type_signal=int
f6649e03 3648fi
10891472 3649rm -f conftest.$ac_objext conftest.$ac_ext
f6649e03 3650fi
c185a5dd 3651echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10891472 3652echo "${ECHO_T}$ac_cv_type_signal" >&6
f6649e03 3653
c185a5dd 3654cat >>confdefs.h <<_ACEOF
f6649e03 3655#define RETSIGTYPE $ac_cv_type_signal
c185a5dd 3656_ACEOF
3657
3658
f6649e03 3659
10891472 3660for ac_func in strftime
3661do
3662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c185a5dd 3663echo "$as_me:$LINENO: checking for $ac_func" >&5
10891472 3664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3665if eval "test \"\${$as_ac_var+set}\" = set"; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 3667else
10891472 3668 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3669#line $LINENO "configure"
f6649e03 3670#include "confdefs.h"
3671/* System header to define __stub macros and hopefully few prototypes,
10891472 3672 which can conflict with char $ac_func (); below. */
f6649e03 3673#include <assert.h>
3674/* Override any gcc2 internal prototype to avoid an error. */
10891472 3675#ifdef __cplusplus
3676extern "C"
3677#endif
f6649e03 3678/* We use char because int might match the return type of a gcc2
10891472 3679 builtin and then its argument prototype would still apply. */
3680char $ac_func ();
3681char (*f) ();
3682
e646634b 3683#ifdef F77_DUMMY_MAIN
3684# ifdef __cplusplus
3685 extern "C"
3686# endif
3687 int F77_DUMMY_MAIN() { return 1; }
3688#endif
10891472 3689int
3690main ()
3691{
f6649e03 3692/* The GNU C library defines this for functions which it implements
3693 to always fail with ENOSYS. Some functions are actually named
3694 something starting with __ and the normal name is an alias. */
10891472 3695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f6649e03 3696choke me
3697#else
10891472 3698f = $ac_func;
f6649e03 3699#endif
3700
10891472 3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext conftest$ac_exeext
c185a5dd 3706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 3707 (eval $ac_link) 2>&5
3708 ac_status=$?
c185a5dd 3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3710 (exit $ac_status); } &&
3711 { ac_try='test -s conftest$ac_exeext'
c185a5dd 3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3713 (eval $ac_try) 2>&5
3714 ac_status=$?
c185a5dd 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3716 (exit $ac_status); }; }; then
3717 eval "$as_ac_var=yes"
f6649e03 3718else
10891472 3719 echo "$as_me: failed program was:" >&5
3720cat conftest.$ac_ext >&5
3721eval "$as_ac_var=no"
f6649e03 3722fi
10891472 3723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f6649e03 3724fi
c185a5dd 3725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10891472 3726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3727if test `eval echo '${'$as_ac_var'}'` = yes; then
c185a5dd 3728 cat >>confdefs.h <<_ACEOF
10891472 3729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c185a5dd 3730_ACEOF
f6649e03 3731
3732else
10891472 3733 # strftime is in -lintl on SCO UNIX.
c185a5dd 3734echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10891472 3735echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
3736if test "${ac_cv_lib_intl_strftime+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 3738else
10891472 3739 ac_check_lib_save_LIBS=$LIBS
f6649e03 3740LIBS="-lintl $LIBS"
10891472 3741cat >conftest.$ac_ext <<_ACEOF
c185a5dd 3742#line $LINENO "configure"
f6649e03 3743#include "confdefs.h"
10891472 3744
f6649e03 3745/* Override any gcc2 internal prototype to avoid an error. */
10891472 3746#ifdef __cplusplus
3747extern "C"
3748#endif
f6649e03 3749/* We use char because int might match the return type of a gcc2
10891472 3750 builtin and then its argument prototype would still apply. */
3751char strftime ();
e646634b 3752#ifdef F77_DUMMY_MAIN
3753# ifdef __cplusplus
3754 extern "C"
3755# endif
3756 int F77_DUMMY_MAIN() { return 1; }
3757#endif
10891472 3758int
3759main ()
3760{
3761strftime ();
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext conftest$ac_exeext
c185a5dd 3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 3768 (eval $ac_link) 2>&5
3769 ac_status=$?
c185a5dd 3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3771 (exit $ac_status); } &&
3772 { ac_try='test -s conftest$ac_exeext'
c185a5dd 3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 3774 (eval $ac_try) 2>&5
3775 ac_status=$?
c185a5dd 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 3777 (exit $ac_status); }; }; then
3778 ac_cv_lib_intl_strftime=yes
3779else
3780 echo "$as_me: failed program was:" >&5
3781cat conftest.$ac_ext >&5
3782ac_cv_lib_intl_strftime=no
f6649e03 3783fi
10891472 3784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3785LIBS=$ac_check_lib_save_LIBS
f6649e03 3786fi
c185a5dd 3787echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10891472 3788echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
3789if test $ac_cv_lib_intl_strftime = yes; then
c185a5dd 3790 cat >>confdefs.h <<\_ACEOF
f6649e03 3791#define HAVE_STRFTIME 1
c185a5dd 3792_ACEOF
f6649e03 3793
3794LIBS="-lintl $LIBS"
f6649e03 3795fi
3796
3797fi
10891472 3798done
5bd052df 3799
c185a5dd 3800
d104a616 3801# Find a good install program. We prefer a C program (faster),
3802# so one script is as good as another. But avoid the broken or
3803# incompatible versions:
3804# SysV /etc/install, /usr/sbin/install
3805# SunOS /usr/etc/install
3806# IRIX /sbin/install
3807# AIX /bin/install
3808# AmigaOS /C/install, which installs bootblocks on floppy discs
3809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3812# ./install, which can be erroneously created by make from ./install.sh.
3813echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3814echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3815if test -z "$INSTALL"; then
3816if test "${ac_cv_path_install+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 # Account for people who put trailing slashes in PATH elements.
3825case $as_dir/ in
3826 ./ | .// | /cC/* | \
3827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3828 /usr/ucb/* ) ;;
3829 *)
3830 # OSF1 and SCO ODT 3.0 have their own names for install.
3831 # Don't use installbsd from OSF since it installs stuff as root
3832 # by default.
3833 for ac_prog in ginstall scoinst install; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3836 if test $ac_prog = install &&
3837 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838 # AIX install. It has an incompatible calling convention.
3839 :
3840 elif test $ac_prog = install &&
3841 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842 # program-specific install script used by HP pwplus--don't use.
3843 :
3844 else
3845 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3846 break 3
3847 fi
3848 fi
3849 done
3850 done
3851 ;;
3852esac
3853done
3854
3855
3856fi
3857 if test "${ac_cv_path_install+set}" = set; then
3858 INSTALL=$ac_cv_path_install
3859 else
3860 # As a last resort, use the slow shell script. We don't cache a
3861 # path for INSTALL within a source directory, because that will
3862 # break other packages using the cache if that directory is
3863 # removed, or if the path is relative.
3864 INSTALL=$ac_install_sh
3865 fi
3866fi
3867echo "$as_me:$LINENO: result: $INSTALL" >&5
3868echo "${ECHO_T}$INSTALL" >&6
3869
3870# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3871# It thinks the first close brace ends the variable substitution.
3872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3873
3874test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3875
3876test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3877
3878for ac_prog in 'bison -y' byacc
3879do
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881set dummy $ac_prog; ac_word=$2
3882echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884if test "${ac_cv_prog_YACC+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 if test -n "$YACC"; then
3888 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3889else
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_YACC="$ac_prog"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902done
3903
3904fi
3905fi
3906YACC=$ac_cv_prog_YACC
3907if test -n "$YACC"; then
3908 echo "$as_me:$LINENO: result: $YACC" >&5
3909echo "${ECHO_T}$YACC" >&6
3910else
3911 echo "$as_me:$LINENO: result: no" >&5
3912echo "${ECHO_T}no" >&6
3913fi
3914
3915 test -n "$YACC" && break
3916done
3917test -n "$YACC" || YACC="yacc"
3918
3919
3920for ac_prog in flex lex
3921do
3922 # Extract the first word of "$ac_prog", so it can be a program name with args.
3923set dummy $ac_prog; ac_word=$2
3924echo "$as_me:$LINENO: checking for $ac_word" >&5
3925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926if test "${ac_cv_prog_LEX+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 if test -n "$LEX"; then
3930 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_LEX="$ac_prog"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944done
3945
3946fi
3947fi
3948LEX=$ac_cv_prog_LEX
3949if test -n "$LEX"; then
3950 echo "$as_me:$LINENO: result: $LEX" >&5
3951echo "${ECHO_T}$LEX" >&6
3952else
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
3955fi
3956
3957 test -n "$LEX" && break
3958done
3959test -n "$LEX" || LEX=":"
3960
3961if test -z "$LEXLIB"
3962then
3963 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3964echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3965if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 ac_check_lib_save_LIBS=$LIBS
3969LIBS="-lfl $LIBS"
3970cat >conftest.$ac_ext <<_ACEOF
3971#line $LINENO "configure"
3972#include "confdefs.h"
3973
3974/* Override any gcc2 internal prototype to avoid an error. */
3975#ifdef __cplusplus
3976extern "C"
3977#endif
3978/* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3980char yywrap ();
e646634b 3981#ifdef F77_DUMMY_MAIN
3982# ifdef __cplusplus
3983 extern "C"
3984# endif
3985 int F77_DUMMY_MAIN() { return 1; }
3986#endif
d104a616 3987int
3988main ()
3989{
3990yywrap ();
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995rm -f conftest.$ac_objext conftest$ac_exeext
3996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_lib_fl_yywrap=yes
4008else
4009 echo "$as_me: failed program was:" >&5
4010cat conftest.$ac_ext >&5
4011ac_cv_lib_fl_yywrap=no
4012fi
4013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4014LIBS=$ac_check_lib_save_LIBS
4015fi
4016echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4017echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4018if test $ac_cv_lib_fl_yywrap = yes; then
4019 LEXLIB="-lfl"
4020else
4021 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4022echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4023if test "${ac_cv_lib_l_yywrap+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026 ac_check_lib_save_LIBS=$LIBS
4027LIBS="-ll $LIBS"
4028cat >conftest.$ac_ext <<_ACEOF
4029#line $LINENO "configure"
4030#include "confdefs.h"
4031
4032/* Override any gcc2 internal prototype to avoid an error. */
4033#ifdef __cplusplus
4034extern "C"
4035#endif
4036/* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038char yywrap ();
e646634b 4039#ifdef F77_DUMMY_MAIN
4040# ifdef __cplusplus
4041 extern "C"
4042# endif
4043 int F77_DUMMY_MAIN() { return 1; }
4044#endif
d104a616 4045int
4046main ()
4047{
4048yywrap ();
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext conftest$ac_exeext
4054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055 (eval $ac_link) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -s conftest$ac_exeext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_lib_l_yywrap=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068cat conftest.$ac_ext >&5
4069ac_cv_lib_l_yywrap=no
4070fi
4071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4072LIBS=$ac_check_lib_save_LIBS
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4075echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4076if test $ac_cv_lib_l_yywrap = yes; then
4077 LEXLIB="-ll"
4078fi
4079
4080fi
4081
4082fi
4083
4084if test "x$LEX" != "x:"; then
4085 echo "$as_me:$LINENO: checking lex output file root" >&5
4086echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4087if test "${ac_cv_prog_lex_root+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090 # The minimal lex program is just a single line: %%. But some broken lexes
4091# (Solaris, I think it was) want two %% lines, so accommodate them.
4092cat >conftest.l <<_ACEOF
4093%%
4094%%
4095_ACEOF
4096{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4097 (eval $LEX conftest.l) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }
4101if test -f lex.yy.c; then
4102 ac_cv_prog_lex_root=lex.yy
4103elif test -f lexyy.c; then
4104 ac_cv_prog_lex_root=lexyy
4105else
4106 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4107echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4108 { (exit 1); exit 1; }; }
4109fi
4110fi
4111echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4112echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4113rm -f conftest.l
4114LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4115
4116echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4117echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4118if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121 # POSIX says lex can declare yytext either as a pointer or an array; the
4122# default is implementation-dependent. Figure out which it is, since
4123# not all implementations provide the %pointer and %array declarations.
4124ac_cv_prog_lex_yytext_pointer=no
4125echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4126ac_save_LIBS=$LIBS
4127LIBS="$LIBS $LEXLIB"
4128cat >conftest.$ac_ext <<_ACEOF
4129`cat $LEX_OUTPUT_ROOT.c`
4130_ACEOF
4131rm -f conftest.$ac_objext conftest$ac_exeext
4132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4133 (eval $ac_link) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -s conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_prog_lex_yytext_pointer=yes
4144else
4145 echo "$as_me: failed program was:" >&5
4146cat conftest.$ac_ext >&5
4147fi
4148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4149LIBS=$ac_save_LIBS
4150rm -f "${LEX_OUTPUT_ROOT}.c"
4151
4152fi
4153echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4154echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4155if test $ac_cv_prog_lex_yytext_pointer = yes; then
4156
4157cat >>confdefs.h <<\_ACEOF
4158#define YYTEXT_POINTER 1
4159_ACEOF
4160
4161fi
4162
4163fi
4164if test "$LEX" = :; then
4165 LEX=${am_missing_run}flex
4166fi
4167
4168
4169
5bd052df 4170if test "$with_select" = "yes" || test "$have_sys_poll_h" = "no"; then
10891472 4171
4172for ac_func in select
5bd052df 4173do
10891472 4174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c185a5dd 4175echo "$as_me:$LINENO: checking for $ac_func" >&5
10891472 4176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4177if eval "test \"\${$as_ac_var+set}\" = set"; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
5bd052df 4179else
10891472 4180 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4181#line $LINENO "configure"
5bd052df 4182#include "confdefs.h"
4183/* System header to define __stub macros and hopefully few prototypes,
10891472 4184 which can conflict with char $ac_func (); below. */
5bd052df 4185#include <assert.h>
4186/* Override any gcc2 internal prototype to avoid an error. */
10891472 4187#ifdef __cplusplus
4188extern "C"
4189#endif
5bd052df 4190/* We use char because int might match the return type of a gcc2
10891472 4191 builtin and then its argument prototype would still apply. */
4192char $ac_func ();
4193char (*f) ();
4194
e646634b 4195#ifdef F77_DUMMY_MAIN
4196# ifdef __cplusplus
4197 extern "C"
4198# endif
4199 int F77_DUMMY_MAIN() { return 1; }
4200#endif
10891472 4201int
4202main ()
4203{
5bd052df 4204/* The GNU C library defines this for functions which it implements
4205 to always fail with ENOSYS. Some functions are actually named
4206 something starting with __ and the normal name is an alias. */
4207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4208choke me
4209#else
10891472 4210f = $ac_func;
5bd052df 4211#endif
4212
10891472 4213 ;
4214 return 0;
4215}
4216_ACEOF
4217rm -f conftest.$ac_objext conftest$ac_exeext
c185a5dd 4218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 4219 (eval $ac_link) 2>&5
4220 ac_status=$?
c185a5dd 4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4222 (exit $ac_status); } &&
4223 { ac_try='test -s conftest$ac_exeext'
c185a5dd 4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 4225 (eval $ac_try) 2>&5
4226 ac_status=$?
c185a5dd 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4228 (exit $ac_status); }; }; then
4229 eval "$as_ac_var=yes"
5bd052df 4230else
10891472 4231 echo "$as_me: failed program was:" >&5
4232cat conftest.$ac_ext >&5
4233eval "$as_ac_var=no"
5bd052df 4234fi
10891472 4235rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5bd052df 4236fi
c185a5dd 4237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10891472 4238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4239if test `eval echo '${'$as_ac_var'}'` = yes; then
c185a5dd 4240 cat >>confdefs.h <<_ACEOF
10891472 4241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c185a5dd 4242_ACEOF
5bd052df 4243 have_select=yes
4244else
10891472 4245 have_select=no
5bd052df 4246fi
4247done
4248
4249 if test "$have_select" = "no"; then
c185a5dd 4250 { { echo "$as_me:$LINENO: error: No select() implementation found" >&5
10891472 4251echo "$as_me: error: No select() implementation found" >&2;}
4252 { (exit 1); exit 1; }; }
5bd052df 4253 fi
4254fi
4255
c185a5dd 4256
4257
4258
4259
e646634b 4260
4261for ac_func in inet_aton inet_pton socket strdup strstr
f6649e03 4262do
10891472 4263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c185a5dd 4264echo "$as_me:$LINENO: checking for $ac_func" >&5
10891472 4265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4266if eval "test \"\${$as_ac_var+set}\" = set"; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
f6649e03 4268else
10891472 4269 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4270#line $LINENO "configure"
f6649e03 4271#include "confdefs.h"
4272/* System header to define __stub macros and hopefully few prototypes,
10891472 4273 which can conflict with char $ac_func (); below. */
f6649e03 4274#include <assert.h>
4275/* Override any gcc2 internal prototype to avoid an error. */
10891472 4276#ifdef __cplusplus
4277extern "C"
4278#endif
f6649e03 4279/* We use char because int might match the return type of a gcc2
10891472 4280 builtin and then its argument prototype would still apply. */
4281char $ac_func ();
4282char (*f) ();
4283
e646634b 4284#ifdef F77_DUMMY_MAIN
4285# ifdef __cplusplus
4286 extern "C"
4287# endif
4288 int F77_DUMMY_MAIN() { return 1; }
4289#endif
10891472 4290int
4291main ()
4292{
f6649e03 4293/* The GNU C library defines this for functions which it implements
4294 to always fail with ENOSYS. Some functions are actually named
4295 something starting with __ and the normal name is an alias. */
4296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4297choke me
4298#else
10891472 4299f = $ac_func;
f6649e03 4300#endif
4301
10891472 4302 ;
4303 return 0;
4304}
4305_ACEOF
4306rm -f conftest.$ac_objext conftest$ac_exeext
c185a5dd 4307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 4308 (eval $ac_link) 2>&5
4309 ac_status=$?
c185a5dd 4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4311 (exit $ac_status); } &&
4312 { ac_try='test -s conftest$ac_exeext'
c185a5dd 4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 4314 (eval $ac_try) 2>&5
4315 ac_status=$?
c185a5dd 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4317 (exit $ac_status); }; }; then
4318 eval "$as_ac_var=yes"
f6649e03 4319else
10891472 4320 echo "$as_me: failed program was:" >&5
4321cat conftest.$ac_ext >&5
4322eval "$as_ac_var=no"
f6649e03 4323fi
10891472 4324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f6649e03 4325fi
c185a5dd 4326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10891472 4327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4328if test `eval echo '${'$as_ac_var'}'` = yes; then
c185a5dd 4329 cat >>confdefs.h <<_ACEOF
10891472 4330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c185a5dd 4331_ACEOF
f6649e03 4332
f6649e03 4333fi
4334done
4335
c185a5dd 4336
4337
4338
4339for ac_func in gethostbyname gethostbyname2
4340do
4341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4342echo "$as_me:$LINENO: checking for $ac_func" >&5
4343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4344if eval "test \"\${$as_ac_var+set}\" = set"; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 cat >conftest.$ac_ext <<_ACEOF
4348#line $LINENO "configure"
4349#include "confdefs.h"
4350/* System header to define __stub macros and hopefully few prototypes,
4351 which can conflict with char $ac_func (); below. */
4352#include <assert.h>
4353/* Override any gcc2 internal prototype to avoid an error. */
4354#ifdef __cplusplus
4355extern "C"
4356#endif
4357/* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359char $ac_func ();
4360char (*f) ();
4361
e646634b 4362#ifdef F77_DUMMY_MAIN
4363# ifdef __cplusplus
4364 extern "C"
4365# endif
4366 int F77_DUMMY_MAIN() { return 1; }
4367#endif
c185a5dd 4368int
4369main ()
4370{
4371/* The GNU C library defines this for functions which it implements
4372 to always fail with ENOSYS. Some functions are actually named
4373 something starting with __ and the normal name is an alias. */
4374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4375choke me
4376#else
4377f = $ac_func;
4378#endif
4379
4380 ;
4381 return 0;
4382}
4383_ACEOF
4384rm -f conftest.$ac_objext conftest$ac_exeext
4385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4386 (eval $ac_link) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } &&
4390 { ac_try='test -s conftest$ac_exeext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 eval "$as_ac_var=yes"
4397else
4398 echo "$as_me: failed program was:" >&5
4399cat conftest.$ac_ext >&5
4400eval "$as_ac_var=no"
4401fi
4402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4403fi
4404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4406if test `eval echo '${'$as_ac_var'}'` = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4409_ACEOF
4410
4411fi
4412done
4413
4414
4415echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10891472 4416echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4417if test "${ac_cv_c_bigendian+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
1122cc60 4419else
c185a5dd 4420 # See if sys/param.h defines the BYTE_ORDER macro.
10891472 4421cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4422#line $LINENO "configure"
1122cc60 4423#include "confdefs.h"
4424#include <sys/types.h>
4425#include <sys/param.h>
1122cc60 4426
e646634b 4427#ifdef F77_DUMMY_MAIN
4428# ifdef __cplusplus
4429 extern "C"
4430# endif
4431 int F77_DUMMY_MAIN() { return 1; }
4432#endif
10891472 4433int
4434main ()
4435{
1122cc60 4436#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4437 bogus endian macros
4438#endif
10891472 4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest.$ac_objext
c185a5dd 4445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 4446 (eval $ac_compile) 2>&5
4447 ac_status=$?
c185a5dd 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4449 (exit $ac_status); } &&
4450 { ac_try='test -s conftest.$ac_objext'
c185a5dd 4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 4452 (eval $ac_try) 2>&5
4453 ac_status=$?
c185a5dd 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4455 (exit $ac_status); }; }; then
1122cc60 4456 # It does; now see whether it defined to BIG_ENDIAN or not.
10891472 4457cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4458#line $LINENO "configure"
1122cc60 4459#include "confdefs.h"
4460#include <sys/types.h>
4461#include <sys/param.h>
1122cc60 4462
e646634b 4463#ifdef F77_DUMMY_MAIN
4464# ifdef __cplusplus
4465 extern "C"
4466# endif
4467 int F77_DUMMY_MAIN() { return 1; }
4468#endif
10891472 4469int
4470main ()
4471{
1122cc60 4472#if BYTE_ORDER != BIG_ENDIAN
4473 not big endian
4474#endif
10891472 4475
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
c185a5dd 4481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891472 4482 (eval $ac_compile) 2>&5
4483 ac_status=$?
c185a5dd 4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest.$ac_objext'
c185a5dd 4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 4488 (eval $ac_try) 2>&5
4489 ac_status=$?
c185a5dd 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4491 (exit $ac_status); }; }; then
1122cc60 4492 ac_cv_c_bigendian=yes
4493else
10891472 4494 echo "$as_me: failed program was:" >&5
4495cat conftest.$ac_ext >&5
4496ac_cv_c_bigendian=no
1122cc60 4497fi
10891472 4498rm -f conftest.$ac_objext conftest.$ac_ext
1122cc60 4499else
10891472 4500 echo "$as_me: failed program was:" >&5
4501cat conftest.$ac_ext >&5
c185a5dd 4502# It does not; compile a test program.
4503if test "$cross_compiling" = yes; then
e646634b 4504 # try to guess the endianess by grep'ing values into an object file
c185a5dd 4505 ac_cv_c_bigendian=unknown
4506 cat >conftest.$ac_ext <<_ACEOF
4507#line $LINENO "configure"
4508#include "confdefs.h"
4509short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4510short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4511void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4512short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4513short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4514void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
e646634b 4515#ifdef F77_DUMMY_MAIN
4516# ifdef __cplusplus
4517 extern "C"
4518# endif
4519 int F77_DUMMY_MAIN() { return 1; }
4520#endif
c185a5dd 4521int
4522main ()
4523{
4524 _ascii (); _ebcdic ();
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
e646634b 4541 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
c185a5dd 4542 ac_cv_c_bigendian=yes
4543fi
e646634b 4544if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
c185a5dd 4545 if test "$ac_cv_c_bigendian" = unknown; then
4546 ac_cv_c_bigendian=no
4547 else
4548 # finding both strings is unlikely to happen, but who knows?
4549 ac_cv_c_bigendian=unknown
4550 fi
4551fi
4552else
4553 echo "$as_me: failed program was:" >&5
4554cat conftest.$ac_ext >&5
10891472 4555fi
4556rm -f conftest.$ac_objext conftest.$ac_ext
1122cc60 4557else
10891472 4558 cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4559#line $LINENO "configure"
1122cc60 4560#include "confdefs.h"
10891472 4561int
4562main ()
4563{
1122cc60 4564 /* Are we little or big endian? From Harbison&Steele. */
4565 union
4566 {
4567 long l;
4568 char c[sizeof (long)];
4569 } u;
4570 u.l = 1;
4571 exit (u.c[sizeof (long) - 1] == 1);
4572}
10891472 4573_ACEOF
4574rm -f conftest$ac_exeext
c185a5dd 4575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891472 4576 (eval $ac_link) 2>&5
4577 ac_status=$?
c185a5dd 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c185a5dd 4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891472 4581 (eval $ac_try) 2>&5
4582 ac_status=$?
c185a5dd 4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891472 4584 (exit $ac_status); }; }; then
1122cc60 4585 ac_cv_c_bigendian=no
4586else
10891472 4587 echo "$as_me: program exited with status $ac_status" >&5
4588echo "$as_me: failed program was:" >&5
4589cat conftest.$ac_ext >&5
c185a5dd 4590( exit $ac_status )
10891472 4591ac_cv_c_bigendian=yes
1122cc60 4592fi
e646634b 4593rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1122cc60 4594fi
1122cc60 4595fi
c185a5dd 4596rm -f conftest.$ac_objext conftest.$ac_ext
1122cc60 4597fi
c185a5dd 4598echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10891472 4599echo "${ECHO_T}$ac_cv_c_bigendian" >&6
c185a5dd 4600case $ac_cv_c_bigendian in
4601 yes)
1122cc60 4602
c185a5dd 4603cat >>confdefs.h <<\_ACEOF
1122cc60 4604#define WORDS_BIGENDIAN 1
c185a5dd 4605_ACEOF
4606 ;;
4607 no)
4608 ;;
4609 *)
e646634b 4610 { { echo "$as_me:$LINENO: error: unknown endianess
c185a5dd 4611presetting ac_cv_c_bigendian=no (or yes) will help" >&5
e646634b 4612echo "$as_me: error: unknown endianess
c185a5dd 4613presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4614 { (exit 1); exit 1; }; } ;;
4615esac
cc2baf42 4616
cc2baf42 4617
c185a5dd 4618echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
cc2baf42 4619echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4620if test "${ac_cv_lib_socket_socket+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 ac_check_lib_save_LIBS=$LIBS
4624LIBS="-lsocket $LIBS"
4625cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4626#line $LINENO "configure"
cc2baf42 4627#include "confdefs.h"
4628
4629/* Override any gcc2 internal prototype to avoid an error. */
4630#ifdef __cplusplus
4631extern "C"
4632#endif
4633/* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4635char socket ();
e646634b 4636#ifdef F77_DUMMY_MAIN
4637# ifdef __cplusplus
4638 extern "C"
4639# endif
4640 int F77_DUMMY_MAIN() { return 1; }
4641#endif
cc2baf42 4642int
4643main ()
4644{
4645socket ();
4646 ;
4647 return 0;
4648}
10891472 4649_ACEOF
cc2baf42 4650rm -f conftest.$ac_objext conftest$ac_exeext
c185a5dd 4651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cc2baf42 4652 (eval $ac_link) 2>&5
4653 ac_status=$?
c185a5dd 4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cc2baf42 4655 (exit $ac_status); } &&
4656 { ac_try='test -s conftest$ac_exeext'
c185a5dd 4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cc2baf42 4658 (eval $ac_try) 2>&5
4659 ac_status=$?
c185a5dd 4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cc2baf42 4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_socket_socket=yes
4663else
4664 echo "$as_me: failed program was:" >&5
4665cat conftest.$ac_ext >&5
4666ac_cv_lib_socket_socket=no
4667fi
4668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4669LIBS=$ac_check_lib_save_LIBS
4670fi
c185a5dd 4671echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
cc2baf42 4672echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4673if test $ac_cv_lib_socket_socket = yes; then
4674 LSOCKET=-lsocket
4675
4676fi
4677
c185a5dd 4678echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
cc2baf42 4679echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4680if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 ac_check_lib_save_LIBS=$LIBS
4684LIBS="-lnsl $LIBS"
4685cat >conftest.$ac_ext <<_ACEOF
c185a5dd 4686#line $LINENO "configure"
cc2baf42 4687#include "confdefs.h"
4688
4689/* Override any gcc2 internal prototype to avoid an error. */
4690#ifdef __cplusplus
4691extern "C"
4692#endif
4693/* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4695char gethostbyname ();
e646634b 4696#ifdef F77_DUMMY_MAIN
4697# ifdef __cplusplus
4698 extern "C"
4699# endif
4700 int F77_DUMMY_MAIN() { return 1; }
4701#endif
cc2baf42 4702int
4703main ()
4704{
4705gethostbyname ();
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext conftest$ac_exeext
c185a5dd 4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cc2baf42 4712 (eval $ac_link) 2>&5
4713 ac_status=$?
c185a5dd 4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cc2baf42 4715 (exit $ac_status); } &&
4716 { ac_try='test -s conftest$ac_exeext'
c185a5dd 4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cc2baf42 4718 (eval $ac_try) 2>&5
4719 ac_status=$?
c185a5dd 4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cc2baf42 4721 (exit $ac_status); }; }; then
4722 ac_cv_lib_nsl_gethostbyname=yes
4723else
4724 echo "$as_me: failed program was:" >&5
4725cat conftest.$ac_ext >&5
4726ac_cv_lib_nsl_gethostbyname=no
4727fi
4728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4729LIBS=$ac_check_lib_save_LIBS
4730fi
c185a5dd 4731echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
cc2baf42 4732echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4733if test $ac_cv_lib_nsl_gethostbyname = yes; then
4734 LNSL=-lnsl
4735
4736fi
1122cc60 4737
c185a5dd 4738
c8b56db0 4739echo $ECHO_N "checking for POSIX-compliant goat $ECHO_C"
580e6f7d 4740for bleh in 1 2 3; do
13579374 4741 echo $ECHO_N ".\a"
580e6f7d 4742 sleep 1
4743done
c185a5dd 4744echo "$as_me:$LINENO: result: http://www.blitzed.org/goat_winter_2001.phtml" >&5
10891472 4745echo "${ECHO_T} http://www.blitzed.org/goat_winter_2001.phtml" >&6
5bd052df 4746
205810b2 4747
4748
4749subdirs="$subdirs src/libopm"
4750
e646634b 4751ac_config_files="$ac_config_files Makefile src/Makefile"
10891472 4752cat >confcache <<\_ACEOF
f6649e03 4753# This file is a shell script that caches the results of configure
4754# tests run on this system so they can be shared between configure
10891472 4755# scripts and configure runs, see configure's option --config-cache.
4756# It is not useful on other systems. If it contains results you don't
4757# want to keep, you may remove or edit it.
f6649e03 4758#
10891472 4759# config.status only pays attention to the cache file if you give it
4760# the --recheck option to rerun configure.
f6649e03 4761#
e646634b 4762# `ac_cv_env_foo' variables (set or unset) will be overriden when
10891472 4763# loading this file, other *unset* `ac_cv_foo' will be assigned the
4764# following values.
4765
4766_ACEOF
4767
f6649e03 4768# The following way of writing the cache mishandles newlines in values,
4769# but we know of no workaround that is simple, portable, and efficient.
4770# So, don't put newlines in cache variables' values.
4771# Ultrix sh set writes to stderr and can't be redirected directly,
4772# and sets the high bit in the cache file unless we assign to the vars.
10891472 4773{
4774 (set) 2>&1 |
4775 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4776 *ac_space=\ *)
4777 # `set' does not quote correctly, so add quotes (double-quote
4778 # substitution turns \\\\ into \\, and sed turns \\ into \).
4779 sed -n \
4780 "s/'/'\\\\''/g;
4781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4782 ;;
4783 *)
4784 # `set' quotes correctly as required by POSIX, so do not add quotes.
4785 sed -n \
4786 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4787 ;;
4788 esac;
4789} |
4790 sed '
4791 t clear
4792 : clear
4793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4794 t end
4795 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4796 : end' >>confcache
4797if cmp -s $cache_file confcache; then :; else
f6649e03 4798 if test -w $cache_file; then
10891472 4799 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4800 cat confcache >$cache_file
f6649e03 4801 else
4802 echo "not updating unwritable cache $cache_file"
4803 fi
4804fi
4805rm -f confcache
4806
f6649e03 4807test "x$prefix" = xNONE && prefix=$ac_default_prefix
4808# Let make expand exec_prefix.
4809test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4810
10891472 4811# VPATH may cause trouble with some makes, so we remove $(srcdir),
4812# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4813# trailing colons and then remove the whole line if VPATH becomes empty
4814# (actually we leave an empty line to preserve line numbers).
f6649e03 4815if test "x$srcdir" = x.; then
10891472 4816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4817s/:*\$(srcdir):*/:/;
4818s/:*\${srcdir}:*/:/;
4819s/:*@srcdir@:*/:/;
4820s/^\([^=]*=[ ]*\):*/\1/;
4821s/:*$//;
4822s/^[^=]*=[ ]*$//;
4823}'
f6649e03 4824fi
4825
f6649e03 4826DEFS=-DHAVE_CONFIG_H
4827
273c4d04 4828if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4829 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4830Usually this means the macro was only invoked conditionally." >&5
4831echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4832Usually this means the macro was only invoked conditionally." >&2;}
4833 { (exit 1); exit 1; }; }
4834fi
4835if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4836 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4837Usually this means the macro was only invoked conditionally." >&5
4838echo "$as_me: error: conditional \"AMDEP\" was never defined.
4839Usually this means the macro was only invoked conditionally." >&2;}
4840 { (exit 1); exit 1; }; }
4841fi
c185a5dd 4842
f6649e03 4843: ${CONFIG_STATUS=./config.status}
10891472 4844ac_clean_files_save=$ac_clean_files
4845ac_clean_files="$ac_clean_files $CONFIG_STATUS"
c185a5dd 4846{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10891472 4847echo "$as_me: creating $CONFIG_STATUS" >&6;}
4848cat >$CONFIG_STATUS <<_ACEOF
4849#! $SHELL
c185a5dd 4850# Generated by $as_me.
f6649e03 4851# Run this file to recreate the current configuration.
f6649e03 4852# Compiler output produced by configure, useful for debugging
10891472 4853# configure, is in config.log if it exists.
f6649e03 4854
10891472 4855debug=false
4856SHELL=\${CONFIG_SHELL-$SHELL}
4857_ACEOF
4858
4859cat >>$CONFIG_STATUS <<\_ACEOF
e646634b 4860
c185a5dd 4861## --------------------- ##
4862## M4sh Initialization. ##
4863## --------------------- ##
4864
10891472 4865# Be Bourne compatible
4866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4867 emulate sh
4868 NULLCMD=:
4869elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4870 set -o posix
4871fi
4872
e646634b 4873# NLS nuisances.
c185a5dd 4874# Support unset when possible.
4875if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4876 as_unset=unset
4877else
4878 as_unset=false
4879fi
4880
e646634b 4881(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4882 { $as_unset LANG || test "${LANG+set}" != set; } ||
4883 { LANG=C; export LANG; }
4884(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4885 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4886 { LC_ALL=C; export LC_ALL; }
4887(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4888 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4889 { LC_TIME=C; export LC_TIME; }
4890(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4891 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4892 { LC_CTYPE=C; export LC_CTYPE; }
4893(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4894 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4895 { LANGUAGE=C; export LANGUAGE; }
4896(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4897 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4898 { LC_COLLATE=C; export LC_COLLATE; }
4899(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4900 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4901 { LC_NUMERIC=C; export LC_NUMERIC; }
4902(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4903 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4904 { LC_MESSAGES=C; export LC_MESSAGES; }
82c895e3 4905
4906
10891472 4907# Name of the executable.
e646634b 4908as_me=`(basename "$0") 2>/dev/null ||
c185a5dd 4909$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4910 X"$0" : 'X\(//\)$' \| \
4911 X"$0" : 'X\(/\)$' \| \
4912 . : '\(.\)' 2>/dev/null ||
4913echo X/"$0" |
4914 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4915 /^X\/\(\/\/\)$/{ s//\1/; q; }
4916 /^X\/\(\/\).*/{ s//\1/; q; }
4917 s/.*/./; q'`
4918
4919# PATH needs CR, and LINENO needs CR and PATH.
4920# Avoid depending upon Character Ranges.
4921as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4922as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4923as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4924as_cr_digits='0123456789'
4925as_cr_alnum=$as_cr_Letters$as_cr_digits
4926
4927# The user is always right.
4928if test "${PATH_SEPARATOR+set}" != set; then
4929 echo "#! /bin/sh" >conftest.sh
4930 echo "exit 0" >>conftest.sh
4931 chmod +x conftest.sh
e646634b 4932 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
c185a5dd 4933 PATH_SEPARATOR=';'
4934 else
4935 PATH_SEPARATOR=:
4936 fi
4937 rm -f conftest.sh
4938fi
4939
4940
4941 as_lineno_1=$LINENO
4942 as_lineno_2=$LINENO
4943 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4944 test "x$as_lineno_1" != "x$as_lineno_2" &&
4945 test "x$as_lineno_3" = "x$as_lineno_2" || {
4946 # Find who we are. Look in the path if we contain no path at all
4947 # relative or not.
4948 case $0 in
4949 *[\\/]* ) as_myself=$0 ;;
4950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4956done
4957
4958 ;;
4959 esac
4960 # We did not find ourselves, most probably we were run as `sh COMMAND'
4961 # in which case we are not to be found in the path.
4962 if test "x$as_myself" = x; then
4963 as_myself=$0
4964 fi
4965 if test ! -f "$as_myself"; then
4966 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4967echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4968 { (exit 1); exit 1; }; }
4969 fi
4970 case $CONFIG_SHELL in
4971 '')
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4974do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for as_base in sh bash ksh sh5; do
4978 case $as_dir in
4979 /*)
4980 if ("$as_dir/$as_base" -c '
4981 as_lineno_1=$LINENO
4982 as_lineno_2=$LINENO
4983 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4984 test "x$as_lineno_1" != "x$as_lineno_2" &&
4985 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4986 CONFIG_SHELL=$as_dir/$as_base
4987 export CONFIG_SHELL
4988 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4989 fi;;
4990 esac
4991 done
4992done
4993;;
4994 esac
4995
4996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4997 # uniformly replaced by the line number. The first 'sed' inserts a
4998 # line-number line before each line; the second 'sed' does the real
4999 # work. The second script uses 'N' to pair each line-number line
5000 # with the numbered line, and appends trailing '-' during
5001 # substitution so that $LINENO is not a special case at line end.
5002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5003 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5004 sed '=' <$as_myself |
5005 sed '
5006 N
5007 s,$,-,
5008 : loop
5009 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5010 t loop
5011 s,-$,,
5012 s,^['$as_cr_digits']*\n,,
5013 ' >$as_me.lineno &&
5014 chmod +x $as_me.lineno ||
5015 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5016echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5017 { (exit 1); exit 1; }; }
5018
5019 # Don't try to exec as it changes $[0], causing all sort of problems
5020 # (the dirname of $[0] is not the place where we might find the
5021 # original and so on. Autoconf is especially sensible to this).
5022 . ./$as_me.lineno
5023 # Exit status is that of the last command.
5024 exit
5025}
5026
5027
5028case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5029 *c*,-n*) ECHO_N= ECHO_C='
5030' ECHO_T=' ' ;;
5031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5033esac
f6649e03 5034
10891472 5035if expr a : '\(a\)' >/dev/null 2>&1; then
5036 as_expr=expr
5037else
5038 as_expr=false
5039fi
f6649e03 5040
10891472 5041rm -f conf$$ conf$$.exe conf$$.file
5042echo >conf$$.file
5043if ln -s conf$$.file conf$$ 2>/dev/null; then
5044 # We could just check for DJGPP; but this test a) works b) is more generic
5045 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5046 if test -f conf$$.exe; then
5047 # Don't use ln at all; we don't have any links
5048 as_ln_s='cp -p'
f6649e03 5049 else
10891472 5050 as_ln_s='ln -s'
f6649e03 5051 fi
10891472 5052elif ln conf$$.file conf$$ 2>/dev/null; then
5053 as_ln_s=ln
5054else
5055 as_ln_s='cp -p'
5056fi
5057rm -f conf$$ conf$$.exe conf$$.file
5058
5059as_executable_p="test -f"
5060
c185a5dd 5061# Sed expression to map a string onto a valid CPP name.
5062as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5063
5064# Sed expression to map a string onto a valid variable name.
5065as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10891472 5066
10891472 5067
5068# IFS
5069# We need space, tab and new line, in precisely that order.
5070as_nl='
5071'
5072IFS=" $as_nl"
5073
5074# CDPATH.
e646634b 5075$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10891472 5076
5077exec 6>&1
5078
c185a5dd 5079# Open the log real soon, to keep \$[0] and so on meaningful, and to
5080# report actual input values of CONFIG_FILES etc. instead of their
5081# values after options handling. Logging --version etc. is OK.
5082exec 5>>config.log
5083{
5084 echo
5085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5086## Running $as_me. ##
5087_ASBOX
5088} >&5
5089cat >&5 <<_CSEOF
5090
96f78544 5091This file was extended by bopm $as_me 3.0, which was
e646634b 5092generated by GNU Autoconf 2.53. Invocation command line was
c185a5dd 5093
5094 CONFIG_FILES = $CONFIG_FILES
5095 CONFIG_HEADERS = $CONFIG_HEADERS
5096 CONFIG_LINKS = $CONFIG_LINKS
5097 CONFIG_COMMANDS = $CONFIG_COMMANDS
5098 $ $0 $@
5099
5100_CSEOF
5101echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5102echo >&5
10891472 5103_ACEOF
5104
5105# Files that config.status was made for.
5106if test -n "$ac_config_files"; then
5107 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5108fi
5109
5110if test -n "$ac_config_headers"; then
5111 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
f6649e03 5112fi
f6649e03 5113
10891472 5114if test -n "$ac_config_links"; then
5115 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5116fi
f6649e03 5117
10891472 5118if test -n "$ac_config_commands"; then
5119 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5120fi
5121
c185a5dd 5122cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5123
5124ac_cs_usage="\
5125\`$as_me' instantiates files from templates according to the
5126current configuration.
5127
5128Usage: $0 [OPTIONS] [FILE]...
5129
5130 -h, --help print this help, then exit
5131 -V, --version print version number, then exit
5132 -d, --debug don't remove temporary files
5133 --recheck update $as_me by reconfiguring in the same conditions
5134 --file=FILE[:TEMPLATE]
5135 instantiate the configuration file FILE
5136 --header=FILE[:TEMPLATE]
5137 instantiate the configuration header FILE
5138
5139Configuration files:
5140$config_files
5141
5142Configuration headers:
5143$config_headers
5144
2c75ac1f 5145Configuration commands:
5146$config_commands
5147
10891472 5148Report bugs to <bug-autoconf@gnu.org>."
c185a5dd 5149_ACEOF
10891472 5150
c185a5dd 5151cat >>$CONFIG_STATUS <<_ACEOF
10891472 5152ac_cs_version="\\
96f78544 5153bopm config.status 3.0
e646634b 5154configured by $0, generated by GNU Autoconf 2.53,
10891472 5155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5156
5157Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5158Free Software Foundation, Inc.
5159This config.status script is free software; the Free Software Foundation
5160gives unlimited permission to copy, distribute and modify it."
5161srcdir=$srcdir
2c75ac1f 5162INSTALL="$INSTALL"
c185a5dd 5163_ACEOF
10891472 5164
c185a5dd 5165cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5166# If no file are specified by the user, then we need to provide default
5167# value. By we need to know if files were specified by the user.
5168ac_need_defaults=:
5169while test $# != 0
5170do
5171 case $1 in
5172 --*=*)
5173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
e646634b 5175 shift
5176 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5177 shift
10891472 5178 ;;
e646634b 5179 -*);;
10891472 5180 *) # This is not an option, so the user has probably given explicit
5181 # arguments.
5182 ac_need_defaults=false;;
f6649e03 5183 esac
5184
e646634b 5185 case $1 in
10891472 5186 # Handling of the options.
c185a5dd 5187_ACEOF
5188cat >>$CONFIG_STATUS <<_ACEOF
10891472 5189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5190 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5191 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
c185a5dd 5192_ACEOF
5193cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5194 --version | --vers* | -V )
5195 echo "$ac_cs_version"; exit 0 ;;
5196 --he | --h)
5197 # Conflict between --help and --header
c185a5dd 5198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10891472 5199Try \`$0 --help' for more information." >&5
5200echo "$as_me: error: ambiguous option: $1
5201Try \`$0 --help' for more information." >&2;}
5202 { (exit 1); exit 1; }; };;
5203 --help | --hel | -h )
5204 echo "$ac_cs_usage"; exit 0 ;;
5205 --debug | --d* | -d )
5206 debug=: ;;
5207 --file | --fil | --fi | --f )
e646634b 5208 shift
5209 CONFIG_FILES="$CONFIG_FILES $1"
10891472 5210 ac_need_defaults=false;;
5211 --header | --heade | --head | --hea )
e646634b 5212 shift
5213 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10891472 5214 ac_need_defaults=false;;
f6649e03 5215
10891472 5216 # This is an error.
c185a5dd 5217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10891472 5218Try \`$0 --help' for more information." >&5
5219echo "$as_me: error: unrecognized option: $1
5220Try \`$0 --help' for more information." >&2;}
5221 { (exit 1); exit 1; }; } ;;
5222
5223 *) ac_config_targets="$ac_config_targets $1" ;;
f6649e03 5224
f6649e03 5225 esac
10891472 5226 shift
5227done
f6649e03 5228
10891472 5229_ACEOF
f6649e03 5230
c185a5dd 5231cat >>$CONFIG_STATUS <<_ACEOF
2c75ac1f 5232#
5233# INIT-COMMANDS section.
5234#
5235
273c4d04 5236AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
c185a5dd 5237
5238_ACEOF
5239
5240
5241
5242cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5243for ac_config_target in $ac_config_targets
5244do
5245 case "$ac_config_target" in
5246 # Handling of arguments.
5247 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2c75ac1f 5248 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
273c4d04 5249 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
2c75ac1f 5250 "src/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
c185a5dd 5251 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10891472 5252echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5253 { (exit 1); exit 1; }; };;
f6649e03 5254 esac
10891472 5255done
5256
5257# If the user did not use the arguments to specify the items to instantiate,
5258# then the envvar interface is used. Set only those that are not.
5259# We use the long form for the default assignment because of an extremely
5260# bizarre bug on SunOS 4.1.3.
5261if $ac_need_defaults; then
5262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2c75ac1f 5264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10891472 5265fi
5266
5267# Create a temporary directory, and hook for its removal unless debugging.
5268$debug ||
5269{
5270 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5271 trap '{ (exit 1); exit 1; }' 1 2 13 15
5272}
5273
5274# Create a (secure) tmp directory for tmp files.
5275: ${TMPDIR=/tmp}
5276{
5277 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5278 test -n "$tmp" && test -d "$tmp"
5279} ||
5280{
5281 tmp=$TMPDIR/cs$$-$RANDOM
5282 (umask 077 && mkdir $tmp)
5283} ||
5284{
5285 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5286 { (exit 1); exit 1; }
5287}
5288
c185a5dd 5289_ACEOF
10891472 5290
c185a5dd 5291cat >>$CONFIG_STATUS <<_ACEOF
10891472 5292
5293#
5294# CONFIG_FILES section.
5295#
5296
5297# No need to generate the scripts if there are no CONFIG_FILES.
5298# This happens for instance when ./config.status config.h
5299if test -n "\$CONFIG_FILES"; then
5300 # Protect against being on the right side of a sed subst in config.status.
5301 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5302 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5303s,@SHELL@,$SHELL,;t t
c185a5dd 5304s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5305s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5306s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5307s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5308s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5309s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10891472 5310s,@exec_prefix@,$exec_prefix,;t t
5311s,@prefix@,$prefix,;t t
5312s,@program_transform_name@,$program_transform_name,;t t
5313s,@bindir@,$bindir,;t t
5314s,@sbindir@,$sbindir,;t t
5315s,@libexecdir@,$libexecdir,;t t
5316s,@datadir@,$datadir,;t t
5317s,@sysconfdir@,$sysconfdir,;t t
5318s,@sharedstatedir@,$sharedstatedir,;t t
5319s,@localstatedir@,$localstatedir,;t t
5320s,@libdir@,$libdir,;t t
5321s,@includedir@,$includedir,;t t
5322s,@oldincludedir@,$oldincludedir,;t t
5323s,@infodir@,$infodir,;t t
5324s,@mandir@,$mandir,;t t
10891472 5325s,@build_alias@,$build_alias,;t t
5326s,@host_alias@,$host_alias,;t t
5327s,@target_alias@,$target_alias,;t t
c185a5dd 5328s,@DEFS@,$DEFS,;t t
10891472 5329s,@ECHO_C@,$ECHO_C,;t t
5330s,@ECHO_N@,$ECHO_N,;t t
5331s,@ECHO_T@,$ECHO_T,;t t
5332s,@LIBS@,$LIBS,;t t
2c75ac1f 5333s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5334s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5335s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5336s,@PACKAGE@,$PACKAGE,;t t
5337s,@VERSION@,$VERSION,;t t
5338s,@ACLOCAL@,$ACLOCAL,;t t
5339s,@AUTOCONF@,$AUTOCONF,;t t
5340s,@AUTOMAKE@,$AUTOMAKE,;t t
5341s,@AUTOHEADER@,$AUTOHEADER,;t t
5342s,@MAKEINFO@,$MAKEINFO,;t t
273c4d04 5343s,@AMTAR@,$AMTAR,;t t
5344s,@install_sh@,$install_sh,;t t
5345s,@STRIP@,$STRIP,;t t
5346s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5347s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5348s,@AWK@,$AWK,;t t
2c75ac1f 5349s,@SET_MAKE@,$SET_MAKE,;t t
f015a5b8 5350s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5351s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5352s,@MAINT@,$MAINT,;t t
10891472 5353s,@CC@,$CC,;t t
5354s,@CFLAGS@,$CFLAGS,;t t
5355s,@LDFLAGS@,$LDFLAGS,;t t
5356s,@CPPFLAGS@,$CPPFLAGS,;t t
5357s,@ac_ct_CC@,$ac_ct_CC,;t t
5358s,@EXEEXT@,$EXEEXT,;t t
5359s,@OBJEXT@,$OBJEXT,;t t
273c4d04 5360s,@DEPDIR@,$DEPDIR,;t t
5361s,@am__include@,$am__include,;t t
5362s,@am__quote@,$am__quote,;t t
5363s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5364s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5365s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5366s,@CCDEPMODE@,$CCDEPMODE,;t t
10891472 5367s,@CPP@,$CPP,;t t
d104a616 5368s,@YACC@,$YACC,;t t
5369s,@LEX@,$LEX,;t t
5370s,@LEXLIB@,$LEXLIB,;t t
5371s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
cc2baf42 5372s,@LSOCKET@,$LSOCKET,;t t
5373s,@LNSL@,$LNSL,;t t
205810b2 5374s,@subdirs@,$subdirs,;t t
10891472 5375CEOF
5376
c185a5dd 5377_ACEOF
10891472 5378
c185a5dd 5379 cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5380 # Split the substitutions into bite-sized pieces for seds with
5381 # small command number limits, like on Digital OSF/1 and HP-UX.
5382 ac_max_sed_lines=48
5383 ac_sed_frag=1 # Number of current file.
5384 ac_beg=1 # First line for current file.
5385 ac_end=$ac_max_sed_lines # Line after last line for current file.
5386 ac_more_lines=:
5387 ac_sed_cmds=
5388 while $ac_more_lines; do
5389 if test $ac_beg -gt 1; then
5390 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5391 else
5392 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5393 fi
5394 if test ! -s $tmp/subs.frag; then
5395 ac_more_lines=false
5396 else
5397 # The purpose of the label and of the branching condition is to
5398 # speed up the sed processing (if there are no `@' at all, there
5399 # is no need to browse any of the substitutions).
5400 # These are the two extra sed commands mentioned above.
5401 (echo ':t
5402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5403 if test -z "$ac_sed_cmds"; then
5404 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5405 else
5406 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5407 fi
5408 ac_sed_frag=`expr $ac_sed_frag + 1`
5409 ac_beg=$ac_end
5410 ac_end=`expr $ac_end + $ac_max_sed_lines`
5411 fi
5412 done
5413 if test -z "$ac_sed_cmds"; then
5414 ac_sed_cmds=cat
5415 fi
5416fi # test -n "$CONFIG_FILES"
5417
c185a5dd 5418_ACEOF
5419cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5420for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5422 case $ac_file in
5423 - | *:- | *:-:* ) # input from stdin
5424 cat >$tmp/stdin
5425 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5427 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5429 * ) ac_file_in=$ac_file.in ;;
5430 esac
5431
5432 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
c185a5dd 5433 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5434$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10891472 5435 X"$ac_file" : 'X\(//\)[^/]' \| \
5436 X"$ac_file" : 'X\(//\)$' \| \
5437 X"$ac_file" : 'X\(/\)' \| \
5438 . : '\(.\)' 2>/dev/null ||
5439echo X"$ac_file" |
5440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5442 /^X\(\/\/\)$/{ s//\1/; q; }
5443 /^X\(\/\).*/{ s//\1/; q; }
5444 s/.*/./; q'`
e646634b 5445 { case "$ac_dir" in
5446 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5447 *) as_incr_dir=.;;
5448esac
5449as_dummy="$ac_dir"
5450for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5451 case $as_mkdir_dir in
5452 # Skip DOS drivespec
5453 ?:) as_incr_dir=$as_mkdir_dir ;;
5454 *)
5455 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5456 test -d "$as_incr_dir" ||
5457 mkdir "$as_incr_dir" ||
5458 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5459echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5460 { (exit 1); exit 1; }; }
5461 ;;
5462 esac
5463done; }
10891472 5464
c185a5dd 5465 ac_builddir=.
10891472 5466
c185a5dd 5467if test "$ac_dir" != .; then
5468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5469 # A "../" for each directory in $ac_dir_suffix.
5470 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5471else
5472 ac_dir_suffix= ac_top_builddir=
5473fi
5474
5475case $srcdir in
5476 .) # No --srcdir option. We are building in place.
5477 ac_srcdir=.
5478 if test -z "$ac_top_builddir"; then
5479 ac_top_srcdir=.
5480 else
5481 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5482 fi ;;
5483 [\\/]* | ?:[\\/]* ) # Absolute path.
5484 ac_srcdir=$srcdir$ac_dir_suffix;
5485 ac_top_srcdir=$srcdir ;;
10891472 5486 *) # Relative path.
c185a5dd 5487 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5488 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5489esac
5490# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5491# absolute.
5492ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
e646634b 5493ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
c185a5dd 5494ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5495ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5496
10891472 5497
2c75ac1f 5498 case $INSTALL in
5499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
c185a5dd 5500 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2c75ac1f 5501 esac
5502
10891472 5503 if test x"$ac_file" != x-; then
c185a5dd 5504 { echo "$as_me:$LINENO: creating $ac_file" >&5
10891472 5505echo "$as_me: creating $ac_file" >&6;}
5506 rm -f "$ac_file"
5507 fi
5508 # Let's still pretend it is `configure' which instantiates (i.e., don't
5509 # use $as_me), people would be surprised to read:
c185a5dd 5510 # /* config.h. Generated by config.status. */
5511 if test x"$ac_file" = x-; then
5512 configure_input=
5513 else
5514 configure_input="$ac_file. "
5515 fi
5516 configure_input=$configure_input"Generated from `echo $ac_file_in |
5517 sed 's,.*/,,'` by configure."
10891472 5518
5519 # First look for the input files in the build tree, otherwise in the
5520 # src tree.
5521 ac_file_inputs=`IFS=:
5522 for f in $ac_file_in; do
5523 case $f in
5524 -) echo $tmp/stdin ;;
5525 [\\/$]*)
5526 # Absolute (can't be DOS-style, as IFS=:)
c185a5dd 5527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10891472 5528echo "$as_me: error: cannot find input file: $f" >&2;}
5529 { (exit 1); exit 1; }; }
5530 echo $f;;
5531 *) # Relative
5532 if test -f "$f"; then
5533 # Build tree
5534 echo $f
5535 elif test -f "$srcdir/$f"; then
5536 # Source tree
5537 echo $srcdir/$f
5538 else
5539 # /dev/null tree
c185a5dd 5540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10891472 5541echo "$as_me: error: cannot find input file: $f" >&2;}
5542 { (exit 1); exit 1; }; }
5543 fi;;
5544 esac
5545 done` || { (exit 1); exit 1; }
c185a5dd 5546_ACEOF
5547cat >>$CONFIG_STATUS <<_ACEOF
10891472 5548 sed "$ac_vpsub
5549$extrasub
c185a5dd 5550_ACEOF
5551cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5552:t
5553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5554s,@configure_input@,$configure_input,;t t
5555s,@srcdir@,$ac_srcdir,;t t
c185a5dd 5556s,@abs_srcdir@,$ac_abs_srcdir,;t t
10891472 5557s,@top_srcdir@,$ac_top_srcdir,;t t
c185a5dd 5558s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5559s,@builddir@,$ac_builddir,;t t
5560s,@abs_builddir@,$ac_abs_builddir,;t t
5561s,@top_builddir@,$ac_top_builddir,;t t
5562s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2c75ac1f 5563s,@INSTALL@,$ac_INSTALL,;t t
10891472 5564" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5565 rm -f $tmp/stdin
5566 if test x"$ac_file" != x-; then
5567 mv $tmp/out $ac_file
5568 else
5569 cat $tmp/out
5570 rm -f $tmp/out
5571 fi
5572
5573done
c185a5dd 5574_ACEOF
5575cat >>$CONFIG_STATUS <<\_ACEOF
f6649e03 5576
10891472 5577#
5578# CONFIG_HEADER section.
5579#
f6649e03 5580
5581# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5582# NAME is the cpp macro being defined and VALUE is the value it is being given.
5583#
5584# ac_d sets the value in "#define NAME VALUE" lines.
10891472 5585ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5586ac_dB='[ ].*$,\1#\2'
5587ac_dC=' '
5588ac_dD=',;t'
5589# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5590ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5591ac_uB='$,\1#\2define\3'
f6649e03 5592ac_uC=' '
10891472 5593ac_uD=',;t'
5594
5595for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
f6649e03 5596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10891472 5597 case $ac_file in
5598 - | *:- | *:-:* ) # input from stdin
5599 cat >$tmp/stdin
5600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5604 * ) ac_file_in=$ac_file.in ;;
f6649e03 5605 esac
5606
c185a5dd 5607 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10891472 5608echo "$as_me: creating $ac_file" >&6;}
5609
5610 # First look for the input files in the build tree, otherwise in the
5611 # src tree.
5612 ac_file_inputs=`IFS=:
5613 for f in $ac_file_in; do
5614 case $f in
5615 -) echo $tmp/stdin ;;
5616 [\\/$]*)
5617 # Absolute (can't be DOS-style, as IFS=:)
c185a5dd 5618 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10891472 5619echo "$as_me: error: cannot find input file: $f" >&2;}
5620 { (exit 1); exit 1; }; }
5621 echo $f;;
5622 *) # Relative
5623 if test -f "$f"; then
5624 # Build tree
5625 echo $f
5626 elif test -f "$srcdir/$f"; then
5627 # Source tree
5628 echo $srcdir/$f
5629 else
5630 # /dev/null tree
c185a5dd 5631 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10891472 5632echo "$as_me: error: cannot find input file: $f" >&2;}
5633 { (exit 1); exit 1; }; }
5634 fi;;
5635 esac
5636 done` || { (exit 1); exit 1; }
5637 # Remove the trailing spaces.
5638 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5639
c185a5dd 5640_ACEOF
10891472 5641
5642# Transform confdefs.h into two sed scripts, `conftest.defines' and
5643# `conftest.undefs', that substitutes the proper values into
5644# config.h.in to produce config.h. The first handles `#define'
5645# templates, and the second `#undef' templates.
5646# And first: Protect against being on the right side of a sed subst in
5647# config.status. Protect against being in an unquoted here document
5648# in config.status.
5649rm -f conftest.defines conftest.undefs
5650# Using a here document instead of a string reduces the quoting nightmare.
5651# Putting comments in sed scripts is not portable.
5652#
5653# `end' is used to avoid that the second main sed command (meant for
5654# 0-ary CPP macros) applies to n-ary macro definitions.
5655# See the Autoconf documentation for `clear'.
c185a5dd 5656cat >confdef2sed.sed <<\_ACEOF
10891472 5657s/[\\&,]/\\&/g
5658s,[\\$`],\\&,g
5659t clear
5660: clear
c185a5dd 5661s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10891472 5662t end
5663s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5664: end
c185a5dd 5665_ACEOF
10891472 5666# If some macros were called several times there might be several times
5667# the same #defines, which is useless. Nevertheless, we may not want to
5668# sort them, since we want the *last* AC-DEFINE to be honored.
5669uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5670sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5671rm -f confdef2sed.sed
f6649e03 5672
5673# This sed command replaces #undef with comments. This is necessary, for
5674# example, in the case of _POSIX_SOURCE, which is predefined and required
5675# on some systems where configure will not decide to define it.
c185a5dd 5676cat >>conftest.undefs <<\_ACEOF
10891472 5677s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
c185a5dd 5678_ACEOF
10891472 5679
5680# Break up conftest.defines because some shells have a limit on the size
5681# of here documents, and old seds have small limits too (100 cmds).
5682echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
e646634b 5683echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10891472 5684echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5685echo ' :' >>$CONFIG_STATUS
5686rm -f conftest.tail
5687while grep . conftest.defines >/dev/null
5688do
5689 # Write a limited-size here document to $tmp/defines.sed.
5690 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5691 # Speed up: don't consider the non `#define' lines.
5692 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5693 # Work around the forget-to-reset-the-flag bug.
5694 echo 't clr' >>$CONFIG_STATUS
5695 echo ': clr' >>$CONFIG_STATUS
5696 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5697 echo 'CEOF
5698 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5699 rm -f $tmp/in
5700 mv $tmp/out $tmp/in
5701' >>$CONFIG_STATUS
5702 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5703 rm -f conftest.defines
5704 mv conftest.tail conftest.defines
5705done
5706rm -f conftest.defines
e646634b 5707echo ' fi # egrep' >>$CONFIG_STATUS
10891472 5708echo >>$CONFIG_STATUS
f6649e03 5709
10891472 5710# Break up conftest.undefs because some shells have a limit on the size
5711# of here documents, and old seds have small limits too (100 cmds).
5712echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
f6649e03 5713rm -f conftest.tail
10891472 5714while grep . conftest.undefs >/dev/null
f6649e03 5715do
10891472 5716 # Write a limited-size here document to $tmp/undefs.sed.
5717 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5718 # Speed up: don't consider the non `#undef'
5719 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5720 # Work around the forget-to-reset-the-flag bug.
5721 echo 't clr' >>$CONFIG_STATUS
5722 echo ': clr' >>$CONFIG_STATUS
5723 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
f6649e03 5724 echo 'CEOF
10891472 5725 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5726 rm -f $tmp/in
5727 mv $tmp/out $tmp/in
5728' >>$CONFIG_STATUS
5729 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5730 rm -f conftest.undefs
5731 mv conftest.tail conftest.undefs
f6649e03 5732done
10891472 5733rm -f conftest.undefs
5734
c185a5dd 5735cat >>$CONFIG_STATUS <<\_ACEOF
10891472 5736 # Let's still pretend it is `configure' which instantiates (i.e., don't
5737 # use $as_me), people would be surprised to read:
c185a5dd 5738 # /* config.h. Generated by config.status. */
10891472 5739 if test x"$ac_file" = x-; then
c185a5dd 5740 echo "/* Generated by configure. */" >$tmp/config.h
f6649e03 5741 else
c185a5dd 5742 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
f6649e03 5743 fi
10891472 5744 cat $tmp/in >>$tmp/config.h
5745 rm -f $tmp/in
5746 if test x"$ac_file" != x-; then
5747 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
c185a5dd 5748 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10891472 5749echo "$as_me: $ac_file is unchanged" >&6;}
5750 else
c185a5dd 5751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5752$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10891472 5753 X"$ac_file" : 'X\(//\)[^/]' \| \
5754 X"$ac_file" : 'X\(//\)$' \| \
5755 X"$ac_file" : 'X\(/\)' \| \
5756 . : '\(.\)' 2>/dev/null ||
5757echo X"$ac_file" |
5758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5760 /^X\(\/\/\)$/{ s//\1/; q; }
5761 /^X\(\/\).*/{ s//\1/; q; }
5762 s/.*/./; q'`
e646634b 5763 { case "$ac_dir" in
5764 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5765 *) as_incr_dir=.;;
5766esac
5767as_dummy="$ac_dir"
5768for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5769 case $as_mkdir_dir in
5770 # Skip DOS drivespec
5771 ?:) as_incr_dir=$as_mkdir_dir ;;
5772 *)
5773 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5774 test -d "$as_incr_dir" ||
5775 mkdir "$as_incr_dir" ||
5776 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5777echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5778 { (exit 1); exit 1; }; }
5779 ;;
5780 esac
5781done; }
f6649e03 5782
10891472 5783 rm -f $ac_file
5784 mv $tmp/config.h $ac_file
5785 fi
5786 else
5787 cat $tmp/config.h
5788 rm -f $tmp/config.h
5789 fi
273c4d04 5790 # Run the commands associated with the file.
5791 case $ac_file in
5792 src/setup.h ) # update the timestamp
5793echo 'timestamp for src/setup.h' >"src/stamp-h1"
5794 ;;
5795 esac
10891472 5796done
c185a5dd 5797_ACEOF
5798cat >>$CONFIG_STATUS <<\_ACEOF
2c75ac1f 5799
5800#
5801# CONFIG_COMMANDS section.
5802#
5803for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5804 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5805 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c185a5dd 5806 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5807$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5808 X"$ac_dest" : 'X\(//\)[^/]' \| \
5809 X"$ac_dest" : 'X\(//\)$' \| \
5810 X"$ac_dest" : 'X\(/\)' \| \
5811 . : '\(.\)' 2>/dev/null ||
5812echo X"$ac_dest" |
5813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5815 /^X\(\/\/\)$/{ s//\1/; q; }
5816 /^X\(\/\).*/{ s//\1/; q; }
5817 s/.*/./; q'`
5818 ac_builddir=.
5819
5820if test "$ac_dir" != .; then
5821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5822 # A "../" for each directory in $ac_dir_suffix.
5823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5824else
5825 ac_dir_suffix= ac_top_builddir=
5826fi
5827
5828case $srcdir in
5829 .) # No --srcdir option. We are building in place.
5830 ac_srcdir=.
5831 if test -z "$ac_top_builddir"; then
5832 ac_top_srcdir=.
5833 else
5834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5835 fi ;;
5836 [\\/]* | ?:[\\/]* ) # Absolute path.
5837 ac_srcdir=$srcdir$ac_dir_suffix;
5838 ac_top_srcdir=$srcdir ;;
5839 *) # Relative path.
5840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5842esac
5843# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5844# absolute.
5845ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
e646634b 5846ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
c185a5dd 5847ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5848ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5849
2c75ac1f 5850
c185a5dd 5851 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5852echo "$as_me: executing $ac_dest commands" >&6;}
2c75ac1f 5853 case $ac_dest in
273c4d04 5854 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5855 # Strip MF so we end up with the name of the file.
5856 mf=`echo "$mf" | sed -e 's/:.*$//'`
5857 # Check whether this is an Automake generated Makefile or not.
5858 # We used to match only the files named `Makefile.in', but
5859 # some people rename them; so instead we look at the file content.
5860 # Grep'ing the first line is not enough: some people post-process
5861 # each Makefile.in and add a new line on top of each file to say so.
5862 # So let's grep whole file.
5863 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5864 dirpart=`(dirname "$mf") 2>/dev/null ||
5865$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5866 X"$mf" : 'X\(//\)[^/]' \| \
5867 X"$mf" : 'X\(//\)$' \| \
5868 X"$mf" : 'X\(/\)' \| \
5869 . : '\(.\)' 2>/dev/null ||
5870echo X"$mf" |
5871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5873 /^X\(\/\/\)$/{ s//\1/; q; }
5874 /^X\(\/\).*/{ s//\1/; q; }
5875 s/.*/./; q'`
5876 else
5877 continue
5878 fi
5879 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5880 # Extract the definition of DEP_FILES from the Makefile without
5881 # running `make'.
5882 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5883 test -z "$DEPDIR" && continue
5884 # When using ansi2knr, U may be empty or an underscore; expand it
5885 U=`sed -n -e '/^U = / s///p' < "$mf"`
5886 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5887 # We invoke sed twice because it is the simplest approach to
5888 # changing $(DEPDIR) to its actual value in the expansion.
5889 for file in `sed -n -e '
5890 /^DEP_FILES = .*\\\\$/ {
5891 s/^DEP_FILES = //
5892 :loop
5893 s/\\\\$//
5894 p
5895 n
5896 /\\\\$/ b loop
5897 p
5898 }
5899 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5900 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5901 # Make sure the directory exists.
5902 test -f "$dirpart/$file" && continue
5903 fdir=`(dirname "$file") 2>/dev/null ||
5904$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5905 X"$file" : 'X\(//\)[^/]' \| \
5906 X"$file" : 'X\(//\)$' \| \
5907 X"$file" : 'X\(/\)' \| \
5908 . : '\(.\)' 2>/dev/null ||
5909echo X"$file" |
5910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5912 /^X\(\/\/\)$/{ s//\1/; q; }
5913 /^X\(\/\).*/{ s//\1/; q; }
5914 s/.*/./; q'`
e646634b 5915 { case $dirpart/$fdir in
5916 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5917 *) as_incr_dir=.;;
5918esac
5919as_dummy=$dirpart/$fdir
5920for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5921 case $as_mkdir_dir in
5922 # Skip DOS drivespec
5923 ?:) as_incr_dir=$as_mkdir_dir ;;
5924 *)
5925 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5926 test -d "$as_incr_dir" ||
5927 mkdir "$as_incr_dir" ||
5928 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
5929echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
5930 { (exit 1); exit 1; }; }
5931 ;;
5932 esac
5933done; }
273c4d04 5934
5935 # echo "creating $dirpart/$file"
5936 echo '# dummy' > "$dirpart/$file"
5937 done
5938done
5939 ;;
2c75ac1f 5940 esac
5941done
c185a5dd 5942_ACEOF
f6649e03 5943
c185a5dd 5944cat >>$CONFIG_STATUS <<\_ACEOF
f6649e03 5945
10891472 5946{ (exit 0); exit 0; }
c185a5dd 5947_ACEOF
f6649e03 5948chmod +x $CONFIG_STATUS
10891472 5949ac_clean_files=$ac_clean_files_save
5950
c185a5dd 5951
10891472 5952# configure is writing to config.log, and then calls config.status.
5953# config.status does its own redirection, appending to config.log.
5954# Unfortunately, on DOS this fails, as config.log is still kept open
5955# by configure, so config.status won't be able to write to it; its
5956# output is simply discarded. So we exec the FD to /dev/null,
5957# effectively closing config.log, so it can be properly (re)opened and
5958# appended to by config.status. When coming back to configure, we
5959# need to make the FD available again.
5960if test "$no_create" != yes; then
5961 ac_cs_success=:
5962 exec 5>/dev/null
5963 $SHELL $CONFIG_STATUS || ac_cs_success=false
5964 exec 5>>config.log
5965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5966 # would make configure fail if this is the last instruction.
5967 $ac_cs_success || { (exit 1); exit 1; }
5968fi
580e6f7d 5969
205810b2 5970#
5971# CONFIG_SUBDIRS section.
5972#
5973if test "$no_recursion" != yes; then
5974
5975 # Remove --cache-file and --srcdir arguments so they do not pile up.
5976 ac_sub_configure_args=
5977 ac_prev=
5978 for ac_arg in $ac_configure_args; do
5979 if test -n "$ac_prev"; then
5980 ac_prev=
5981 continue
5982 fi
5983 case $ac_arg in
5984 -cache-file | --cache-file | --cache-fil | --cache-fi \
5985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5986 ac_prev=cache_file ;;
5987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5989 | --c=*)
5990 ;;
5991 --config-cache | -C)
5992 ;;
5993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5994 ac_prev=srcdir ;;
5995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5996 ;;
5997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5998 ac_prev=prefix ;;
5999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6000 ;;
6001 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6002 esac
6003 done
6004
6005 # Always prepend --prefix to ensure using the same prefix
6006 # in subdir configurations.
6007 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6008
6009 ac_popdir=`pwd`
6010 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6011
6012 # Do not complain, so a configure script can configure whichever
6013 # parts of a large source tree are present.
6014 test -d $srcdir/$ac_dir || continue
6015
6016 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6017echo "$as_me: configuring in $ac_dir" >&6;}
e646634b 6018 { case "$ac_dir" in
6019 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6020 *) as_incr_dir=.;;
6021esac
6022as_dummy="$ac_dir"
6023for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6024 case $as_mkdir_dir in
6025 # Skip DOS drivespec
6026 ?:) as_incr_dir=$as_mkdir_dir ;;
6027 *)
6028 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6029 test -d "$as_incr_dir" ||
6030 mkdir "$as_incr_dir" ||
6031 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6032echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6033 { (exit 1); exit 1; }; }
6034 ;;
6035 esac
6036done; }
205810b2 6037
6038 ac_builddir=.
6039
6040if test "$ac_dir" != .; then
6041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6042 # A "../" for each directory in $ac_dir_suffix.
6043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6044else
6045 ac_dir_suffix= ac_top_builddir=
6046fi
6047
6048case $srcdir in
6049 .) # No --srcdir option. We are building in place.
6050 ac_srcdir=.
6051 if test -z "$ac_top_builddir"; then
6052 ac_top_srcdir=.
6053 else
6054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6055 fi ;;
6056 [\\/]* | ?:[\\/]* ) # Absolute path.
6057 ac_srcdir=$srcdir$ac_dir_suffix;
6058 ac_top_srcdir=$srcdir ;;
6059 *) # Relative path.
6060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6062esac
6063# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6064# absolute.
6065ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
e646634b 6066ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
205810b2 6067ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6068ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6069
6070
6071 cd $ac_dir
6072
6073 # Check for guested configure; otherwise get Cygnus style configure.
6074 if test -f $ac_srcdir/configure.gnu; then
6075 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6076 elif test -f $ac_srcdir/configure; then
6077 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6078 elif test -f $ac_srcdir/configure.in; then
6079 ac_sub_configure=$ac_configure
6080 else
6081 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6082echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6083 ac_sub_configure=
6084 fi
6085
6086 # The recursion is here.
6087 if test -n "$ac_sub_configure"; then
6088 # Make the cache file name correct relative to the subdirectory.
6089 case $cache_file in
6090 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6091 *) # Relative path.
6092 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6093 esac
6094
6095 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6096echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6097 # The eval makes quoting arguments work.
6098 eval $ac_sub_configure $ac_sub_configure_args \
6099 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6100 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6101echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6102 { (exit 1); exit 1; }; }
6103 fi
6104
6105 cd $ac_popdir
6106 done
6107fi
6108
c185a5dd 6109
99f4c865 6110echo "##############################################################################"
2c75ac1f 6111echo "Everything is now configured, but you can find some more (infrequently"
6112echo "changed) options in options.h. To compile BOPM now, just type make. It"
6113echo "requires GNU Make, which may be installed as gmake on your system."
6114echo
6115echo "bopm will be installed in ${prefix}. To change this, run:"
6116echo " ./configure --prefix=DIRECTORY"
6117echo
6118echo "If possible, PLEASE CONTRIBUTE TO OUR DNSBL BY REPORTING YOUR PROXIES!!"
6119echo
6120echo "o What is DNSBL?"
6121echo " It's the database of open proxies we provide and your BOPM checks"
6122echo " against BEFORE bothering to scan the client, therefore killing KNOWN"
6123echo " proxies faster and more efficiently."
6124echo
6125echo "o Why should my network contribute?"
6126echo " Because the more that do, the more proxies we know about and the"
6127echo " better the service becomes for all BOPM users including YOU! People"
6128echo " are also using our DNSBL to block spam (spammers use open proxies"
6129echo " too!) so you'd be helping the whole Internet."
6130echo
6131echo "o Sounds complicated, what do you need?"
6132echo " BOPM is already designed to report the proxies you find, but it is"
6133echo " turned off by default. To enable it all you have to do is:"
6134echo " - Set DNSBL_FROM to a unique email address that we can contact you"
6135echo " at if there is ever any problem with your reports."
6136echo " - Email us now at opm@lists.blitzed.org to tell us what you have"
6137echo " set your DNSBL_FROM to."
6138echo " - Set DNSBL_TO to proxy-report@blitzed.org."
6139echo " - Set SENDMAIL to contain the path to your sendmail binary (even"
6140echo " if you don't use sendmail you will have a binary named sendmail in"
6141echo " /usr/sbin or /usr/lib."
6142echo
6143echo "For more info about the people who already report their proxies, please"
6144echo "see http://www.blitzed.org/bopm/ - Thank you!"
99f4c865 6145echo "##############################################################################"
2c75ac1f 6146echo