3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--enable-shared Build shared libraries"
17
--with-libnfslock[=DIR] Build libnfslock (and install in DIR)"
19
--with-mailgroup[=group] Run setgid (mail) to write to the mailspool"
21
# Initialize some variables set by options.
22
# The variables have the same names as the options, with
23
# dashes changed to underlines.
25
cache_file=./config.cache
34
program_transform_name=s,x,x,
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'
55
# Initialize some other variables.
58
SHELL=${CONFIG_SHELL-/bin/sh}
59
# Maximum number of lines to put in a shell here document.
66
# If the previous option needs an argument, assign it.
67
if test -n "$ac_prev"; then
68
eval "$ac_prev=\$ac_option"
74
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78
# Accept the important Cygnus configure options, so we can diagnose typos.
82
-bindir | --bindir | --bindi | --bind | --bin | --bi)
84
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85
bindir="$ac_optarg" ;;
87
-build | --build | --buil | --bui | --bu)
89
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
-cache-file | --cache-file | --cache-fil | --cache-fi \
93
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97
cache_file="$ac_optarg" ;;
99
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103
datadir="$ac_optarg" ;;
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; }
111
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112
eval "enable_${ac_feature}=no" ;;
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; }
120
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125
eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
136
-gas | --gas | --ga | --g)
137
# Obsolete; use --with-gas.
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.
144
Usage: configure [options] [host]
145
Options: [defaults in brackets after descriptions]
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
155
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
162
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163
--sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
190
if test -n "$ac_help"; then
191
echo "--enable and --with options recognized:$ac_help"
195
-host | --host | --hos | --ho)
197
-host=* | --host=* | --hos=* | --ho=*)
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" ;;
207
-infodir | --infodir | --infodi | --infod | --info | --inf)
209
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210
infodir="$ac_optarg" ;;
212
-libdir | --libdir | --libdi | --libd)
214
-libdir=* | --libdir=* | --libdi=* | --libd=*)
215
libdir="$ac_optarg" ;;
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" ;;
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" ;;
233
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236
mandir="$ac_optarg" ;;
239
# Obsolete; use --without-fp.
242
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
246
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
247
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
259
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262
prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
295
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
296
| -silent | --silent | --silen | --sile | --sil)
299
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303
sbindir="$ac_optarg" ;;
305
-sharedstatedir | --sharedstatedir | --sharedstatedi \
306
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307
| --sharedst | --shareds | --shared | --share | --shar \
309
ac_prev=sharedstatedir ;;
310
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314
sharedstatedir="$ac_optarg" ;;
316
-site | --site | --sit)
318
-site=* | --site=* | --sit=*)
321
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324
srcdir="$ac_optarg" ;;
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" ;;
333
-target | --target | --targe | --targ | --tar | --ta | --t)
335
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336
target="$ac_optarg" ;;
338
-v | -verbose | --verbose | --verbos | --verbo | --verb)
341
-version | --version | --versio | --versi | --vers)
342
echo "configure generated by autoconf version 2.13"
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; }
351
ac_package=`echo $ac_package| sed 's/-/_/g'`
356
eval "with_${ac_package}='$ac_optarg'" ;;
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; }
364
ac_package=`echo $ac_package| sed 's/-/_/g'`
365
eval "with_${ac_package}=no" ;;
368
# Obsolete; use --with-x.
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" ;;
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" ;;
385
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
401
if test -n "$ac_prev"; then
402
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
# File descriptor usage:
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
423
This file contains any messages produced by compilers while
424
running configure, to aid debugging if configure makes a mistake.
427
# Strip out --no-create and --no-recursion so they do not pile up.
428
# Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
467
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470
if test ! -r $srcdir/$ac_unique_file; then
474
ac_srcdir_defaulted=no
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; }
480
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
490
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
500
if test -r "$cache_file"; then
501
echo "loading cache $cache_file"
504
echo "creating cache $cache_file"
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
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
526
ac_n= ac_c='\c' ac_t=
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
539
if test -n "$CC"; then
540
ac_cv_prog_CC="$CC" # Let the user override the test.
542
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
544
for ac_dir in $ac_dummy; do
545
test -z "$ac_dir" && ac_dir=.
546
if test -f $ac_dir/$ac_word; then
555
if test -n "$CC"; then
556
echo "$ac_t""$CC" 1>&6
558
echo "$ac_t""no" 1>&6
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
569
if test -n "$CC"; then
570
ac_cv_prog_CC="$CC" # Let the user override the test.
572
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
596
set dummy "$ac_dir/$ac_word" "$@"
604
if test -n "$CC"; then
605
echo "$ac_t""$CC" 1>&6
607
echo "$ac_t""no" 1>&6
610
if test -z "$CC"; then
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
620
if test -n "$CC"; then
621
ac_cv_prog_CC="$CC" # Let the user override the test.
623
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
625
for ac_dir in $ac_dummy; do
626
test -z "$ac_dir" && ac_dir=.
627
if test -f $ac_dir/$ac_word; then
636
if test -n "$CC"; then
637
echo "$ac_t""$CC" 1>&6
639
echo "$ac_t""no" 1>&6
644
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
657
cat > conftest.$ac_ext << EOF
659
#line 660 "configure"
660
#include "confdefs.h"
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
670
ac_cv_prog_cc_cross=yes
673
echo "configure: failed program was:" >&5
674
cat conftest.$ac_ext >&5
675
ac_cv_prog_cc_works=no
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
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; }
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
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
699
cat > conftest.c <<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
711
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
713
if test $ac_cv_prog_gcc = yes; then
719
ac_test_CFLAGS="${CFLAGS+set}"
720
ac_save_CFLAGS="$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
727
echo 'void f(){}' > conftest.c
728
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
747
if test "$GCC" = yes; then
755
if test "$GCC" = "yes"; then
756
CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
760
INSTALL_TARGETS="install_static"
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"
773
CFLAGS="$CFLAGS -fPIC -D_REENTRANT"
775
INSTALL_TARGETS="install_shared"
784
echo "$ac_t""$SHARED" 1>&6
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"
797
test "$withval" != "no" && nfslockdir="$withval"
799
TARGETS="$TARGETS nfslib"
800
INSTALL_TARGETS="$INSTALL_TARGETS install_nfslib"
809
echo "$ac_t""$LIBNFSLOCK" 1>&6
811
# Check whether --with-mailgroup or --without-mailgroup was given.
812
if test "${with_mailgroup+set}" = set; then
813
withval="$with_mailgroup"
825
if test "$MAILGROUP" != ""; then
826
cat >> confdefs.h <<EOF
827
#define MAILGROUP "$MAILGROUP"
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
842
ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
845
ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
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"
861
LDCONFIG="$ac_cv_path_LDCONFIG"
862
if test -n "$LDCONFIG"; then
863
echo "$ac_t""$LDCONFIG" 1>&6
865
echo "$ac_t""no" 1>&6
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
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
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.
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"
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
897
echo "configure: failed program was:" >&5
898
cat conftest.$ac_ext >&5
900
CPP="${CC-cc} -E -traditional-cpp"
901
cat > conftest.$ac_ext <<EOF
902
#line 903 "configure"
903
#include "confdefs.h"
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
914
echo "configure: failed program was:" >&5
915
cat conftest.$ac_ext >&5
917
CPP="${CC-cc} -nologo -E"
918
cat > conftest.$ac_ext <<EOF
919
#line 920 "configure"
920
#include "confdefs.h"
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
931
echo "configure: failed program was:" >&5
932
cat conftest.$ac_ext >&5
941
ac_cv_prog_CPP="$CPP"
943
CPP="$ac_cv_prog_CPP"
945
ac_cv_prog_CPP="$CPP"
947
echo "$ac_t""$CPP" 1>&6
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
954
cat > conftest.$ac_ext <<EOF
955
#line 956 "configure"
956
#include "confdefs.h"
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
967
ac_cv_header_stdc=yes
970
echo "configure: failed program was:" >&5
971
cat conftest.$ac_ext >&5
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"
984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
985
egrep "memchr" >/dev/null 2>&1; then
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"
1002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1003
egrep "free" >/dev/null 2>&1; then
1007
ac_cv_header_stdc=no
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
1018
cat > conftest.$ac_ext <<EOF
1019
#line 1020 "configure"
1020
#include "confdefs.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);
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
1034
echo "configure: failed program was:" >&5
1035
cat conftest.$ac_ext >&5
1037
ac_cv_header_stdc=no
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
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
1066
cat > conftest.$ac_ext <<EOF
1067
#line 1068 "configure"
1068
#include "confdefs.h"
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
1076
eval "ac_cv_header_$ac_safe=yes"
1079
echo "configure: failed program was:" >&5
1080
cat conftest.$ac_ext >&5
1082
eval "ac_cv_header_$ac_safe=no"
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
1094
echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
1133
if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135
eval "ac_cv_func_$ac_func=yes"
1137
echo "configure: failed program was:" >&5
1138
cat conftest.$ac_ext >&5
1140
eval "ac_cv_func_$ac_func=no"
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
1153
echo "$ac_t""no" 1>&6
1158
if test "$ac_cv_header_paths_h" != "yes";
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
1165
if test -d $dir; then
1170
PATHMAILDIR="#define _PATH_MAILDIR \"$MAILSPOOL\""
1171
echo "$ac_t""$MAILSPOOL" 1>&6
1173
PATHMAILDIR="#include <paths.h>"
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.
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.
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.
1204
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1206
# `set' does not quote correctly, so add quotes (double-quote substitution
1207
# turns \\\\ into \\, and sed turns \\ into \).
1209
-e "s/'/'\\\\''/g" \
1210
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
1217
if cmp -s $cache_file confcache; then
1220
if test -w $cache_file; then
1221
echo "updating cache $cache_file"
1222
cat confcache > $cache_file
1224
echo "not updating unwritable cache $cache_file"
1229
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1231
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1232
# Let make expand exec_prefix.
1233
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
1242
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1244
DEFS=-DHAVE_CONFIG_H
1246
# Without the "./", some shells look in PATH for config.status.
1247
: ${CONFIG_STATUS=./config.status}
1249
echo creating $CONFIG_STATUS
1250
rm -f $CONFIG_STATUS
1251
cat > $CONFIG_STATUS <<EOF
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`:
1258
# $0 $ac_configure_args
1260
# Compiler output produced by configure, useful for debugging
1261
# configure, is in ./config.log if it exists.
1263
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
1273
-help | --help | --hel | --he | --h)
1274
echo "\$ac_cs_usage"; exit 0 ;;
1275
*) echo "\$ac_cs_usage"; exit 1 ;;
1279
ac_given_srcdir=$srcdir
1281
trap 'rm -fr `echo "\
1284
autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1286
cat >> $CONFIG_STATUS <<EOF
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
1294
s%@CFLAGS@%$CFLAGS%g
1295
s%@CPPFLAGS@%$CPPFLAGS%g
1296
s%@CXXFLAGS@%$CXXFLAGS%g
1297
s%@FFLAGS@%$FFLAGS%g
1299
s%@LDFLAGS@%$LDFLAGS%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
1317
s%@SHARED@%$SHARED%g
1318
s%@LIBNFSLOCK@%$LIBNFSLOCK%g
1319
s%@MAILGROUP@%$MAILGROUP%g
1320
s%@LDCONFIG@%$LDCONFIG%g
1322
s%@PATHMAILDIR@%$PATHMAILDIR%g
1323
s%@TARGETS@%$TARGETS%g
1324
s%@INSTALL_TARGETS@%$INSTALL_TARGETS%g
1325
s%@nfslockdir@%$nfslockdir%g
1330
cat >> $CONFIG_STATUS <<\EOF
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.
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
1344
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1346
if test ! -s conftest.s$ac_file; then
1348
rm -f conftest.s$ac_file
1350
if test -z "$ac_sed_cmds"; then
1351
ac_sed_cmds="sed -f conftest.s$ac_file"
1353
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1355
ac_file=`expr $ac_file + 1`
1357
ac_end=`expr $ac_end + $ac_max_sed_cmds`
1360
if test -z "$ac_sed_cmds"; then
1365
cat >> $CONFIG_STATUS <<EOF
1367
CONFIG_FILES=\${CONFIG_FILES-"\
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".
1376
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1377
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1378
*) ac_file_in="${ac_file}.in" ;;
1381
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
1392
ac_dir_suffix= ac_dots=
1395
case "$ac_given_srcdir" in
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" ;;
1401
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1402
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1406
echo creating "$ac_file"
1408
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1410
*Makefile*) ac_comsub="1i\\
1411
# $configure_input" ;;
1415
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
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.
1427
# ac_d sets the value in "#define NAME VALUE" lines.
1428
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1429
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1432
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1433
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1434
ac_uB='\([ ]\)%\1#\2define\3'
1437
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1438
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1439
ac_eB='$%\1#\2define\3'
1443
if test "${CONFIG_HEADERS+set}" != set; then
1445
cat >> $CONFIG_STATUS <<EOF
1446
CONFIG_HEADERS="autoconf.h"
1448
cat >> $CONFIG_STATUS <<\EOF
1450
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1451
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
1458
echo creating $ac_file
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
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.
1471
cat > conftest.hdr <<\EOF
1474
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1478
sed -n -f conftest.hdr confdefs.h > conftest.vals
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]*%/* & */%
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.
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
1501
sed -f conftest.frag conftest.in > conftest.out
1503
mv conftest.out conftest.in
1505
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1507
mv conftest.tail conftest.vals
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
1516
if cmp -s $ac_file conftest.h 2>/dev/null; then
1517
echo "$ac_file is unchanged"
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"
1527
mv conftest.h $ac_file
1532
cat >> $CONFIG_STATUS <<EOF
1535
cat >> $CONFIG_STATUS <<\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