~ubuntu-branches/ubuntu/saucy/dsniff/saucy

« back to all changes in this revision

Viewing changes to .pc/05_amd64_fix.patch/configure

  • Committer: Bazaar Package Importer
  • Author(s): William Vera
  • Date: 2011-06-15 00:43:02 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110615004302-k4ppsvvodyw2yurx
Tags: 2.4b1+debian-21
* Changed patch system to quilt from dpatch. 
* Updated debian/README.source for quilt. 
* Removed lintian override. 
* Cleanup the debian/rules. 
* Build-Depend changed to libdb-dev (>= 4.7) (Closes: #548478). 
* Added urlsnarf patch (Closes: #573365).
   + Thanks Hilko Bengen. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
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.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --with-x                use the X Window System"
 
16
ac_help="$ac_help
 
17
  --with-db=DIR           use Berkeley DB (with --enable-compat185) in DIR"
 
18
ac_help="$ac_help
 
19
  --with-libpcap=DIR      use libpcap in DIR"
 
20
ac_help="$ac_help
 
21
  --with-libnet=DIR       use libnet in DIR"
 
22
ac_help="$ac_help
 
23
  --with-libnids=DIR      use libnids in DIR"
 
24
ac_help="$ac_help
 
25
  --with-openssl=DIR      use OpenSSL in DIR"
 
26
 
 
27
# Initialize some variables set by options.
 
28
# The variables have the same names as the options, with
 
29
# dashes changed to underlines.
 
30
build=NONE
 
31
cache_file=./config.cache
 
32
exec_prefix=NONE
 
33
host=NONE
 
34
no_create=
 
35
nonopt=NONE
 
36
no_recursion=
 
37
prefix=NONE
 
38
program_prefix=NONE
 
39
program_suffix=NONE
 
40
program_transform_name=s,x,x,
 
41
silent=
 
42
site=
 
43
srcdir=
 
44
target=NONE
 
45
verbose=
 
46
x_includes=NONE
 
47
x_libraries=NONE
 
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'
 
60
 
 
61
# Initialize some other variables.
 
62
subdirs=
 
63
MFLAGS= MAKEFLAGS=
 
64
SHELL=${CONFIG_SHELL-/bin/sh}
 
65
# Maximum number of lines to put in a shell here document.
 
66
ac_max_here_lines=12
 
67
 
 
68
ac_prev=
 
69
for ac_option
 
70
do
 
71
 
 
72
  # If the previous option needs an argument, assign it.
 
73
  if test -n "$ac_prev"; then
 
74
    eval "$ac_prev=\$ac_option"
 
75
    ac_prev=
 
76
    continue
 
77
  fi
 
78
 
 
79
  case "$ac_option" in
 
80
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
81
  *) ac_optarg= ;;
 
82
  esac
 
83
 
 
84
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
85
 
 
86
  case "$ac_option" in
 
87
 
 
88
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
89
    ac_prev=bindir ;;
 
90
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
91
    bindir="$ac_optarg" ;;
 
92
 
 
93
  -build | --build | --buil | --bui | --bu)
 
94
    ac_prev=build ;;
 
95
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
96
    build="$ac_optarg" ;;
 
97
 
 
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" ;;
 
104
 
 
105
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
106
    ac_prev=datadir ;;
 
107
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
108
  | --da=*)
 
109
    datadir="$ac_optarg" ;;
 
110
 
 
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; }
 
116
    fi
 
117
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
118
    eval "enable_${ac_feature}=no" ;;
 
119
 
 
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; }
 
125
    fi
 
126
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
127
    case "$ac_option" in
 
128
      *=*) ;;
 
129
      *) ac_optarg=yes ;;
 
130
    esac
 
131
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
132
 
 
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" ;;
 
141
 
 
142
  -gas | --gas | --ga | --g)
 
143
    # Obsolete; use --with-gas.
 
144
    with_gas=yes ;;
 
145
 
 
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.
 
149
    cat << EOF
 
150
Usage: configure [options] [host]
 
151
Options: [defaults in brackets after descriptions]
 
152
Configuration:
 
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
 
160
                          [$ac_default_prefix]
 
161
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
162
                          [same as prefix]
 
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
 
167
                          [PREFIX/share]
 
168
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
169
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
170
                          [PREFIX/com]
 
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
 
182
EOF
 
183
    cat << EOF
 
184
Host type:
 
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
 
195
EOF
 
196
    if test -n "$ac_help"; then
 
197
      echo "--enable and --with options recognized:$ac_help"
 
198
    fi
 
199
    exit 0 ;;
 
200
 
 
201
  -host | --host | --hos | --ho)
 
202
    ac_prev=host ;;
 
203
  -host=* | --host=* | --hos=* | --ho=*)
 
204
    host="$ac_optarg" ;;
 
205
 
 
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" ;;
 
212
 
 
213
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
214
    ac_prev=infodir ;;
 
215
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
216
    infodir="$ac_optarg" ;;
 
217
 
 
218
  -libdir | --libdir | --libdi | --libd)
 
219
    ac_prev=libdir ;;
 
220
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
221
    libdir="$ac_optarg" ;;
 
222
 
 
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" ;;
 
229
 
 
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" ;;
 
238
 
 
239
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
240
    ac_prev=mandir ;;
 
241
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
242
    mandir="$ac_optarg" ;;
 
243
 
 
244
  -nfp | --nfp | --nf)
 
245
    # Obsolete; use --without-fp.
 
246
    with_fp=no ;;
 
247
 
 
248
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
249
  | --no-cr | --no-c)
 
250
    no_create=yes ;;
 
251
 
 
252
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
253
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
254
    no_recursion=yes ;;
 
255
 
 
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" ;;
 
264
 
 
265
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
266
    ac_prev=prefix ;;
 
267
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
268
    prefix="$ac_optarg" ;;
 
269
 
 
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" ;;
 
276
 
 
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" ;;
 
283
 
 
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" ;;
 
300
 
 
301
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
302
  | -silent | --silent | --silen | --sile | --sil)
 
303
    silent=yes ;;
 
304
 
 
305
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
306
    ac_prev=sbindir ;;
 
307
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
308
  | --sbi=* | --sb=*)
 
309
    sbindir="$ac_optarg" ;;
 
310
 
 
311
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
312
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
313
  | --sharedst | --shareds | --shared | --share | --shar \
 
314
  | --sha | --sh)
 
315
    ac_prev=sharedstatedir ;;
 
316
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
317
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
318
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
319
  | --sha=* | --sh=*)
 
320
    sharedstatedir="$ac_optarg" ;;
 
321
 
 
322
  -site | --site | --sit)
 
323
    ac_prev=site ;;
 
324
  -site=* | --site=* | --sit=*)
 
325
    site="$ac_optarg" ;;
 
326
 
 
327
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
328
    ac_prev=srcdir ;;
 
329
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
330
    srcdir="$ac_optarg" ;;
 
331
 
 
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" ;;
 
338
 
 
339
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
340
    ac_prev=target ;;
 
341
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
342
    target="$ac_optarg" ;;
 
343
 
 
344
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
345
    verbose=yes ;;
 
346
 
 
347
  -version | --version | --versio | --versi | --vers)
 
348
    echo "configure generated by autoconf version 2.13"
 
349
    exit 0 ;;
 
350
 
 
351
  -with-* | --with-*)
 
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; }
 
356
    fi
 
357
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
358
    case "$ac_option" in
 
359
      *=*) ;;
 
360
      *) ac_optarg=yes ;;
 
361
    esac
 
362
    eval "with_${ac_package}='$ac_optarg'" ;;
 
363
 
 
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; }
 
369
    fi
 
370
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
371
    eval "with_${ac_package}=no" ;;
 
372
 
 
373
  --x)
 
374
    # Obsolete; use --with-x.
 
375
    with_x=yes ;;
 
376
 
 
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" ;;
 
383
 
 
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" ;;
 
390
 
 
391
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
392
    ;;
 
393
 
 
394
  *)
 
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
 
397
    fi
 
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; }
 
400
    fi
 
401
    nonopt="$ac_option"
 
402
    ;;
 
403
 
 
404
  esac
 
405
done
 
406
 
 
407
if test -n "$ac_prev"; then
 
408
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
409
fi
 
410
 
 
411
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
412
 
 
413
# File descriptor usage:
 
414
# 0 standard input
 
415
# 1 file creation
 
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
 
422
  exec 6>/dev/null
 
423
else
 
424
  exec 6>&1
 
425
fi
 
426
exec 5>./config.log
 
427
 
 
428
echo "\
 
429
This file contains any messages produced by compilers while
 
430
running configure, to aid debugging if configure makes a mistake.
 
431
" 1>&5
 
432
 
 
433
# Strip out --no-create and --no-recursion so they do not pile up.
 
434
# Also quote any args containing shell metacharacters.
 
435
ac_configure_args=
 
436
for ac_arg
 
437
do
 
438
  case "$ac_arg" in
 
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" ;;
 
446
  esac
 
447
done
 
448
 
 
449
# NLS nuisances.
 
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
 
458
 
 
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.
 
462
echo > confdefs.h
 
463
 
 
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
 
467
 
 
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.
 
472
  ac_prog=$0
 
473
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
474
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
475
  srcdir=$ac_confdir
 
476
  if test ! -r $srcdir/$ac_unique_file; then
 
477
    srcdir=..
 
478
  fi
 
479
else
 
480
  ac_srcdir_defaulted=no
 
481
fi
 
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; }
 
485
  else
 
486
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
487
  fi
 
488
fi
 
489
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
490
 
 
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"
 
495
  else
 
496
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
497
  fi
 
498
fi
 
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"
 
502
    . "$ac_site_file"
 
503
  fi
 
504
done
 
505
 
 
506
if test -r "$cache_file"; then
 
507
  echo "loading cache $cache_file"
 
508
  . $cache_file
 
509
else
 
