~ubuntu-branches/ubuntu/quantal/liblockfile/quantal-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Miquel van Smoorenburg
  • Date: 2001-04-06 09:53:32 UTC
  • Revision ID: james.westby@ubuntu.com-20010406095332-xtysb4vtpotoa4fx
Tags: 1.03
* Some more manpage updates
* Set priority for liblockfile1 to "important" (closes: #92551)

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
  --enable-shared         Build shared libraries"
 
16
ac_help="$ac_help
 
17
  --with-libnfslock[=DIR] Build libnfslock (and install in DIR)"
 
18
ac_help="$ac_help
 
19
  --with-mailgroup[=group] Run setgid (mail) to write to the mailspool"
 
20
 
 
21
# Initialize some variables set by options.
 
22
# The variables have the same names as the options, with
 
23
# dashes changed to underlines.
 
24
build=NONE
 
25
cache_file=./config.cache
 
26
exec_prefix=NONE
 
27
host=NONE
 
28
no_create=
 
29
nonopt=NONE
 
30
no_recursion=
 
31
prefix=NONE
 
32
program_prefix=NONE
 
33
program_suffix=NONE
 
34
program_transform_name=s,x,x,
 
35
silent=
 
36
site=
 
37
srcdir=
 
38
target=NONE
 
39
verbose=
 
40
x_includes=NONE
 
41
x_libraries=NONE
 
42
bindir='${exec_prefix}/bin'
 
43
sbindir='${exec_prefix}/sbin'
 
44
libexecdir='${exec_prefix}/libexec'
 
45
datadir='${prefix}/share'
 
46
sysconfdir='${prefix}/etc'
 
47
sharedstatedir='${prefix}/com'
 
48
localstatedir='${prefix}/var'
 
49
libdir='${exec_prefix}/lib'
 
50
includedir='${prefix}/include'
 
51
oldincludedir='/usr/include'
 
52
infodir='${prefix}/info'
 
53
mandir='${prefix}/man'
 
54
 
 
55
# Initialize some other variables.
 
56
subdirs=
 
57
MFLAGS= MAKEFLAGS=
 
58
SHELL=${CONFIG_SHELL-/bin/sh}
 
59
# Maximum number of lines to put in a shell here document.
 
60
ac_max_here_lines=12
 
61
 
 
62
ac_prev=
 
63
for ac_option
 
64
do
 
65
 
 
66
  # If the previous option needs an argument, assign it.
 
67
  if test -n "$ac_prev"; then
 
68
    eval "$ac_prev=\$ac_option"
 
69
    ac_prev=
 
70
    continue
 
71
  fi
 
72
 
 
73
  case "$ac_option" in
 
74
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
75
  *) ac_optarg= ;;
 
76
  esac
 
77
 
 
78
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
79
 
 
80
  case "$ac_option" in
 
81
 
 
82
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
83
    ac_prev=bindir ;;
 
84
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
85
    bindir="$ac_optarg" ;;
 
86
 
 
87
  -build | --build | --buil | --bui | --bu)
 
88
    ac_prev=build ;;
 
89
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
90
    build="$ac_optarg" ;;
 
91
 
 
92
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
93
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
94
    ac_prev=cache_file ;;
 
95
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
96
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
97
    cache_file="$ac_optarg" ;;
 
98
 
 
99
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
100
    ac_prev=datadir ;;
 
101
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
102
  | --da=*)
 
103
    datadir="$ac_optarg" ;;
 
104
 
 
105
  -disable-* | --disable-*)
 
106
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
107
    # Reject names that are not valid shell variable names.
 
108
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
109
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
110
    fi
 
111
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
112
    eval "enable_${ac_feature}=no" ;;
 
113
 
 
114
  -enable-* | --enable-*)
 
115
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
116
    # Reject names that are not valid shell variable names.
 
117
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
118
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
119
    fi
 
120
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
121
    case "$ac_option" in
 
122
      *=*) ;;
 
123
      *) ac_optarg=yes ;;
 
124
    esac
 
125
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
126
 
 
127
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
128
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
129
  | --exec | --exe | --ex)
 
130
    ac_prev=exec_prefix ;;
 
131
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
132
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
133
  | --exec=* | --exe=* | --ex=*)
 
134
    exec_prefix="$ac_optarg" ;;
 
135
 
 
136
  -gas | --gas | --ga | --g)
 
137
    # Obsolete; use --with-gas.
 
138
    with_gas=yes ;;
 
139
 
 
140
  -help | --help | --hel | --he)
 
141
    # Omit some internal or obsolete options to make the list less imposing.
 
142
    # This message is too long to be a string in the A/UX 3.1 sh.
 
143
    cat << EOF
 
144
Usage: configure [options] [host]
 
145
Options: [defaults in brackets after descriptions]
 
146
Configuration:
 
147
  --cache-file=FILE       cache test results in FILE
 
148
  --help                  print this message
 
149
  --no-create             do not create output files
 
