3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--with-x use the X Window System"
17
--with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
19
--with-libpcap=DIR use libpcap in DIR"
21
--with-libnet=DIR use libnet in DIR"
23
--with-libnids=DIR use libnids in DIR"
25
--with-openssl=DIR use OpenSSL in DIR"
27
# Initialize some variables set by options.
28
# The variables have the same names as the options, with
29
# dashes changed to underlines.
31
cache_file=./config.cache
40
program_transform_name=s,x,x,
48
bindir='${exec_prefix}/bin'
49
sbindir='${exec_prefix}/sbin'
50
libexecdir='${exec_prefix}/libexec'
51
datadir='${prefix}/share'
52
sysconfdir='${prefix}/etc'
53
sharedstatedir='${prefix}/com'
54
localstatedir='${prefix}/var'
55
libdir='${exec_prefix}/lib'
56
includedir='${prefix}/include'
57
oldincludedir='/usr/include'
58
infodir='${prefix}/info'
59
mandir='${prefix}/man'
61
# Initialize some other variables.
64
SHELL=${CONFIG_SHELL-/bin/sh}
65
# Maximum number of lines to put in a shell here document.
72
# If the previous option needs an argument, assign it.
73
if test -n "$ac_prev"; then
74
eval "$ac_prev=\$ac_option"
80
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84
# Accept the important Cygnus configure options, so we can diagnose typos.
88
-bindir | --bindir | --bindi | --bind | --bin | --bi)
90
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91
bindir="$ac_optarg" ;;
93
-build | --build | --buil | --bui | --bu)
95
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
98
-cache-file | --cache-file | --cache-fil | --cache-fi \
99
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100
ac_prev=cache_file ;;
101
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103
cache_file="$ac_optarg" ;;
105
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109
datadir="$ac_optarg" ;;
111
-disable-* | --disable-*)
112
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113
# Reject names that are not valid shell variable names.
114
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118
eval "enable_${ac_feature}=no" ;;
120
-enable-* | --enable-*)
121
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122
# Reject names that are not valid shell variable names.
123
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131
eval "enable_${ac_feature}='$ac_optarg'" ;;
133
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135
| --exec | --exe | --ex)
136
ac_prev=exec_prefix ;;
137
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139
| --exec=* | --exe=* | --ex=*)
140
exec_prefix="$ac_optarg" ;;
142
-gas | --gas | --ga | --g)
143
# Obsolete; use --with-gas.
146
-help | --help | --hel | --he)
147
# Omit some internal or obsolete options to make the list less imposing.
148
# This message is too long to be a string in the A/UX 3.1 sh.
150
Usage: configure [options] [host]
151
Options: [defaults in brackets after descriptions]
153
--cache-file=FILE cache test results in FILE
154
--help print this message
155
--no-create do not create output files
156
--quiet, --silent do not print \`checking...' messages
157
--version print the version of autoconf that created configure
158
Directory and file names:
159
--prefix=PREFIX install architecture-independent files in PREFIX
161
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163
--bindir=DIR user executables in DIR [EPREFIX/bin]
164
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166
--datadir=DIR read-only architecture-independent data in DIR
168
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169
--sharedstatedir=DIR modifiable architecture-independent data in DIR
171
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
173
--includedir=DIR C header files in DIR [PREFIX/include]
174
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175
--infodir=DIR info documentation in DIR [PREFIX/info]
176
--mandir=DIR man documentation in DIR [PREFIX/man]
177
--srcdir=DIR find the sources in DIR [configure dir or ..]
178
--program-prefix=PREFIX prepend PREFIX to installed program names
179
--program-suffix=SUFFIX append SUFFIX to installed program names
180
--program-transform-name=PROGRAM
181
run sed PROGRAM on installed program names
185
--build=BUILD configure for building on BUILD [BUILD=HOST]
186
--host=HOST configure for HOST [guessed]
187
--target=TARGET configure for TARGET [TARGET=HOST]
188
Features and packages:
189
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193
--x-includes=DIR X include files are in DIR
194
--x-libraries=DIR X library files are in DIR
196
if test -n "$ac_help"; then
197
echo "--enable and --with options recognized:$ac_help"
201
-host | --host | --hos | --ho)
203
-host=* | --host=* | --hos=* | --ho=*)
206
-includedir | --includedir | --includedi | --included | --include \
207
| --includ | --inclu | --incl | --inc)
208
ac_prev=includedir ;;
209
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210
| --includ=* | --inclu=* | --incl=* | --inc=*)
211
includedir="$ac_optarg" ;;
213
-infodir | --infodir | --infodi | --infod | --info | --inf)
215
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216
infodir="$ac_optarg" ;;
218
-libdir | --libdir | --libdi | --libd)
220
-libdir=* | --libdir=* | --libdi=* | --libd=*)
221
libdir="$ac_optarg" ;;
223
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224
| --libexe | --libex | --libe)
225
ac_prev=libexecdir ;;
226
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227
| --libexe=* | --libex=* | --libe=*)
228
libexecdir="$ac_optarg" ;;
230
-localstatedir | --localstatedir | --localstatedi | --localstated \
231
| --localstate | --localstat | --localsta | --localst \
232
| --locals | --local | --loca | --loc | --lo)
233
ac_prev=localstatedir ;;
234
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
236
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237
localstatedir="$ac_optarg" ;;
239
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242
mandir="$ac_optarg" ;;
245
# Obsolete; use --without-fp.
248
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
252
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
253
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258
| --oldin | --oldi | --old | --ol | --o)
259
ac_prev=oldincludedir ;;
260
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263
oldincludedir="$ac_optarg" ;;
265
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268
prefix="$ac_optarg" ;;
270
-program-prefix | --program-prefix | --program-prefi | --program-pref \
271
| --program-pre | --program-pr | --program-p)
272
ac_prev=program_prefix ;;
273
-program-prefix=* | --program-prefix=* | --program-prefi=* \
274
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275
program_prefix="$ac_optarg" ;;
277
-program-suffix | --program-suffix | --program-suffi | --program-suff \
278
| --program-suf | --program-su | --program-s)
279
ac_prev=program_suffix ;;
280
-program-suffix=* | --program-suffix=* | --program-suffi=* \
281
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282
program_suffix="$ac_optarg" ;;
284
-program-transform-name | --program-transform-name \
285
| --program-transform-nam | --program-transform-na \
286
| --program-transform-n | --program-transform- \
287
| --program-transform | --program-transfor \
288
| --program-transfo | --program-transf \
289
| --program-trans | --program-tran \
290
| --progr-tra | --program-tr | --program-t)
291
ac_prev=program_transform_name ;;
292
-program-transform-name=* | --program-transform-name=* \
293
| --program-transform-nam=* | --program-transform-na=* \
294
| --program-transform-n=* | --program-transform-=* \
295
| --program-transform=* | --program-transfor=* \
296
| --program-transfo=* | --program-transf=* \
297
| --program-trans=* | --program-tran=* \
298
| --progr-tra=* | --program-tr=* | --program-t=*)
299
program_transform_name="$ac_optarg" ;;
301
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
302
| -silent | --silent | --silen | --sile | --sil)
305
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309
sbindir="$ac_optarg" ;;
311
-sharedstatedir | --sharedstatedir | --sharedstatedi \
312
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313
| --sharedst | --shareds | --shared | --share | --shar \
315
ac_prev=sharedstatedir ;;
316
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320
sharedstatedir="$ac_optarg" ;;
322
-site | --site | --sit)
324
-site=* | --site=* | --sit=*)
327
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330
srcdir="$ac_optarg" ;;
332
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333
| --syscon | --sysco | --sysc | --sys | --sy)
334
ac_prev=sysconfdir ;;
335
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337
sysconfdir="$ac_optarg" ;;
339
-target | --target | --targe | --targ | --tar | --ta | --t)
341
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342
target="$ac_optarg" ;;
344
-v | -verbose | --verbose | --verbos | --verbo | --verb)
347
-version | --version | --versio | --versi | --vers)
348
echo "configure generated by autoconf version 2.13"
352
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353
# Reject names that are not valid shell variable names.
354
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357
ac_package=`echo $ac_package| sed 's/-/_/g'`
362
eval "with_${ac_package}='$ac_optarg'" ;;
364
-without-* | --without-*)
365
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366
# Reject names that are not valid shell variable names.
367
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370
ac_package=`echo $ac_package| sed 's/-/_/g'`
371
eval "with_${ac_package}=no" ;;
374
# Obsolete; use --with-x.
377
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378
| --x-incl | --x-inc | --x-in | --x-i)
379
ac_prev=x_includes ;;
380
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382
x_includes="$ac_optarg" ;;
384
-x-libraries | --x-libraries | --x-librarie | --x-librari \
385
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386
ac_prev=x_libraries ;;
387
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389
x_libraries="$ac_optarg" ;;
391
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396
echo "configure: warning: $ac_option: invalid host type" 1>&2
398
if test "x$nonopt" != xNONE; then
399
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407
if test -n "$ac_prev"; then
408
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
# File descriptor usage:
416
# 2 errors and warnings
417
# 3 some systems may open it to /dev/tty
418
# 4 used on the Kubota Titan
419
# 6 checking for... messages and results
420
# 5 compiler messages saved in config.log
421
if test "$silent" = yes; then
429
This file contains any messages produced by compilers while
430
running configure, to aid debugging if configure makes a mistake.
433
# Strip out --no-create and --no-recursion so they do not pile up.
434
# Also quote any args containing shell metacharacters.
439
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
440
| --no-cr | --no-c) ;;
441
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
442
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
450
# Only set these to C if already set. These must not be set unconditionally
451
# because not all systems understand e.g. LANG=C (notably SCO).
452
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453
# Non-C LC_CTYPE values break the ctype check.
454
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459
# confdefs.h avoids OS command line length limits that DEFS can exceed.
460
rm -rf conftest* confdefs.h
461
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
464
# A filename unique to this package, relative to the directory that
465
# configure is in, which we can look for to find out if srcdir is correct.
466
ac_unique_file=dsniff.c
468
# Find the source files, if location was not specified.
469
if test -z "$srcdir"; then
470
ac_srcdir_defaulted=yes
471
# Try the directory containing this script, then its parent.
473
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476
if test ! -r $srcdir/$ac_unique_file; then
480
ac_srcdir_defaulted=no
482
if test ! -r $srcdir/$ac_unique_file; then
483
if test "$ac_srcdir_defaulted" = yes; then
484
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
# Prefer explicitly selected file to automatically selected ones.
492
if test -z "$CONFIG_SITE"; then
493
if test "x$prefix" != xNONE; then
494
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499
for ac_site_file in $CONFIG_SITE; do
500
if test -r "$ac_site_file"; then
501
echo "loading site script $ac_site_file"
506
if test -r "$cache_file"; then
507
echo "loading cache $cache_file"
510
echo "creating cache $cache_file"
515
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516
ac_cpp='$CPP $CPPFLAGS'
517
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519
cross_compiling=$ac_cv_prog_cc_cross
523
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532
ac_n= ac_c='\c' ac_t=
539
if test "$prefix" = "NONE"; then
543
# Extract the first word of "gcc", so it can be a program name with args.
544
set dummy gcc; ac_word=$2
545
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
546
echo "configure:547: checking for $ac_word" >&5
547
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
548
echo $ac_n "(cached) $ac_c" 1>&6
550
if test -n "$CC"; then
551
ac_cv_prog_CC="$CC" # Let the user override the test.
553
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
555
for ac_dir in $ac_dummy; do
556
test -z "$ac_dir" && ac_dir=.
557
if test -f $ac_dir/$ac_word; then
566
if test -n "$CC"; then
567
echo "$ac_t""$CC" 1>&6
569
echo "$ac_t""no" 1>&6
572
if test -z "$CC"; then
573
# Extract the first word of "cc", so it can be a program name with args.
574
set dummy cc; ac_word=$2
575
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
576
echo "configure:577: checking for $ac_word" >&5
577
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
578
echo $ac_n "(cached) $ac_c" 1>&6
580
if test -n "$CC"; then
581
ac_cv_prog_CC="$CC" # Let the user override the test.
583
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
586
for ac_dir in $ac_dummy; do
587
test -z "$ac_dir" && ac_dir=.
588
if test -f $ac_dir/$ac_word; then
589
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
598
if test $ac_prog_rejected = yes; then
599
# We found a bogon in the path, so make sure we never use it.
600
set dummy $ac_cv_prog_CC
602
if test $# -gt 0; then
603
# We chose a different compiler from the bogus one.
604
# However, it has the same basename, so the bogon will be chosen
605
# first if we set CC to just the basename; use the full file name.
607
set dummy "$ac_dir/$ac_word" "$@"
615
if test -n "$CC"; then
616
echo "$ac_t""$CC" 1>&6
618
echo "$ac_t""no" 1>&6
621
if test -z "$CC"; then
624
# Extract the first word of "cl", so it can be a program name with args.
625
set dummy cl; ac_word=$2
626
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627
echo "configure:628: checking for $ac_word" >&5
628
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629
echo $ac_n "(cached) $ac_c" 1>&6
631
if test -n "$CC"; then
632
ac_cv_prog_CC="$CC" # Let the user override the test.
634
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
636
for ac_dir in $ac_dummy; do
637
test -z "$ac_dir" && ac_dir=.
638
if test -f $ac_dir/$ac_word; then
647
if test -n "$CC"; then
648
echo "$ac_t""$CC" 1>&6
650
echo "$ac_t""no" 1>&6
655
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
658
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
659
echo "configure:660: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
662
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
663
ac_cpp='$CPP $CPPFLAGS'
664
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
665
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
666
cross_compiling=$ac_cv_prog_cc_cross
668
cat > conftest.$ac_ext << EOF
670
#line 671 "configure"
671
#include "confdefs.h"
675
if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
676
ac_cv_prog_cc_works=yes
677
# If we can't run a trivial program, we are probably using a cross compiler.
678
if (./conftest; exit) 2>/dev/null; then
679
ac_cv_prog_cc_cross=no
681
ac_cv_prog_cc_cross=yes
684
echo "configure: failed program was:" >&5
685
cat conftest.$ac_ext >&5
686
ac_cv_prog_cc_works=no
690
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
691
ac_cpp='$CPP $CPPFLAGS'
692
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
694
cross_compiling=$ac_cv_prog_cc_cross
696
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
697
if test $ac_cv_prog_cc_works = no; then
698
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
701
echo "configure:702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
702
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
703
cross_compiling=$ac_cv_prog_cc_cross
705
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
706
echo "configure:707: checking whether we are using GNU C" >&5
707
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
708
echo $ac_n "(cached) $ac_c" 1>&6
710
cat > conftest.c <<EOF
715
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
722
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
724
if test $ac_cv_prog_gcc = yes; then
730
ac_test_CFLAGS="${CFLAGS+set}"
731
ac_save_CFLAGS="$CFLAGS"
733
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
734
echo "configure:735: checking whether ${CC-cc} accepts -g" >&5
735
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
736
echo $ac_n "(cached) $ac_c" 1>&6
738
echo 'void f(){}' > conftest.c
739
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
748
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
749
if test "$ac_test_CFLAGS" = set; then
750
CFLAGS="$ac_save_CFLAGS"
751
elif test $ac_cv_prog_cc_g = yes; then
752
if test "$GCC" = yes; then
758
if test "$GCC" = yes; then
766
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
767
if test -f $ac_dir/install-sh; then
769
ac_install_sh="$ac_aux_dir/install-sh -c"
771
elif test -f $ac_dir/install.sh; then
773
ac_install_sh="$ac_aux_dir/install.sh -c"
777
if test -z "$ac_aux_dir"; then
778
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
780
ac_config_guess=$ac_aux_dir/config.guess
781
ac_config_sub=$ac_aux_dir/config.sub
782
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
784
# Find a good install program. We prefer a C program (faster),
785
# so one script is as good as another. But avoid the broken or
786
# incompatible versions:
787
# SysV /etc/install, /usr/sbin/install
788
# SunOS /usr/etc/install
791
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
792
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
793
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
794
# ./install, which can be erroneously created by make from ./install.sh.
795
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
796
echo "configure:797: checking for a BSD compatible install" >&5
797
if test -z "$INSTALL"; then
798
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
799
echo $ac_n "(cached) $ac_c" 1>&6
801
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
802
for ac_dir in $PATH; do
803
# Account for people who put trailing slashes in PATH elements.
805
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
807
# OSF1 and SCO ODT 3.0 have their own names for install.
808
# Don't use installbsd from OSF since it installs stuff as root
810
for ac_prog in ginstall scoinst install; do
811
if test -f $ac_dir/$ac_prog; then
812
if test $ac_prog = install &&
813
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
814
# AIX install. It has an incompatible calling convention.
817
ac_cv_path_install="$ac_dir/$ac_prog -c"
828
if test "${ac_cv_path_install+set}" = set; then
829
INSTALL="$ac_cv_path_install"
831
# As a last resort, use the slow shell script. We don't cache a
832
# path for INSTALL within a source directory, because that will
833
# break other packages using the cache if that directory is
834
# removed, or if the path is relative.
835
INSTALL="$ac_install_sh"
838
echo "$ac_t""$INSTALL" 1>&6
840
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
841
# It thinks the first close brace ends the variable substitution.
842
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
844
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
846
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
848
# Extract the first word of "ranlib", so it can be a program name with args.
849
set dummy ranlib; ac_word=$2
850
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851
echo "configure:852: checking for $ac_word" >&5
852
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
853
echo $ac_n "(cached) $ac_c" 1>&6
855
if test -n "$RANLIB"; then
856
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
858
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
860
for ac_dir in $ac_dummy; do
861
test -z "$ac_dir" && ac_dir=.
862
if test -f $ac_dir/$ac_word; then
863
ac_cv_prog_RANLIB="ranlib"
868
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
871
RANLIB="$ac_cv_prog_RANLIB"
872
if test -n "$RANLIB"; then
873
echo "$ac_t""$RANLIB" 1>&6
875
echo "$ac_t""no" 1>&6
879
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
880
echo "configure:881: checking how to run the C preprocessor" >&5
881
# On Suns, sometimes $CPP names a directory.
882
if test -n "$CPP" && test -d "$CPP"; then
885
if test -z "$CPP"; then
886
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
887
echo $ac_n "(cached) $ac_c" 1>&6
889
# This must be in double quotes, not single quotes, because CPP may get
890
# substituted into the Makefile and "${CC-cc}" will confuse make.
892
# On the NeXT, cc -E runs the code through the compiler's parser,
893
# not just through cpp.
894
cat > conftest.$ac_ext <<EOF
895
#line 896 "configure"
896
#include "confdefs.h"
900
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901
{ (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903
if test -z "$ac_err"; then
907
echo "configure: failed program was:" >&5
908
cat conftest.$ac_ext >&5
910
CPP="${CC-cc} -E -traditional-cpp"
911
cat > conftest.$ac_ext <<EOF
912
#line 913 "configure"
913
#include "confdefs.h"
917
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918
{ (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920
if test -z "$ac_err"; then
924
echo "configure: failed program was:" >&5
925
cat conftest.$ac_ext >&5
927
CPP="${CC-cc} -nologo -E"
928
cat > conftest.$ac_ext <<EOF
929
#line 930 "configure"
930
#include "confdefs.h"
934
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
935
{ (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
936
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937
if test -z "$ac_err"; then
941
echo "configure: failed program was:" >&5
942
cat conftest.$ac_ext >&5
951
ac_cv_prog_CPP="$CPP"
953
CPP="$ac_cv_prog_CPP"
955
ac_cv_prog_CPP="$CPP"
957
echo "$ac_t""$CPP" 1>&6
959
# If we find X, set shell vars x_includes and x_libraries to the
960
# paths, otherwise set no_x=yes.
961
# Uses ac_ vars as temps to allow command line to override cache and checks.
962
# --without-x overrides everything else, but does not touch the cache.
963
echo $ac_n "checking for X""... $ac_c" 1>&6
964
echo "configure:965: checking for X" >&5
966
# Check whether --with-x or --without-x was given.
967
if test "${with_x+set}" = set; then
972
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
973
if test "x$with_x" = xno; then
974
# The user explicitly disabled X.
977
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
978
# Both variables are already set.
981
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
982
echo $ac_n "(cached) $ac_c" 1>&6
984
# One or both of the vars are not set, and there is no cached value.
985
ac_x_includes=NO ac_x_libraries=NO
987
if mkdir conftestdir; then
989
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
990
cat > Imakefile <<'EOF'
992
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
994
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
995
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
996
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
997
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
998
for ac_extension in a so sl; do
999
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1000
test -f $ac_im_libdir/libX11.$ac_extension; then
1001
ac_im_usrlibdir=$ac_im_libdir; break
1004
# Screen out bogus values from the imake configuration. They are
1005
# bogus both because they are the default anyway, and because
1006
# using them would break gcc on systems where it needs fixed includes.
1007
case "$ac_im_incroot" in
1009
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1011
case "$ac_im_usrlibdir" in
1013
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1020
if test "$ac_x_includes" = NO; then
1021
# Guess where to find include files, by looking for this one X11 .h file.
1022
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1024
# First, try using that file with no special directory specified.
1025
cat > conftest.$ac_ext <<EOF
1026
#line 1027 "configure"
1027
#include "confdefs.h"
1028
#include <$x_direct_test_include>
1030
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031
{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1033
if test -z "$ac_err"; then
1035
# We can compile using X headers with no special include directory.
1039
echo "configure: failed program was:" >&5
1040
cat conftest.$ac_ext >&5
1042
# Look for the header file in a standard set of common directories.
1043
# Check X11 before X11Rn because it is often a symlink to the current release.
1046
/usr/X11R6/include \
1047
/usr/X11R5/include \
1048
/usr/X11R4/include \
1051
/usr/include/X11R6 \
1052
/usr/include/X11R5 \
1053
/usr/include/X11R4 \
1055
/usr/local/X11/include \
1056
/usr/local/X11R6/include \
1057
/usr/local/X11R5/include \
1058
/usr/local/X11R4/include \
1060
/usr/local/include/X11 \
1061
/usr/local/include/X11R6 \
1062
/usr/local/include/X11R5 \
1063
/usr/local/include/X11R4 \
1067
/usr/XFree86/include/X11 \
1070
/usr/local/include \
1071
/usr/unsupported/include \
1072
/usr/athena/include \
1073
/usr/local/x11r5/include \
1074
/usr/lpp/Xamples/include \
1076
/usr/openwin/include \
1077
/usr/openwin/share/include \
1080
if test -r "$ac_dir/$x_direct_test_include"; then
1081
ac_x_includes=$ac_dir
1087
fi # $ac_x_includes = NO
1089
if test "$ac_x_libraries" = NO; then
1090
# Check for the libraries.
1092
test -z "$x_direct_test_library" && x_direct_test_library=Xt
1093
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1095
# See if we find them without any special options.
1096
# Don't add to $LIBS permanently.
1097
ac_save_LIBS="$LIBS"
1098
LIBS="-l$x_direct_test_library $LIBS"
1099
cat > conftest.$ac_ext <<EOF
1100
#line 1101 "configure"
1101
#include "confdefs.h"
1104
${x_direct_test_function}()
1107
if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1109
LIBS="$ac_save_LIBS"
1110
# We can link X programs with no special library path.
1113
echo "configure: failed program was:" >&5
1114
cat conftest.$ac_ext >&5
1116
LIBS="$ac_save_LIBS"
1117
# First see if replacing the include by lib works.
1118
# Check X11 before X11Rn because it is often a symlink to the current release.
1119
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1130
/usr/local/X11/lib \
1131
/usr/local/X11R6/lib \
1132
/usr/local/X11R5/lib \
1133
/usr/local/X11R4/lib \
1135
/usr/local/lib/X11 \
1136
/usr/local/lib/X11R6 \
1137
/usr/local/lib/X11R5 \
1138
/usr/local/lib/X11R4 \
1142
/usr/XFree86/lib/X11 \
1146
/usr/unsupported/lib \
1148
/usr/local/x11r5/lib \
1149
/usr/lpp/Xamples/lib \
1153
/usr/openwin/share/lib \
1156
for ac_extension in a so sl; do
1157
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1158
ac_x_libraries=$ac_dir
1165
fi # $ac_x_libraries = NO
1167
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1168
# Didn't find X anywhere. Cache the known absence of X.
1169
ac_cv_have_x="have_x=no"
1171
# Record where we found X for the cache.
1172
ac_cv_have_x="have_x=yes \
1173
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1177
eval "$ac_cv_have_x"
1180
if test "$have_x" != yes; then
1181
echo "$ac_t""$have_x" 1>&6
1184
# If each of the values was on the command line, it overrides each guess.
1185
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1186
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1187
# Update the cache value to reflect the command line values.
1188
ac_cv_have_x="have_x=yes \
1189
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1190
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1193
if test "$no_x" = yes; then
1194
# Not all programs may use this symbol, but it does not hurt to define it.
1195
cat >> confdefs.h <<\EOF
1196
#define X_DISPLAY_MISSING 1
1199
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1201
if test -n "$x_includes"; then
1202
X_CFLAGS="$X_CFLAGS -I$x_includes"
1205
# It would also be nice to do this for all -L options, not just this one.
1206
if test -n "$x_libraries"; then
1207
X_LIBS="$X_LIBS -L$x_libraries"
1208
# For Solaris; some versions of Sun CC require a space after -R and
1209
# others require no space. Words are not sufficient . . . .
1210
case "`(uname -sr) 2>/dev/null`" in
1212
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1213
echo "configure:1214: checking whether -R must be followed by a space" >&5
1214
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1215
cat > conftest.$ac_ext <<EOF
1216
#line 1217 "configure"
1217
#include "confdefs.h"
1223
if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1227
echo "configure: failed program was:" >&5
1228
cat conftest.$ac_ext >&5
1233
if test $ac_R_nospace = yes; then
1234
echo "$ac_t""no" 1>&6
1235
X_LIBS="$X_LIBS -R$x_libraries"
1237
LIBS="$ac_xsave_LIBS -R $x_libraries"
1238
cat > conftest.$ac_ext <<EOF
1239
#line 1240 "configure"
1240
#include "confdefs.h"
1246
if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1250
echo "configure: failed program was:" >&5
1251
cat conftest.$ac_ext >&5
1256
if test $ac_R_space = yes; then
1257
echo "$ac_t""yes" 1>&6
1258
X_LIBS="$X_LIBS -R $x_libraries"
1260
echo "$ac_t""neither works" 1>&6
1263
LIBS="$ac_xsave_LIBS"
1267
# Check for system-dependent libraries X programs must link with.
1268
# Do this before checking for the system-independent R6 libraries
1269
# (-lICE), since we may need -lsocket or whatever for X linking.
1271
if test "$ISC" = yes; then
1272
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1274
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1275
# libraries were built with DECnet support. And karl@cs.umb.edu says
1276
# the Alpha needs dnet_stub (dnet does not exist).
1277
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1278
echo "configure:1279: checking for dnet_ntoa in -ldnet" >&5
1279
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1280
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1281
echo $ac_n "(cached) $ac_c" 1>&6
1283
ac_save_LIBS="$LIBS"
1285
cat > conftest.$ac_ext <<EOF
1286
#line 1287 "configure"
1287
#include "confdefs.h"
1288
/* Override any gcc2 internal prototype to avoid an error. */
1289
/* We use char because int might match the return type of a gcc2
1290
builtin and then its argument prototype would still apply. */
1297
if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299
eval "ac_cv_lib_$ac_lib_var=yes"
1301
echo "configure: failed program was:" >&5
1302
cat conftest.$ac_ext >&5
1304
eval "ac_cv_lib_$ac_lib_var=no"
1307
LIBS="$ac_save_LIBS"
1310
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1311
echo "$ac_t""yes" 1>&6
1312
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1314
echo "$ac_t""no" 1>&6
1317
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1318
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1319
echo "configure:1320: checking for dnet_ntoa in -ldnet_stub" >&5
1320
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1321
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322
echo $ac_n "(cached) $ac_c" 1>&6
1324
ac_save_LIBS="$LIBS"
1325
LIBS="-ldnet_stub $LIBS"
1326
cat > conftest.$ac_ext <<EOF
1327
#line 1328 "configure"
1328
#include "confdefs.h"
1329
/* Override any gcc2 internal prototype to avoid an error. */
1330
/* We use char because int might match the return type of a gcc2
1331
builtin and then its argument prototype would still apply. */
1338
if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1340
eval "ac_cv_lib_$ac_lib_var=yes"
1342
echo "configure: failed program was:" >&5
1343
cat conftest.$ac_ext >&5
1345
eval "ac_cv_lib_$ac_lib_var=no"
1348
LIBS="$ac_save_LIBS"
1351
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352
echo "$ac_t""yes" 1>&6
1353
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1355
echo "$ac_t""no" 1>&6
1360
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1361
# to get the SysV transport functions.
1362
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1364
# The nsl library prevents programs from opening the X display
1365
# on Irix 5.2, according to dickey@clark.net.
1366
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1367
echo "configure:1368: checking for gethostbyname" >&5
1368
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1369
echo $ac_n "(cached) $ac_c" 1>&6
1371
cat > conftest.$ac_ext <<EOF
1372
#line 1373 "configure"
1373
#include "confdefs.h"
1374
/* System header to define __stub macros and hopefully few prototypes,
1375
which can conflict with char gethostbyname(); below. */
1377
/* Override any gcc2 internal prototype to avoid an error. */
1378
/* We use char because int might match the return type of a gcc2
1379
builtin and then its argument prototype would still apply. */
1380
char gethostbyname();
1384
/* The GNU C library defines this for functions which it implements
1385
to always fail with ENOSYS. Some functions are actually named
1386
something starting with __ and the normal name is an alias. */
1387
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1395
if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397
eval "ac_cv_func_gethostbyname=yes"
1399
echo "configure: failed program was:" >&5
1400
cat conftest.$ac_ext >&5
1402
eval "ac_cv_func_gethostbyname=no"
1407
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1408
echo "$ac_t""yes" 1>&6
1411
echo "$ac_t""no" 1>&6
1414
if test $ac_cv_func_gethostbyname = no; then
1415
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1416
echo "configure:1417: checking for gethostbyname in -lnsl" >&5
1417
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1418
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1419
echo $ac_n "(cached) $ac_c" 1>&6
1421
ac_save_LIBS="$LIBS"
1423
cat > conftest.$ac_ext <<EOF
1424
#line 1425 "configure"
1425
#include "confdefs.h"
1426
/* Override any gcc2 internal prototype to avoid an error. */
1427
/* We use char because int might match the return type of a gcc2
1428
builtin and then its argument prototype would still apply. */
1429
char gethostbyname();
1435
if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1437
eval "ac_cv_lib_$ac_lib_var=yes"
1439
echo "configure: failed program was:" >&5
1440
cat conftest.$ac_ext >&5
1442
eval "ac_cv_lib_$ac_lib_var=no"
1445
LIBS="$ac_save_LIBS"
1448
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1449
echo "$ac_t""yes" 1>&6
1450
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1452
echo "$ac_t""no" 1>&6
1457
# lieder@skyler.mavd.honeywell.com says without -lsocket,
1458
# socket/setsockopt and other routines are undefined under SCO ODT
1459
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1460
# on later versions), says simon@lia.di.epfl.ch: it contains
1461
# gethostby* variants that don't use the nameserver (or something).
1462
# -lsocket must be given before -lnsl if both are needed.
1463
# We assume that if connect needs -lnsl, so does gethostbyname.
1464
echo $ac_n "checking for connect""... $ac_c" 1>&6
1465
echo "configure:1466: checking for connect" >&5
1466
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1467
echo $ac_n "(cached) $ac_c" 1>&6
1469
cat > conftest.$ac_ext <<EOF
1470
#line 1471 "configure"
1471
#include "confdefs.h"
1472
/* System header to define __stub macros and hopefully few prototypes,
1473
which can conflict with char connect(); below. */
1475
/* Override any gcc2 internal prototype to avoid an error. */
1476
/* We use char because int might match the return type of a gcc2
1477
builtin and then its argument prototype would still apply. */
1482
/* The GNU C library defines this for functions which it implements
1483
to always fail with ENOSYS. Some functions are actually named
1484
something starting with __ and the normal name is an alias. */
1485
#if defined (__stub_connect) || defined (__stub___connect)
1493
if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495
eval "ac_cv_func_connect=yes"
1497
echo "configure: failed program was:" >&5
1498
cat conftest.$ac_ext >&5
1500
eval "ac_cv_func_connect=no"
1505
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1506
echo "$ac_t""yes" 1>&6
1509
echo "$ac_t""no" 1>&6
1512
if test $ac_cv_func_connect = no; then
1513
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1514
echo "configure:1515: checking for connect in -lsocket" >&5
1515
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1516
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1517
echo $ac_n "(cached) $ac_c" 1>&6
1519
ac_save_LIBS="$LIBS"
1520
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1521
cat > conftest.$ac_ext <<EOF
1522
#line 1523 "configure"
1523
#include "confdefs.h"
1524
/* Override any gcc2 internal prototype to avoid an error. */
1525
/* We use char because int might match the return type of a gcc2
1526
builtin and then its argument prototype would still apply. */
1533
if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1535
eval "ac_cv_lib_$ac_lib_var=yes"
1537
echo "configure: failed program was:" >&5
1538
cat conftest.$ac_ext >&5
1540
eval "ac_cv_lib_$ac_lib_var=no"
1543
LIBS="$ac_save_LIBS"
1546
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1547
echo "$ac_t""yes" 1>&6
1548
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1550
echo "$ac_t""no" 1>&6
1555
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1556
echo $ac_n "checking for remove""... $ac_c" 1>&6
1557
echo "configure:1558: checking for remove" >&5
1558
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1559
echo $ac_n "(cached) $ac_c" 1>&6
1561
cat > conftest.$ac_ext <<EOF
1562
#line 1563 "configure"
1563
#include "confdefs.h"
1564
/* System header to define __stub macros and hopefully few prototypes,
1565
which can conflict with char remove(); below. */
1567
/* Override any gcc2 internal prototype to avoid an error. */
1568
/* We use char because int might match the return type of a gcc2
1569
builtin and then its argument prototype would still apply. */
1574
/* The GNU C library defines this for functions which it implements
1575
to always fail with ENOSYS. Some functions are actually named
1576
something starting with __ and the normal name is an alias. */
1577
#if defined (__stub_remove) || defined (__stub___remove)
1585
if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1587
eval "ac_cv_func_remove=yes"
1589
echo "configure: failed program was:" >&5
1590
cat conftest.$ac_ext >&5
1592
eval "ac_cv_func_remove=no"
1597
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1598
echo "$ac_t""yes" 1>&6
1601
echo "$ac_t""no" 1>&6
1604
if test $ac_cv_func_remove = no; then
1605
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1606
echo "configure:1607: checking for remove in -lposix" >&5
1607
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1608
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1609
echo $ac_n "(cached) $ac_c" 1>&6
1611
ac_save_LIBS="$LIBS"
1612
LIBS="-lposix $LIBS"
1613
cat > conftest.$ac_ext <<EOF
1614
#line 1615 "configure"
1615
#include "confdefs.h"
1616
/* Override any gcc2 internal prototype to avoid an error. */
1617
/* We use char because int might match the return type of a gcc2
1618
builtin and then its argument prototype would still apply. */
1625
if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627
eval "ac_cv_lib_$ac_lib_var=yes"
1629
echo "configure: failed program was:" >&5
1630
cat conftest.$ac_ext >&5
1632
eval "ac_cv_lib_$ac_lib_var=no"
1635
LIBS="$ac_save_LIBS"
1638
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1639
echo "$ac_t""yes" 1>&6
1640
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1642
echo "$ac_t""no" 1>&6
1647
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1648
echo $ac_n "checking for shmat""... $ac_c" 1>&6
1649
echo "configure:1650: checking for shmat" >&5
1650
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1651
echo $ac_n "(cached) $ac_c" 1>&6
1653
cat > conftest.$ac_ext <<EOF
1654
#line 1655 "configure"
1655
#include "confdefs.h"
1656
/* System header to define __stub macros and hopefully few prototypes,
1657
which can conflict with char shmat(); below. */
1659
/* Override any gcc2 internal prototype to avoid an error. */
1660
/* We use char because int might match the return type of a gcc2
1661
builtin and then its argument prototype would still apply. */
1666
/* The GNU C library defines this for functions which it implements
1667
to always fail with ENOSYS. Some functions are actually named
1668
something starting with __ and the normal name is an alias. */
1669
#if defined (__stub_shmat) || defined (__stub___shmat)
1677
if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1679
eval "ac_cv_func_shmat=yes"
1681
echo "configure: failed program was:" >&5
1682
cat conftest.$ac_ext >&5
1684
eval "ac_cv_func_shmat=no"
1689
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1690
echo "$ac_t""yes" 1>&6
1693
echo "$ac_t""no" 1>&6
1696
if test $ac_cv_func_shmat = no; then
1697
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1698
echo "configure:1699: checking for shmat in -lipc" >&5
1699
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1700
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1701
echo $ac_n "(cached) $ac_c" 1>&6
1703
ac_save_LIBS="$LIBS"
1705
cat > conftest.$ac_ext <<EOF
1706
#line 1707 "configure"
1707
#include "confdefs.h"
1708
/* Override any gcc2 internal prototype to avoid an error. */
1709
/* We use char because int might match the return type of a gcc2
1710
builtin and then its argument prototype would still apply. */
1717
if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1719
eval "ac_cv_lib_$ac_lib_var=yes"
1721
echo "configure: failed program was:" >&5
1722
cat conftest.$ac_ext >&5
1724
eval "ac_cv_lib_$ac_lib_var=no"
1727
LIBS="$ac_save_LIBS"
1730
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1731
echo "$ac_t""yes" 1>&6
1732
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1734
echo "$ac_t""no" 1>&6
1740
# Check for libraries that X11R6 Xt/Xaw programs need.
1741
ac_save_LDFLAGS="$LDFLAGS"
1742
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1743
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1744
# check for ICE first), but we must link in the order -lSM -lICE or
1745
# we get undefined symbols. So assume we have SM if we have ICE.
1746
# These have to be linked with before -lX11, unlike the other
1747
# libraries we check for below, so use a different variable.
1748
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1749
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1750
echo "configure:1751: checking for IceConnectionNumber in -lICE" >&5
1751
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1752
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1753
echo $ac_n "(cached) $ac_c" 1>&6
1755
ac_save_LIBS="$LIBS"
1756
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1757
cat > conftest.$ac_ext <<EOF
1758
#line 1759 "configure"
1759
#include "confdefs.h"
1760
/* Override any gcc2 internal prototype to avoid an error. */
1761
/* We use char because int might match the return type of a gcc2
1762
builtin and then its argument prototype would still apply. */
1763
char IceConnectionNumber();
1766
IceConnectionNumber()
1769
if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771
eval "ac_cv_lib_$ac_lib_var=yes"
1773
echo "configure: failed program was:" >&5
1774
cat conftest.$ac_ext >&5
1776
eval "ac_cv_lib_$ac_lib_var=no"
1779
LIBS="$ac_save_LIBS"
1782
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1783
echo "$ac_t""yes" 1>&6
1784
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1786
echo "$ac_t""no" 1>&6
1789
LDFLAGS="$ac_save_LDFLAGS"
1793
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1794
echo "configure:1795: checking for ANSI C header files" >&5
1795
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1796
echo $ac_n "(cached) $ac_c" 1>&6
1798
cat > conftest.$ac_ext <<EOF
1799
#line 1800 "configure"
1800
#include "confdefs.h"
1806
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807
{ (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809
if test -z "$ac_err"; then
1811
ac_cv_header_stdc=yes
1814
echo "configure: failed program was:" >&5
1815
cat conftest.$ac_ext >&5
1817
ac_cv_header_stdc=no
1821
if test $ac_cv_header_stdc = yes; then
1822
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1823
cat > conftest.$ac_ext <<EOF
1824
#line 1825 "configure"
1825
#include "confdefs.h"
1828
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829
egrep "memchr" >/dev/null 2>&1; then
1833
ac_cv_header_stdc=no
1839
if test $ac_cv_header_stdc = yes; then
1840
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1841
cat > conftest.$ac_ext <<EOF
1842
#line 1843 "configure"
1843
#include "confdefs.h"
1846
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1847
egrep "free" >/dev/null 2>&1; then
1851
ac_cv_header_stdc=no
1857
if test $ac_cv_header_stdc = yes; then
1858
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1859
if test "$cross_compiling" = yes; then
1862
cat > conftest.$ac_ext <<EOF
1863
#line 1864 "configure"
1864
#include "confdefs.h"
1866
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1867
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1868
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1869
int main () { int i; for (i = 0; i < 256; i++)
1870
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1874
if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1878
echo "configure: failed program was:" >&5
1879
cat conftest.$ac_ext >&5
1881
ac_cv_header_stdc=no
1889
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1890
if test $ac_cv_header_stdc = yes; then
1891
cat >> confdefs.h <<\EOF
1892
#define STDC_HEADERS 1
1897
for ac_hdr in err.h fcntl.h sys/ioctl.h sys/queue.h unistd.h libgen.h net/if_tun.h
1899
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1900
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1901
echo "configure:1902: checking for $ac_hdr" >&5
1902
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1903
echo $ac_n "(cached) $ac_c" 1>&6
1905
cat > conftest.$ac_ext <<EOF
1906
#line 1907 "configure"
1907
#include "confdefs.h"
1910
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911
{ (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1913
if test -z "$ac_err"; then
1915
eval "ac_cv_header_$ac_safe=yes"
1918
echo "configure: failed program was:" >&5
1919
cat conftest.$ac_ext >&5
1921
eval "ac_cv_header_$ac_safe=no"
1925
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1926
echo "$ac_t""yes" 1>&6
1927
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1928
cat >> confdefs.h <<EOF
1929
#define $ac_tr_hdr 1
1933
echo "$ac_t""no" 1>&6
1937
echo $ac_n "checking for MIN and MAX in sys/param.h""... $ac_c" 1>&6
1938
echo "configure:1939: checking for MIN and MAX in sys/param.h" >&5
1939
cat > conftest.$ac_ext <<EOF
1940
#line 1941 "configure"
1941
#include "confdefs.h"
1943
#include <sys/param.h>
1944
#if defined(MAX) && defined(MIN)
1949
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1950
egrep "yes" >/dev/null 2>&1; then
1952
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1953
#define HAVE_MINMAX 1
1958
echo "$ac_t""no" 1>&6
1964
echo $ac_n "checking for working const""... $ac_c" 1>&6
1965
echo "configure:1966: checking for working const" >&5
1966
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1967
echo $ac_n "(cached) $ac_c" 1>&6
1969
cat > conftest.$ac_ext <<EOF
1970
#line 1971 "configure"
1971
#include "confdefs.h"
1975
/* Ultrix mips cc rejects this. */
1976
typedef int charset[2]; const charset x;
1977
/* SunOS 4.1.1 cc rejects this. */
1978
char const *const *ccp;
1980
/* NEC SVR4.0.2 mips cc rejects this. */
1981
struct point {int x, y;};
1982
static struct point const zero = {0,0};
1983
/* AIX XL C 1.02.0.0 rejects this.
1984
It does not let you subtract one const X* pointer from another in an arm
1985
of an if-expression whose if-part is not a constant expression */
1986
const char *g = "string";
1987
ccp = &g + (g ? g-g : 0);
1988
/* HPUX 7.0 cc rejects these. */
1991
ccp = (char const *const *) p;
1992
{ /* SCO 3.2v4 cc rejects this. */
1994
char const *s = 0 ? (char *) 0 : (char const *) 0;
1998
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2000
const int *foo = &x[0];
2003
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2004
typedef const int *iptr;
2008
{ /* AIX XL C 1.02.0.0 rejects this saying
2009
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2010
struct s { int j; const int *ap[3]; };
2011
struct s *b; b->j = 5;
2013
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2019
if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2023
echo "configure: failed program was:" >&5
2024
cat conftest.$ac_ext >&5
2031
echo "$ac_t""$ac_cv_c_const" 1>&6
2032
if test $ac_cv_c_const = no; then
2033
cat >> confdefs.h <<\EOF
2039
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2040
echo "configure:2041: checking for size_t" >&5
2041
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2042
echo $ac_n "(cached) $ac_c" 1>&6
2044
cat > conftest.$ac_ext <<EOF
2045
#line 2046 "configure"
2046
#include "confdefs.h"
2047
#include <sys/types.h>
2053
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2054
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2056
ac_cv_type_size_t=yes
2059
ac_cv_type_size_t=no
2064
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2065
if test $ac_cv_type_size_t = no; then
2066
cat >> confdefs.h <<\EOF
2067
#define size_t unsigned
2072
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2073
echo "configure:2074: checking whether struct tm is in sys/time.h or time.h" >&5
2074
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2075
echo $ac_n "(cached) $ac_c" 1>&6
2077
cat > conftest.$ac_ext <<EOF
2078
#line 2079 "configure"
2079
#include "confdefs.h"
2080
#include <sys/types.h>
2083
struct tm *tp; tp->tm_sec;
2086
if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2088
ac_cv_struct_tm=time.h
2090
echo "configure: failed program was:" >&5
2091
cat conftest.$ac_ext >&5
2093
ac_cv_struct_tm=sys/time.h
2098
echo "$ac_t""$ac_cv_struct_tm" 1>&6
2099
if test $ac_cv_struct_tm = sys/time.h; then
2100
cat >> confdefs.h <<\EOF
2101
#define TM_IN_SYS_TIME 1
2106
echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2107
echo "configure:2108: checking for u_int32_t" >&5
2108
if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2109
echo $ac_n "(cached) $ac_c" 1>&6
2111
cat > conftest.$ac_ext <<EOF
2112
#line 2113 "configure"
2113
#include "confdefs.h"
2114
#include <sys/types.h>
2120
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121
egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2123
ac_cv_type_u_int32_t=yes
2126
ac_cv_type_u_int32_t=no
2131
echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2132
if test $ac_cv_type_u_int32_t = no; then
2133
cat >> confdefs.h <<\EOF
2134
#define u_int32_t uint32_t
2139
echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6
2140
echo "configure:2141: checking for u_int64_t" >&5
2141
if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then
2142
echo $ac_n "(cached) $ac_c" 1>&6
2144
cat > conftest.$ac_ext <<EOF
2145
#line 2146 "configure"
2146
#include "confdefs.h"
2147
#include <sys/types.h>
2153
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2154
egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2156
ac_cv_type_u_int64_t=yes
2159
ac_cv_type_u_int64_t=no
2164
echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6
2165
if test $ac_cv_type_u_int64_t = no; then
2166
cat >> confdefs.h <<\EOF
2167
#define u_int64_t uint64_t
2172
echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
2173
echo "configure:2174: checking for in_addr_t" >&5
2174
if eval "test \"`echo '$''{'ac_cv_type_in_addr_t'+set}'`\" = set"; then
2175
echo $ac_n "(cached) $ac_c" 1>&6
2177
cat > conftest.$ac_ext <<EOF
2178
#line 2179 "configure"
2179
#include "confdefs.h"
2180
#include <sys/types.h>
2186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2187
egrep "(^|[^a-zA-Z_0-9])in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2189
ac_cv_type_in_addr_t=yes
2192
ac_cv_type_in_addr_t=no
2197
echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
2198
if test $ac_cv_type_in_addr_t = no; then
2199
cat >> confdefs.h <<\EOF
2200
#define in_addr_t u_int32_t
2205
CFLAGS="$CFLAGS -D_BSD_SOURCE"
2207
if test $ac_cv_prog_gcc = yes; then
2208
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2209
echo "configure:2210: checking whether ${CC-cc} needs -traditional" >&5
2210
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2211
echo $ac_n "(cached) $ac_c" 1>&6
2213
ac_pattern="Autoconf.*'x'"
2214
cat > conftest.$ac_ext <<EOF
2215
#line 2216 "configure"
2216
#include "confdefs.h"
2220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2221
egrep "$ac_pattern" >/dev/null 2>&1; then
2223
ac_cv_prog_gcc_traditional=yes
2226
ac_cv_prog_gcc_traditional=no
2231
if test $ac_cv_prog_gcc_traditional = no; then
2232
cat > conftest.$ac_ext <<EOF
2233
#line 2234 "configure"
2234
#include "confdefs.h"
2238
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2239
egrep "$ac_pattern" >/dev/null 2>&1; then
2241
ac_cv_prog_gcc_traditional=yes
2248
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2249
if test $ac_cv_prog_gcc_traditional = yes; then
2250
CC="$CC -traditional"
2254
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2255
echo "configure:2256: checking for 8-bit clean memcmp" >&5
2256
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2257
echo $ac_n "(cached) $ac_c" 1>&6
2259
if test "$cross_compiling" = yes; then
2260
ac_cv_func_memcmp_clean=no
2262
cat > conftest.$ac_ext <<EOF
2263
#line 2264 "configure"
2264
#include "confdefs.h"
2268
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2269
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2273
if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2275
ac_cv_func_memcmp_clean=yes
2277
echo "configure: failed program was:" >&5
2278
cat conftest.$ac_ext >&5
2280
ac_cv_func_memcmp_clean=no
2287
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2288
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2290
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2291
echo "configure:2292: checking return type of signal handlers" >&5
2292
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2293
echo $ac_n "(cached) $ac_c" 1>&6
2295
cat > conftest.$ac_ext <<EOF
2296
#line 2297 "configure"
2297
#include "confdefs.h"
2298
#include <sys/types.h>
2304
extern "C" void (*signal (int, void (*)(int)))(int);
2306
void (*signal ()) ();
2313
if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2315
ac_cv_type_signal=void
2317
echo "configure: failed program was:" >&5
2318
cat conftest.$ac_ext >&5
2320
ac_cv_type_signal=int
2325
echo "$ac_t""$ac_cv_type_signal" 1>&6
2326
cat >> confdefs.h <<EOF
2327
#define RETSIGTYPE $ac_cv_type_signal
2331
echo $ac_n "checking for strftime""... $ac_c" 1>&6
2332
echo "configure:2333: checking for strftime" >&5
2333
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2334
echo $ac_n "(cached) $ac_c" 1>&6
2336
cat > conftest.$ac_ext <<EOF
2337
#line 2338 "configure"
2338
#include "confdefs.h"
2339
/* System header to define __stub macros and hopefully few prototypes,
2340
which can conflict with char strftime(); below. */
2342
/* Override any gcc2 internal prototype to avoid an error. */
2343
/* We use char because int might match the return type of a gcc2
2344
builtin and then its argument prototype would still apply. */
2349
/* The GNU C library defines this for functions which it implements
2350
to always fail with ENOSYS. Some functions are actually named
2351
something starting with __ and the normal name is an alias. */
2352
#if defined (__stub_strftime) || defined (__stub___strftime)
2360
if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362
eval "ac_cv_func_strftime=yes"
2364
echo "configure: failed program was:" >&5
2365
cat conftest.$ac_ext >&5
2367
eval "ac_cv_func_strftime=no"
2372
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2373
echo "$ac_t""yes" 1>&6
2374
cat >> confdefs.h <<\EOF
2375
#define HAVE_STRFTIME 1
2379
echo "$ac_t""no" 1>&6
2380
# strftime is in -lintl on SCO UNIX.
2381
echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2382
echo "configure:2383: checking for strftime in -lintl" >&5
2383
ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2384
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2385
echo $ac_n "(cached) $ac_c" 1>&6
2387
ac_save_LIBS="$LIBS"
2389
cat > conftest.$ac_ext <<EOF
2390
#line 2391 "configure"
2391
#include "confdefs.h"
2392
/* Override any gcc2 internal prototype to avoid an error. */
2393
/* We use char because int might match the return type of a gcc2
2394
builtin and then its argument prototype would still apply. */
2401
if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2403
eval "ac_cv_lib_$ac_lib_var=yes"
2405
echo "configure: failed program was:" >&5
2406
cat conftest.$ac_ext >&5
2408
eval "ac_cv_lib_$ac_lib_var=no"
2411
LIBS="$ac_save_LIBS"
2414
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2415
echo "$ac_t""yes" 1>&6
2416
cat >> confdefs.h <<\EOF
2417
#define HAVE_STRFTIME 1
2422
echo "$ac_t""no" 1>&6
2427
for ac_func in gethostname socket strdup strstr
2429
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2430
echo "configure:2431: checking for $ac_func" >&5
2431
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2432
echo $ac_n "(cached) $ac_c" 1>&6
2434
cat > conftest.$ac_ext <<EOF
2435
#line 2436 "configure"
2436
#include "confdefs.h"
2437
/* System header to define __stub macros and hopefully few prototypes,
2438
which can conflict with char $ac_func(); below. */
2440
/* Override any gcc2 internal prototype to avoid an error. */
2441
/* We use char because int might match the return type of a gcc2
2442
builtin and then its argument prototype would still apply. */
2447
/* The GNU C library defines this for functions which it implements
2448
to always fail with ENOSYS. Some functions are actually named
2449
something starting with __ and the normal name is an alias. */
2450
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2458
if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460
eval "ac_cv_func_$ac_func=yes"
2462
echo "configure: failed program was:" >&5
2463
cat conftest.$ac_ext >&5
2465
eval "ac_cv_func_$ac_func=no"
2470
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2471
echo "$ac_t""yes" 1>&6
2472
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2473
cat >> confdefs.h <<EOF
2474
#define $ac_tr_func 1
2478
echo "$ac_t""no" 1>&6
2482
echo $ac_n "checking for xdr_fhstatus in -lrpcsvc""... $ac_c" 1>&6
2483
echo "configure:2484: checking for xdr_fhstatus in -lrpcsvc" >&5
2484
ac_lib_var=`echo rpcsvc'_'xdr_fhstatus | sed 'y%./+-%__p_%'`
2485
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2486
echo $ac_n "(cached) $ac_c" 1>&6
2488
ac_save_LIBS="$LIBS"
2489
LIBS="-lrpcsvc $LIBS"
2490
cat > conftest.$ac_ext <<EOF
2491
#line 2492 "configure"
2492
#include "confdefs.h"
2493
/* Override any gcc2 internal prototype to avoid an error. */
2494
/* We use char because int might match the return type of a gcc2
2495
builtin and then its argument prototype would still apply. */
2496
char xdr_fhstatus();
2502
if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2504
eval "ac_cv_lib_$ac_lib_var=yes"
2506
echo "configure: failed program was:" >&5
2507
cat conftest.$ac_ext >&5
2509
eval "ac_cv_lib_$ac_lib_var=no"
2512
LIBS="$ac_save_LIBS"
2515
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2516
echo "$ac_t""yes" 1>&6
2517
ac_tr_lib=HAVE_LIB`echo rpcsvc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2518
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2519
cat >> confdefs.h <<EOF
2520
#define $ac_tr_lib 1
2523
LIBS="-lrpcsvc $LIBS"
2526
echo "$ac_t""no" 1>&6
2529
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2530
echo "configure:2531: checking for socket in -lsocket" >&5
2531
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2532
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2533
echo $ac_n "(cached) $ac_c" 1>&6
2535
ac_save_LIBS="$LIBS"
2536
LIBS="-lsocket $LIBS"
2537
cat > conftest.$ac_ext <<EOF
2538
#line 2539 "configure"
2539
#include "confdefs.h"
2540
/* Override any gcc2 internal prototype to avoid an error. */
2541
/* We use char because int might match the return type of a gcc2
2542
builtin and then its argument prototype would still apply. */
2549
if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551
eval "ac_cv_lib_$ac_lib_var=yes"
2553
echo "configure: failed program was:" >&5
2554
cat conftest.$ac_ext >&5
2556
eval "ac_cv_lib_$ac_lib_var=no"
2559
LIBS="$ac_save_LIBS"
2562
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2563
echo "$ac_t""yes" 1>&6
2564
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2565
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2566
cat >> confdefs.h <<EOF
2567
#define $ac_tr_lib 1
2570
LIBS="-lsocket $LIBS"
2573
echo "$ac_t""no" 1>&6
2576
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2577
echo "configure:2578: checking for gethostbyname in -lnsl" >&5
2578
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2579
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2580
echo $ac_n "(cached) $ac_c" 1>&6
2582
ac_save_LIBS="$LIBS"
2584
cat > conftest.$ac_ext <<EOF
2585
#line 2586 "configure"
2586
#include "confdefs.h"
2587
/* Override any gcc2 internal prototype to avoid an error. */
2588
/* We use char because int might match the return type of a gcc2
2589
builtin and then its argument prototype would still apply. */
2590
char gethostbyname();
2596
if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2598
eval "ac_cv_lib_$ac_lib_var=yes"
2600
echo "configure: failed program was:" >&5
2601
cat conftest.$ac_ext >&5
2603
eval "ac_cv_lib_$ac_lib_var=no"
2606
LIBS="$ac_save_LIBS"
2609
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2610
echo "$ac_t""yes" 1>&6
2611
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2612
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2613
cat >> confdefs.h <<EOF
2614
#define $ac_tr_lib 1
2620
echo "$ac_t""no" 1>&6
2623
echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
2624
echo "configure:2625: checking for dn_expand in -lresolv" >&5
2625
ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
2626
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2627
echo $ac_n "(cached) $ac_c" 1>&6
2629
ac_save_LIBS="$LIBS"
2630
LIBS="-lresolv $LIBS"
2631
cat > conftest.$ac_ext <<EOF
2632
#line 2633 "configure"
2633
#include "confdefs.h"
2634
/* Override any gcc2 internal prototype to avoid an error. */
2635
/* We use char because int might match the return type of a gcc2
2636
builtin and then its argument prototype would still apply. */
2643
if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2645
eval "ac_cv_lib_$ac_lib_var=yes"
2647
echo "configure: failed program was:" >&5
2648
cat conftest.$ac_ext >&5
2650
eval "ac_cv_lib_$ac_lib_var=no"
2653
LIBS="$ac_save_LIBS"
2656
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2657
echo "$ac_t""yes" 1>&6
2658
ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2659
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2660
cat >> confdefs.h <<EOF
2661
#define $ac_tr_lib 1
2664
LIBS="-lresolv $LIBS"
2667
echo "$ac_t""no" 1>&6
2670
for ac_func in dirname strlcpy strlcat strsep
2672
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2673
echo "configure:2674: checking for $ac_func" >&5
2674
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2675
echo $ac_n "(cached) $ac_c" 1>&6
2677
cat > conftest.$ac_ext <<EOF
2678
#line 2679 "configure"
2679
#include "confdefs.h"
2680
/* System header to define __stub macros and hopefully few prototypes,
2681
which can conflict with char $ac_func(); below. */
2683
/* Override any gcc2 internal prototype to avoid an error. */
2684
/* We use char because int might match the return type of a gcc2
2685
builtin and then its argument prototype would still apply. */
2690
/* The GNU C library defines this for functions which it implements
2691
to always fail with ENOSYS. Some functions are actually named
2692
something starting with __ and the normal name is an alias. */
2693
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2701
if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703
eval "ac_cv_func_$ac_func=yes"
2705
echo "configure: failed program was:" >&5
2706
cat conftest.$ac_ext >&5
2708
eval "ac_cv_func_$ac_func=no"
2713
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2714
echo "$ac_t""yes" 1>&6
2715
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2716
cat >> confdefs.h <<EOF
2717
#define $ac_tr_func 1
2721
echo "$ac_t""no" 1>&6
2722
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2728
for ac_func in MD5Update
2730
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2731
echo "configure:2732: checking for $ac_func" >&5
2732
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2733
echo $ac_n "(cached) $ac_c" 1>&6
2735
cat > conftest.$ac_ext <<EOF
2736
#line 2737 "configure"
2737
#include "confdefs.h"
2738
/* System header to define __stub macros and hopefully few prototypes,
2739
which can conflict with char $ac_func(); below. */
2741
/* Override any gcc2 internal prototype to avoid an error. */
2742
/* We use char because int might match the return type of a gcc2
2743
builtin and then its argument prototype would still apply. */
2748
/* The GNU C library defines this for functions which it implements
2749
to always fail with ENOSYS. Some functions are actually named
2750
something starting with __ and the normal name is an alias. */
2751
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2759
if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2761
eval "ac_cv_func_$ac_func=yes"
2763
echo "configure: failed program was:" >&5
2764
cat conftest.$ac_ext >&5
2766
eval "ac_cv_func_$ac_func=no"
2771
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2772
echo "$ac_t""yes" 1>&6
2773
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2774
cat >> confdefs.h <<EOF
2775
#define $ac_tr_func 1
2779
echo "$ac_t""no" 1>&6
2784
if test $needmd5 = yes; then
2785
LIBOBJS="$LIBOBJS md5.o"
2788
for ac_func in warnx
2790
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2791
echo "configure:2792: checking for $ac_func" >&5
2792
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2793
echo $ac_n "(cached) $ac_c" 1>&6
2795
cat > conftest.$ac_ext <<EOF
2796
#line 2797 "configure"
2797
#include "confdefs.h"
2798
/* System header to define __stub macros and hopefully few prototypes,
2799
which can conflict with char $ac_func(); below. */
2801
/* Override any gcc2 internal prototype to avoid an error. */
2802
/* We use char because int might match the return type of a gcc2
2803
builtin and then its argument prototype would still apply. */
2808
/* The GNU C library defines this for functions which it implements
2809
to always fail with ENOSYS. Some functions are actually named
2810
something starting with __ and the normal name is an alias. */
2811
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2819
if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2821
eval "ac_cv_func_$ac_func=yes"
2823
echo "configure: failed program was:" >&5
2824
cat conftest.$ac_ext >&5
2826
eval "ac_cv_func_$ac_func=no"
2831
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2832
echo "$ac_t""yes" 1>&6
2833
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2834
cat >> confdefs.h <<EOF
2835
#define $ac_tr_func 1
2839
echo "$ac_t""no" 1>&6
2844
if test $neederr = yes; then
2845
LIBOBJS="$LIBOBJS err.o"
2848
for ac_func in ether_ntoa
2850
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2851
echo "configure:2852: checking for $ac_func" >&5
2852
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2853
echo $ac_n "(cached) $ac_c" 1>&6
2855
cat > conftest.$ac_ext <<EOF
2856
#line 2857 "configure"
2857
#include "confdefs.h"
2858
/* System header to define __stub macros and hopefully few prototypes,
2859
which can conflict with char $ac_func(); below. */
2861
/* Override any gcc2 internal prototype to avoid an error. */
2862
/* We use char because int might match the return type of a gcc2
2863
builtin and then its argument prototype would still apply. */
2868
/* The GNU C library defines this for functions which it implements
2869
to always fail with ENOSYS. Some functions are actually named
2870
something starting with __ and the normal name is an alias. */
2871
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2879
if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2881
eval "ac_cv_func_$ac_func=yes"
2883
echo "configure: failed program was:" >&5
2884
cat conftest.$ac_ext >&5
2886
eval "ac_cv_func_$ac_func=no"
2891
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2892
echo "$ac_t""yes" 1>&6
2893
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2894
cat >> confdefs.h <<EOF
2895
#define $ac_tr_func 1
2899
echo "$ac_t""no" 1>&6
2904
if test $needethers = yes; then
2905
LIBOBJS="$LIBOBJS ethers.o"
2910
if test "x$no_x" = "x"; then
2914
echo $ac_n "checking for Berkeley DB with 1.85 compatibility""... $ac_c" 1>&6
2915
echo "configure:2916: checking for Berkeley DB with 1.85 compatibility" >&5
2916
# Check whether --with-db or --without-db was given.
2917
if test "${with_db+set}" = set; then
2921
echo "$ac_t""no" 1>&6
2924
echo "$ac_t""$withval" 1>&6
2925
if test -f $withval/build_unix/db_185.h -a \
2926
-f $withval/build_unix/libdb.a; then
2928
if cd $withval; then withval=`pwd`; cd $owd; fi
2929
cat >> confdefs.h <<\EOF
2930
#define HAVE_DB_185_H 1
2933
DBINC="-I$withval/build_unix"
2934
DBLIB="-L$withval/build_unix -ldb"
2935
elif test -f $withval/dist/db_185.h -a \
2936
-f $withval/dist/libdb.a; then
2938
if cd $withval; then withval=`pwd`; cd $owd; fi
2939
cat >> confdefs.h <<\EOF
2940
#define HAVE_DB_185_H 1
2943
DBINC="-I$withval/dist"
2944
DBLIB="-L$withval/dist -ldb"
2945
elif test -f $withval/include/db_185.h -a \
2946
-f $withval/lib/libdb.a; then
2948
if cd $withval; then withval=`pwd`; cd $owd; fi
2949
cat >> confdefs.h <<\EOF
2950
#define HAVE_DB_185_H 1
2953
DBINC="-I$withval/include"
2954
DBLIB="-L$withval/lib -ldb"
2956
{ echo "configure: error: db_185.h or libdb.a not found in $withval or not configured with --enable-compat185" 1>&2; exit 1; }
2961
for dir in ${prefix}/BerkeleyDB.3.1 ${prefix}/BerkeleyDB.3.0 \
2962
${prefix}/BerkeleyDB ${prefix}/db ${prefix}; do
2963
if test -f ${dir}/include/db_185.h; then
2964
cat >> confdefs.h <<\EOF
2965
#define HAVE_DB_185_H 1
2968
DBINC="-I${dir}/include"
2969
DBLIB="-L${dir}/lib -ldb"
2972
elif test -f ${dir}/include/db.h; then
2973
cat >> confdefs.h <<\EOF
2977
DBINC="-I${dir}/include"
2978
DBLIB="-L${dir}/lib -ldb"
2983
if test "x$have_db" = "x"; then
2984
if test -f /usr/include/db2/db_185.h; then
2985
cat >> confdefs.h <<\EOF
2986
#define HAVE_DB_185_H 1
2989
DBINC="-I/usr/include/db2"
2992
elif test -f /usr/include/db_185.h; then
2993
cat >> confdefs.h <<\EOF
2994
#define HAVE_DB_185_H 1
2999
elif test -f /usr/include/db.h; then
3000
cat >> confdefs.h <<\EOF
3007
if test "x$have_db" = "x"; then
3008
{ echo "configure: error: Berkeley DB with 1.85 compatibility not found" 1>&2; exit 1; }
3010
echo "$ac_t""yes" 1>&6
3017
echo $ac_n "checking for libpcap""... $ac_c" 1>&6
3018
echo "configure:3019: checking for libpcap" >&5
3019
# Check whether --with-libpcap or --without-libpcap was given.
3020
if test "${with_libpcap+set}" = set; then
3021
withval="$with_libpcap"
3024
echo "$ac_t""no" 1>&6
3027
echo "$ac_t""$withval" 1>&6
3028
if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
3030
if cd $withval; then withval=`pwd`; cd $owd; fi
3031
PCAPINC="-I$withval -I$withval/bpf"
3032
PCAPLIB="-L$withval -lpcap"
3033
elif test -f $withval/include/pcap.h -a \
3034
-f $withval/include/net/bpf.h -a \
3035
-f $withval/lib/libpcap.a; then
3037
if cd $withval; then withval=`pwd`; cd $owd; fi
3038
PCAPINC="-I$withval/include"
3039
PCAPLIB="-L$withval/lib -lpcap"
3041
{ echo "configure: error: pcap.h" 1>&2; exit 1; }
3046
if test -f ${prefix}/include/pcap.h; then
3047
PCAPINC="-I${prefix}/include"
3048
PCAPLIB="-L${prefix}/lib -lpcap"
3049
elif test -f /usr/include/pcap/pcap.h; then
3050
PCAPINC="-I/usr/include/pcap"
3052
elif test -f /usr/include/pcap.h; then
3055
echo "$ac_t""no" 1>&6
3056
{ echo "configure: error: libpcap not found" 1>&2; exit 1; }
3058
echo "$ac_t""yes" 1>&6
3065
echo $ac_n "checking for libnet""... $ac_c" 1>&6
3066
echo "configure:3067: checking for libnet" >&5
3067
# Check whether --with-libnet or --without-libnet was given.
3068
if test "${with_libnet+set}" = set; then
3069
withval="$with_libnet"
3072
echo "$ac_t""no" 1>&6
3075
echo "$ac_t""$withval" 1>&6
3076
if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then
3078
if cd $withval; then withval=`pwd`; cd $owd; fi
3079
if test -f $withval/bin/libnet-config; then
3080
CFLAGS="$CFLAGS `$withval/bin/libnet-config --defines`"
3081
elif test -f $withval/libnet-config; then
3082
CFLAGS="$CFLAGS `$withval/libnet-config --defines`"
3084
CFLAGS="$CFLAGS `libnet-config --defines`"
3086
LNETINC="-I$withval/include"
3087
LNETLIB="-L$withval/lib -lnet"
3089
{ echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; }
3094
if test -f ${prefix}/include/libnet.h; then
3095
CFLAGS="$CFLAGS `${prefix}/bin/libnet-config --defines`"
3096
LNETINC="-I${prefix}/include"
3097
LNETLIB="-L${prefix}/lib -lnet"
3098
elif test -f /usr/include/libnet.h; then
3099
CFLAGS="$CFLAGS `libnet-config --defines`"
3102
echo "$ac_t""no" 1>&6
3103
{ echo "configure: error: libnet not found" 1>&2; exit 1; }
3105
echo "$ac_t""yes" 1>&6
3112
echo $ac_n "checking for libnids""... $ac_c" 1>&6
3113
echo "configure:3114: checking for libnids" >&5
3114
# Check whether --with-libnids or --without-libnids was given.
3115
if test "${with_libnids+set}" = set; then
3116
withval="$with_libnids"
3119
echo "$ac_t""no" 1>&6
3122
echo "$ac_t""$withval" 1>&6
3123
if test -f $withval/src/nids.h -a -f $withval/src/libnids.a; then
3125
if cd $withval; then withval=`pwd`; cd $owd; fi
3126
NIDSINC="-I$withval/src"
3127
NIDSLIB="-L$withval/src -lnids"
3128
elif test -f $withval/include/nids.h -a -f $withval/lib/libnids.a; then
3130
if cd $withval; then withval=`pwd`; cd $owd; fi
3131
NIDSINC="-I$withval/include"
3132
NIDSLIB="-L$withval/lib -lnids"
3134
{ echo "configure: error: nids.h or libnids.a not found in $withval" 1>&2; exit 1; }
3139
if test -f ${prefix}/include/nids.h; then
3140
NIDSINC="-I${prefix}/include"
3141
NIDSLIB="-L${prefix}/lib -lnids"
3142
elif test -f /usr/include/nids.h; then
3145
echo "$ac_t""no" 1>&6
3146
{ echo "configure: error: libnids not found" 1>&2; exit 1; }
3148
echo "$ac_t""yes" 1>&6
3152
save_cppflags="$CPPFLAGS"
3154
echo $ac_n "checking whether libnids version is good""... $ac_c" 1>&6
3155
echo "configure:3156: checking whether libnids version is good" >&5
3156
cat > conftest.$ac_ext <<EOF
3157
#line 3158 "configure"
3158
#include "confdefs.h"
3161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162
egrep "pcap_filter" >/dev/null 2>&1; then
3164
echo "$ac_t""yes" 1>&6
3167
echo "$ac_t""no" 1>&6; { echo "configure: error: libnids version 1.13 or greater required" 1>&2; exit 1; }
3171
CPPFLAGS="$save_cppflags"
3175
echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6
3176
echo "configure:3177: checking for OpenSSL" >&5
3177
# Check whether --with-openssl or --without-openssl was given.
3178
if test "${with_openssl+set}" = set; then
3179
withval="$with_openssl"
3182
echo "$ac_t""no" 1>&6
3185
echo "$ac_t""$withval" 1>&6
3186
if test -f $withval/include/openssl/ssl.h -a -f $withval/libssl.a; then
3188
if cd $withval; then withval=`pwd`; cd $owd; fi
3189
SSLINC="-I$withval/include"
3190
SSLLIB="-L$withval -lssl -lcrypto"
3191
elif test -f $withval/include/openssl/ssl.h -a \
3192
-f $withval/lib/libssl.a; then
3194
if cd $withval; then withval=`pwd`; cd $owd; fi
3195
SSLINC="-I$withval/include"
3196
SSLLIB="-L$withval/lib -lssl -lcrypto"
3198
{ echo "configure: error: ssl.h or libssl.a not found in $withval" 1>&2; exit 1; }
3204
if test -f ${prefix}/include/openssl/ssl.h; then
3205
SSLINC="-I${prefix}/include"
3206
SSLLIB="-L${prefix}/lib -lssl -lcrypto"
3207
elif test -f ${prefix}/ssl/include/openssl/ssl.h; then
3208
SSLINC="-I${prefix}/ssl/include"
3209
SSLLIB="-L${prefix}/ssl/lib -lssl -lcrypto"
3210
elif test -f /usr/include/openssl/ssl.h; then
3211
SSLLIB="-lssl -lcrypto"
3213
echo "$ac_t""no" 1>&6
3214
{ echo "configure: error: OpenSSL not found" 1>&2; exit 1; }
3216
echo "$ac_t""yes" 1>&6
3225
cat > confcache <<\EOF
3226
# This file is a shell script that caches the results of configure
3227
# tests run on this system so they can be shared between configure
3228
# scripts and configure runs. It is not useful on other systems.
3229
# If it contains results you don't want to keep, you may remove or edit it.
3231
# By default, configure uses ./config.cache as the cache file,
3232
# creating it if it does not exist already. You can give configure
3233
# the --cache-file=FILE option to use a different cache file; that is
3234
# what configure does when it calls configure scripts in
3235
# subdirectories, so they share the cache.
3236
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3237
# config.status only pays attention to the cache file if you give it the
3238
# --recheck option to rerun configure.
3241
# The following way of writing the cache mishandles newlines in values,
3242
# but we know of no workaround that is simple, portable, and efficient.
3243
# So, don't put newlines in cache variables' values.
3244
# Ultrix sh set writes to stderr and can't be redirected directly,
3245
# and sets the high bit in the cache file unless we assign to the vars.
3247
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3249
# `set' does not quote correctly, so add quotes (double-quote substitution
3250
# turns \\\\ into \\, and sed turns \\ into \).
3252
-e "s/'/'\\\\''/g" \
3253
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3256
# `set' quotes correctly as required by POSIX, so do not add quotes.
3257
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3260
if cmp -s $cache_file confcache; then
3263
if test -w $cache_file; then
3264
echo "updating cache $cache_file"
3265
cat confcache > $cache_file
3267
echo "not updating unwritable cache $cache_file"
3272
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3274
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3275
# Let make expand exec_prefix.
3276
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3278
# Any assignment to VPATH causes Sun make to only execute
3279
# the first set of double-colon rules, so remove it if not needed.
3280
# If there is a colon in the path, we need to keep it.
3281
if test "x$srcdir" = x.; then
3282
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3285
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3287
DEFS=-DHAVE_CONFIG_H
3289
# Without the "./", some shells look in PATH for config.status.
3290
: ${CONFIG_STATUS=./config.status}
3292
echo creating $CONFIG_STATUS
3293
rm -f $CONFIG_STATUS
3294
cat > $CONFIG_STATUS <<EOF
3296
# Generated automatically by configure.
3297
# Run this file to recreate the current configuration.
3298
# This directory was configured as follows,
3299
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3301
# $0 $ac_configure_args
3303
# Compiler output produced by configure, useful for debugging
3304
# configure, is in ./config.log if it exists.
3306
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3309
case "\$ac_option" in
3310
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3311
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3312
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3313
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3314
echo "$CONFIG_STATUS generated by autoconf version 2.13"
3316
-help | --help | --hel | --he | --h)
3317
echo "\$ac_cs_usage"; exit 0 ;;
3318
*) echo "\$ac_cs_usage"; exit 1 ;;
3322
ac_given_srcdir=$srcdir
3323
ac_given_INSTALL="$INSTALL"
3325
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3327
cat >> $CONFIG_STATUS <<EOF
3329
# Protect against being on the right side of a sed subst in config.status.
3330
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3331
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3335
s%@CFLAGS@%$CFLAGS%g
3336
s%@CPPFLAGS@%$CPPFLAGS%g
3337
s%@CXXFLAGS@%$CXXFLAGS%g
3338
s%@FFLAGS@%$FFLAGS%g
3340
s%@LDFLAGS@%$LDFLAGS%g
3342
s%@exec_prefix@%$exec_prefix%g
3343
s%@prefix@%$prefix%g
3344
s%@program_transform_name@%$program_transform_name%g
3345
s%@bindir@%$bindir%g
3346
s%@sbindir@%$sbindir%g
3347
s%@libexecdir@%$libexecdir%g
3348
s%@datadir@%$datadir%g
3349
s%@sysconfdir@%$sysconfdir%g
3350
s%@sharedstatedir@%$sharedstatedir%g
3351
s%@localstatedir@%$localstatedir%g
3352
s%@libdir@%$libdir%g
3353
s%@includedir@%$includedir%g
3354
s%@oldincludedir@%$oldincludedir%g
3355
s%@infodir@%$infodir%g
3356
s%@mandir@%$mandir%g
3358
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3359
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3360
s%@INSTALL_DATA@%$INSTALL_DATA%g
3361
s%@RANLIB@%$RANLIB%g
3363
s%@X_CFLAGS@%$X_CFLAGS%g
3364
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3365
s%@X_LIBS@%$X_LIBS%g
3366
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3367
s%@LIBOBJS@%$LIBOBJS%g
3368
s%@TCPHIJACK@%$TCPHIJACK%g
3369
s%@WEBSPY@%$WEBSPY%g
3372
s%@PCAPINC@%$PCAPINC%g
3373
s%@PCAPLIB@%$PCAPLIB%g
3374
s%@LNETINC@%$LNETINC%g
3375
s%@LNETLIB@%$LNETLIB%g
3376
s%@NIDSINC@%$NIDSINC%g
3377
s%@NIDSLIB@%$NIDSLIB%g
3378
s%@SSLINC@%$SSLINC%g
3379
s%@SSLLIB@%$SSLLIB%g
3384
cat >> $CONFIG_STATUS <<\EOF
3386
# Split the substitutions into bite-sized pieces for seds with
3387
# small command number limits, like on Digital OSF/1 and HP-UX.
3388
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3389
ac_file=1 # Number of current file.
3390
ac_beg=1 # First line for current file.
3391
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3394
while $ac_more_lines; do
3395
if test $ac_beg -gt 1; then
3396
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3398
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3400
if test ! -s conftest.s$ac_file; then
3402
rm -f conftest.s$ac_file
3404
if test -z "$ac_sed_cmds"; then
3405
ac_sed_cmds="sed -f conftest.s$ac_file"
3407
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3409
ac_file=`expr $ac_file + 1`
3411
ac_end=`expr $ac_end + $ac_max_sed_cmds`
3414
if test -z "$ac_sed_cmds"; then
3419
cat >> $CONFIG_STATUS <<EOF
3421
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3423
cat >> $CONFIG_STATUS <<\EOF
3424
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3425
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3427
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3428
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3429
*) ac_file_in="${ac_file}.in" ;;
3432
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3434
# Remove last slash and all that follows it. Not all systems have dirname.
3435
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3436
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3437
# The file is in a subdirectory.
3438
test ! -d "$ac_dir" && mkdir "$ac_dir"
3439
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3440
# A "../" for each directory in $ac_dir_suffix.
3441
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3443
ac_dir_suffix= ac_dots=
3446
case "$ac_given_srcdir" in
3448
if test -z "$ac_dots"; then top_srcdir=.
3449
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3450
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3452
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3453
top_srcdir="$ac_dots$ac_given_srcdir" ;;
3456
case "$ac_given_INSTALL" in
3457
[/$]*) INSTALL="$ac_given_INSTALL" ;;
3458
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3461
echo creating "$ac_file"
3463
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3465
*Makefile*) ac_comsub="1i\\
3466
# $configure_input" ;;
3470
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3472
s%@configure_input@%$configure_input%g
3473
s%@srcdir@%$srcdir%g
3474
s%@top_srcdir@%$top_srcdir%g
3475
s%@INSTALL@%$INSTALL%g
3476
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3480
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3481
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3483
# ac_d sets the value in "#define NAME VALUE" lines.
3484
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3485
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3488
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3489
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3490
ac_uB='\([ ]\)%\1#\2define\3'
3493
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3494
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3495
ac_eB='$%\1#\2define\3'
3499
if test "${CONFIG_HEADERS+set}" != set; then
3501
cat >> $CONFIG_STATUS <<EOF
3502
CONFIG_HEADERS="config.h"
3504
cat >> $CONFIG_STATUS <<\EOF
3506
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3507
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3509
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3510
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3511
*) ac_file_in="${ac_file}.in" ;;
3514
echo creating $ac_file
3516
rm -f conftest.frag conftest.in conftest.out
3517
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3518
cat $ac_file_inputs > conftest.in
3522
# Transform confdefs.h into a sed script conftest.vals that substitutes
3523
# the proper values into config.h.in to produce config.h. And first:
3524
# Protect against being on the right side of a sed subst in config.status.
3525
# Protect against being in an unquoted here document in config.status.
3527
cat > conftest.hdr <<\EOF
3530
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3534
sed -n -f conftest.hdr confdefs.h > conftest.vals
3537
# This sed command replaces #undef with comments. This is necessary, for
3538
# example, in the case of _POSIX_SOURCE, which is predefined and required
3539
# on some systems where configure will not decide to define it.
3540
cat >> conftest.vals <<\EOF
3541
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3544
# Break up conftest.vals because some shells have a limit on
3545
# the size of here documents, and old seds have small limits too.
3550
ac_lines=`grep -c . conftest.vals`
3551
# grep -c gives empty output for an empty file on some AIX systems.
3552
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3553
# Write a limited-size here document to conftest.frag.
3554
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3555
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3557
sed -f conftest.frag conftest.in > conftest.out
3559
mv conftest.out conftest.in
3561
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3563
mv conftest.tail conftest.vals
3567
cat >> $CONFIG_STATUS <<\EOF
3568
rm -f conftest.frag conftest.h
3569
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3570
cat conftest.in >> conftest.h
3572
if cmp -s $ac_file conftest.h 2>/dev/null; then
3573
echo "$ac_file is unchanged"
3576
# Remove last slash and all that follows it. Not all systems have dirname.
3577
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3578
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3579
# The file is in a subdirectory.
3580
test ! -d "$ac_dir" && mkdir "$ac_dir"
3583
mv conftest.h $ac_file
3588
cat >> $CONFIG_STATUS <<EOF
3591
cat >> $CONFIG_STATUS <<\EOF
3595
chmod +x $CONFIG_STATUS
3596
rm -fr confdefs* $ac_clean_files
3597
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1