510
  echo "creating cache $cache_file"
 
511
  > $cache_file
 
512
fi
 
513
 
 
514
ac_ext=c
 
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
 
520
 
 
521
ac_exeext=
 
522
ac_objext=o
 
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
 
526
    ac_n= ac_c='
 
527
' ac_t='        '
 
528
  else
 
529
    ac_n=-n ac_c= ac_t=
 
530
  fi
 
531
else
 
532
  ac_n= ac_c='\c' ac_t=
 
533
fi
 
534
 
 
535
 
 
536
 
 
537
 
 
538
 
 
539
if test "$prefix" = "NONE"; then
 
540
   prefix="/usr/local"
 
541
fi
 
542
 
 
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
 
549
else
 
550
  if test -n "$CC"; then
 
551
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
552
else
 
553
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
554
  ac_dummy="$PATH"
 
555
  for ac_dir in $ac_dummy; do
 
556
    test -z "$ac_dir" && ac_dir=.
 
557
    if test -f $ac_dir/$ac_word; then
 
558
      ac_cv_prog_CC="gcc"
 
559
      break
 
560
    fi
 
561
  done
 
562
  IFS="$ac_save_ifs"
 
563
fi
 
564
fi
 
565
CC="$ac_cv_prog_CC"
 
566
if test -n "$CC"; then
 
567
  echo "$ac_t""$CC" 1>&6
 
568
else
 
569
  echo "$ac_t""no" 1>&6
 
570
fi
 
571
 
 
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
 
579
else
 
580
  if test -n "$CC"; then
 
581
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
582
else
 
583
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
584
  ac_prog_rejected=no
 
585
  ac_dummy="$PATH"
 
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
 
590
        ac_prog_rejected=yes
 
591
        continue
 
592
      fi
 
593
      ac_cv_prog_CC="cc"
 
594
      break
 
595
    fi
 
596
  done
 
597
  IFS="$ac_save_ifs"
 
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
 
601
  shift
 
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.
 
606
    shift
 
607
    set dummy "$ac_dir/$ac_word" "$@"
 
608
    shift
 
609
    ac_cv_prog_CC="$@"
 
610
  fi
 
611
fi
 
612
fi
 
613
fi
 
614
CC="$ac_cv_prog_CC"
 
615
if test -n "$CC"; then
 
616
  echo "$ac_t""$CC" 1>&6
 
617
else
 
618
  echo "$ac_t""no" 1>&6
 
619
fi
 
620
 
 
621
  if test -z "$CC"; then
 
622
    case "`uname -s`" in
 
623
    *win32* | *WIN32*)
 
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
 
630
else
 
631
  if test -n "$CC"; then
 
632
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
633
else
 
634
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
635
  ac_dummy="$PATH"
 
636
  for ac_dir in $ac_dummy; do
 
637
    test -z "$ac_dir" && ac_dir=.
 
638
    if test -f $ac_dir/$ac_word; then
 
639
      ac_cv_prog_CC="cl"
 
640
      break
 
641
    fi
 
642
  done
 
643
  IFS="$ac_save_ifs"
 
644
fi
 
645
fi
 
646
CC="$ac_cv_prog_CC"
 
647
if test -n "$CC"; then
 
648
  echo "$ac_t""$CC" 1>&6
 
649
else
 
650
  echo "$ac_t""no" 1>&6
 
651
fi
 
652
 ;;
 
653
    esac
 
654
  fi
 
655
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
656
fi
 
657
 
 
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
 
660
 
 
661
ac_ext=c
 
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
 
667
 
 
668
cat > conftest.$ac_ext << EOF
 
669
 
 
670
#line 671 "configure"
 
671
#include "confdefs.h"
 
672
 
 
673
main(){return(0);}
 
674
EOF
 
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
 
680
  else
 
681
    ac_cv_prog_cc_cross=yes
 
682
  fi
 
683
else
 
684
  echo "configure: failed program was:" >&5
 
685
  cat conftest.$ac_ext >&5
 
686
  ac_cv_prog_cc_works=no
 
687
fi
 
688
rm -fr conftest*
 
689
ac_ext=c
 
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
 
695
 
 
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; }
 
699
fi
 
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
 
704
 
 
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
 
709
else
 
710
  cat > conftest.c <<EOF
 
711
#ifdef __GNUC__
 
712
  yes;
 
713
#endif
 
714
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
 
716
  ac_cv_prog_gcc=yes
 
717
else
 
718
  ac_cv_prog_gcc=no
 
719
fi
 
720
fi
 
721
 
 
722
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
723
 
 
724
if test $ac_cv_prog_gcc = yes; then
 
725
  GCC=yes
 
726
else
 
727
  GCC=
 
728
fi
 
729
 
 
730
ac_test_CFLAGS="${CFLAGS+set}"
 
731
ac_save_CFLAGS="$CFLAGS"
 
732
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
 
737
else
 
738
  echo 'void f(){}' > conftest.c
 
739
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
740
  ac_cv_prog_cc_g=yes
 
741
else
 
742
  ac_cv_prog_cc_g=no
 
743
fi
 
744
rm -f conftest*
 
745
 
 
746
fi
 
747
 
 
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
 
753
    CFLAGS="-g -O2"
 
754
  else
 
755
    CFLAGS="-g"
 
756
  fi
 
757
else
 
758
  if test "$GCC" = yes; then
 
759
    CFLAGS="-O2"
 
760
  else
 
761
    CFLAGS=
 
762
  fi
 
763
fi
 
764
 
 
765
ac_aux_dir=
 
766
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
767
  if test -f $ac_dir/install-sh; then
 
768
    ac_aux_dir=$ac_dir
 
769
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
770
    break
 
771
  elif test -f $ac_dir/install.sh; then
 
772
    ac_aux_dir=$ac_dir
 
773
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
774
    break
 
775
  fi
 
776
done
 
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; }
 
779
fi
 
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.
 
783
 
 
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
 
789
# IRIX /sbin/install
 
790
# AIX /bin/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
 
800
else
 
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.
 
804
    case "$ac_dir/" in
 
805
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
806
    *)
 
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
 
809
      # by default.
 
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.
 
815
            :
 
816
          else
 
817
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
818
            break 2
 
819
          fi
 
820
        fi
 
821
      done
 
822
      ;;
 
823
    esac
 
824
  done
 
825
  IFS="$ac_save_IFS"
 
826
 
 
827
fi
 
828
  if test "${ac_cv_path_install+set}" = set; then
 
829
    INSTALL="$ac_cv_path_install"
 
830
  else
 
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"
 
836
  fi
 
837
fi
 
838
echo "$ac_t""$INSTALL" 1>&6
 
839
 
 
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}'
 
843
 
 
844
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
845
 
 
846
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
847
 
 
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
 
854
else
 
855
  if test -n "$RANLIB"; then
 
856
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
857
else
 
858
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
859
  ac_dummy="$PATH"
 
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"
 
864
      break
 
865
    fi
 
866
  done
 
867
  IFS="$ac_save_ifs"
 
868
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
869
fi
 
870
fi
 
871
RANLIB="$ac_cv_prog_RANLIB"
 
872
if test -n "$RANLIB"; then
 
873
  echo "$ac_t""$RANLIB" 1>&6
 
874
else
 
875
  echo "$ac_t""no" 1>&6
 
876
fi
 
877
 
 
878
 
 
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
 
883
  CPP=
 
884
fi
 
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
 
888
else
 
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.
 
891
  CPP="${CC-cc} -E"
 
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"
 
897
#include <assert.h>
 
898
Syntax Error
 
899
EOF
 
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
 
904
  :
 
905
else
 
906
  echo "$ac_err" >&5
 
907
  echo "configure: failed program was:" >&5
 
908
  cat conftest.$ac_ext >&5
 
909
  rm -rf conftest*
 
910
  CPP="${CC-cc} -E -traditional-cpp"
 
911
  cat > conftest.$ac_ext <<EOF
 
912
#line 913 "configure"
 
913
#include "confdefs.h"
 
914
#include <assert.h>
 
915
Syntax Error
 
916
EOF
 
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
 
921
  :
 
922
else
 
923
  echo "$ac_err" >&5
 
924
  echo "configure: failed program was:" >&5
 
925
  cat conftest.$ac_ext >&5
 
926
  rm -rf conftest*
 
927
  CPP="${CC-cc} -nologo -E"
 
928
  cat > conftest.$ac_ext <<EOF
 
929
#line 930 "configure"
 
930
#include "confdefs.h"
 
931
#include <assert.h>
 
932
Syntax Error
 
933
EOF
 
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
 
938
  :
 
939
else
 
940
  echo "$ac_err" >&5
 
941
  echo "configure: failed program was:" >&5
 
942
  cat conftest.$ac_ext >&5
 
943
  rm -rf conftest*
 
944
  CPP=/lib/cpp
 
945
fi
 
946
rm -f conftest*
 
947
fi
 
948
rm -f conftest*
 
949
fi
 
950
rm -f conftest*
 
951
  ac_cv_prog_CPP="$CPP"
 
952
fi
 
953
  CPP="$ac_cv_prog_CPP"
 
954
else
 
955
  ac_cv_prog_CPP="$CPP"
 
956
fi
 
957
echo "$ac_t""$CPP" 1>&6
 
958
 
 
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
 
965
 
 
966
# Check whether --with-x or --without-x was given.
 
967
if test "${with_x+set}" = set; then
 
968
  withval="$with_x"
 
969
  :
 
970
fi
 
971
 
 
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.
 
975
  have_x=disabled
 
976
else
 
977
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
978
    # Both variables are already set.
 
979
    have_x=yes
 
980
  else
 
981
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
 
982
  echo $ac_n "(cached) $ac_c" 1>&6
 
983
else
 
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
 
986
rm -fr conftestdir
 
987
if mkdir conftestdir; then
 
988
  cd conftestdir
 
989
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
990
  cat > Imakefile <<'EOF'
 