150
  --quiet, --silent       do not print \`checking...' messages
 
151
  --version               print the version of autoconf that created configure
 
152
Directory and file names:
 
153
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
154
                          [$ac_default_prefix]
 
155
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
156
                          [same as prefix]
 
157
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
158
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
159
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
160
  --datadir=DIR           read-only architecture-independent data in DIR
 
161
                          [PREFIX/share]
 
162
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
163
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
164
                          [PREFIX/com]
 
165
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
166
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
167
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
168
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
169
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
170
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
171
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
172
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
173
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
174
  --program-transform-name=PROGRAM
 
175
                          run sed PROGRAM on installed program names
 
176
EOF
 
177
    cat << EOF
 
178
Host type:
 
179
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
180
  --host=HOST             configure for HOST [guessed]
 
181
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
182
Features and packages:
 
183
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
184
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
185
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
186
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
187
  --x-includes=DIR        X include files are in DIR
 
188
  --x-libraries=DIR       X library files are in DIR
 
189
EOF
 
190
    if test -n "$ac_help"; then
 
191
      echo "--enable and --with options recognized:$ac_help"
 
192
    fi
 
193
    exit 0 ;;
 
194
 
 
195
  -host | --host | --hos | --ho)
 
196
    ac_prev=host ;;
 
197
  -host=* | --host=* | --hos=* | --ho=*)
 
198
    host="$ac_optarg" ;;
 
199
 
 
200
  -includedir | --includedir | --includedi | --included | --include \
 
201
  | --includ | --inclu | --incl | --inc)
 
202
    ac_prev=includedir ;;
 
203
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
204
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
205
    includedir="$ac_optarg" ;;
 
206
 
 
207
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
208
    ac_prev=infodir ;;
 
209
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
210
    infodir="$ac_optarg" ;;
 
211
 
 
212
  -libdir | --libdir | --libdi | --libd)
 
213
    ac_prev=libdir ;;
 
214
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
215
    libdir="$ac_optarg" ;;
 
216
 
 
217
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
218
  | --libexe | --libex | --libe)
 
219
    ac_prev=libexecdir ;;
 
220
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
221
  | --libexe=* | --libex=* | --libe=*)
 
222
    libexecdir="$ac_optarg" ;;
 
223
 
 
224
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
225
  | --localstate | --localstat | --localsta | --localst \
 
226
  | --locals | --local | --loca | --loc | --lo)
 
227
    ac_prev=localstatedir ;;
 
228
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
229
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
230
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
231
    localstatedir="$ac_optarg" ;;
 
232
 
 
233
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
234
    ac_prev=mandir ;;
 
235
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
236
    mandir="$ac_optarg" ;;
 
237
 
 
238
  -nfp | --nfp | --nf)
 
239
    # Obsolete; use --without-fp.
 
240
    with_fp=no ;;
 
241
 
 
242
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
243
  | --no-cr | --no-c)
 
244
    no_create=yes ;;
 
245
 
 
246
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
247
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
248
    no_recursion=yes ;;
 
249
 
 
250
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
251
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
252
  | --oldin | --oldi | --old | --ol | --o)
 
253
    ac_prev=oldincludedir ;;
 
254
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
255
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
256
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
257
    oldincludedir="$ac_optarg" ;;
 
258
 
 
259
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
260
    ac_prev=prefix ;;
 
261
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
262
    prefix="$ac_optarg" ;;
 
263
 
 
264
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
265
  | --program-pre | --program-pr | --program-p)
 
266
    ac_prev=program_prefix ;;
 
267
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
268
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
269
    program_prefix="$ac_optarg" ;;
 
270
 
 
271
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
272
  | --program-suf | --program-su | --program-s)
 
273
    ac_prev=program_suffix ;;
 
274
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
275
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
276
    program_suffix="$ac_optarg" ;;
 
277
 
 
278
  -program-transform-name | --program-transform-name \
 
279
  | --program-transform-nam | --program-transform-na \
 
280
  | --program-transform-n | --program-transform- \
 
281
  | --program-transform | --program-transfor \
 
282
  | --program-transfo | --program-transf \
 
283
  | --program-trans | --program-tran \
 
284
  | --progr-tra | --program-tr | --program-t)
 
285
    ac_prev=program_transform_name ;;
 
286
  -program-transform-name=* | --program-transform-name=* \
 
287
  | --program-transform-nam=* | --program-transform-na=* \
 
288
  | --program-transform-n=* | --program-transform-=* \
 
289
  | --program-transform=* | --program-transfor=* \
 
290
  | --program-transfo=* | --program-transf=* \
 
291
  | --program-trans=* | --program-tran=* \
 
292
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
293
    program_transform_name="$ac_optarg" ;;
 
294
 
 
295
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
296
  | -silent | --silent | --silen | --sile | --sil)
 
297
    silent=yes ;;
 
298
 
 
299
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
300
    ac_prev=sbindir ;;
 
301
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
302
  | --sbi=* | --sb=*)
 
303
    sbindir="$ac_optarg" ;;
 
304
 
 
305
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
306
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
307
  | --sharedst | --shareds | --shared | --share | --shar \
 
308
  | --sha | --sh)
 
309
    ac_prev=sharedstatedir ;;
 
310
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
311
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
312
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
313
  | --sha=* | --sh=*)
 
314
    sharedstatedir="$ac_optarg" ;;
 
315
 
 
316
  -site | --site | --sit)
 
317
    ac_prev=site ;;
 
318
  -site=* | --site=* | --sit=*)
 
319
    site="$ac_optarg" ;;
 
320
 
 
321
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
322
    ac_prev=srcdir ;;
 
323
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
324
    srcdir="$ac_optarg" ;;
 
325
 
 
326
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
327
  | --syscon | --sysco | --sysc | --sys | --sy)
 
328
    ac_prev=sysconfdir ;;
 
329
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
330
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
331
    sysconfdir="$ac_optarg" ;;
 
332
 
 
333
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
334
    ac_prev=target ;;
 
335
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
336
    target="$ac_optarg" ;;
 
337
 
 
338
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
339
    verbose=yes ;;
 
340
 
 
341
  -version | --version | --versio | --versi | --vers)
 
342
    echo "configure generated by autoconf version 2.13"
 
343
    exit 0 ;;
 
344
 
 
345
  -with-* | --with-*)
 
346
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
347
    # Reject names that are not valid shell variable names.
 
348
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
349
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
350
    fi
 
351
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
352
    case "$ac_option" in
 
353
      *=*) ;;
 
354
      *) ac_optarg=yes ;;
 
355
    esac
 
356
    eval "with_${ac_package}='$ac_optarg'" ;;
 
357
 
 
358
  -without-* | --without-*)
 
359
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
360
    # Reject names that are not valid shell variable names.
 
361
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
362
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
363
    fi
 
364
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
365
    eval "with_${ac_package}=no" ;;
 
366
 
 
367
  --x)
 
368
    # Obsolete; use --with-x.
 
369
    with_x=yes ;;
 
370
 
 
371
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
372
  | --x-incl | --x-inc | --x-in | --x-i)
 
373
    ac_prev=x_includes ;;
 
374
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
375
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
376
    x_includes="$ac_optarg" ;;
 
377
 
 
378
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
379
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
380
    ac_prev=x_libraries ;;
 
381
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
382
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
383
    x_libraries="$ac_optarg" ;;
 
384
 
 
385
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
386
    ;;
 
387
 
 
388
  *)
 
389
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
390
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
391
    fi
 
392
    if test "x$nonopt" != xNONE; then
 
393
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
394
    fi
 
395
    nonopt="$ac_option"
 
396
    ;;
 
397
 
 
398
  esac
 
399
done
 
400
 
 
401
if test -n "$ac_prev"; then
 
402
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
403
fi
 
404
 
 
405
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
406
 
 
407
# File descriptor usage:
 
408
# 0 standard input
 
409
# 1 file creation
 
410
# 2 errors and warnings
 
411
# 3 some systems may open it to /dev/tty
 
412
# 4 used on the Kubota Titan
 
413
# 6 checking for... messages and results
 
414
# 5 compiler messages saved in config.log
 
415
if test "$silent" = yes; then
 
416
  exec 6>/dev/null
 
417
else
 
418
  exec 6>&1
 
419
fi
 
420
exec 5>./config.log
 
421
 
 
422
echo "\
 
423
This file contains any messages produced by compilers while
 
424
running configure, to aid debugging if configure makes a mistake.
 
425
" 1>&5
 
426
 
 
427
# Strip out --no-create and --no-recursion so they do not pile up.
 
428
# Also quote any args containing shell metacharacters.
 
429
ac_configure_args=
 
430
for ac_arg
 
431
do
 
432
  case "$ac_arg" in
 
433
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
434
  | --no-cr | --no-c) ;;
 
435
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
436
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
437
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
438
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
439
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
440
  esac
 
441
done
 
442
 
 
443
# NLS nuisances.
 
444
# Only set these to C if already set.  These must not be set unconditionally
 
445
# because not all systems understand e.g. LANG=C (notably SCO).
 
446
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
447
# Non-C LC_CTYPE values break the ctype check.
 
448
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
449
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
450
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
451
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
452
 
 
453
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
454
rm -rf conftest* confdefs.h
 
455
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
456
echo > confdefs.h
 
457
 
 
458
# A filename unique to this package, relative to the directory that
 
459
# configure is in, which we can look for to find out if srcdir is correct.
 
460
ac_unique_file=lockfile.c
 
461
 
 
462
# Find the source files, if location was not specified.
 
463
if test -z "$srcdir"; then
 
464
  ac_srcdir_defaulted=yes
 
465
  # Try the directory containing this script, then its parent.
 
466
  ac_prog=$0
 
467
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
468
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
469
  srcdir=$ac_confdir
 
470
  if test ! -r $srcdir/$ac_unique_file; then
 
471
    srcdir=..
 
472
  fi
 
473
else
 
474
  ac_srcdir_defaulted=no
 
475
fi
 
476
if test ! -r $srcdir/$ac_unique_file; then
 
477
  if test "$ac_srcdir_defaulted" = yes; then
 
478
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
479
  else
 
480
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
481
  fi
 
482
fi
 
483
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
484
 
 
485
# Prefer explicitly selected file to automatically selected ones.
 
486
if test -z "$CONFIG_SITE"; then
 
487
  if test "x$prefix" != xNONE; then
 
488
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
489
  else
 
490
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
491
  fi
 
492
fi
 
493
for ac_site_file in $CONFIG_SITE; do
 
494
  if test -r "$ac_site_file"; then
 
495
    echo "loading site script $ac_site_file"
 
496
    . "$ac_site_file"
 
497
  fi
 
498
done
 
499
 
 
500
if test -r "$cache_file"; then
 
501
  echo "loading cache $cache_file"
 
502
  . $cache_file
 
503
else
 
504
  echo "creating cache $cache_file"
 
505
  > $cache_file
 
506
fi
 
507
 
 
508
ac_ext=c
 
509
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
510
ac_cpp='$CPP $CPPFLAGS'
 
511
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
512
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
513
cross_compiling=$ac_cv_prog_cc_cross
 
514
 
 
515
ac_exeext=
 
516
ac_objext=o
 
517
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
518
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
519
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
520
    ac_n= ac_c='
 
521
' ac_t='        '
 
522
  else
 
523
    ac_n=-n ac_c= ac_t=
 
524
  fi
 
525
else
 
526
  ac_n= ac_c='\c' ac_t=
 
527
fi
 
528
 
 
529
 
 
530
 
 
531
# From configure.in Revision: 1.0 
 
532
# Extract the first word of "gcc", so it can be a program name with args.
 
533
set dummy gcc; ac_word=$2
 
534
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
535
echo "configure:536: checking for $ac_word" >&5
 
536
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
537
  echo $ac_n "(cached) $ac_c" 1>&6
 
538
else
 
539
  if test -n "$CC"; then
 
540
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
541
else
 
542
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
543
  ac_dummy="$PATH"
 
544
  for ac_dir in $ac_dummy; do
 
545
    test -z "$ac_dir" && ac_dir=.
 
546
    if test -f $ac_dir/$ac_word; then
 
547
      ac_cv_prog_CC="gcc"
 
548
      break
 
549
    fi
 
550
  done
 
551
  IFS="$ac_save_ifs"
 
552
fi
 
553
fi
 
554
CC="$ac_cv_prog_CC"
 
555
if test -n "$CC"; then
 
556
  echo "$ac_t""$CC" 1>&6
 
557
else
 
558
  echo "$ac_t""no" 1>&6
 
559
fi
 
560
 
 
561
if test -z "$CC"; then
 
562
  # Extract the first word of "cc", so it can be a program name with args.
 
563
set dummy cc; ac_word=$2
 
564
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
565
echo "configure:566: checking for $ac_word" >&5
 
566
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
567
  echo $ac_n "(cached) $ac_c" 1>&6
 
568
else
 
569
  if test -n "$CC"; then
 
570
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
571
else
 
572
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
573
  ac_prog_rejected=no
 
574
  ac_dummy="$PATH"
 
575
  for ac_dir in $ac_dummy; do
 
576
    test -z "$ac_dir" && ac_dir=.
 
577
    if test -f $ac_dir/$ac_word; then
 
578
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
579
        ac_prog_rejected=yes
 
580
        continue
 
581
      fi
 
582
      ac_cv_prog_CC="cc"
 
583
      break
 
584
    fi
 
585
  done
 
586
  IFS="$ac_save_ifs"
 
587
if test $ac_prog_rejected = yes; then
 
588
  # We found a bogon in the path, so make sure we never use it.
 
589
  set dummy $ac_cv_prog_CC
 
590
  shift
 
591
  if test $# -gt 0; then
 
592
    # We chose a different compiler from the bogus one.
 
593
    # However, it has the same basename, so the bogon will be chosen
 
594
    # first if we set CC to just the basename; use the full file name.
 
595
    shift
 
596
    set dummy "$ac_dir/$ac_word" "$@"
 
597
    shift
 
598
    ac_cv_prog_CC="$@"
 
599
  fi
 
600
fi
 
601
fi
 
602
fi
 
603
CC="$ac_cv_prog_CC"
 
604
if test -n "$CC"; then
 
605
  echo "$ac_t""$CC" 1>&6
 
606
else
 
607
  echo "$ac_t""no" 1>&6
 
608
fi
 
609
 
 
610
  if test -z "$CC"; then
 
611
    case "`uname -s`" in
 
612
    *win32* | *WIN32*)
 
613
      # Extract the first word of "cl", so it can be a program name with args.
 
614
set dummy cl; ac_word=$2
 
615
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
616
echo "configure:617: checking for $ac_word" >&5
 
617
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
618
  echo $ac_n "(cached) $ac_c" 1>&6
 
619
else
 
620
  if test -n "$CC"; then
 
621
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
622
else
 
623
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
624
  ac_dummy="$PATH"
 
625
  for ac_dir in $ac_dummy; do
 
626
    test -z "$ac_dir" && ac_dir=.
 
627
    if test -f $ac_dir/$ac_word; then
 
628
      ac_cv_prog_CC="cl"
 
629
      break
 
630
    fi
 
631
  done
 
632
  IFS="$ac_save_ifs"
 
633
fi
 
634
fi
 
635
CC="$ac_cv_prog_CC"
 
636
if test -n "$CC"; then
 
637
  echo "$ac_t""$CC" 1>&6
 
638
else
 
639
  echo "$ac_t""no" 1>&6
 
640
fi
 
641
 ;;
 
642
    esac
 
643
  fi
 
644
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
645
fi
 
646
 
 
647
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
648
echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
649
 
 
650
ac_ext=c
 
651
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
652
ac_cpp='$CPP $CPPFLAGS'
 
653
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
654
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
655
cross_compiling=$ac_cv_prog_cc_cross
 
656
 
 
657
cat > conftest.$ac_ext << EOF
 
658
 
 
659
#line 660 "configure"
 
660
#include "confdefs.h"
 
661
 
 
662
main(){return(0);}
 
663
EOF
 
664
if { (eval echo configure:665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
665
  ac_cv_prog_cc_works=yes
 
666
  # If we can't run a trivial program, we are probably using a cross compiler.
 
667
  if (./conftest; exit) 2>/dev/null; then
 
668
    ac_cv_prog_cc_cross=no
 
669
  else
 
670
    ac_cv_prog_cc_cross=yes
 
671
  fi
 
672
else
 
673
  echo "configure: failed program was:" >&5
 
674
  cat conftest.$ac_ext >&5
 
675
  ac_cv_prog_cc_works=no
 
676
fi
 
677
rm -fr conftest*
 
678
ac_ext=c
 
679
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
680
ac_cpp='$CPP $CPPFLAGS'
 
681
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
682
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
683
cross_compiling=$ac_cv_prog_cc_cross
 
684
 
 
685
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
686
if test $ac_cv_prog_cc_works = no; then
 
687
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
688
fi
 
689
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
690
echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
691
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
692
cross_compiling=$ac_cv_prog_cc_cross
 
693
 
 
694
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
695
echo "configure:696: checking whether we are using GNU C" >&5
 
696
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
697
  echo $ac_n "(cached) $ac_c" 1>&6
 
698
else
 
699
  cat > conftest.c <<EOF
 
700
#ifdef __GNUC__
 
701
  yes;
 
702
#endif
 
703
EOF
 
704
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
705
  ac_cv_prog_gcc=yes
 
706
else
 
707
  ac_cv_prog_gcc=no
 
708
fi
 
709
fi
 
710
 
 
711
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
712
 
 
713
if test $ac_cv_prog_gcc = yes; then
 
714
  GCC=yes
 
715
else
 
716
  GCC=
 
717
fi
 
718
 
 
719
ac_test_CFLAGS="${CFLAGS+set}"
 
720
ac_save_CFLAGS="$CFLAGS"
 
721
CFLAGS=
 
722
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
723
echo "configure:724: checking whether ${CC-cc} accepts -g" >&5
 
724
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
725
  echo $ac_n "(cached) $ac_c" 1>&6
 
726
else
 
727
  echo 'void f(){}' > conftest.c
 
728
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
729
  ac_cv_prog_cc_g=yes
 
730
else
 
731
  ac_cv_prog_cc_g=no
 
732
fi
 
733
rm -f conftest*
 
734
 
 
735
fi
 
736
 
 
737
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
738
if test "$ac_test_CFLAGS" = set; then
 
739
  CFLAGS="$ac_save_CFLAGS"
 
740
elif test $ac_cv_prog_cc_g = yes; then
 
741
  if test "$GCC" = yes; then
 
742
    CFLAGS="-g -O2"
 
743
  else
 
744
    CFLAGS="-g"
 
745
  fi
 
746
else
 
747
  if test "$GCC" = yes; then
 
748
    CFLAGS="-O2"
 
749
  else
 
750
    CFLAGS=
 
751
  fi
 
752
fi
 
753
 
 
754
 
 
755
if test "$GCC" = "yes"; then
 
756
    CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
 
757
fi
 
758
 
 
759
TARGETS="static"
 
760
INSTALL_TARGETS="install_static"
 
761
 
 
762
echo $ac_n "checking build shared libs""... $ac_c" 1>&6
 
763
echo "configure:764: checking build shared libs" >&5
 
764
# Check whether --enable-shared or --disable-shared was given.
 
765
if test "${enable_shared+set}" = set; then
 
766
  enableval="$enable_shared"
 
767
   case "$enableval" in
 
768
    no)
 
769
        SHARED=no
 
770
        ;;
 
771
    *)
 
772
        SHARED=yes
 
773
        CFLAGS="$CFLAGS -fPIC -D_REENTRANT"
 
774
        TARGETS="shared"
 
775
        INSTALL_TARGETS="install_shared"
 
776
        ;;
 
777
  esac 
 
778
else
 
779
  SHARED=no
 
780
 
 
781
fi
 
782
 
 
783
 
 
784
echo "$ac_t""$SHARED" 1>&6
 
785
 
 
786
nfslockdir="$libdir"
 
787
echo $ac_n "checking build libnfslock""... $ac_c" 1>&6
 
788
echo "configure:789: checking build libnfslock" >&5
 
789
# Check whether --with-libnfslock or --without-libnfslock was given.
 
790
if test "${with_libnfslock+set}" = set; then
 
791
  withval="$with_libnfslock"
 
792
   case "$withval" in
 
793
    no)
 
794
        LIBNFSLOCK=no
 
795
        ;;
 
796
    *)
 
797
        test "$withval" != "no" && nfslockdir="$withval"
 
798
        LIBNFSLOCK=yes
 
799
        TARGETS="$TARGETS nfslib"
 
800
        INSTALL_TARGETS="$INSTALL_TARGETS install_nfslib"
 
801
        ;;
 
802
  esac 
 
803
else
 
804
  LIBNFSLOCK=no
 
805
 
 
806
fi
 
807
 
 
808
 
 
809
echo "$ac_t""$LIBNFSLOCK" 1>&6
 
810
 
 
811
# Check whether --with-mailgroup or --without-mailgroup was given.
 
812
if test "${with_mailgroup+set}" = set; then
 
813
  withval="$with_mailgroup"
 
814
   case "$withval" in
 
815
    yes)
 
816
        MAILGROUP="mail"
 
817
        ;;
 
818
    *)
 
819
        MAILGROUP="$withval"
 
820
        ;;
 
821
  esac 
 
822
 
 
823
fi
 
824
 
 
825
if test "$MAILGROUP" != ""; then
 
826
    cat >> confdefs.h <<EOF
 
827
#define MAILGROUP "$MAILGROUP"
 
828
EOF
 
829
 
 
830
fi
 
831
 
 
832
 
 
833
# Extract the first word of "ldconfig", so it can be a program name with args.
 
834
set dummy ldconfig; ac_word=$2
 
835
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
836
echo "configure:837: checking for $ac_word" >&5
 
837
if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
 
838
  echo $ac_n "(cached) $ac_c" 1>&6
 
839
else
 
840
  case "$LDCONFIG" in
 
841
  /*)
 
842
  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
 
843
  ;;
 
844
  ?:/*)                  
 
845
  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
 
846
  ;;
 
847
  *)
 
848
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
849
  ac_dummy="$PATH:/sbin:/usr/sbin"
 
850
  for ac_dir in $ac_dummy; do 
 
851
    test -z "$ac_dir" && ac_dir=.
 
852
    if test -f $ac_dir/$ac_word; then
 
853
      ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
 
854
      break
 
855
    fi
 
856
  done
 
857
  IFS="$ac_save_ifs"
 
858
  ;;
 
859
esac
 
860
fi
 
861
LDCONFIG="$ac_cv_path_LDCONFIG"
 
862
if test -n "$LDCONFIG"; then
 
863
  echo "$ac_t""$LDCONFIG" 1>&6
 
864
else
 
865
  echo "$ac_t""no" 1>&6
 
866
fi
 
867
 
 
868
 
 
869
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
870
echo "configure:871: checking how to run the C preprocessor" >&5
 
871
# On Suns, sometimes $CPP names a directory.
 
872
if test -n "$CPP" && test -d "$CPP"; then
 
873
  CPP=
 
874
fi
 
875
if test -z "$CPP"; then
 
876
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
877
  echo $ac_n "(cached) $ac_c" 1>&6
 
878
else
 
879
    # This must be in double quotes, not single quotes, because CPP may get
 
880
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
881
  CPP="${CC-cc} -E"
 
882
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
883
  # not just through cpp.
 
884
  cat > conftest.$ac_ext <<EOF
 
885
#line 886 "configure"
 
886
#include "confdefs.h"
 
887
#include <assert.h>
 
888
Syntax Error
 
889
EOF
 
890
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
891
{ (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
892
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
893
if test -z "$ac_err"; then
 
894
  :
 
895
else
 
896
  echo "$ac_err" >&5
 
897
  echo "configure: failed program was:" >&5
 
898
  cat conftest.$ac_ext >&5
 
899
  rm -rf conftest*
 
900
  CPP="${CC-cc} -E -traditional-cpp"
 
901
  cat > conftest.$ac_ext <<EOF
 
902
#line 903 "configure"
 
903
#include "confdefs.h"
 
904
#include <assert.h>
 
905
Syntax Error
 
906
EOF
 
907
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
908
{ (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
909
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
910
if test -z "$ac_err"; then
 
911
  :
 
912
else
 
913
  echo "$ac_err" >&5
 
914
  echo "configure: failed program was:" >&5
 
915
  cat conftest.$ac_ext >&5
 
916
  rm -rf conftest*
 
917
  CPP="${CC-cc} -nologo -E"
 
918
  cat > conftest.$ac_ext <<EOF
 
919
#line 920 "configure"
 
920
#include "confdefs.h"
 
921
#include <assert.h>
 
922
Syntax Error
 
923
EOF
 
924
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
925
{ (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
926
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
927
if test -z "$ac_err"; then
 
928
  :
 
929
else
 
930
  echo "$ac_err" >&5
 
931
  echo "configure: failed program was:" >&5
 
932
  cat conftest.$ac_ext >&5
 
933
  rm -rf conftest*
 
934
  CPP=/lib/cpp
 
935
fi
 
936
rm -f conftest*
 
937
fi
 
938
rm -f conftest*
 
939
fi
 
940
rm -f conftest*
 
941
  ac_cv_prog_CPP="$CPP"
 
942
fi
 
943
  CPP="$ac_cv_prog_CPP"
 
944
else
 
945
  ac_cv_prog_CPP="$CPP"
 
946
fi
 
947
echo "$ac_t""$CPP" 1>&6
 
948
 
 
949
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
950
echo "configure:951: checking for ANSI C header files" >&5
 
951
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
952
  echo $ac_n "(cached) $ac_c" 1>&6
 
953
else
 
954
  cat > conftest.$ac_ext <<EOF
 
955
#line 956 "configure"
 
956
#include "confdefs.h"
 
957
#include <stdlib.h>
 
958
#include <stdarg.h>
 
959
#include <string.h>
 
960
#include <float.h>
 
961
EOF
 
962
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
963
{ (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
964
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
965
if test -z "$ac_err"; then
 
966
  rm -rf conftest*
 
967
  ac_cv_header_stdc=yes
 
968
else
 
969
  echo "$ac_err" >&5
 
970
  echo "configure: failed program was:" >&5
 
971
  cat conftest.$ac_ext >&5
 
972
  rm -rf conftest*
 
973
  ac_cv_header_stdc=no
 
974
fi
 
975
rm -f conftest*
 
976
 
 
977
if test $ac_cv_header_stdc = yes; then
 
978
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
979
cat > conftest.$ac_ext <<EOF
 
980
#line 981 "configure"
 
981
#include "confdefs.h"
 
982
#include <string.h>
 
983
EOF
 
984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
985
  egrep "memchr" >/dev/null 2>&1; then
 
986
  :
 
987
else
 
988
  rm -rf conftest*
 
989
  ac_cv_header_stdc=no
 
990
fi
 
991
rm -f conftest*
 
992
 
 
993
fi
 
994
 
 
995
if test $ac_cv_header_stdc = yes; then
 
996
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
997
cat > conftest.$ac_ext <<EOF
 
998
#line 999 "configure"
 
999
#include "confdefs.h"
 
1000
#include <stdlib.h>
 
1001
EOF
 
1002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1003
  egrep "free" >/dev/null 2>&1; then
 
1004
  :
 
1005
else
 
1006
  rm -rf conftest*
 
1007
  ac_cv_header_stdc=no
 
1008
fi
 
1009
rm -f conftest*
 
1010
 
 
1011
fi
 
1012
 
 
1013
if test $ac_cv_header_stdc = yes; then
 
1014
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1015
if test "$cross_compiling" = yes; then
 
1016
  :
 
1017
else
 
1018
  cat > conftest.$ac_ext <<EOF
 
1019
#line 1020 "configure"
 
1020
#include "confdefs.h"
 
1021
#include <ctype.h>
 
1022
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1023
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1024
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1025
int main () { int i; for (i = 0; i < 256; i++)
 
1026
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1027
exit (0); }
 
1028
 
 
1029
EOF
 
1030
if { (eval echo configure:1031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1031
then
 
1032
  :
 
1033
else
 
1034
  echo "configure: failed program was:" >&5
 
1035
  cat conftest.$ac_ext >&5
 
1036
  rm -fr conftest*
 
1037
  ac_cv_header_stdc=no
 
1038
fi
 
1039
rm -fr conftest*
 
1040
fi
 
1041
 
 
1042
fi
 
1043
fi
 
1044
 
 
1045
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1046
if test $ac_cv_header_stdc = yes; then
 
1047
  cat >> confdefs.h <<\EOF
 
1048
#define STDC_HEADERS 1
 
1049
EOF
 
1050
 
 
1051
fi
 
1052
 
 
1053
 
 
1054
for ac_hdr in \
 
1055
        getopt.h \
 
1056
        paths.h \
 
1057
        sys/param.h
 
1058
 
 
1059
do
 
1060
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1061
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1062
echo "configure:1063: checking for $ac_hdr" >&5
 
1063
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1064
  echo $ac_n "(cached) $ac_c" 1>&6
 
1065
else
 
1066
  cat > conftest.$ac_ext <<EOF
 
1067
#line 1068 "configure"
 
1068
#include "confdefs.h"
 
1069
#include <$ac_hdr>
 
1070
EOF
 
1071
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1072
{ (eval echo configure:1073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1073
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1074
if test -z "$ac_err"; then
 
1075
  rm -rf conftest*
 
1076
  eval "ac_cv_header_$ac_safe=yes"
 
1077
else
 
1078
  echo "$ac_err" >&5
 
1079
  echo "configure: failed program was:" >&5
 
1080
  cat conftest.$ac_ext >&5
 
1081
  rm -rf conftest*
 
1082
  eval "ac_cv_header_$ac_safe=no"
 
1083
fi
 
1084
rm -f conftest*
 
1085
fi
 
1086
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1087
  echo "$ac_t""yes" 1>&6
 
1088
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1089
  cat >> confdefs.h <<EOF
 
1090
#define $ac_tr_hdr 1
 
1091
EOF
 
1092
 
 
1093
else
 
1094
  echo "$ac_t""no" 1>&6
 
1095
fi
 
1096
done
 
1097
 
 
1098
 
 
1099
for ac_func in \
 
1100
        utime \
 
1101
        utimes \
 
1102
 
 
1103
do
 
1104
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1105
echo "configure:1106: checking for $ac_func" >&5
 
1106
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1107
  echo $ac_n "(cached) $ac_c" 1>&6
 
1108
else
 
1109
  cat > conftest.$ac_ext <<EOF
 
1110
#line 1111 "configure"
 
1111
#include "confdefs.h"
 
1112
/* System header to define __stub macros and hopefully few prototypes,
 
1113
    which can conflict with char $ac_func(); below.  */
 
1114
#include <assert.h>
 
1115
/* Override any gcc2 internal prototype to avoid an error.  */
 
1116
/* We use char because int might match the return type of a gcc2
 
1117
    builtin and then its argument prototype would still apply.  */
 
1118
char $ac_func();
 
1119
 
 
1120
int main() {
 
1121
 
 
1122
/* The GNU C library defines this for functions which it implements
 
1123
    to always fail with ENOSYS.  Some functions are actually named
 
1124
    something starting with __ and the normal name is an alias.  */
 
1125
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1126
choke me
 
1127
#else
 
1128
$ac_func();
 
1129
#endif
 
1130
 
 
1131
; return 0; }
 
1132
EOF
 
1133
if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1134
  rm -rf conftest*
 
1135
  eval "ac_cv_func_$ac_func=yes"
 
1136
else
 
1137
  echo "configure: failed program was:" >&5
 
1138
  cat conftest.$ac_ext >&5
 
1139
  rm -rf conftest*
 
1140
  eval "ac_cv_func_$ac_func=no"
 
1141
fi
 
1142
rm -f conftest*
 
1143
fi
 
1144
 
 
1145
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1146
  echo "$ac_t""yes" 1>&6
 
1147
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1148
  cat >> confdefs.h <<EOF
 
1149
#define $ac_tr_func 1
 
1150
EOF
 
1151
 
 
1152
else
 
1153
  echo "$ac_t""no" 1>&6
 
1154
fi
 
1155
done
 
1156
 
 
1157
 
 
1158
if test "$ac_cv_header_paths_h" != "yes";
 
1159
then
 
1160
        echo $ac_n "checking location of your mail spool""... $ac_c" 1>&6
 
1161
echo "configure:1162: checking location of your mail spool" >&5
 
1162
    MAILSPOOL=/var/spool/mail
 
1163
    for dir in /var/mail /var/spool/mail /usr/mail /usr/spool/mail
 
1164
    do
 
1165
        if test -d $dir; then
 
1166
            MAILSPOOL=$dir
 
1167
            break
 
1168
        fi
 
1169
    done
 
1170
    PATHMAILDIR="#define _PATH_MAILDIR \"$MAILSPOOL\""
 
1171
    echo "$ac_t""$MAILSPOOL" 1>&6
 
1172
else
 
1173
    PATHMAILDIR="#include <paths.h>"
 
1174
fi
 
1175
 
 
1176
 
 
1177
 
 
1178
 
 
1179
 
 
1180
 
 
1181
trap '' 1 2 15
 
1182
cat > confcache <<\EOF
 
1183
# This file is a shell script that caches the results of configure
 
1184
# tests run on this system so they can be shared between configure
 
1185
# scripts and configure runs.  It is not useful on other systems.
 
1186
# If it contains results you don't want to keep, you may remove or edit it.
 
1187
#
 
1188
# By default, configure uses ./config.cache as the cache file,
 
1189
# creating it if it does not exist already.  You can give configure
 
1190
# the --cache-file=FILE option to use a different cache file; that is
 
1191
# what configure does when it calls configure scripts in
 
1192
# subdirectories, so they share the cache.
 
1193
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
1194
# config.status only pays attention to the cache file if you give it the
 
1195
# --recheck option to rerun configure.
 
1196
#
 
1197
EOF
 
1198
# The following way of writing the cache mishandles newlines in values,
 
1199
# but we know of no workaround that is simple, portable, and efficient.
 
1200
# So, don't put newlines in cache variables' values.
 
1201
# Ultrix sh set writes to stderr and can't be redirected directly,
 
1202
# and sets the high bit in the cache file unless we assign to the vars.
 
1203
(set) 2>&1 |
 
1204
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
1205
  *ac_space=\ *)
 
1206
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
1207
    # turns \\\\ into \\, and sed turns \\ into \).
 
1208
    sed -n \
 
1209
      -e "s/'/'\\\\''/g" \
 
1210
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
1211
    ;;
 
1212
  *)
 
1213
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
1214
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
1215
    ;;
 
1216
  esac >> confcache
 
1217
if cmp -s $cache_file confcache; then
 
1218
  :
 
1219
else
 
1220
  if test -w $cache_file; then
 
1221
    echo "updating cache $cache_file"
 
1222
    cat confcache > $cache_file
 
1223
  else
 
1224
    echo "not updating unwritable cache $cache_file"
 
1225
  fi
 
1226
fi
 
1227
rm -f confcache
 
1228
 
 
1229
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
1230
 
 
1231
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1232
# Let make expand exec_prefix.
 
1233
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
1234
 
 
1235
# Any assignment to VPATH causes Sun make to only execute
 
1236
# the first set of double-colon rules, so remove it if not needed.
 
1237
# If there is a colon in the path, we need to keep it.
 
1238
if test "x$srcdir" = x.; then
 
1239
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
1240
fi
 
1241
 
 
1242
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
1243
 
 
1244
DEFS=-DHAVE_CONFIG_H
 
1245
 
 
1246
# Without the "./", some shells look in PATH for config.status.
 
1247
: ${CONFIG_STATUS=./config.status}
 
1248
 
 
1249
echo creating $CONFIG_STATUS
 
1250
rm -f $CONFIG_STATUS
 
1251
cat > $CONFIG_STATUS <<EOF
 
1252
#! /bin/sh
 
1253
# Generated automatically by configure.
 
1254
# Run this file to recreate the current configuration.
 
1255
# This directory was configured as follows,
 
1256
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1257
#
 
1258
# $0 $ac_configure_args
 
1259
#
 
1260
# Compiler output produced by configure, useful for debugging
 
1261
# configure, is in ./config.log if it exists.
 
1262
 
 
1263
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
1264
for ac_option
 
1265
do
 
1266
  case "\$ac_option" in
 
1267
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
1268
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
1269
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
1270
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
1271
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
1272
    exit 0 ;;
 
1273
  -help | --help | --hel | --he | --h)
 
1274
    echo "\$ac_cs_usage"; exit 0 ;;
 
1275
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
1276
  esac
 
1277
done
 
1278
 
 
1279
ac_given_srcdir=$srcdir
 
1280
 
 
1281
trap 'rm -fr `echo "\
 
