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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-cnews=DIR        Specify C News source directory"
16ac_help="$ac_help
17  --with-inn=DIR          Specify INN source directory"
18ac_help="$ac_help
19  --enable-cancelfeed     Compile the cancelfeed program"
20
21# Initialize some variables set by options.
22# The variables have the same names as the options, with
23# dashes changed to underlines.
24build=NONE
25cache_file=./config.cache
26exec_prefix=NONE
27host=NONE
28no_create=
29nonopt=NONE
30no_recursion=
31prefix=NONE
32program_prefix=NONE
33program_suffix=NONE
34program_transform_name=s,x,x,
35silent=
36site=
37srcdir=
38target=NONE
39verbose=
40x_includes=NONE
41x_libraries=NONE
42bindir='${exec_prefix}/bin'
43sbindir='${exec_prefix}/sbin'
44libexecdir='${exec_prefix}/libexec'
45datadir='${prefix}/share'
46sysconfdir='${prefix}/etc'
47sharedstatedir='${prefix}/com'
48localstatedir='${prefix}/var'
49libdir='${exec_prefix}/lib'
50includedir='${prefix}/include'
51oldincludedir='/usr/include'
52infodir='${prefix}/info'
53mandir='${prefix}/man'
54
55# Initialize some other variables.
56subdirs=
57MFLAGS= MAKEFLAGS=
58SHELL=${CONFIG_SHELL-/bin/sh}
59# Maximum number of lines to put in a shell here document.
60ac_max_here_lines=12
61
62ac_prev=
63for ac_option
64do
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
144Usage: configure [options] [host]
145Options: [defaults in brackets after descriptions]
146Configuration:
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
152Directory 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
176EOF
177    cat << EOF
178Host 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]
182Features 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
189EOF
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
399done
400
401if test -n "$ac_prev"; then
402  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403fi
404
405trap '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
415if test "$silent" = yes; then
416  exec 6>/dev/null
417else
418  exec 6>&1
419fi
420exec 5>./config.log
421
422echo "\
423This file contains any messages produced by compilers while
424running 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.
429ac_configure_args=
430for ac_arg
431do
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
441done
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.
448if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
449if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451if 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.
454rm -rf conftest* confdefs.h
455# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456echo > 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.
460ac_unique_file=fastcancel.c
461
462# Find the source files, if location was not specified.
463if 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
473else
474  ac_srcdir_defaulted=no
475fi
476if 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
482fi
483srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
485# Prefer explicitly selected file to automatically selected ones.
486if 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
492fi
493for 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
498done
499
500if test -r "$cache_file"; then
501  echo "loading cache $cache_file"
502  . $cache_file
503else
504  echo "creating cache $cache_file"
505  > $cache_file
506fi
507
508ac_ext=c
509# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510ac_cpp='$CPP $CPPFLAGS'
511ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513cross_compiling=$ac_cv_prog_cc_cross
514
515ac_exeext=
516ac_objext=o
517if (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
525else
526  ac_n= ac_c='\c' ac_t=
527fi
528
529
530: $Id: configure.in,v 1.9 2001/02/16 21:59:38 olaf Exp $
531
532
533# Extract the first word of "gcc", so it can be a program name with args.
534set dummy gcc; ac_word=$2
535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
536echo "configure:537: checking for $ac_word" >&5
537if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
538  echo $ac_n "(cached) $ac_c" 1>&6
539else
540  if test -n "$CC"; then
541  ac_cv_prog_CC="$CC" # Let the user override the test.
542else
543  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
544  ac_dummy="$PATH"
545  for ac_dir in $ac_dummy; do
546    test -z "$ac_dir" && ac_dir=.
547    if test -f $ac_dir/$ac_word; then
548      ac_cv_prog_CC="gcc"
549      break
550    fi
551  done
552  IFS="$ac_save_ifs"
553fi
554fi
555CC="$ac_cv_prog_CC"
556if test -n "$CC"; then
557  echo "$ac_t""$CC" 1>&6
558else
559  echo "$ac_t""no" 1>&6
560fi
561
562if test -z "$CC"; then
563  # Extract the first word of "cc", so it can be a program name with args.
564set dummy cc; ac_word=$2
565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566echo "configure:567: checking for $ac_word" >&5
567if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568  echo $ac_n "(cached) $ac_c" 1>&6
569else
570  if test -n "$CC"; then
571  ac_cv_prog_CC="$CC" # Let the user override the test.
572else
573  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
574  ac_prog_rejected=no
575  ac_dummy="$PATH"
576  for ac_dir in $ac_dummy; do
577    test -z "$ac_dir" && ac_dir=.
578    if test -f $ac_dir/$ac_word; then
579      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
580        ac_prog_rejected=yes
581	continue
582      fi
583      ac_cv_prog_CC="cc"
584      break
585    fi
586  done
587  IFS="$ac_save_ifs"
588if test $ac_prog_rejected = yes; then
589  # We found a bogon in the path, so make sure we never use it.
590  set dummy $ac_cv_prog_CC
591  shift
592  if test $# -gt 0; then
593    # We chose a different compiler from the bogus one.
594    # However, it has the same basename, so the bogon will be chosen
595    # first if we set CC to just the basename; use the full file name.
596    shift
597    set dummy "$ac_dir/$ac_word" "$@"
598    shift
599    ac_cv_prog_CC="$@"
600  fi
601fi
602fi
603fi
604CC="$ac_cv_prog_CC"
605if test -n "$CC"; then
606  echo "$ac_t""$CC" 1>&6
607else
608  echo "$ac_t""no" 1>&6
609fi
610
611  if test -z "$CC"; then
612    case "`uname -s`" in
613    *win32* | *WIN32*)
614      # Extract the first word of "cl", so it can be a program name with args.
615set dummy cl; ac_word=$2
616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617echo "configure:618: checking for $ac_word" >&5
618if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619  echo $ac_n "(cached) $ac_c" 1>&6
620else
621  if test -n "$CC"; then
622  ac_cv_prog_CC="$CC" # Let the user override the test.
623else
624  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
625  ac_dummy="$PATH"
626  for ac_dir in $ac_dummy; do
627    test -z "$ac_dir" && ac_dir=.
628    if test -f $ac_dir/$ac_word; then
629      ac_cv_prog_CC="cl"
630      break
631    fi
632  done
633  IFS="$ac_save_ifs"
634fi
635fi
636CC="$ac_cv_prog_CC"
637if test -n "$CC"; then
638  echo "$ac_t""$CC" 1>&6
639else
640  echo "$ac_t""no" 1>&6
641fi
642 ;;
643    esac
644  fi
645  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
646fi
647
648echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
649echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
650
651ac_ext=c
652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
653ac_cpp='$CPP $CPPFLAGS'
654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
656cross_compiling=$ac_cv_prog_cc_cross
657
658cat > conftest.$ac_ext << EOF
659
660#line 661 "configure"
661#include "confdefs.h"
662
663main(){return(0);}
664EOF
665if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
666  ac_cv_prog_cc_works=yes
667  # If we can't run a trivial program, we are probably using a cross compiler.
668  if (./conftest; exit) 2>/dev/null; then
669    ac_cv_prog_cc_cross=no
670  else
671    ac_cv_prog_cc_cross=yes
672  fi
673else
674  echo "configure: failed program was:" >&5
675  cat conftest.$ac_ext >&5
676  ac_cv_prog_cc_works=no
677fi
678rm -fr conftest*
679ac_ext=c
680# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681ac_cpp='$CPP $CPPFLAGS'
682ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684cross_compiling=$ac_cv_prog_cc_cross
685
686echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
687if test $ac_cv_prog_cc_works = no; then
688  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
689fi
690echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
691echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
692echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
693cross_compiling=$ac_cv_prog_cc_cross
694
695echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
696echo "configure:697: checking whether we are using GNU C" >&5
697if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
698  echo $ac_n "(cached) $ac_c" 1>&6
699else
700  cat > conftest.c <<EOF
701#ifdef __GNUC__
702  yes;
703#endif
704EOF
705if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
706  ac_cv_prog_gcc=yes
707else
708  ac_cv_prog_gcc=no
709fi
710fi
711
712echo "$ac_t""$ac_cv_prog_gcc" 1>&6
713
714if test $ac_cv_prog_gcc = yes; then
715  GCC=yes
716else
717  GCC=
718fi
719
720ac_test_CFLAGS="${CFLAGS+set}"
721ac_save_CFLAGS="$CFLAGS"
722CFLAGS=
723echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726  echo $ac_n "(cached) $ac_c" 1>&6
727else
728  echo 'void f(){}' > conftest.c
729if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
730  ac_cv_prog_cc_g=yes
731else
732  ac_cv_prog_cc_g=no
733fi
734rm -f conftest*
735
736fi
737
738echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739if test "$ac_test_CFLAGS" = set; then
740  CFLAGS="$ac_save_CFLAGS"
741elif test $ac_cv_prog_cc_g = yes; then
742  if test "$GCC" = yes; then
743    CFLAGS="-g -O2"
744  else
745    CFLAGS="-g"
746  fi
747else
748  if test "$GCC" = yes; then
749    CFLAGS="-O2"
750  else
751    CFLAGS=
752  fi
753fi
754
755ac_aux_dir=
756for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
757  if test -f $ac_dir/install-sh; then
758    ac_aux_dir=$ac_dir
759    ac_install_sh="$ac_aux_dir/install-sh -c"
760    break
761  elif test -f $ac_dir/install.sh; then
762    ac_aux_dir=$ac_dir
763    ac_install_sh="$ac_aux_dir/install.sh -c"
764    break
765  fi
766done
767if test -z "$ac_aux_dir"; then
768  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
769fi
770ac_config_guess=$ac_aux_dir/config.guess
771ac_config_sub=$ac_aux_dir/config.sub
772ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
773
774# Find a good install program.  We prefer a C program (faster),
775# so one script is as good as another.  But avoid the broken or
776# incompatible versions:
777# SysV /etc/install, /usr/sbin/install
778# SunOS /usr/etc/install
779# IRIX /sbin/install
780# AIX /bin/install
781# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
782# AFS /usr/afsws/bin/install, which mishandles nonexistent args
783# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
784# ./install, which can be erroneously created by make from ./install.sh.
785echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
786echo "configure:787: checking for a BSD compatible install" >&5
787if test -z "$INSTALL"; then
788if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
789  echo $ac_n "(cached) $ac_c" 1>&6
790else
791    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
792  for ac_dir in $PATH; do
793    # Account for people who put trailing slashes in PATH elements.
794    case "$ac_dir/" in
795    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
796    *)
797      # OSF1 and SCO ODT 3.0 have their own names for install.
798      # Don't use installbsd from OSF since it installs stuff as root
799      # by default.
800      for ac_prog in ginstall scoinst install; do
801        if test -f $ac_dir/$ac_prog; then
802	  if test $ac_prog = install &&
803            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
804	    # AIX install.  It has an incompatible calling convention.
805	    :
806	  else
807	    ac_cv_path_install="$ac_dir/$ac_prog -c"
808	    break 2
809	  fi
810	fi
811      done
812      ;;
813    esac
814  done
815  IFS="$ac_save_IFS"
816
817fi
818  if test "${ac_cv_path_install+set}" = set; then
819    INSTALL="$ac_cv_path_install"
820  else
821    # As a last resort, use the slow shell script.  We don't cache a
822    # path for INSTALL within a source directory, because that will
823    # break other packages using the cache if that directory is
824    # removed, or if the path is relative.
825    INSTALL="$ac_install_sh"
826  fi
827fi
828echo "$ac_t""$INSTALL" 1>&6
829
830# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
831# It thinks the first close brace ends the variable substitution.
832test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
833
834test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
835
836test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
837
838for ac_prog in mawk gawk nawk awk
839do
840# Extract the first word of "$ac_prog", so it can be a program name with args.
841set dummy $ac_prog; ac_word=$2
842echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843echo "configure:844: checking for $ac_word" >&5
844if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
845  echo $ac_n "(cached) $ac_c" 1>&6
846else
847  if test -n "$AWK"; then
848  ac_cv_prog_AWK="$AWK" # Let the user override the test.
849else
850  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
851  ac_dummy="$PATH"
852  for ac_dir in $ac_dummy; do
853    test -z "$ac_dir" && ac_dir=.
854    if test -f $ac_dir/$ac_word; then
855      ac_cv_prog_AWK="$ac_prog"
856      break
857    fi
858  done
859  IFS="$ac_save_ifs"
860fi
861fi
862AWK="$ac_cv_prog_AWK"
863if test -n "$AWK"; then
864  echo "$ac_t""$AWK" 1>&6
865else
866  echo "$ac_t""no" 1>&6
867fi
868
869test -n "$AWK" && break
870done
871
872for ac_prog in perl perl5 perl4
873do
874# Extract the first word of "$ac_prog", so it can be a program name with args.
875set dummy $ac_prog; ac_word=$2
876echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877echo "configure:878: checking for $ac_word" >&5
878if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
879  echo $ac_n "(cached) $ac_c" 1>&6
880else
881  case "$PERL" in
882  /*)
883  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
884  ;;
885  ?:/*)
886  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
887  ;;
888  *)
889  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
890  ac_dummy="$PATH"
891  for ac_dir in $ac_dummy; do
892    test -z "$ac_dir" && ac_dir=.
893    if test -f $ac_dir/$ac_word; then
894      ac_cv_path_PERL="$ac_dir/$ac_word"
895      break
896    fi
897  done
898  IFS="$ac_save_ifs"
899  ;;
900esac
901fi
902PERL="$ac_cv_path_PERL"
903if test -n "$PERL"; then
904  echo "$ac_t""$PERL" 1>&6
905else
906  echo "$ac_t""no" 1>&6
907fi
908
909test -n "$PERL" && break
910done
911test -n "$PERL" || PERL="not found"
912
913test "$PERL" = "not found" && { echo "configure: error: This needs perl." 1>&2; exit 1; }
914# Extract the first word of "gpg", so it can be a program name with args.
915set dummy gpg; ac_word=$2
916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917echo "configure:918: checking for $ac_word" >&5
918if eval "test \"`echo '$''{'ac_cv_path_GPG'+set}'`\" = set"; then
919  echo $ac_n "(cached) $ac_c" 1>&6
920else
921  case "$GPG" in
922  /*)
923  ac_cv_path_GPG="$GPG" # Let the user override the test with a path.
924  ;;
925  ?:/*)
926  ac_cv_path_GPG="$GPG" # Let the user override the test with a dos path.
927  ;;
928  *)
929  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
930  ac_dummy="$PATH"
931  for ac_dir in $ac_dummy; do
932    test -z "$ac_dir" && ac_dir=.
933    if test -f $ac_dir/$ac_word; then
934      ac_cv_path_GPG="$ac_dir/$ac_word"
935      break
936    fi
937  done
938  IFS="$ac_save_ifs"
939  test -z "$ac_cv_path_GPG" && ac_cv_path_GPG="not found"
940  ;;
941esac
942fi
943GPG="$ac_cv_path_GPG"
944if test -n "$GPG"; then
945  echo "$ac_t""$GPG" 1>&6
946else
947  echo "$ac_t""no" 1>&6
948fi
949
950if test "$GPG" = "not found" ; then
951  # Extract the first word of "pgp", so it can be a program name with args.
952set dummy pgp; ac_word=$2
953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
954echo "configure:955: checking for $ac_word" >&5
955if eval "test \"`echo '$''{'ac_cv_path_PGP'+set}'`\" = set"; then
956  echo $ac_n "(cached) $ac_c" 1>&6
957else
958  case "$PGP" in
959  /*)
960  ac_cv_path_PGP="$PGP" # Let the user override the test with a path.
961  ;;
962  ?:/*)
963  ac_cv_path_PGP="$PGP" # Let the user override the test with a dos path.
964  ;;
965  *)
966  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
967  ac_dummy="$PATH"
968  for ac_dir in $ac_dummy; do
969    test -z "$ac_dir" && ac_dir=.
970    if test -f $ac_dir/$ac_word; then
971      ac_cv_path_PGP="$ac_dir/$ac_word"
972      break
973    fi
974  done
975  IFS="$ac_save_ifs"
976  test -z "$ac_cv_path_PGP" && ac_cv_path_PGP="not found"
977  ;;
978esac
979fi
980PGP="$ac_cv_path_PGP"
981if test -n "$PGP"; then
982  echo "$ac_t""$PGP" 1>&6
983else
984  echo "$ac_t""no" 1>&6
985fi
986
987  test "$PGP" = "not found" && { echo "configure: error: This needs PGP or GnuPG." 1>&2; exit 1; }
988  PGP="$PGP -f +batchmode +language=en +verbose=1 +pubring=\$pubring"
989else
990  PGP="$GPG --batch -q --keyring \$pubring"
991fi
992
993
994echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
995echo "configure:996: checking how to run the C preprocessor" >&5
996# On Suns, sometimes $CPP names a directory.
997if test -n "$CPP" && test -d "$CPP"; then
998  CPP=
999fi
1000if test -z "$CPP"; then
1001if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1002  echo $ac_n "(cached) $ac_c" 1>&6
1003else
1004    # This must be in double quotes, not single quotes, because CPP may get
1005  # substituted into the Makefile and "${CC-cc}" will confuse make.
1006  CPP="${CC-cc} -E"
1007  # On the NeXT, cc -E runs the code through the compiler's parser,
1008  # not just through cpp.
1009  cat > conftest.$ac_ext <<EOF
1010#line 1011 "configure"
1011#include "confdefs.h"
1012#include <assert.h>
1013Syntax Error
1014EOF
1015ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1016{ (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1017ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1018if test -z "$ac_err"; then
1019  :
1020else
1021  echo "$ac_err" >&5
1022  echo "configure: failed program was:" >&5
1023  cat conftest.$ac_ext >&5
1024  rm -rf conftest*
1025  CPP="${CC-cc} -E -traditional-cpp"
1026  cat > conftest.$ac_ext <<EOF
1027#line 1028 "configure"
1028#include "confdefs.h"
1029#include <assert.h>
1030Syntax Error
1031EOF
1032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033{ (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035if test -z "$ac_err"; then
1036  :
1037else
1038  echo "$ac_err" >&5
1039  echo "configure: failed program was:" >&5
1040  cat conftest.$ac_ext >&5
1041  rm -rf conftest*
1042  CPP="${CC-cc} -nologo -E"
1043  cat > conftest.$ac_ext <<EOF
1044#line 1045 "configure"
1045#include "confdefs.h"
1046#include <assert.h>
1047Syntax Error
1048EOF
1049ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050{ (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052if test -z "$ac_err"; then
1053  :
1054else
1055  echo "$ac_err" >&5
1056  echo "configure: failed program was:" >&5
1057  cat conftest.$ac_ext >&5
1058  rm -rf conftest*
1059  CPP=/lib/cpp
1060fi
1061rm -f conftest*
1062fi
1063rm -f conftest*
1064fi
1065rm -f conftest*
1066  ac_cv_prog_CPP="$CPP"
1067fi
1068  CPP="$ac_cv_prog_CPP"
1069else
1070  ac_cv_prog_CPP="$CPP"
1071fi
1072echo "$ac_t""$CPP" 1>&6
1073
1074for ac_hdr in string.h memory.h
1075do
1076ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1077echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1078echo "configure:1079: checking for $ac_hdr" >&5
1079if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1080  echo $ac_n "(cached) $ac_c" 1>&6
1081else
1082  cat > conftest.$ac_ext <<EOF
1083#line 1084 "configure"
1084#include "confdefs.h"
1085#include <$ac_hdr>
1086EOF
1087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088{ (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090if test -z "$ac_err"; then
1091  rm -rf conftest*
1092  eval "ac_cv_header_$ac_safe=yes"
1093else
1094  echo "$ac_err" >&5
1095  echo "configure: failed program was:" >&5
1096  cat conftest.$ac_ext >&5
1097  rm -rf conftest*
1098  eval "ac_cv_header_$ac_safe=no"
1099fi
1100rm -f conftest*
1101fi
1102if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1103  echo "$ac_t""yes" 1>&6
1104    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1105  cat >> confdefs.h <<EOF
1106#define $ac_tr_hdr 1
1107EOF
1108
1109else
1110  echo "$ac_t""no" 1>&6
1111fi
1112done
1113
1114echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1115echo "configure:1116: checking for socket in -lsocket" >&5
1116ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1117if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1118  echo $ac_n "(cached) $ac_c" 1>&6
1119else
1120  ac_save_LIBS="$LIBS"
1121LIBS="-lsocket  $LIBS"
1122cat > conftest.$ac_ext <<EOF
1123#line 1124 "configure"
1124#include "confdefs.h"
1125/* Override any gcc2 internal prototype to avoid an error.  */
1126/* We use char because int might match the return type of a gcc2
1127    builtin and then its argument prototype would still apply.  */
1128char socket();
1129
1130int main() {
1131socket()
1132; return 0; }
1133EOF
1134if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135  rm -rf conftest*
1136  eval "ac_cv_lib_$ac_lib_var=yes"
1137else
1138  echo "configure: failed program was:" >&5
1139  cat conftest.$ac_ext >&5
1140  rm -rf conftest*
1141  eval "ac_cv_lib_$ac_lib_var=no"
1142fi
1143rm -f conftest*
1144LIBS="$ac_save_LIBS"
1145
1146fi
1147if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1148  echo "$ac_t""yes" 1>&6
1149    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1150    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1151  cat >> confdefs.h <<EOF
1152#define $ac_tr_lib 1
1153EOF
1154
1155  LIBS="-lsocket $LIBS"
1156
1157else
1158  echo "$ac_t""no" 1>&6
1159fi
1160
1161echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1162echo "configure:1163: checking for gethostbyname in -lnsl" >&5
1163ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1164if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1165  echo $ac_n "(cached) $ac_c" 1>&6
1166else
1167  ac_save_LIBS="$LIBS"
1168LIBS="-lnsl  $LIBS"
1169cat > conftest.$ac_ext <<EOF
1170#line 1171 "configure"
1171#include "confdefs.h"
1172/* Override any gcc2 internal prototype to avoid an error.  */
1173/* We use char because int might match the return type of a gcc2
1174    builtin and then its argument prototype would still apply.  */
1175char gethostbyname();
1176
1177int main() {
1178gethostbyname()
1179; return 0; }
1180EOF
1181if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1182  rm -rf conftest*
1183  eval "ac_cv_lib_$ac_lib_var=yes"
1184else
1185  echo "configure: failed program was:" >&5
1186  cat conftest.$ac_ext >&5
1187  rm -rf conftest*
1188  eval "ac_cv_lib_$ac_lib_var=no"
1189fi
1190rm -f conftest*
1191LIBS="$ac_save_LIBS"
1192
1193fi
1194if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1195  echo "$ac_t""yes" 1>&6
1196    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1197    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1198  cat >> confdefs.h <<EOF
1199#define $ac_tr_lib 1
1200EOF
1201
1202  LIBS="-lnsl $LIBS"
1203
1204else
1205  echo "$ac_t""no" 1>&6
1206fi
1207
1208
1209
1210nsys=""
1211# Check whether --with-cnews or --without-cnews was given.
1212if test "${with_cnews+set}" = set; then
1213  withval="$with_cnews"
1214
1215  nsys=cnews
1216  nsrc=$withval
1217
1218fi
1219
1220# Check whether --with-inn or --without-inn was given.
1221if test "${with_inn+set}" = set; then
1222  withval="$with_inn"
1223
1224  nsys=inn
1225  nsrc=$withval
1226
1227fi
1228
1229sdirs="/usr/src /usr/local /usr/local/src /opt/src /var/src"
1230
1231
1232if test "X$nsys" = "X" ; then
1233  echo $ac_n "checking for INN source""... $ac_c" 1>&6
1234echo "configure:1235: checking for INN source" >&5
1235  for i in $sdirs ; do
1236    for j in INN inn INN2 INN-2 ; do
1237      if test "X$nsys" = "X" -a -f $i/$j/lib/dbz.c ; then
1238        echo "$ac_t""$nsrc" 1>&6
1239        nsys=inn
1240        nsrc=$i/$j
1241      fi
1242    done
1243  done
1244  if test "X$nsys" = "X" ; then
1245    echo "$ac_t""no" 1>&6
1246  fi
1247fi
1248
1249
1250if test "X$nsys" = "X" ; then
1251  echo $ac_n "checking for C News source""... $ac_c" 1>&6
1252echo "configure:1253: checking for C News source" >&5
1253  for i in $sdirs ; do
1254    for j in cnews c-news CNews cnews-CR.G ; do
1255      if test "X$nsys" = "X" -a -f $i/$j/libdbz/dbz.c ; then
1256        echo "$ac_t""$nsrc" 1>&6
1257        nsys=cnews
1258        nsrc=$i/$j
1259      fi
1260    done
1261  done
1262  if test "X$nsys" = "X" ; then
1263    echo "$ac_t""no" 1>&6
1264  fi
1265fi
1266
1267
1268
1269
1270
1271
1272
1273if test "X$nsys" = "Xcnews" ; then
1274
1275  cat >> confdefs.h <<\EOF
1276#define CNEWS 1
1277EOF
1278
1279  CPPFLAGS="$CPPFLAGS -I$prefix/include"
1280  LIBS="-L$prefix/lib -lcnews $LIBS"
1281  PROGS="fastcancel"
1282  echo $ac_n "checking for newslib""... $ac_c" 1>&6
1283echo "configure:1284: checking for newslib" >&5
1284re=`$AWK '/^'NEWSCTL'[^A-Z_]/ {print $'2'}' $nsrc/conf/substitutions`
1285if test "$re"; then
1286    echo "$ac_t""$re" 1>&6
1287else
1288    echo "$ac_t""no" 1>&6
1289fi
1290newslib="$re"
1291  newsetc=$newslib
1292  newsdb=$newslib
1293  echo $ac_n "checking for newsarts""... $ac_c" 1>&6
1294echo "configure:1295: checking for newsarts" >&5
1295re=`$AWK '/^'NEWSARTS'[^A-Z_]/ {print $'2'}' $nsrc/conf/substitutions`
1296if test "$re"; then
1297    echo "$ac_t""$re" 1>&6
1298else
1299    echo "$ac_t""no" 1>&6
1300fi
1301newsarts="$re"
1302  newstmp=$newslib/tmp
1303  newslogfile=$newslib/log
1304  echo $ac_n "checking for newsbin""... $ac_c" 1>&6
1305echo "configure:1306: checking for newsbin" >&5
1306re=`$AWK '/^'NEWSBIN'[^A-Z_]/ {print $'2'}' $nsrc/conf/substitutions`
1307if test "$re"; then
1308    echo "$ac_t""$re" 1>&6
1309else
1310    echo "$ac_t""no" 1>&6
1311fi
1312newsbin="$re"
1313else if test "X$nsys" = "Xinn" ; then
1314  cat >> confdefs.h <<\EOF
1315#define INN 1
1316EOF
1317
1318  CPPFLAGS="$CPPFLAGS -I$nsrc/include -I$nsrc/dbz"
1319  PROGS="fastcancel groupcheck"
1320else
1321  { echo "configure: error: Need the news system source to compile." 1>&2; exit 1; }
1322fi
1323fi
1324
1325
1326cf=
1327# Check whether --enable-cancelfeed or --disable-cancelfeed was given.
1328if test "${enable_cancelfeed+set}" = set; then
1329  enableval="$enable_cancelfeed"
1330  cf=cancelfeed
1331fi
1332
1333
1334if test "X$nsys" = "Xinn" ; then
1335  echo $ac_n "checking for INN version""... $ac_c" 1>&6
1336echo "configure:1337: checking for INN version" >&5
1337  if test -d $nsrc/storage ; then
1338    echo "$ac_t""2.x" 1>&6
1339    cat >> confdefs.h <<\EOF
1340#define INN2 1
1341EOF
1342
1343        cat $nsrc/Makefile.global >conftest.make
1344    cat <<'END' >>conftest.make
1345print-defs:
1346	@echo newslib=$(PATHNEWS)
1347	@echo newsetc=$(PATHETC)
1348	@echo newsdb=$(PATHDB)
1349	@echo newsspool=$(PATHSPOOL)
1350	@echo newsbin=$(PATHBIN)
1351	@echo logdir=$(PATHLOG)
1352END
1353    eval `make -f conftest.make print-defs`
1354    rm -f conftest.make
1355        newsarts=$newsspool
1356    newstmp=$newsspool/tmp
1357    newslogfile=$logdir/news
1358    echo $ac_n "checking for storemsgid in inn.conf""... $ac_c" 1>&6
1359echo "configure:1360: checking for storemsgid in inn.conf" >&5
1360if grep storemsgid $nsrc/include/libinn.h >/dev/null ; then
1361  echo "$ac_t""yes" 1>&6
1362  uc=`echo storemsgid| tr a-z A-Z`
1363  cat >> confdefs.h <<EOF
1364#define HAVE_INNCONF_$uc 1
1365EOF
1366
1367else
1368  echo "$ac_t""no" 1>&6
1369fi
1370    echo $ac_n "checking for storageapi in inn.conf""... $ac_c" 1>&6
1371echo "configure:1372: checking for storageapi in inn.conf" >&5
1372if grep storageapi $nsrc/include/libinn.h >/dev/null ; then
1373  echo "$ac_t""yes" 1>&6
1374  uc=`echo storageapi| tr a-z A-Z`
1375  cat >> confdefs.h <<EOF
1376#define HAVE_INNCONF_$uc 1
1377EOF
1378
1379else
1380  echo "$ac_t""no" 1>&6
1381fi
1382    echo $ac_n "checking for extendeddbz in inn.conf""... $ac_c" 1>&6
1383echo "configure:1384: checking for extendeddbz in inn.conf" >&5
1384if grep extendeddbz $nsrc/include/libinn.h >/dev/null ; then
1385  echo "$ac_t""yes" 1>&6
1386  uc=`echo extendeddbz| tr a-z A-Z`
1387  cat >> confdefs.h <<EOF
1388#define HAVE_INNCONF_$uc 1
1389EOF
1390
1391else
1392  echo "$ac_t""no" 1>&6
1393fi
1394    echo $ac_n "checking for libtool""... $ac_c" 1>&6
1395echo "configure:1396: checking for libtool" >&5
1396re=`$AWK '/^'LIBTOOL'[^A-Z_]/ {print $'3'}' $nsrc/Makefile.global`
1397if test "$re"; then
1398    echo "$ac_t""$re" 1>&6
1399else
1400    echo "$ac_t""no" 1>&6
1401fi
1402libtool="$re"
1403    if test -n "$libtool" ; then
1404      LIBTOOL="/bin/sh $nsrc/libtool --quiet"
1405            LIBS="$nsrc/lib/libinn.la $nsrc/storage/libstorage.la $LIBS"
1406    else
1407      LIBTOOL=
1408      LIBS="-L$nsrc -L$nsrc/lib -L$nsrc/storage -lstorage -linn -lstorage $LIBS"
1409    fi
1410    if test "x$cf" = "x"; then
1411      echo $ac_n "checking for INN >= 2.4""... $ac_c" 1>&6
1412echo "configure:1413: checking for INN >= 2.4" >&5
1413      $LIBTOOL $CC $CPPFLAGS $CFLAGS $LDFLAGS -o innversion innversion.c $LIBS
1414      set `./innversion`
1415      case "$2" in
1416      2.[0123]*) echo "$ac_t""no" 1>&6 ;;
1417      *) echo "$ac_t""yes" 1>&6; cf=cancelfeed ;;
1418      esac
1419    fi
1420    PROGS="$PROGS $cf"
1421
1422        xcc="$CC"
1423    CC="$LIBTOOL $xcc"
1424    echo $ac_n "checking for two-arg form of dbzfetch""... $ac_c" 1>&6
1425echo "configure:1426: checking for two-arg form of dbzfetch" >&5
1426    cat > conftest.$ac_ext <<EOF
1427#line 1428 "configure"
1428#include "confdefs.h"
1429#include "cncdbz.h"
1430int main() {
1431
1432	HASH h;
1433	OFFSET_T v;
1434	dbzfetch(h, &v);
1435
1436; return 0; }
1437EOF
1438if { (eval echo configure:1439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1439  rm -rf conftest*
1440
1441   echo "$ac_t""yes" 1>&6
1442   cat >> confdefs.h <<\EOF
1443#define HAVE_DBZFETCH_2 1
1444EOF
1445
1446
1447else
1448  echo "configure: failed program was:" >&5
1449  cat conftest.$ac_ext >&5
1450  rm -rf conftest*
1451  echo "$ac_t""no" 1>&6
1452fi
1453rm -f conftest*
1454
1455    echo $ac_n "checking for reverted dbz API""... $ac_c" 1>&6
1456echo "configure:1457: checking for reverted dbz API" >&5
1457    cat > conftest.$ac_ext <<EOF
1458#line 1459 "configure"
1459#include "confdefs.h"
1460#include "cncdbz.h"
1461int main() {
1462
1463	#ifndef DO_TAGGED_HASH
1464	idxrec ov;
1465	#endif
1466
1467; return 0; }
1468EOF
1469if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470  rm -rf conftest*
1471  echo "$ac_t""no" 1>&6
1472else
1473  echo "configure: failed program was:" >&5
1474  cat conftest.$ac_ext >&5
1475  rm -rf conftest*
1476
1477   echo "$ac_t""yes" 1>&6
1478   cat >> confdefs.h <<\EOF
1479#define DBZ_REVERTED 1
1480EOF
1481
1482
1483fi
1484rm -f conftest*
1485
1486    CC="$xcc"
1487
1488  else
1489    echo "$ac_t""1.x" 1>&6
1490    echo $ac_n "checking for newslib""... $ac_c" 1>&6
1491echo "configure:1492: checking for newslib" >&5
1492re=`$AWK '/^'_PATH_NEWSLIB'[^A-Z_]/ {print $'2'}' $nsrc/config/config.data`
1493if test "$re"; then
1494    echo "$ac_t""$re" 1>&6
1495else
1496    echo "$ac_t""no" 1>&6
1497fi
1498newslib="$re"
1499    newsetc=$newslib
1500    newsdb=$newslib
1501    echo $ac_n "checking for newsarts""... $ac_c" 1>&6
1502echo "configure:1503: checking for newsarts" >&5
1503re=`$AWK '/^'_PATH_SPOOL'[^A-Z_]/ {print $'2'}' $nsrc/config/config.data`
1504if test "$re"; then
1505    echo "$ac_t""$re" 1>&6
1506else
1507    echo "$ac_t""no" 1>&6
1508fi
1509newsarts="$re"
1510    newstmp=$newslib/tmp
1511    echo $ac_n "checking for newsbin""... $ac_c" 1>&6
1512echo "configure:1513: checking for newsbin" >&5
1513re=`$AWK '/^'_PATH_NEWSBIN'[^A-Z_]/ {print $'2'}' $nsrc/config/config.data`
1514if test "$re"; then
1515    echo "$ac_t""$re" 1>&6
1516else
1517    echo "$ac_t""no" 1>&6
1518fi
1519newsbin="$re"
1520    echo $ac_n "checking for newslogfile""... $ac_c" 1>&6
1521echo "configure:1522: checking for newslogfile" >&5
1522re=`$AWK '/^'_PATH_LOGFILE'[^A-Z_]/ {print $'2'}' $nsrc/config/config.data`
1523if test "$re"; then
1524    echo "$ac_t""$re" 1>&6
1525else
1526    echo "$ac_t""no" 1>&6
1527fi
1528newslogfile="$re"
1529    LIBS="-L$nsrc -L$nsrc/lib -linn $LIBS"
1530  fi
1531fi
1532
1533
1534echo $ac_n "checking for time_t""... $ac_c" 1>&6
1535echo "configure:1536: checking for time_t" >&5
1536cat > conftest.$ac_ext <<EOF
1537#line 1538 "configure"
1538#include "confdefs.h"
1539#include <time.h>
1540int main() {
1541time_t t;
1542; return 0; }
1543EOF
1544if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1545  rm -rf conftest*
1546  actt=time_t
1547else
1548  echo "configure: failed program was:" >&5
1549  cat conftest.$ac_ext >&5
1550  rm -rf conftest*
1551
1552actt="unsigned long"
1553cat >> confdefs.h <<\EOF
1554#define time_t unsigned long
1555EOF
1556
1557
1558fi
1559rm -f conftest*
1560echo "$ac_t""$actt" 1>&6
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574newspath="$PATH:$newsbin"
1575
1576cat >> confdefs.h <<EOF
1577#define NEWSARTS "$newsarts"
1578EOF
1579
1580cat >> confdefs.h <<EOF
1581#define HISTFILE "$newsdb/history"
1582EOF
1583
1584trap '' 1 2 15
1585cat > confcache <<\EOF
1586# This file is a shell script that caches the results of configure
1587# tests run on this system so they can be shared between configure
1588# scripts and configure runs.  It is not useful on other systems.
1589# If it contains results you don't want to keep, you may remove or edit it.
1590#
1591# By default, configure uses ./config.cache as the cache file,
1592# creating it if it does not exist already.  You can give configure
1593# the --cache-file=FILE option to use a different cache file; that is
1594# what configure does when it calls configure scripts in
1595# subdirectories, so they share the cache.
1596# Giving --cache-file=/dev/null disables caching, for debugging configure.
1597# config.status only pays attention to the cache file if you give it the
1598# --recheck option to rerun configure.
1599#
1600EOF
1601# The following way of writing the cache mishandles newlines in values,
1602# but we know of no workaround that is simple, portable, and efficient.
1603# So, don't put newlines in cache variables' values.
1604# Ultrix sh set writes to stderr and can't be redirected directly,
1605# and sets the high bit in the cache file unless we assign to the vars.
1606(set) 2>&1 |
1607  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1608  *ac_space=\ *)
1609    # `set' does not quote correctly, so add quotes (double-quote substitution
1610    # turns \\\\ into \\, and sed turns \\ into \).
1611    sed -n \
1612      -e "s/'/'\\\\''/g" \
1613      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1614    ;;
1615  *)
1616    # `set' quotes correctly as required by POSIX, so do not add quotes.
1617    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1618    ;;
1619  esac >> confcache
1620if cmp -s $cache_file confcache; then
1621  :
1622else
1623  if test -w $cache_file; then
1624    echo "updating cache $cache_file"
1625    cat confcache > $cache_file
1626  else
1627    echo "not updating unwritable cache $cache_file"
1628  fi
1629fi
1630rm -f confcache
1631
1632trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1633
1634test "x$prefix" = xNONE && prefix=$ac_default_prefix
1635# Let make expand exec_prefix.
1636test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1637
1638# Any assignment to VPATH causes Sun make to only execute
1639# the first set of double-colon rules, so remove it if not needed.
1640# If there is a colon in the path, we need to keep it.
1641if test "x$srcdir" = x.; then
1642  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1643fi
1644
1645trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1646
1647# Transform confdefs.h into DEFS.
1648# Protect against shell expansion while executing Makefile rules.
1649# Protect against Makefile macro expansion.
1650cat > conftest.defs <<\EOF
1651s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1652s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
1653s%\[%\\&%g
1654s%\]%\\&%g
1655s%\$%$$%g
1656EOF
1657DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1658rm -f conftest.defs
1659
1660
1661# Without the "./", some shells look in PATH for config.status.
1662: ${CONFIG_STATUS=./config.status}
1663
1664echo creating $CONFIG_STATUS
1665rm -f $CONFIG_STATUS
1666cat > $CONFIG_STATUS <<EOF
1667#! /bin/sh
1668# Generated automatically by configure.
1669# Run this file to recreate the current configuration.
1670# This directory was configured as follows,
1671# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1672#
1673# $0 $ac_configure_args
1674#
1675# Compiler output produced by configure, useful for debugging
1676# configure, is in ./config.log if it exists.
1677
1678ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1679for ac_option
1680do
1681  case "\$ac_option" in
1682  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1683    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1684    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1685  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1686    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1687    exit 0 ;;
1688  -help | --help | --hel | --he | --h)
1689    echo "\$ac_cs_usage"; exit 0 ;;
1690  *) echo "\$ac_cs_usage"; exit 1 ;;
1691  esac
1692done
1693
1694ac_given_srcdir=$srcdir
1695ac_given_INSTALL="$INSTALL"
1696
1697trap 'rm -fr `echo "Makefile c-nocem" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1698EOF
1699cat >> $CONFIG_STATUS <<EOF
1700
1701# Protect against being on the right side of a sed subst in config.status.
1702sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1703 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1704$ac_vpsub
1705$extrasub
1706s%@SHELL@%$SHELL%g
1707s%@CFLAGS@%$CFLAGS%g
1708s%@CPPFLAGS@%$CPPFLAGS%g
1709s%@CXXFLAGS@%$CXXFLAGS%g
1710s%@FFLAGS@%$FFLAGS%g
1711s%@DEFS@%$DEFS%g
1712s%@LDFLAGS@%$LDFLAGS%g
1713s%@LIBS@%$LIBS%g
1714s%@exec_prefix@%$exec_prefix%g
1715s%@prefix@%$prefix%g
1716s%@program_transform_name@%$program_transform_name%g
1717s%@bindir@%$bindir%g
1718s%@sbindir@%$sbindir%g
1719s%@libexecdir@%$libexecdir%g
1720s%@datadir@%$datadir%g
1721s%@sysconfdir@%$sysconfdir%g
1722s%@sharedstatedir@%$sharedstatedir%g
1723s%@localstatedir@%$localstatedir%g
1724s%@libdir@%$libdir%g
1725s%@includedir@%$includedir%g
1726s%@oldincludedir@%$oldincludedir%g
1727s%@infodir@%$infodir%g
1728s%@mandir@%$mandir%g
1729s%@CC@%$CC%g
1730s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1731s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1732s%@INSTALL_DATA@%$INSTALL_DATA%g
1733s%@AWK@%$AWK%g
1734s%@PERL@%$PERL%g
1735s%@GPG@%$GPG%g
1736s%@PGP@%$PGP%g
1737s%@CPP@%$CPP%g
1738s%@PROGS@%$PROGS%g
1739s%@LIBTOOL@%$LIBTOOL%g
1740s%@newslib@%$newslib%g
1741s%@newsetc@%$newsetc%g
1742s%@newsdb@%$newsdb%g
1743s%@newsarts@%$newsarts%g
1744s%@newstmp@%$newstmp%g
1745s%@newsbin@%$newsbin%g
1746s%@newslogfile@%$newslogfile%g
1747s%@newspath@%$newspath%g
1748
1749CEOF
1750EOF
1751
1752cat >> $CONFIG_STATUS <<\EOF
1753
1754# Split the substitutions into bite-sized pieces for seds with
1755# small command number limits, like on Digital OSF/1 and HP-UX.
1756ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1757ac_file=1 # Number of current file.
1758ac_beg=1 # First line for current file.
1759ac_end=$ac_max_sed_cmds # Line after last line for current file.
1760ac_more_lines=:
1761ac_sed_cmds=""
1762while $ac_more_lines; do
1763  if test $ac_beg -gt 1; then
1764    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1765  else
1766    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1767  fi
1768  if test ! -s conftest.s$ac_file; then
1769    ac_more_lines=false
1770    rm -f conftest.s$ac_file
1771  else
1772    if test -z "$ac_sed_cmds"; then
1773      ac_sed_cmds="sed -f conftest.s$ac_file"
1774    else
1775      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1776    fi
1777    ac_file=`expr $ac_file + 1`
1778    ac_beg=$ac_end
1779    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1780  fi
1781done
1782if test -z "$ac_sed_cmds"; then
1783  ac_sed_cmds=cat
1784fi
1785EOF
1786
1787cat >> $CONFIG_STATUS <<EOF
1788
1789CONFIG_FILES=\${CONFIG_FILES-"Makefile c-nocem"}
1790EOF
1791cat >> $CONFIG_STATUS <<\EOF
1792for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1793  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1794  case "$ac_file" in
1795  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1796       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1797  *) ac_file_in="${ac_file}.in" ;;
1798  esac
1799
1800  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1801
1802  # Remove last slash and all that follows it.  Not all systems have dirname.
1803  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1804  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1805    # The file is in a subdirectory.
1806    test ! -d "$ac_dir" && mkdir "$ac_dir"
1807    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1808    # A "../" for each directory in $ac_dir_suffix.
1809    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1810  else
1811    ac_dir_suffix= ac_dots=
1812  fi
1813
1814  case "$ac_given_srcdir" in
1815  .)  srcdir=.
1816      if test -z "$ac_dots"; then top_srcdir=.
1817      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1818  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1819  *) # Relative path.
1820    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1821    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1822  esac
1823
1824  case "$ac_given_INSTALL" in
1825  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1826  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1827  esac
1828
1829  echo creating "$ac_file"
1830  rm -f "$ac_file"
1831  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1832  case "$ac_file" in
1833  *Makefile*) ac_comsub="1i\\
1834# $configure_input" ;;
1835  *) ac_comsub= ;;
1836  esac
1837
1838  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1839  sed -e "$ac_comsub
1840s%@configure_input@%$configure_input%g
1841s%@srcdir@%$srcdir%g
1842s%@top_srcdir@%$top_srcdir%g
1843s%@INSTALL@%$INSTALL%g
1844" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1845fi; done
1846rm -f conftest.s*
1847
1848EOF
1849cat >> $CONFIG_STATUS <<EOF
1850
1851EOF
1852cat >> $CONFIG_STATUS <<\EOF
1853
1854exit 0
1855EOF
1856chmod +x $CONFIG_STATUS
1857rm -fr confdefs* $ac_clean_files
1858test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1859
1860