991
acfindx:
 
992
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
993
EOF
 
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
 
1002
      fi
 
1003
    done
 
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
 
1008
        /usr/include) ;;
 
1009
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
 
1010
    esac
 
1011
    case "$ac_im_usrlibdir" in
 
1012
        /usr/lib | /lib) ;;
 
1013
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
 
1014
    esac
 
1015
  fi
 
1016
  cd ..
 
1017
  rm -fr conftestdir
 
1018
fi
 
1019
 
 
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
 
1023
 
 
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>
 
1029
EOF
 
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
 
1034
  rm -rf conftest*
 
1035
  # We can compile using X headers with no special include directory.
 
1036
ac_x_includes=
 
1037
else
 
1038
  echo "$ac_err" >&5
 
1039
  echo "configure: failed program was:" >&5
 
1040
  cat conftest.$ac_ext >&5
 
1041
  rm -rf conftest*
 
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.
 
1044
  for ac_dir in               \
 
1045
    /usr/X11/include          \
 
1046
    /usr/X11R6/include        \
 
1047
    /usr/X11R5/include        \
 
1048
    /usr/X11R4/include        \
 
1049
                              \
 
1050
    /usr/include/X11          \
 
1051
    /usr/include/X11R6        \
 
1052
    /usr/include/X11R5        \
 
1053
    /usr/include/X11R4        \
 
1054
                              \
 
1055
    /usr/local/X11/include    \
 
1056
    /usr/local/X11R6/include  \
 
1057
    /usr/local/X11R5/include  \
 
1058
    /usr/local/X11R4/include  \
 
1059
                              \
 
1060
    /usr/local/include/X11    \
 
1061
    /usr/local/include/X11R6  \
 
1062
    /usr/local/include/X11R5  \
 
1063
    /usr/local/include/X11R4  \
 
1064
                              \
 
1065
    /usr/X386/include         \
 
1066
    /usr/x386/include         \
 
1067
    /usr/XFree86/include/X11  \
 
1068
                              \
 
1069
    /usr/include              \
 
1070
    /usr/local/include        \
 
1071
    /usr/unsupported/include  \
 
1072
    /usr/athena/include       \
 
1073
    /usr/local/x11r5/include  \
 
1074
    /usr/lpp/Xamples/include  \
 
1075
                              \
 
1076
    /usr/openwin/include      \
 
1077
    /usr/openwin/share/include \
 
1078
    ; \
 
1079
  do
 
1080
    if test -r "$ac_dir/$x_direct_test_include"; then
 
1081
      ac_x_includes=$ac_dir
 
1082
      break
 
1083
    fi
 
1084
  done
 
1085
fi
 
1086
rm -f conftest*
 
1087
fi # $ac_x_includes = NO
 
1088
 
 
1089
if test "$ac_x_libraries" = NO; then
 
1090
  # Check for the libraries.
 
1091
 
 
1092
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
1093
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
1094
 
 
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"
 
1102
 
 
1103
int main() {
 
1104
${x_direct_test_function}()
 
1105
; return 0; }
 
1106
EOF
 
1107
if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1108
  rm -rf conftest*
 
1109
  LIBS="$ac_save_LIBS"
 
1110
# We can link X programs with no special library path.
 
1111
ac_x_libraries=
 
1112
else
 
1113
  echo "configure: failed program was:" >&5
 
1114
  cat conftest.$ac_ext >&5
 