1282
        ./Makefile \
 
1283
        ./maillock.h \
 
1284
 autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
1285
EOF
 
1286
cat >> $CONFIG_STATUS <<EOF
 
1287
 
 
1288
# Protect against being on the right side of a sed subst in config.status.
 
1289
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
1290
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
1291
$ac_vpsub
 
1292
$extrasub
 
1293
s%@SHELL@%$SHELL%g
 
1294
s%@CFLAGS@%$CFLAGS%g
 
1295
s%@CPPFLAGS@%$CPPFLAGS%g
 
1296
s%@CXXFLAGS@%$CXXFLAGS%g
 
1297
s%@FFLAGS@%$FFLAGS%g
 
1298
s%@DEFS@%$DEFS%g
 
1299
s%@LDFLAGS@%$LDFLAGS%g
 
1300
s%@LIBS@%$LIBS%g
 
1301
s%@exec_prefix@%$exec_prefix%g
 
1302
s%@prefix@%$prefix%g
 
1303
s%@program_transform_name@%$program_transform_name%g
 
1304
s%@bindir@%$bindir%g
 
1305
s%@sbindir@%$sbindir%g
 
1306
s%@libexecdir@%$libexecdir%g
 
1307
s%@datadir@%$datadir%g
 
1308
s%@sysconfdir@%$sysconfdir%g
 
1309
s%@sharedstatedir@%$sharedstatedir%g
 
1310
s%@localstatedir@%$localstatedir%g
 
1311
s%@libdir@%$libdir%g
 
1312
s%@includedir@%$includedir%g
 
1313
s%@oldincludedir@%$oldincludedir%g
 
1314
s%@infodir@%$infodir%g
 
1315
s%@mandir@%$mandir%g
 
1316
s%@CC@%$CC%g
 
1317
s%@SHARED@%$SHARED%g
 
1318
s%@LIBNFSLOCK@%$LIBNFSLOCK%g
 
1319
s%@MAILGROUP@%$MAILGROUP%g
 
1320
s%@LDCONFIG@%$LDCONFIG%g
 
1321
s%@CPP@%$CPP%g
 
1322
s%@PATHMAILDIR@%$PATHMAILDIR%g
 
1323
s%@TARGETS@%$TARGETS%g
 
1324
s%@INSTALL_TARGETS@%$INSTALL_TARGETS%g
 
1325
s%@nfslockdir@%$nfslockdir%g
 
1326
 
 
1327
CEOF
 
1328
EOF
 
1329
 
 
1330
cat >> $CONFIG_STATUS <<\EOF
 
1331
 
 
1332
# Split the substitutions into bite-sized pieces for seds with
 