1115
  rm -rf conftest*
 
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/` \
 
1120
    /usr/X11/lib          \
 
1121
    /usr/X11R6/lib        \
 
1122
    /usr/X11R5/lib        \
 
1123
    /usr/X11R4/lib        \
 
1124
                          \
 
1125
    /usr/lib/X11          \
 
1126
    /usr/lib/X11R6        \
 
1127
    /usr/lib/X11R5        \
 
1128
    /usr/lib/X11R4        \
 
1129
                          \
 
1130
    /usr/local/X11/lib    \
 
1131
    /usr/local/X11R6/lib  \
 
1132
    /usr/local/X11R5/lib  \
 
1133
    /usr/local/X11R4/lib  \
 
1134
                          \
 
1135
    /usr/local/lib/X11    \
 
1136
    /usr/local/lib/X11R6  \
 
1137
    /usr/local/lib/X11R5  \
 
1138
    /usr/local/lib/X11R4  \
 
1139
                          \
 
1140
    /usr/X386/lib         \
 
1141
    /usr/x386/lib         \
 
1142
    /usr/XFree86/lib/X11  \
 
1143
                          \
 
1144
    /usr/lib              \
 
1145
    /usr/local/lib        \
 
1146
    /usr/unsupported/lib  \
 
1147
    /usr/athena/lib       \
 
1148
    /usr/local/x11r5/lib  \
 
1149
    /usr/lpp/Xamples/lib  \
 
1150
    /lib/usr/lib/X11      \
 
1151
                          \
 
1152
    /usr/openwin/lib      \
 
1153
    /usr/openwin/share/lib \
 
1154
    ; \
 
1155
do
 
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
 
1159
      break 2
 
1160
    fi
 
1161
  done
 
1162
done
 
1163
fi
 
1164
rm -f conftest*
 
1165
fi # $ac_x_libraries = NO
 
1166
 
 
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"
 
1170
else
 
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"
 
1174
fi
 
1175
fi
 
1176
  fi
 
1177
  eval "$ac_cv_have_x"
 
1178
fi # $with_x != no
 
1179
 
 
1180
if test "$have_x" != yes; then
 
1181
  echo "$ac_t""$have_x" 1>&6
 
1182
  no_x=yes
 
1183
else
 
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
 
1191
fi
 
1192
 
 
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
 
1197
EOF
 
1198
 
 
1199
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
1200
else
 
1201
  if test -n "$x_includes"; then
 
1202
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
1203
  fi
 
1204
 
 
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
 
1211
    "SunOS 5"*)
 
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"
 
1218
 
 
1219
int main() {
 
1220
 
 
1221
; return 0; }
 
1222
EOF
 
1223
if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1224
  rm -rf conftest*
 
1225
  ac_R_nospace=yes
 
1226
else
 
1227
  echo "configure: failed program was:" >&5
 
1228
  cat conftest.$ac_ext >&5
 
1229
  rm -rf conftest*
 
1230
  ac_R_nospace=no
 
1231
fi
 
1232
rm -f conftest*
 
1233
      if test $ac_R_nospace = yes; then
 
1234
        echo "$ac_t""no" 1>&6
 
1235
        X_LIBS="$X_LIBS -R$x_libraries"
 
1236
      else
 
1237
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
1238
        cat > conftest.$ac_ext <<EOF
 
1239
#line 1240 "configure"
 
1240
#include "confdefs.h"
 
1241
 
 
1242
int main() {
 
1243
 
 
1244
; return 0; }
 
1245
EOF
 
1246
if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1247
  rm -rf conftest*
 
1248
  ac_R_space=yes
 
1249
else
 
1250
  echo "configure: failed program was:" >&5
 
1251
  cat conftest.$ac_ext >&5
 
1252
  rm -rf conftest*
 
1253
  ac_R_space=no
 
1254
fi
 
1255
rm -f conftest*
 
1256
        if test $ac_R_space = yes; then
 
1257
          echo "$ac_t""yes" 1>&6
 
1258
          X_LIBS="$X_LIBS -R $x_libraries"
 
1259
        else
 
1260
          echo "$ac_t""neither works" 1>&6
 
1261
        fi
 
1262
      fi
 
1263
      LIBS="$ac_xsave_LIBS"
 
1264
    esac
 
1265
  fi
 
1266
 
 
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.
 
1270
 
 
1271
  if test "$ISC" = yes; then
 
1272
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
1273
  else
 
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
 
1282
else
 
1283
  ac_save_LIBS="$LIBS"
 
1284
LIBS="-ldnet  $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.  */
 
1291
char dnet_ntoa();
 
1292
 
 
1293
int main() {
 
1294
dnet_ntoa()
 
1295
; return 0; }
 
1296
EOF
 
1297
if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1298
  rm -rf conftest*
 
1299
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1300
else
 
1301
  echo "configure: failed program was:" >&5
 
1302
  cat conftest.$ac_ext >&5
 
1303
  rm -rf conftest*
 
1304
  eval "ac_cv_lib_$ac_lib_var=no"
 
1305
fi
 
1306
rm -f conftest*
 
1307
LIBS="$ac_save_LIBS"
 
1308
 
 
1309
fi
 
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"
 
1313
else
 
1314
  echo "$ac_t""no" 1>&6
 
1315
fi
 
1316
 
 
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
 
1323
else
 
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.  */
 
1332
char dnet_ntoa();
 
1333
 
 
1334
int main() {
 
1335
dnet_ntoa()
 
1336
; return 0; }
 
1337
EOF
 
1338
if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1339
  rm -rf conftest*
 
1340
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1341
else
 
1342
  echo "configure: failed program was:" >&5
 
1343
  cat conftest.$ac_ext >&5
 
1344
  rm -rf conftest*
 
1345
  eval "ac_cv_lib_$ac_lib_var=no"
 
1346
fi
 
1347
rm -f conftest*
 
1348
LIBS="$ac_save_LIBS"
 
1349
 
 
1350
fi
 
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"
 
1354
else
 
1355
  echo "$ac_t""no" 1>&6
 
1356
fi
 
1357
 
 
1358
    fi
 
1359
 
 
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)
 
1363
    # needs -lnsl.
 
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
 
1370
else
 
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.  */
 
1376
#include <assert.h>
 
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();
 
1381
 
 
1382
int main() {
 
1383
 
 
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)
 
1388
choke me
 
1389
#else
 
1390
gethostbyname();
 
1391
#endif
 
1392
 
 
1393
; return 0; }
 
1394
EOF
 
1395
if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1396
  rm -rf conftest*
 
1397
  eval "ac_cv_func_gethostbyname=yes"
 
1398
else
 
1399
  echo "configure: failed program was:" >&5
 
1400
  cat conftest.$ac_ext >&5
 
1401
  rm -rf conftest*
 
1402
  eval "ac_cv_func_gethostbyname=no"
 
1403
fi
 
1404
rm -f conftest*
 
1405
fi
 
1406
 
 
1407
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
 
1408
  echo "$ac_t""yes" 1>&6
 
1409
  :
 
1410
else
 
1411
  echo "$ac_t""no" 1>&6
 
1412
fi
 
1413
 
 
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
 
1420
else
 
1421
  ac_save_LIBS="$LIBS"
 
1422
LIBS="-lnsl  $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();
 
1430
 
 
1431
int main() {
 
1432
gethostbyname()
 
1433
; return 0; }
 
1434
EOF
 
1435
if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1436
  rm -rf conftest*
 
1437
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1438
else
 
1439
  echo "configure: failed program was:" >&5
 
1440
  cat conftest.$ac_ext >&5
 
1441
  rm -rf conftest*
 
1442
  eval "ac_cv_lib_$ac_lib_var=no"
 
1443
fi
 
1444
rm -f conftest*
 
1445
LIBS="$ac_save_LIBS"
 
1446
 
 
1447
fi
 
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"
 
1451
else
 
1452
  echo "$ac_t""no" 1>&6
 
1453
fi
 
1454
 
 
1455
    fi
 
1456
 
 
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
 
1468
else
 
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.  */
 
1474
#include <assert.h>
 
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.  */
 
1478
char connect();
 
1479
 
 
1480
int main() {
 
1481
 
 
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)
 
1486
choke me
 
1487
#else
 
1488
connect();
 
1489
#endif
 
1490
 
 
1491
; return 0; }
 
1492
EOF
 
1493
if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1494
  rm -rf conftest*
 
1495
  eval "ac_cv_func_connect=yes"
 
1496
else
 
1497
  echo "configure: failed program was:" >&5
 
1498
  cat conftest.$ac_ext >&5
 
1499
  rm -rf conftest*
 
1500
  eval "ac_cv_func_connect=no"
 
1501
fi
 
1502
rm -f conftest*
 
1503
fi
 
1504
 
 
1505
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
 
1506
  echo "$ac_t""yes" 1>&6
 
1507
  :
 
1508
else
 
1509
  echo "$ac_t""no" 1>&6
 
1510
fi
 
1511
 
 
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
 
1518
else
 
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.  */
 
1527
char connect();
 
1528
 
 
1529
int main() {
 
1530
connect()
 
1531
; return 0; }
 
1532
EOF
 
1533
if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1534
  rm -rf conftest*
 
1535
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1536
else
 
1537
  echo "configure: failed program was:" >&5
 
1538
  cat conftest.$ac_ext >&5
 
1539
  rm -rf conftest*
 
1540
  eval "ac_cv_lib_$ac_lib_var=no"
 
1541
fi
 
1542
rm -f conftest*
 
1543
LIBS="$ac_save_LIBS"
 
1544
 
 
1545
fi
 
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"
 
1549
else
 
1550
  echo "$ac_t""no" 1>&6
 
1551
fi
 
1552
 
 
1553
    fi
 
1554
 
 
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
 
1560
else
 
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.  */
 
1566
#include <assert.h>
 
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.  */
 
1570
char remove();
 
1571
 
 
1572
int main() {
 
1573
 
 
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)
 
1578
choke me
 
1579
#else
 
1580
remove();
 
1581
#endif
 
1582
 
 
1583
; return 0; }
 
1584
EOF
 
1585
if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1586
  rm -rf conftest*
 
1587
  eval "ac_cv_func_remove=yes"
 
1588
else
 
1589
  echo "configure: failed program was:" >&5
 
1590
  cat conftest.$ac_ext >&5
 
1591
  rm -rf conftest*
 
1592
  eval "ac_cv_func_remove=no"
 
1593
fi
 
1594
rm -f conftest*
 
1595
fi
 
1596
 
 
1597
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
 
1598
  echo "$ac_t""yes" 1>&6
 
1599
  :
 
1600
else
 
1601
  echo "$ac_t""no" 1>&6
 
1602
fi
 
1603
 
 
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
 
1610
else
 
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.  */
 
1619
char remove();
 
1620
 
 
1621
int main() {
 
1622
remove()
 
1623
; return 0; }
 
1624
EOF
 
1625
if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1626
  rm -rf conftest*
 
1627
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1628
else
 
1629
  echo "configure: failed program was:" >&5
 
1630
  cat conftest.$ac_ext >&5
 
1631
  rm -rf conftest*
 
1632
  eval "ac_cv_lib_$ac_lib_var=no"
 
1633
fi
 
1634
rm -f conftest*
 
1635
LIBS="$ac_save_LIBS"
 
1636
 
 
1637
fi
 
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"
 
1641
else
 
1642
  echo "$ac_t""no" 1>&6
 
1643
fi
 
1644
 
 
1645
    fi
 
1646
 
 
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
 
1652
else
 
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.  */
 
1658
#include <assert.h>
 
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.  */
 
1662
char shmat();
 
1663
 
 
1664
int main() {
 
1665
 
 
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)
 
1670
choke me
 
1671
#else
 
1672
shmat();
 
1673
#endif
 
1674
 
 
1675
; return 0; }
 
1676
EOF
 
1677
if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1678
  rm -rf conftest*
 
1679
  eval "ac_cv_func_shmat=yes"
 
1680
else
 
1681
  echo "configure: failed program was:" >&5
 
1682
  cat conftest.$ac_ext >&5
 
1683
  rm -rf conftest*
 
1684
  eval "ac_cv_func_shmat=no"
 
1685
fi
 
1686
rm -f conftest*
 
1687
fi
 
1688
 
 
1689
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
 
1690
  echo "$ac_t""yes" 1>&6
 
1691
  :
 
1692
else
 
1693
  echo "$ac_t""no" 1>&6
 
1694
fi
 
1695
 
 
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
 
1702
else
 
1703
  ac_save_LIBS="$LIBS"
 
1704
LIBS="-lipc  $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.  */
 
1711
char shmat();
 
1712
 
 
1713
int main() {
 
1714
shmat()
 
1715
; return 0; }
 
1716
EOF
 
1717
if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1718
  rm -rf conftest*
 
1719
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1720
else
 
1721
  echo "configure: failed program was:" >&5
 
1722
  cat conftest.$ac_ext >&5
 
1723
  rm -rf conftest*
 
1724
  eval "ac_cv_lib_$ac_lib_var=no"
 
1725
fi
 
1726
rm -f conftest*
 
1727
LIBS="$ac_save_LIBS"
 
1728
 
 
1729
fi
 
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"
 
1733
else
 
1734
  echo "$ac_t""no" 1>&6
 
1735
fi
 
1736
 
 
1737
    fi
 
1738
  fi
 
1739
 
 
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
 
1754
else
 
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();
 
1764
 
 
1765
int main() {
 
1766
IceConnectionNumber()
 
1767
; return 0; }
 
1768
EOF
 
1769
if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1770
  rm -rf conftest*
 
1771
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1772
else
 
1773
  echo "configure: failed program was:" >&5
 
1774
  cat conftest.$ac_ext >&5
 
1775
  rm -rf conftest*
 
1776
  eval "ac_cv_lib_$ac_lib_var=no"
 
1777
fi
 
1778
rm -f conftest*
 
1779
LIBS="$ac_save_LIBS"
 
1780
 
 
1781
fi
 
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"
 
1785
else
 
1786
  echo "$ac_t""no" 1>&6
 
1787
fi
 
1788
 
 
1789
  LDFLAGS="$ac_save_LDFLAGS"
 
1790
 
 
1791
fi
 
1792
 
 
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
 
1797
else
 
1798
  cat > conftest.$ac_ext <<EOF
 
1799
#line 1800 "configure"
 
1800
#include "confdefs.h"
 
1801
#include <stdlib.h>
 
1802
#include <stdarg.h>
 
1803
#include <string.h>
 
1804
#include <float.h>
 
1805
EOF
 
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
 
1810
  rm -rf conftest*
 
1811
  ac_cv_header_stdc=yes
 
1812
else
 
1813
  echo "$ac_err" >&5
 
1814
  echo "configure: failed program was:" >&5
 
1815
  cat conftest.$ac_ext >&5
 
1816
  rm -rf conftest*
 
1817
  ac_cv_header_stdc=no
 
1818
fi
 
1819
rm -f conftest*
 
1820
 
 
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"
 
1826
#include <string.h>
 
1827
EOF
 
1828
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1829
  egrep "memchr" >/dev/null 2>&1; then
 
1830
  :
 
1831
else
 
1832
  rm -rf conftest*
 
1833
  ac_cv_header_stdc=no
 
1834
fi
 
1835
rm -f conftest*
 
1836
 
 
1837
fi
 
1838
 
 
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"
 
1844
#include <stdlib.h>
 
1845
EOF
 
1846
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1847
  egrep "free" >/dev/null 2>&1; then
 
1848
  :
 
1849
else
 
1850
  rm -rf conftest*
 
1851
  ac_cv_header_stdc=no
 
1852
fi
 
1853
rm -f conftest*
 
1854
 
 
1855
fi
 
1856
 
 
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
 
1860
  :
 
1861
else
 
1862
  cat > conftest.$ac_ext <<EOF
 
1863
#line 1864 "configure"
 
1864
#include "confdefs.h"
 
1865
#include <ctype.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);
 
1871
exit (0); }
 
1872
 
 
1873
EOF
 
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
 
1875
then
 
1876
  :
 
1877
else
 
1878
  echo "configure: failed program was:" >&5
 
1879
  cat conftest.$ac_ext >&5
 
1880
  rm -fr conftest*
 
1881
  ac_cv_header_stdc=no
 
1882
fi
 
1883
rm -fr conftest*
 
1884
fi
 
1885
 
 
1886
fi
 
1887
fi
 
1888
 
 
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
 
1893
EOF
 
1894
 
 
1895
fi
 
1896
 
 
1897
for ac_hdr in err.h fcntl.h sys/ioctl.h sys/queue.h unistd.h libgen.h net/if_tun.h
 
1898
do
 
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
 
1904
else
 
1905
  cat > conftest.$ac_ext <<EOF
 
1906
#line 1907 "configure"
 
1907
#include "confdefs.h"
 
1908
#include <$ac_hdr>
 
1909
EOF
 
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
 
1914
  rm -rf conftest*
 
1915
  eval "ac_cv_header_$ac_safe=yes"
 
1916
else
 
1917
  echo "$ac_err" >&5
 
1918
  echo "configure: failed program was:" >&5
 
1919
  cat conftest.$ac_ext >&5
 
1920
  rm -rf conftest*
 
1921
  eval "ac_cv_header_$ac_safe=no"
 
1922
fi
 
1923
rm -f conftest*
 
1924
fi
 
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
 
1930
EOF
 
1931
 
 
1932
else
 
1933
  echo "$ac_t""no" 1>&6
 
1934
fi
 
1935
done
 
1936
 
 
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"
 
1942
 
 
1943
#include <sys/param.h>
 
1944
#if defined(MAX) && defined(MIN)
 
1945
 yes
 
1946
#endif
 
1947
 
 
1948
EOF
 
1949
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1950
  egrep "yes" >/dev/null 2>&1; then
 
1951
  rm -rf conftest*
 
1952
   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
 
1953
#define HAVE_MINMAX 1
 
1954
EOF
 
1955
 
 
1956
else
 
1957
  rm -rf conftest*
 
1958
   echo "$ac_t""no" 1>&6 
 
1959
 
 
1960
fi
 
1961
rm -f conftest*
 
1962
 
 
1963
 
 
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
 
1968
else
 
1969
  cat > conftest.$ac_ext <<EOF
 
1970
#line 1971 "configure"
 
1971
#include "confdefs.h"
 
1972
 
 
1973
int main() {
 
1974
 
 
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;
 
1979
char **p;
 
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. */
 
1989
++ccp;
 
1990
p = (char**) ccp;
 
1991
ccp = (char const *const *) p;
 
1992
{ /* SCO 3.2v4 cc rejects this.  */
 
1993
  char *t;
 
1994
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1995
 
 
1996
  *t++ = 0;
 
1997
}
 
1998
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1999
  int x[] = {25, 17};
 
2000
  const int *foo = &x[0];
 
2001
  ++foo;
 
2002
}
 
2003
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
2004
  typedef const int *iptr;
 
2005
  iptr p = 0;
 
2006
  ++p;
 
2007
}
 
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;
 
2012
}
 
2013
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
2014
  const int foo = 10;
 
2015
}
 
2016
 
 
2017
; return 0; }
 
2018
EOF
 
2019
if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2020
  rm -rf conftest*
 
2021
  ac_cv_c_const=yes
 
2022
else
 
2023
  echo "configure: failed program was:" >&5
 
2024
  cat conftest.$ac_ext >&5
 
2025
  rm -rf conftest*
 
2026
  ac_cv_c_const=no
 
2027
fi
 
2028
rm -f conftest*
 
2029
fi
 
2030
 
 
2031
echo "$ac_t""$ac_cv_c_const" 1>&6
 
2032
if test $ac_cv_c_const = no; then
 
2033
  cat >> confdefs.h <<\EOF
 
2034
#define const 
 
2035
EOF
 
2036
 
 
2037
fi
 
2038
 
 
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
 
2043
else
 
2044
  cat > conftest.$ac_ext <<EOF
 
2045
#line 2046 "configure"
 
2046
#include "confdefs.h"
 
2047
#include <sys/types.h>
 
2048
#if STDC_HEADERS
 
2049
#include <stdlib.h>
 
2050
#include <stddef.h>
 
2051
#endif
 
2052
EOF
 
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
 
2055
  rm -rf conftest*
 
2056
  ac_cv_type_size_t=yes
 
2057
else
 
2058
  rm -rf conftest*
 
2059
  ac_cv_type_size_t=no
 
2060
fi
 
2061
rm -f conftest*
 
2062
 
 
2063
fi
 
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
 
2068
EOF
 
2069
 
 
2070
fi
 
2071
 
 
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
 
2076
else
 
2077
  cat > conftest.$ac_ext <<EOF
 
2078
#line 2079 "configure"
 
2079
#include "confdefs.h"
 
2080
#include <sys/types.h>
 
2081
#include <time.h>
 
2082
int main() {
 
2083
struct tm *tp; tp->tm_sec;
 
2084
; return 0; }
 
2085
EOF
 
2086
if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2087
  rm -rf conftest*
 
2088
  ac_cv_struct_tm=time.h
 
2089
else
 
2090
  echo "configure: failed program was:" >&5
 
2091
  cat conftest.$ac_ext >&5
 
2092
  rm -rf conftest*
 
2093
  ac_cv_struct_tm=sys/time.h
 
2094
fi
 
2095
rm -f conftest*
 
2096
fi
 
2097
 
 
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
 
2102
EOF
 
2103
 
 
2104
fi
 
2105
 
 
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
 
2110
else
 
2111
  cat > conftest.$ac_ext <<EOF
 
2112
#line 2113 "configure"
 
2113
#include "confdefs.h"
 
2114
#include <sys/types.h>
 
2115
#if STDC_HEADERS
 
2116
#include <stdlib.h>
 
2117
#include <stddef.h>
 
2118
#endif
 
2119
EOF
 
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
 
2122
  rm -rf conftest*
 
2123
  ac_cv_type_u_int32_t=yes
 
2124
else
 
2125
  rm -rf conftest*
 
2126
  ac_cv_type_u_int32_t=no
 
2127
fi
 
2128
rm -f conftest*
 
2129
 
 
2130
fi
 
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
 
2135
EOF
 
2136
 
 
2137
fi
 
2138
 
 
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
 
2143
else
 
2144
  cat > conftest.$ac_ext <<EOF
 
2145
#line 2146 "configure"
 
2146
#include "confdefs.h"
 
2147
#include <sys/types.h>
 
2148
#if STDC_HEADERS
 
2149
#include <stdlib.h>
 
2150
#include <stddef.h>
 
2151
#endif
 
2152
EOF
 
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
 
2155
  rm -rf conftest*
 
2156
  ac_cv_type_u_int64_t=yes
 
2157
else
 
2158
  rm -rf conftest*
 
2159
  ac_cv_type_u_int64_t=no
 
2160
fi
 
2161
rm -f conftest*
 
2162
 
 
2163
fi
 
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
 
2168
EOF
 
2169
 
 
2170
fi
 
2171
 
 
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
 
2176
else
 
2177
  cat > conftest.$ac_ext <<EOF
 
2178
#line 2179 "configure"
 
2179
#include "confdefs.h"
 
2180
#include <sys/types.h>
 
2181
#if STDC_HEADERS
 
2182
#include <stdlib.h>
 
2183
#include <stddef.h>
 
2184
#endif
 
2185
EOF
 
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
 
2188
  rm -rf conftest*
 
2189
  ac_cv_type_in_addr_t=yes
 
2190
else
 
2191
  rm -rf conftest*
 
2192
  ac_cv_type_in_addr_t=no
 
2193
fi
 
2194
rm -f conftest*
 
2195
 
 
2196
fi
 
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
 
2201
EOF
 
2202
 
 
2203
fi
 
2204
 
 
2205
CFLAGS="$CFLAGS -D_BSD_SOURCE"
 
2206
 
 
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
 
2212
else
 
2213
    ac_pattern="Autoconf.*'x'"
 
2214
  cat > conftest.$ac_ext <<EOF
 
2215
#line 2216 "configure"
 
2216
#include "confdefs.h"
 
2217
#include <sgtty.h>
 
2218
Autoconf TIOCGETP
 
2219
EOF
 
2220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2221
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
2222
  rm -rf conftest*
 
2223
  ac_cv_prog_gcc_traditional=yes
 
2224
else
 
2225
  rm -rf conftest*
 
2226
  ac_cv_prog_gcc_traditional=no
 
2227
fi
 
2228
rm -f conftest*
 
2229
 
 
2230
 
 
2231
  if test $ac_cv_prog_gcc_traditional = no; then
 
2232
    cat > conftest.$ac_ext <<EOF
 
2233
#line 2234 "configure"
 
2234
#include "confdefs.h"
 
2235
#include <termio.h>
 
2236
Autoconf TCGETA
 
2237
EOF
 
2238
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2239
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
2240
  rm -rf conftest*
 
2241
  ac_cv_prog_gcc_traditional=yes
 
2242
fi
 
2243
rm -f conftest*
 
2244
 
 
2245
  fi
 
2246
fi
 
2247
 
 
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"
 
2251
  fi
 
2252
fi
 
2253
 
 
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
 
2258
else
 
2259
  if test "$cross_compiling" = yes; then
 
2260
  ac_cv_func_memcmp_clean=no
 
2261
else
 
2262
  cat > conftest.$ac_ext <<EOF
 
2263
#line 2264 "configure"
 
2264
#include "confdefs.h"
 
2265
 
 
2266
main()
 
2267
{
 
2268
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
2269
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
 
2270
}
 
2271
 
 
2272
EOF
 
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
 
2274
then
 
2275
  ac_cv_func_memcmp_clean=yes
 
2276
else
 
2277
  echo "configure: failed program was:" >&5
 
2278
  cat conftest.$ac_ext >&5
 
2279
  rm -fr conftest*
 
2280
  ac_cv_func_memcmp_clean=no
 
2281
fi
 
2282
rm -fr conftest*
 
2283
fi
 
2284
 
 
2285
fi
 
2286
 
 
2287
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
 
2288
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
 
2289
 
 
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
 
2294
else
 
2295
  cat > conftest.$ac_ext <<EOF
 
2296
#line 2297 "configure"
 
2297
#include "confdefs.h"
 
2298
#include <sys/types.h>
 
2299
#include <signal.h>
 
2300
#ifdef signal
 
2301
#undef signal
 
2302
#endif
 
2303
#ifdef __cplusplus
 
2304
extern "C" void (*signal (int, void (*)(int)))(int);
 
2305
#else
 
2306
void (*signal ()) ();
 
2307
#endif
 
2308
 
 
2309
int main() {
 
2310
int i;
 
2311
; return 0; }
 
2312
EOF
 
2313
if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2314
  rm -rf conftest*
 
2315
  ac_cv_type_signal=void
 
2316
else
 
2317
  echo "configure: failed program was:" >&5
 
2318
  cat conftest.$ac_ext >&5
 
2319
  rm -rf conftest*
 
2320
  ac_cv_type_signal=int
 
2321
fi
 
2322
rm -f conftest*
 
2323
fi
 
2324
 
 
2325
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
2326
cat >> confdefs.h <<EOF
 
2327
#define RETSIGTYPE $ac_cv_type_signal
 
2328
EOF
 
2329
 
 
2330
 
 
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
 
2335
else
 
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.  */
 
2341
#include <assert.h>
 
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.  */
 
2345
char strftime();
 
2346
 
 
2347
int main() {
 
2348
 
 
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)
 
2353
choke me
 
2354
#else
 
2355
strftime();
 
2356
#endif
 
2357
 
 
2358
; return 0; }
 
2359
EOF
 
2360
if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2361
  rm -rf conftest*
 
2362
  eval "ac_cv_func_strftime=yes"
 
2363
else
 
2364
  echo "configure: failed program was:" >&5
 
2365
  cat conftest.$ac_ext >&5
 
2366
  rm -rf conftest*
 
2367
  eval "ac_cv_func_strftime=no"
 
2368
fi
 
2369
rm -f conftest*
 
2370
fi
 
2371
 
 
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
 
2376
EOF
 
2377
 
 
2378
else
 
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
 
2386
else
 
2387
  ac_save_LIBS="$LIBS"
 
2388
LIBS="-lintl  $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.  */
 
2395
char strftime();
 
2396
 
 
2397
int main() {
 
2398
strftime()
 
2399
; return 0; }
 
2400
EOF
 
2401
if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2402
  rm -rf conftest*
 
2403
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2404
else
 
2405
  echo "configure: failed program was:" >&5
 
2406
  cat conftest.$ac_ext >&5
 
2407
  rm -rf conftest*
 
2408
  eval "ac_cv_lib_$ac_lib_var=no"
 
2409
fi
 
2410
rm -f conftest*
 
2411
LIBS="$ac_save_LIBS"
 
2412
 
 
2413
fi
 
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
 
2418
EOF
 
2419
 
 
2420
LIBS="-lintl $LIBS"
 
2421
else
 
2422
  echo "$ac_t""no" 1>&6
 
2423
fi
 
2424
 
 
2425
fi
 
2426
 
 
2427
for ac_func in gethostname socket strdup strstr
 
2428
do
 
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
 
2433
else
 
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.  */
 
2439
#include <assert.h>
 
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.  */
 
2443
char $ac_func();
 
2444
 
 
2445
int main() {
 
2446
 
 
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)
 
2451
choke me
 
2452
#else
 
2453
$ac_func();
 
2454
#endif
 
2455
 
 
2456
; return 0; }
 
2457
EOF
 
2458
if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2459
  rm -rf conftest*
 
2460
  eval "ac_cv_func_$ac_func=yes"
 
2461
else
 
2462
  echo "configure: failed program was:" >&5
 
2463
  cat conftest.$ac_ext >&5
 
2464
  rm -rf conftest*
 
2465
  eval "ac_cv_func_$ac_func=no"
 
2466
fi
 
2467
rm -f conftest*
 
2468
fi
 
2469
 
 
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
 
2475
EOF
 
2476
 
 
2477
else
 
2478
  echo "$ac_t""no" 1>&6
 
2479
fi
 
2480
done
 
2481
 
 
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
 
2487
else
 
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();
 
2497
 
 
2498
int main() {
 
2499
xdr_fhstatus()
 
2500
; return 0; }
 
2501
EOF
 
2502
if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2503
  rm -rf conftest*
 
2504
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2505
else
 
2506
  echo "configure: failed program was:" >&5
 
2507
  cat conftest.$ac_ext >&5
 
2508
  rm -rf conftest*
 
2509
  eval "ac_cv_lib_$ac_lib_var=no"
 
2510
fi
 
2511
rm -f conftest*
 
2512
LIBS="$ac_save_LIBS"
 
2513
 
 
2514
fi
 
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
 
2521
EOF
 
2522
 
 
2523
  LIBS="-lrpcsvc $LIBS"
 
2524
 
 
2525
else
 
2526
  echo "$ac_t""no" 1>&6
 
2527
fi
 
2528
 
 
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
 
2534
else
 
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.  */
 
2543
char socket();
 
2544
 
 
2545
int main() {
 
2546
socket()
 
2547
; return 0; }
 
2548
EOF
 
2549
if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2550
  rm -rf conftest*
 
2551
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2552
else
 
2553
  echo "configure: failed program was:" >&5
 
2554
  cat conftest.$ac_ext >&5
 
2555
  rm -rf conftest*
 
2556
  eval "ac_cv_lib_$ac_lib_var=no"
 
2557
fi
 
2558
rm -f conftest*
 
2559
LIBS="$ac_save_LIBS"
 
2560
 
 
2561
fi
 
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
 
2568
EOF
 
2569
 
 
2570
  LIBS="-lsocket $LIBS"
 
2571
 
 
2572
else
 
2573
  echo "$ac_t""no" 1>&6
 
2574
fi
 
2575
 
 
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
 
2581
else
 
2582
  ac_save_LIBS="$LIBS"
 
2583
LIBS="-lnsl  $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();
 
2591
 
 
2592
int main() {
 
2593
gethostbyname()
 
2594
; return 0; }
 
2595
EOF
 
2596
if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2597
  rm -rf conftest*
 
2598
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2599
else
 
2600
  echo "configure: failed program was:" >&5
 
2601
  cat conftest.$ac_ext >&5
 
2602
  rm -rf conftest*
 
2603
  eval "ac_cv_lib_$ac_lib_var=no"
 
2604
fi
 
2605
rm -f conftest*
 
2606
LIBS="$ac_save_LIBS"
 
2607
 
 
2608
fi
 
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
 
2615
EOF
 
2616
 
 
2617
  LIBS="-lnsl $LIBS"
 
2618
 
 
2619
else
 
2620
  echo "$ac_t""no" 1>&6
 
2621
fi
 
2622
 
 
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
 
2628
else
 
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.  */
 
2637
char dn_expand();
 
2638
 
 
2639
int main() {
 
2640
dn_expand()
 
2641
; return 0; }
 
2642
EOF
 
2643
if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2644
  rm -rf conftest*
 
2645
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2646
else
 
2647
  echo "configure: failed program was:" >&5
 
2648
  cat conftest.$ac_ext >&5
 
2649
  rm -rf conftest*
 
2650
  eval "ac_cv_lib_$ac_lib_var=no"
 
2651
fi
 
2652
rm -f conftest*
 
2653
LIBS="$ac_save_LIBS"
 
2654
 
 
2655
fi
 
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
 
2662
EOF
 
2663
 
 
2664
  LIBS="-lresolv $LIBS"
 
2665
 
 
2666
else
 
2667
  echo "$ac_t""no" 1>&6
 
2668
fi
 
2669
 
 
2670
for ac_func in dirname strlcpy strlcat strsep
 
2671
do
 
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
 
2676
else
 
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.  */
 
2682
#include <assert.h>
 
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.  */
 
2686
char $ac_func();
 
2687
 
 
2688
int main() {
 
2689
 
 
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)
 
2694
choke me
 
2695
#else
 
2696
$ac_func();
 
2697
#endif
 
2698
 
 
2699
; return 0; }
 
2700
EOF
 
2701
if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2702
  rm -rf conftest*
 
2703
  eval "ac_cv_func_$ac_func=yes"
 
2704
else
 
2705
  echo "configure: failed program was:" >&5
 
2706
  cat conftest.$ac_ext >&5
 
2707
  rm -rf conftest*
 
2708
  eval "ac_cv_func_$ac_func=no"
 
2709
fi
 
2710
rm -f conftest*
 
2711
fi
 
2712
 
 
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
 
2718
EOF
 
2719
 
 
2720
else
 
2721
  echo "$ac_t""no" 1>&6
 
2722
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
 
2723
fi
 
2724
done
 
2725
 
 
2726
 
 
2727
needmd5=no
 
2728
for ac_func in MD5Update
 
2729
do
 
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
 
2734
else
 
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.  */
 
2740
#include <assert.h>
 
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.  */
 
2744
char $ac_func();
 
2745
 
 
2746
int main() {
 
2747
 
 
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)
 
2752
choke me
 
2753
#else
 
2754
$ac_func();
 
2755
#endif
 
2756
 
 
2757
; return 0; }
 
2758
EOF
 
2759
if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2760
  rm -rf conftest*
 
2761
  eval "ac_cv_func_$ac_func=yes"
 
2762
else
 
2763
  echo "configure: failed program was:" >&5
 
2764
  cat conftest.$ac_ext >&5
 
2765
  rm -rf conftest*
 
2766
  eval "ac_cv_func_$ac_func=no"
 
2767
fi
 
2768
rm -f conftest*
 
2769
fi
 
2770
 
 
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
 
2776
EOF
 
2777
 
 
2778
else
 
2779
  echo "$ac_t""no" 1>&6
 
2780
needmd5=yes
 
2781
fi
 
2782
done
 
2783
 
 
2784
if test $needmd5 = yes; then
 
2785
   LIBOBJS="$LIBOBJS md5.o"
 
2786
fi
 
2787
neederr=no
 
2788
for ac_func in warnx
 
2789
do
 
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
 
2794
else
 
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.  */
 
2800
#include <assert.h>
 
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.  */
 
2804
char $ac_func();
 
2805
 
 
2806
int main() {
 
2807
 
 
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)
 
2812
choke me
 
2813
#else
 
2814
$ac_func();
 
2815
#endif
 
2816
 
 
2817
; return 0; }
 
2818
EOF
 
2819
if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2820
  rm -rf conftest*
 
2821
  eval "ac_cv_func_$ac_func=yes"
 
2822
else
 
2823
  echo "configure: failed program was:" >&5
 
2824
  cat conftest.$ac_ext >&5
 
2825
  rm -rf conftest*
 
2826
  eval "ac_cv_func_$ac_func=no"
 
2827
fi
 
2828
rm -f conftest*
 
2829
fi
 
2830
 
 
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
 
2836
EOF
 
2837
 
 
2838
else
 
2839
  echo "$ac_t""no" 1>&6
 
2840
neederr=yes
 
2841
fi
 
2842
done
 
2843
 
 
2844
if test $neederr = yes; then
 
2845
   LIBOBJS="$LIBOBJS err.o"
 
2846
fi
 
2847
needethers=no
 
2848
for ac_func in ether_ntoa
 
2849
do
 
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
 
2854
else
 
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.  */
 
2860
#include <assert.h>
 
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.  */
 
2864
char $ac_func();
 
2865
 
 
2866
int main() {
 
2867
 
 
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)
 
2872
choke me
 
2873
#else
 
2874
$ac_func();
 
2875
#endif
 
2876
 
 
2877
; return 0; }
 
2878
EOF
 
2879
if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2880
  rm -rf conftest*
 
2881
  eval "ac_cv_func_$ac_func=yes"
 
2882
else
 
2883
  echo "configure: failed program was:" >&5
 
2884
  cat conftest.$ac_ext >&5
 
2885
  rm -rf conftest*
 
2886
  eval "ac_cv_func_$ac_func=no"
 
2887
fi
 
2888
rm -f conftest*
 
2889
fi
 
2890
 
 
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
 
2896
EOF
 
2897
 
 
2898
else
 
2899
  echo "$ac_t""no" 1>&6
 
2900
needethers=yes
 
2901
fi
 
2902
done
 
2903
 
 
2904
if test $needethers = yes; then
 
2905
   LIBOBJS="$LIBOBJS ethers.o"
 
2906
fi
 
2907
 
 
2908
 
 
2909
 
 
2910
if test "x$no_x" = "x"; then
 
2911
   WEBSPY="webspy"; 
 
2912
fi
 
2913
 
 
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
 
2918
  withval="$with_db"
 
2919
   case "$withval" in
 
2920
  yes|no)
 
2921
     echo "$ac_t""no" 1>&6
 
2922
     ;;
 
2923
  *)
 
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
 
2927
        owd=`pwd`
 
2928
        if cd $withval; then withval=`pwd`; cd $owd; fi
 
2929
        cat >> confdefs.h <<\EOF
 
2930
#define HAVE_DB_185_H 1
 
2931
EOF
 
2932
 
 
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
 
2937
        owd=`pwd`
 
2938
        if cd $withval; then withval=`pwd`; cd $owd; fi
 
2939
        cat >> confdefs.h <<\EOF
 
2940
#define HAVE_DB_185_H 1
 
2941
EOF
 
2942
 
 
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
 
2947
        owd=`pwd`
 
2948
        if cd $withval; then withval=`pwd`; cd $owd; fi
 
2949
        cat >> confdefs.h <<\EOF
 
2950
#define HAVE_DB_185_H 1
 
2951
EOF
 
2952
 
 
2953
        DBINC="-I$withval/include"
 
2954
        DBLIB="-L$withval/lib -ldb"
 
2955
     else
 
2956
        { echo "configure: error: db_185.h or libdb.a not found in $withval or not configured with --enable-compat185" 1>&2; exit 1; }
 
2957
     fi
 
2958
     ;;
 
2959
  esac 
 
2960
else
 
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
 
2966
EOF
 
2967
 
 
2968
       DBINC="-I${dir}/include"
 
2969
       DBLIB="-L${dir}/lib -ldb"
 
2970
       have_db=yes
 
2971
       break
 
2972
    elif test -f ${dir}/include/db.h; then
 
2973
       cat >> confdefs.h <<\EOF
 
2974
#define HAVE_DB_H 1
 
2975
EOF
 
2976
 
 
2977
       DBINC="-I${dir}/include"
 
2978
       DBLIB="-L${dir}/lib -ldb"
 
2979
       have_db=yes
 
2980
       break
 
2981
    fi
 
2982
  done
 
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
 
2987
EOF
 
2988
 
 
2989
        DBINC="-I/usr/include/db2"
 
2990
        DBLIB="-ldb2"
 
2991
        have_db=yes
 
2992
     elif test -f /usr/include/db_185.h; then
 
2993
        cat >> confdefs.h <<\EOF
 
2994
#define HAVE_DB_185_H 1
 
2995
EOF
 
2996
 
 
2997
        DBLIB="-ldb"
 
2998
        have_db=yes
 
2999
     elif test -f /usr/include/db.h; then
 
3000
        cat >> confdefs.h <<\EOF
 
3001
#define HAVE_DB_H 1
 
3002
EOF
 
3003
 
 
3004
        have_db=yes
 
3005
     fi
 
3006
  fi
 
3007
  if test "x$have_db" = "x"; then
 
3008
        { echo "configure: error: Berkeley DB with 1.85 compatibility not found" 1>&2; exit 1; }
 
3009
  fi
 
3010
  echo "$ac_t""yes" 1>&6 
 
3011
 
 
3012
fi
 
3013
 
 
3014
 
 
3015
 
 
3016
 
 
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"
 
3022
   case "$withval" in
 
3023
  yes|no)
 
3024
     echo "$ac_t""no" 1>&6
 
3025
     ;;
 
3026
  *)
 
3027
     echo "$ac_t""$withval" 1>&6
 
3028
     if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
 
3029
        owd=`pwd`
 
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
 
3036
        owd=`pwd`
 
3037
        if cd $withval; then withval=`pwd`; cd $owd; fi
 
3038
        PCAPINC="-I$withval/include"
 
3039
        PCAPLIB="-L$withval/lib -lpcap"
 
3040
     else
 
3041
        { echo "configure: error: pcap.h" 1>&2; exit 1; }
 
3042
     fi
 
3043
     ;;
 
3044
  esac 
 
3045
else
 
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"
 
3051
     PCAPLIB="-lpcap"
 
3052
  elif test -f /usr/include/pcap.h; then
 
3053
     PCAPLIB="-lpcap"
 
3054
  else
 
3055
     echo "$ac_t""no" 1>&6
 
3056
     { echo "configure: error: libpcap not found" 1>&2; exit 1; }
 
3057
  fi
 
3058
  echo "$ac_t""yes" 1>&6 
 
3059
 
 
3060
fi
 
3061
 
 
3062
 
 
3063
 
 
3064
 
 
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"
 
3070
   case "$withval" in
 
3071
  yes|no)
 
3072
     echo "$ac_t""no" 1>&6
 
3073
     ;;
 
3074
  *)
 
3075
     echo "$ac_t""$withval" 1>&6
 
3076
     if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then
 
3077
        owd=`pwd`
 
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`"
 