1333
# small command number limits, like on Digital OSF/1 and HP-UX.
 
1334
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
1335
ac_file=1 # Number of current file.
 
1336
ac_beg=1 # First line for current file.
 
1337
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
1338
ac_more_lines=:
 
1339
ac_sed_cmds=""
 
1340
while $ac_more_lines; do
 
1341
  if test $ac_beg -gt 1; then
 
1342
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
1343
  else
 
1344
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
1345
  fi
 
1346
  if test ! -s conftest.s$ac_file; then
 
1347
    ac_more_lines=false
 
1348
    rm -f conftest.s$ac_file
 
1349
  else
 
1350
    if test -z "$ac_sed_cmds"; then
 
1351
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
1352
    else
 
1353
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
1354
    fi
 
1355
    ac_file=`expr $ac_file + 1`
 
1356
    ac_beg=$ac_end
 
1357
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
1358
  fi
 
1359
done
 
1360
if test -z "$ac_sed_cmds"; then
 
1361
  ac_sed_cmds=cat
 
1362
fi
 
1363
EOF
 
1364
 
 
1365
cat >> $CONFIG_STATUS <<EOF
 
1366
 
 
1367
CONFIG_FILES=\${CONFIG_FILES-"\
 
1368
        ./Makefile \
 
1369
        ./maillock.h \
 
1370
"}
 
1371
EOF
 
1372
cat >> $CONFIG_STATUS <<\EOF
 
1373
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
1374
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
1375
  case "$ac_file" in
 
1376
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
1377
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
1378
  *) ac_file_in="${ac_file}.in" ;;
 
1379
  esac
 
1380
 
 
1381
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
1382
 
 
1383
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
1384
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
1385
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
1386
    # The file is in a subdirectory.
 
1387
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
1388
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
1389
    # A "../" for each directory in $ac_dir_suffix.
 
1390
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
1391
  else
 
1392
    ac_dir_suffix= ac_dots=
 
1393
  fi
 
1394
 
 
1395
  case "$ac_given_srcdir" in
 
1396
  .)  srcdir=.
 
1397
      if test -z "$ac_dots"; then top_srcdir=.
 
1398
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
1399
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
1400
  *) # Relative path.
 
1401
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
1402
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
1403
  esac
 
1404
 
 
1405
 
 
1406
  echo creating "$ac_file"
 
1407
  rm -f "$ac_file"
 
1408
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
1409
  case "$ac_file" in
 
1410
  *Makefile*) ac_comsub="1i\\
 
1411
# $configure_input" ;;
 
1412
  *) ac_comsub= ;;
 
1413
  esac
 
1414
 
 
1415
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
1416
  sed -e "$ac_comsub
 
1417
s%@configure_input@%$configure_input%g
 
1418
s%@srcdir@%$srcdir%g
 
1419
s%@top_srcdir@%$top_srcdir%g
 
1420
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
1421
fi; done
 