3083
        else
 
3084
           CFLAGS="$CFLAGS `libnet-config --defines`"
 
3085
        fi
 
3086
        LNETINC="-I$withval/include"
 
3087
        LNETLIB="-L$withval/lib -lnet"
 
3088
     else
 
3089
        { echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; }
 
3090
     fi
 
3091
     ;;
 
3092
  esac 
 
3093
else
 
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`"
 
3100
     LNETLIB="-lnet"
 
3101
  else
 
3102
     echo "$ac_t""no" 1>&6
 
3103
     { echo "configure: error: libnet not found" 1>&2; exit 1; }
 
3104
  fi
 
3105
  echo "$ac_t""yes" 1>&6 
 
3106
 
 
3107
fi
 
3108
 
 
3109
 
 
3110
 
 
3111
 
 
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"
 
3117
   case "$withval" in
 
3118
  yes|no)
 
3119
     echo "$ac_t""no" 1>&6
 
3120
     ;;
 
3121
  *)
 
3122
     echo "$ac_t""$withval" 1>&6
 
3123
     if test -f $withval/src/nids.h -a -f $withval/src/libnids.a; then
 
3124
        owd=`pwd`
 
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
 
3129
        owd=`pwd`
 
3130
        if cd $withval; then withval=`pwd`; cd $owd; fi
 
3131
        NIDSINC="-I$withval/include"
 
3132
        NIDSLIB="-L$withval/lib -lnids"
 
3133
     else
 
3134
        { echo "configure: error: nids.h or libnids.a not found in $withval" 1>&2; exit 1; }
 
3135
     fi
 
3136
     ;;
 
3137
  esac 
 
3138
else
 
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
 
3143
     NIDSLIB="-lnids"
 
3144
  else
 
3145
     echo "$ac_t""no" 1>&6
 
3146
     { echo "configure: error: libnids not found" 1>&2; exit 1; }
 
3147
  fi
 
3148
  echo "$ac_t""yes" 1>&6 
 
3149
 
 
3150
fi
 
3151
 
 
3152
save_cppflags="$CPPFLAGS"
 
3153
CPPFLAGS="$NIDSINC"
 
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"
 
3159
#include <nids.h>
 
3160
EOF
 
3161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3162
  egrep "pcap_filter" >/dev/null 2>&1; then
 
3163
  rm -rf conftest*
 
3164
  echo "$ac_t""yes" 1>&6
 
3165
else
 
3166
  rm -rf conftest*
 
3167
   echo "$ac_t""no" 1>&6; { echo "configure: error: libnids version 1.13 or greater required" 1>&2; exit 1; } 
 
3168
fi
 
3169
rm -f conftest*
 
3170
 
 
3171
CPPFLAGS="$save_cppflags"
 
3172
 
 
3173
 
 
3174
 
 
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"
 
3180
   case "$withval" in
 
3181
  yes|no)
 
3182
     echo "$ac_t""no" 1>&6
 
3183
     ;;
 
3184
  *)
 
3185
     echo "$ac_t""$withval" 1>&6
 
3186
     if test -f $withval/include/openssl/ssl.h -a -f $withval/libssl.a; then
 
3187
        owd=`pwd`
 
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
 
3193
        owd=`pwd`
 
3194
        if cd $withval; then withval=`pwd`; cd $owd; fi
 
3195
        SSLINC="-I$withval/include"
 
3196
        SSLLIB="-L$withval/lib -lssl -lcrypto"
 
3197
     else
 
3198
        { echo "configure: error: ssl.h or libssl.a not found in $withval" 1>&2; exit 1; }
 
3199
     fi
 
3200
     WEBMITM="webmitm"
 
3201
     ;;
 
3202
  esac 
 
3203
else
 
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"
 
3212
  else
 
3213
     echo "$ac_t""no" 1>&6
 
3214
     { echo "configure: error: OpenSSL not found" 1>&2; exit 1; }
 
3215
  fi
 
3216
  echo "$ac_t""yes" 1>&6
 
3217
 
 
3218
 
 
3219
fi
 
3220
 
 
3221
 
 
3222
 
 
3223
 
 
3224
trap '' 1 2 15
 
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.
 
3230
#
 
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.
 
3239
#
 
3240
EOF
 
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.
 
3246
(set) 2>&1 |
 
3247
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3248
  *ac_space=\ *)
 
3249
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
3250
    # turns \\\\ into \\, and sed turns \\ into \).
 
3251
    sed -n \
 
3252
      -e "s/'/'\\\\''/g" \
 
3253
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
3254
    ;;
 
3255
  *)
 
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'
 
3258
    ;;
 
3259
  esac >> confcache
 
3260
if cmp -s $cache_file confcache; then
 
3261
  :
 
3262
else
 
3263
  if test -w $cache_file; then
 
3264
    echo "updating cache $cache_file"
 
3265
    cat confcache > $cache_file
 
3266
  else
 
3267
    echo "not updating unwritable cache $cache_file"
 
3268
  fi
 
3269
fi
 
3270
rm -f confcache
 
3271
 
 
3272
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
3273
 
 
3274
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
3275
# Let make expand exec_prefix.
 
3276
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
3277
 
 
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'
 
3283
fi
 
3284
 
 
3285
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
3286
 
 
3287
DEFS=-DHAVE_CONFIG_H
 
3288
 
 
3289
# Without the "./", some shells look in PATH for config.status.
 
3290
: ${CONFIG_STATUS=./config.status}
 
3291
 
 
3292
echo creating $CONFIG_STATUS
 
3293
rm -f $CONFIG_STATUS
 
3294
cat > $CONFIG_STATUS <<EOF
 
3295
#! /bin/sh
 
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`:
 