1422
rm -f conftest.s*
 
1423
 
 
1424
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
1425
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
1426
#
 
1427
# ac_d sets the value in "#define NAME VALUE" lines.
 
1428
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
1429
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
1430
ac_dC='\3'
 
1431
ac_dD='%g'
 
1432
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
1433
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
1434
ac_uB='\([      ]\)%\1#\2define\3'
 
1435
ac_uC=' '
 
1436
ac_uD='\4%g'
 
1437
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
1438
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
1439
ac_eB='$%\1#\2define\3'
 
1440
ac_eC=' '
 
1441
ac_eD='%g'
 
1442
 
 
1443
if test "${CONFIG_HEADERS+set}" != set; then
 
1444
EOF
 
1445
cat >> $CONFIG_STATUS <<EOF
 
1446
  CONFIG_HEADERS="autoconf.h"
 
1447
EOF
 
1448
cat >> $CONFIG_STATUS <<\EOF
 
1449
fi
 
1450
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
1451
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
1452
  case "$ac_file" in
 
1453
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
1454
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
1455
  *) ac_file_in="${ac_file}.in" ;;
 
1456
  esac
 
1457
 
 
1458
  echo creating $ac_file
 
1459
 
 
1460
  rm -f conftest.frag conftest.in conftest.out
 