3300
#
 
3301
# $0 $ac_configure_args
 
3302
#
 
3303
# Compiler output produced by configure, useful for debugging
 
3304
# configure, is in ./config.log if it exists.
 
3305
 
 
3306
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
3307
for ac_option
 
3308
do
 
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"
 
3315
    exit 0 ;;
 
3316
  -help | --help | --hel | --he | --h)
 
3317
    echo "\$ac_cs_usage"; exit 0 ;;
 
3318
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
3319
  esac
 
3320
done
 
3321
 
 
3322
ac_given_srcdir=$srcdir
 
3323
ac_given_INSTALL="$INSTALL"
 
3324
 
 
3325
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
3326
EOF
 
3327
cat >> $CONFIG_STATUS <<EOF
 
3328
 
 
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
 
3332
$ac_vpsub
 
3333
$extrasub
 
3334
s%@SHELL@%$SHELL%g
 
3335
s%@CFLAGS@%$CFLAGS%g
 
3336
s%@CPPFLAGS@%$CPPFLAGS%g
 
3337
s%@CXXFLAGS@%$CXXFLAGS%g
 
3338
s%@FFLAGS@%$FFLAGS%g
 
3339
s%@DEFS@%$DEFS%g
 
3340
s%@LDFLAGS@%$LDFLAGS%g
 