1461
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
1462
  cat $ac_file_inputs > conftest.in
 
1463
 
 
1464
EOF
 
1465
 
 
1466
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
1467
# the proper values into config.h.in to produce config.h.  And first:
 
1468
# Protect against being on the right side of a sed subst in config.status.
 
1469
# Protect against being in an unquoted here document in config.status.
 
1470
rm -f conftest.vals
 
1471
cat > conftest.hdr <<\EOF
 
1472
s/[\\&%]/\\&/g
 
1473
s%[\\$`]%\\&%g
 
1474
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
1475
s%ac_d%ac_u%gp
 
1476
s%ac_u%ac_e%gp
 
1477
EOF
 
1478
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
1479
rm -f conftest.hdr
 
1480
 
 
1481
# This sed command replaces #undef with comments.  This is necessary, for
 
1482
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
1483
# on some systems where configure will not decide to define it.
 
1484
cat >> conftest.vals <<\EOF
 
1485
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
1486
EOF
 
1487
 
 
1488
# Break up conftest.vals because some shells have a limit on
 
1489
# the size of here documents, and old seds have small limits too.
 
1490
 
 
1491
rm -f conftest.tail
 
1492
while :
 
1493
do
 
1494
  ac_lines=`grep -c . conftest.vals`
 
1495
  # grep -c gives empty output for an empty file on some AIX systems.
 
1496
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
1497
  # Write a limited-size here document to conftest.frag.
 
1498
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
1499
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
1500
  echo 'CEOF
 
1501
  sed -f conftest.frag conftest.in > conftest.out
 
1502
  rm -f conftest.in
 
1503
  mv conftest.out conftest.in
 
1504
' >> $CONFIG_STATUS
 
1505
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
1506
  rm -f conftest.vals
 
1507
  mv conftest.tail conftest.vals
 
1508
done
 
1509
rm -f conftest.vals
 
1510
 
 
1511
cat >> $CONFIG_STATUS <<\EOF
 
1512
  rm -f conftest.frag conftest.h
 
1513
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
1514
  cat conftest.in >> conftest.h
 
1515
  rm -f conftest.in
 
1516
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
1517
    echo "$ac_file is unchanged"
 
1518
    rm -f conftest.h
 
1519
  else
 
1520
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
1521
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
1522
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
1523
      # The file is in a subdirectory.
 
1524
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
1525
    fi
 
1526
    rm -f $ac_file
 
1527
    mv conftest.h $ac_file
 
1528
  fi
 
1529
fi; done
 
1530
 
 
1531
EOF
 
1532
cat >> $CONFIG_STATUS <<EOF
 
1533
 
 
1534
EOF
 
1535
cat >> $CONFIG_STATUS <<\EOF
 
1536
 
 
1537
exit 0
 
1538
EOF
 
1539
chmod +x $CONFIG_STATUS
 
1540
rm -fr confdefs* $ac_clean_files
 
1541
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
1542