3341
s%@LIBS@%$LIBS%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
 
3357
s%@CC@%$CC%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
 
3362
s%@CPP@%$CPP%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
 
3370
s%@DBINC@%$DBINC%g
 
3371
s%@DBLIB@%$DBLIB%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
 
3380
 
 
3381
CEOF
 
3382
EOF
 
3383
 
 
3384
cat >> $CONFIG_STATUS <<\EOF
 
3385
 
 
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.
 
3392
ac_more_lines=:
 
3393
ac_sed_cmds=""
 
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
 
3397
  else
 
3398
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
3399
  fi
 
3400
  if test ! -s conftest.s$ac_file; then
 
3401
    ac_more_lines=false
 
3402
    rm -f conftest.s$ac_file
 
3403
  else
 
3404
    if test -z "$ac_sed_cmds"; then
 
3405
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
3406
    else
 
3407
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
3408
    fi
 
3409
    ac_file=`expr $ac_file + 1`
 
3410
    ac_beg=$ac_end
 
3411
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
3412
  fi
 
3413
done
 
3414
if test -z "$ac_sed_cmds"; then
 
3415
  ac_sed_cmds=cat
 
3416
fi
 
3417
EOF
 
3418
 
 
3419
cat >> $CONFIG_STATUS <<EOF
 
3420
 
 
3421
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
 
3422
EOF
 
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".
 
3426
  case "$ac_file" 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" ;;
 
3430
  esac
 
3431
 
 
3432
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
3433
 
 
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'`
 
3442
  else
 
3443
    ac_dir_suffix= ac_dots=
 
3444
  fi
 
3445
 
 
3446
  case "$ac_given_srcdir" in
 
3447
  .)  srcdir=.
 
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" ;;
 
3451
  *) # Relative path.
 
3452
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
3453
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
3454
  esac
 
3455
 
 
3456
  case "$ac_given_INSTALL" in
 
3457
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
3458
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
3459
  esac
 
3460
 
 
3461
  echo creating "$ac_file"
 
3462
  rm -f "$ac_file"
 
3463
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
3464
  case "$ac_file" in
 
3465
  *Makefile*) ac_comsub="1i\\
 
3466
# $configure_input" ;;
 
3467
  *) ac_comsub= ;;
 
3468
  esac
 
3469
 
 
3470
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
3471
  sed -e "$ac_comsub
 
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
 
3477
fi; done
 
3478
rm -f conftest.s*
 
3479
 
 
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.
 
3482
#
 
3483
# ac_d sets the value in "#define NAME VALUE" lines.
 
3484
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
3485
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
3486
ac_dC='\3'
 
3487
ac_dD='%g'
 
3488
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
3489
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
3490
ac_uB='\([      ]\)%\1#\2define\3'
 
3491
ac_uC=' '
 
3492
ac_uD='\4%g'
 
3493
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
3494
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
3495
ac_eB='$%\1#\2define\3'
 
3496
ac_eC=' '
 
3497
ac_eD='%g'
 
3498
 
 
3499
if test "${CONFIG_HEADERS+set}" != set; then
 
3500
EOF
 
3501
cat >> $CONFIG_STATUS <<EOF
 
3502
  CONFIG_HEADERS="config.h"
 
3503
EOF
 
3504
cat >> $CONFIG_STATUS <<\EOF
 
3505
fi
 
3506
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
3507
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
3508
  case "$ac_file" 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" ;;
 
3512
  esac
 
3513
 
 
3514
  echo creating $ac_file
 
3515
 
 
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
 
3519
 
 
3520
EOF
 
3521
 
 
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.
 
3526
rm -f conftest.vals
 
3527
cat > conftest.hdr <<\EOF
 
3528
s/[\\&%]/\\&/g
 
3529
s%[\\$`]%\\&%g
 
3530
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
3531
s%ac_d%ac_u%gp
 
3532
s%ac_u%ac_e%gp
 
3533
EOF
 
3534
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
3535
rm -f conftest.hdr
 
3536
 
 
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]*%/* & */%
 
3542
EOF
 
3543
 
 
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.
 
3546
 
 
3547
rm -f conftest.tail
 
3548
while :
 
3549
do
 
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
 
3556
  echo 'CEOF
 
3557
  sed -f conftest.frag conftest.in > conftest.out
 
3558
  rm -f conftest.in
 
3559
  mv conftest.out conftest.in
 
3560
' >> $CONFIG_STATUS
 
3561
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
3562
  rm -f conftest.vals
 
3563
  mv conftest.tail conftest.vals
 
3564
done
 
3565
rm -f conftest.vals
 
3566
 
 
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
 
3571
  rm -f conftest.in
 
3572
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
3573
    echo "$ac_file is unchanged"
 
3574
    rm -f conftest.h
 
3575
  else
 
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"
 
3581
    fi
 
3582
    rm -f $ac_file
 
3583
    mv conftest.h $ac_file
 
3584
  fi
 
3585
fi; done
 
3586
 
 
3587
EOF
 
3588
cat >> $CONFIG_STATUS <<EOF
 
3589
 
 
3590
EOF
 
3591
cat >> $CONFIG_STATUS <<\EOF
 
3592
 
 
3593
exit 0
 
3594
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
 
3598