source: trunk/athena/bin/aklog/configure @ 10896

Revision 10896, 57.3 KB checked in by ghudson, 27 years ago (diff)
aklog should be installed in lbindir.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
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-com_err=PREFIX   Specify location of com_err"
16ac_help="$ac_help
17  --with-krb4=PREFIX      Specify location of Kerberos 4"
18ac_help="$ac_help
19  --with-afs=PREFIX       Specify location of AFS libraries"
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=
58# Maximum number of lines to put in a shell here document.
59ac_max_here_lines=12
60
61ac_prev=
62for ac_option
63do
64
65  # If the previous option needs an argument, assign it.
66  if test -n "$ac_prev"; then
67    eval "$ac_prev=\$ac_option"
68    ac_prev=
69    continue
70  fi
71
72  case "$ac_option" in
73  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74  *) ac_optarg= ;;
75  esac
76
77  # Accept the important Cygnus configure options, so we can diagnose typos.
78
79  case "$ac_option" in
80
81  -bindir | --bindir | --bindi | --bind | --bin | --bi)
82    ac_prev=bindir ;;
83  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84    bindir="$ac_optarg" ;;
85
86  -build | --build | --buil | --bui | --bu)
87    ac_prev=build ;;
88  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89    build="$ac_optarg" ;;
90
91  -cache-file | --cache-file | --cache-fil | --cache-fi \
92  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93    ac_prev=cache_file ;;
94  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96    cache_file="$ac_optarg" ;;
97
98  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99    ac_prev=datadir ;;
100  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101  | --da=*)
102    datadir="$ac_optarg" ;;
103
104  -disable-* | --disable-*)
105    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106    # Reject names that are not valid shell variable names.
107    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109    fi
110    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111    eval "enable_${ac_feature}=no" ;;
112
113  -enable-* | --enable-*)
114    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115    # Reject names that are not valid shell variable names.
116    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118    fi
119    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120    case "$ac_option" in
121      *=*) ;;
122      *) ac_optarg=yes ;;
123    esac
124    eval "enable_${ac_feature}='$ac_optarg'" ;;
125
126  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128  | --exec | --exe | --ex)
129    ac_prev=exec_prefix ;;
130  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132  | --exec=* | --exe=* | --ex=*)
133    exec_prefix="$ac_optarg" ;;
134
135  -gas | --gas | --ga | --g)
136    # Obsolete; use --with-gas.
137    with_gas=yes ;;
138
139  -help | --help | --hel | --he)
140    # Omit some internal or obsolete options to make the list less imposing.
141    # This message is too long to be a string in the A/UX 3.1 sh.
142    cat << EOF
143Usage: configure [options] [host]
144Options: [defaults in brackets after descriptions]
145Configuration:
146  --cache-file=FILE       cache test results in FILE
147  --help                  print this message
148  --no-create             do not create output files
149  --quiet, --silent       do not print \`checking...' messages
150  --version               print the version of autoconf that created configure
151Directory and file names:
152  --prefix=PREFIX         install architecture-independent files in PREFIX
153                          [$ac_default_prefix]
154  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
155                          [same as prefix]
156  --bindir=DIR            user executables in DIR [EPREFIX/bin]
157  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
158  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
159  --datadir=DIR           read-only architecture-independent data in DIR
160                          [PREFIX/share]
161  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
162  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
163                          [PREFIX/com]
164  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
165  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
166  --includedir=DIR        C header files in DIR [PREFIX/include]
167  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
168  --infodir=DIR           info documentation in DIR [PREFIX/info]
169  --mandir=DIR            man documentation in DIR [PREFIX/man]
170  --srcdir=DIR            find the sources in DIR [configure dir or ..]
171  --program-prefix=PREFIX prepend PREFIX to installed program names
172  --program-suffix=SUFFIX append SUFFIX to installed program names
173  --program-transform-name=PROGRAM
174                          run sed PROGRAM on installed program names
175EOF
176    cat << EOF
177Host type:
178  --build=BUILD           configure for building on BUILD [BUILD=HOST]
179  --host=HOST             configure for HOST [guessed]
180  --target=TARGET         configure for TARGET [TARGET=HOST]
181Features and packages:
182  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
183  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
184  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
185  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
186  --x-includes=DIR        X include files are in DIR
187  --x-libraries=DIR       X library files are in DIR
188EOF
189    if test -n "$ac_help"; then
190      echo "--enable and --with options recognized:$ac_help"
191    fi
192    exit 0 ;;
193
194  -host | --host | --hos | --ho)
195    ac_prev=host ;;
196  -host=* | --host=* | --hos=* | --ho=*)
197    host="$ac_optarg" ;;
198
199  -includedir | --includedir | --includedi | --included | --include \
200  | --includ | --inclu | --incl | --inc)
201    ac_prev=includedir ;;
202  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203  | --includ=* | --inclu=* | --incl=* | --inc=*)
204    includedir="$ac_optarg" ;;
205
206  -infodir | --infodir | --infodi | --infod | --info | --inf)
207    ac_prev=infodir ;;
208  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209    infodir="$ac_optarg" ;;
210
211  -libdir | --libdir | --libdi | --libd)
212    ac_prev=libdir ;;
213  -libdir=* | --libdir=* | --libdi=* | --libd=*)
214    libdir="$ac_optarg" ;;
215
216  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217  | --libexe | --libex | --libe)
218    ac_prev=libexecdir ;;
219  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220  | --libexe=* | --libex=* | --libe=*)
221    libexecdir="$ac_optarg" ;;
222
223  -localstatedir | --localstatedir | --localstatedi | --localstated \
224  | --localstate | --localstat | --localsta | --localst \
225  | --locals | --local | --loca | --loc | --lo)
226    ac_prev=localstatedir ;;
227  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230    localstatedir="$ac_optarg" ;;
231
232  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233    ac_prev=mandir ;;
234  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235    mandir="$ac_optarg" ;;
236
237  -nfp | --nfp | --nf)
238    # Obsolete; use --without-fp.
239    with_fp=no ;;
240
241  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242  | --no-cr | --no-c)
243    no_create=yes ;;
244
245  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247    no_recursion=yes ;;
248
249  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251  | --oldin | --oldi | --old | --ol | --o)
252    ac_prev=oldincludedir ;;
253  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256    oldincludedir="$ac_optarg" ;;
257
258  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259    ac_prev=prefix ;;
260  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261    prefix="$ac_optarg" ;;
262
263  -program-prefix | --program-prefix | --program-prefi | --program-pref \
264  | --program-pre | --program-pr | --program-p)
265    ac_prev=program_prefix ;;
266  -program-prefix=* | --program-prefix=* | --program-prefi=* \
267  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268    program_prefix="$ac_optarg" ;;
269
270  -program-suffix | --program-suffix | --program-suffi | --program-suff \
271  | --program-suf | --program-su | --program-s)
272    ac_prev=program_suffix ;;
273  -program-suffix=* | --program-suffix=* | --program-suffi=* \
274  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275    program_suffix="$ac_optarg" ;;
276
277  -program-transform-name | --program-transform-name \
278  | --program-transform-nam | --program-transform-na \
279  | --program-transform-n | --program-transform- \
280  | --program-transform | --program-transfor \
281  | --program-transfo | --program-transf \
282  | --program-trans | --program-tran \
283  | --progr-tra | --program-tr | --program-t)
284    ac_prev=program_transform_name ;;
285  -program-transform-name=* | --program-transform-name=* \
286  | --program-transform-nam=* | --program-transform-na=* \
287  | --program-transform-n=* | --program-transform-=* \
288  | --program-transform=* | --program-transfor=* \
289  | --program-transfo=* | --program-transf=* \
290  | --program-trans=* | --program-tran=* \
291  | --progr-tra=* | --program-tr=* | --program-t=*)
292    program_transform_name="$ac_optarg" ;;
293
294  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295  | -silent | --silent | --silen | --sile | --sil)
296    silent=yes ;;
297
298  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299    ac_prev=sbindir ;;
300  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301  | --sbi=* | --sb=*)
302    sbindir="$ac_optarg" ;;
303
304  -sharedstatedir | --sharedstatedir | --sharedstatedi \
305  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306  | --sharedst | --shareds | --shared | --share | --shar \
307  | --sha | --sh)
308    ac_prev=sharedstatedir ;;
309  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312  | --sha=* | --sh=*)
313    sharedstatedir="$ac_optarg" ;;
314
315  -site | --site | --sit)
316    ac_prev=site ;;
317  -site=* | --site=* | --sit=*)
318    site="$ac_optarg" ;;
319
320  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321    ac_prev=srcdir ;;
322  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323    srcdir="$ac_optarg" ;;
324
325  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326  | --syscon | --sysco | --sysc | --sys | --sy)
327    ac_prev=sysconfdir ;;
328  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330    sysconfdir="$ac_optarg" ;;
331
332  -target | --target | --targe | --targ | --tar | --ta | --t)
333    ac_prev=target ;;
334  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335    target="$ac_optarg" ;;
336
337  -v | -verbose | --verbose | --verbos | --verbo | --verb)
338    verbose=yes ;;
339
340  -version | --version | --versio | --versi | --vers)
341    echo "configure generated by autoconf version 2.12"
342    exit 0 ;;
343
344  -with-* | --with-*)
345    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346    # Reject names that are not valid shell variable names.
347    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349    fi
350    ac_package=`echo $ac_package| sed 's/-/_/g'`
351    case "$ac_option" in
352      *=*) ;;
353      *) ac_optarg=yes ;;
354    esac
355    eval "with_${ac_package}='$ac_optarg'" ;;
356
357  -without-* | --without-*)
358    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359    # Reject names that are not valid shell variable names.
360    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362    fi
363    ac_package=`echo $ac_package| sed 's/-/_/g'`
364    eval "with_${ac_package}=no" ;;
365
366  --x)
367    # Obsolete; use --with-x.
368    with_x=yes ;;
369
370  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371  | --x-incl | --x-inc | --x-in | --x-i)
372    ac_prev=x_includes ;;
373  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375    x_includes="$ac_optarg" ;;
376
377  -x-libraries | --x-libraries | --x-librarie | --x-librari \
378  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379    ac_prev=x_libraries ;;
380  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382    x_libraries="$ac_optarg" ;;
383
384  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385    ;;
386
387  *)
388    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389      echo "configure: warning: $ac_option: invalid host type" 1>&2
390    fi
391    if test "x$nonopt" != xNONE; then
392      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393    fi
394    nonopt="$ac_option"
395    ;;
396
397  esac
398done
399
400if test -n "$ac_prev"; then
401  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402fi
403
404trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405
406# File descriptor usage:
407# 0 standard input
408# 1 file creation
409# 2 errors and warnings
410# 3 some systems may open it to /dev/tty
411# 4 used on the Kubota Titan
412# 6 checking for... messages and results
413# 5 compiler messages saved in config.log
414if test "$silent" = yes; then
415  exec 6>/dev/null
416else
417  exec 6>&1
418fi
419exec 5>./config.log
420
421echo "\
422This file contains any messages produced by compilers while
423running configure, to aid debugging if configure makes a mistake.
424" 1>&5
425
426# Strip out --no-create and --no-recursion so they do not pile up.
427# Also quote any args containing shell metacharacters.
428ac_configure_args=
429for ac_arg
430do
431  case "$ac_arg" in
432  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433  | --no-cr | --no-c) ;;
434  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
439  esac
440done
441
442# NLS nuisances.
443# Only set these to C if already set.  These must not be set unconditionally
444# because not all systems understand e.g. LANG=C (notably SCO).
445# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446# Non-C LC_CTYPE values break the ctype check.
447if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
448if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
451
452# confdefs.h avoids OS command line length limits that DEFS can exceed.
453rm -rf conftest* confdefs.h
454# AIX cpp loses on an empty file, so make sure it contains at least a newline.
455echo > confdefs.h
456
457# A filename unique to this package, relative to the directory that
458# configure is in, which we can look for to find out if srcdir is correct.
459ac_unique_file=aklog.c
460
461# Find the source files, if location was not specified.
462if test -z "$srcdir"; then
463  ac_srcdir_defaulted=yes
464  # Try the directory containing this script, then its parent.
465  ac_prog=$0
466  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468  srcdir=$ac_confdir
469  if test ! -r $srcdir/$ac_unique_file; then
470    srcdir=..
471  fi
472else
473  ac_srcdir_defaulted=no
474fi
475if test ! -r $srcdir/$ac_unique_file; then
476  if test "$ac_srcdir_defaulted" = yes; then
477    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478  else
479    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480  fi
481fi
482srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
484# Prefer explicitly selected file to automatically selected ones.
485if test -z "$CONFIG_SITE"; then
486  if test "x$prefix" != xNONE; then
487    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488  else
489    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490  fi
491fi
492for ac_site_file in $CONFIG_SITE; do
493  if test -r "$ac_site_file"; then
494    echo "loading site script $ac_site_file"
495    . "$ac_site_file"
496  fi
497done
498
499if test -r "$cache_file"; then
500  echo "loading cache $cache_file"
501  . $cache_file
502else
503  echo "creating cache $cache_file"
504  > $cache_file
505fi
506
507ac_ext=c
508# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509ac_cpp='$CPP $CPPFLAGS'
510ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512cross_compiling=$ac_cv_prog_cc_cross
513
514if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517    ac_n= ac_c='
518' ac_t='        '
519  else
520    ac_n=-n ac_c= ac_t=
521  fi
522else
523  ac_n= ac_c='\c' ac_t=
524fi
525
526
527
528test -z "$lbindir" && lbindir='${bindir}'
529
530
531# Extract the first word of "gcc", so it can be a program name with args.
532set dummy gcc; ac_word=$2
533echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
534echo "configure:535: checking for $ac_word" >&5
535if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
536  echo $ac_n "(cached) $ac_c" 1>&6
537else
538  if test -n "$CC"; then
539  ac_cv_prog_CC="$CC" # Let the user override the test.
540else
541  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
542  for ac_dir in $PATH; do
543    test -z "$ac_dir" && ac_dir=.
544    if test -f $ac_dir/$ac_word; then
545      ac_cv_prog_CC="gcc"
546      break
547    fi
548  done
549  IFS="$ac_save_ifs"
550fi
551fi
552CC="$ac_cv_prog_CC"
553if test -n "$CC"; then
554  echo "$ac_t""$CC" 1>&6
555else
556  echo "$ac_t""no" 1>&6
557fi
558
559if test -z "$CC"; then
560  # Extract the first word of "cc", so it can be a program name with args.
561set dummy cc; ac_word=$2
562echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563echo "configure:564: checking for $ac_word" >&5
564if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565  echo $ac_n "(cached) $ac_c" 1>&6
566else
567  if test -n "$CC"; then
568  ac_cv_prog_CC="$CC" # Let the user override the test.
569else
570  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
571  ac_prog_rejected=no
572  for ac_dir in $PATH; do
573    test -z "$ac_dir" && ac_dir=.
574    if test -f $ac_dir/$ac_word; then
575      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
576        ac_prog_rejected=yes
577        continue
578      fi
579      ac_cv_prog_CC="cc"
580      break
581    fi
582  done
583  IFS="$ac_save_ifs"
584if test $ac_prog_rejected = yes; then
585  # We found a bogon in the path, so make sure we never use it.
586  set dummy $ac_cv_prog_CC
587  shift
588  if test $# -gt 0; then
589    # We chose a different compiler from the bogus one.
590    # However, it has the same basename, so the bogon will be chosen
591    # first if we set CC to just the basename; use the full file name.
592    shift
593    set dummy "$ac_dir/$ac_word" "$@"
594    shift
595    ac_cv_prog_CC="$@"
596  fi
597fi
598fi
599fi
600CC="$ac_cv_prog_CC"
601if test -n "$CC"; then
602  echo "$ac_t""$CC" 1>&6
603else
604  echo "$ac_t""no" 1>&6
605fi
606
607  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
608fi
609
610echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
611echo "configure:612: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
612
613ac_ext=c
614# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
615ac_cpp='$CPP $CPPFLAGS'
616ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
617ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
618cross_compiling=$ac_cv_prog_cc_cross
619
620cat > conftest.$ac_ext <<EOF
621#line 622 "configure"
622#include "confdefs.h"
623main(){return(0);}
624EOF
625if { (eval echo configure:626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
626  ac_cv_prog_cc_works=yes
627  # If we can't run a trivial program, we are probably using a cross compiler.
628  if (./conftest; exit) 2>/dev/null; then
629    ac_cv_prog_cc_cross=no
630  else
631    ac_cv_prog_cc_cross=yes
632  fi
633else
634  echo "configure: failed program was:" >&5
635  cat conftest.$ac_ext >&5
636  ac_cv_prog_cc_works=no
637fi
638rm -fr conftest*
639
640echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
641if test $ac_cv_prog_cc_works = no; then
642  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
643fi
644echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
645echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
646echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
647cross_compiling=$ac_cv_prog_cc_cross
648
649echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
650echo "configure:651: checking whether we are using GNU C" >&5
651if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
652  echo $ac_n "(cached) $ac_c" 1>&6
653else
654  cat > conftest.c <<EOF
655#ifdef __GNUC__
656  yes;
657#endif
658EOF
659if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
660  ac_cv_prog_gcc=yes
661else
662  ac_cv_prog_gcc=no
663fi
664fi
665
666echo "$ac_t""$ac_cv_prog_gcc" 1>&6
667
668if test $ac_cv_prog_gcc = yes; then
669  GCC=yes
670  ac_test_CFLAGS="${CFLAGS+set}"
671  ac_save_CFLAGS="$CFLAGS"
672  CFLAGS=
673  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
674echo "configure:675: checking whether ${CC-cc} accepts -g" >&5
675if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
676  echo $ac_n "(cached) $ac_c" 1>&6
677else
678  echo 'void f(){}' > conftest.c
679if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
680  ac_cv_prog_cc_g=yes
681else
682  ac_cv_prog_cc_g=no
683fi
684rm -f conftest*
685
686fi
687
688echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
689  if test "$ac_test_CFLAGS" = set; then
690    CFLAGS="$ac_save_CFLAGS"
691  elif test $ac_cv_prog_cc_g = yes; then
692    CFLAGS="-g -O2"
693  else
694    CFLAGS="-O2"
695  fi
696else
697  GCC=
698  test "${CFLAGS+set}" = set || CFLAGS="-g"
699fi
700
701ac_aux_dir=
702for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
703  if test -f $ac_dir/install-sh; then
704    ac_aux_dir=$ac_dir
705    ac_install_sh="$ac_aux_dir/install-sh -c"
706    break
707  elif test -f $ac_dir/install.sh; then
708    ac_aux_dir=$ac_dir
709    ac_install_sh="$ac_aux_dir/install.sh -c"
710    break
711  fi
712done
713if test -z "$ac_aux_dir"; then
714  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
715fi
716ac_config_guess=$ac_aux_dir/config.guess
717ac_config_sub=$ac_aux_dir/config.sub
718ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
719
720# Find a good install program.  We prefer a C program (faster),
721# so one script is as good as another.  But avoid the broken or
722# incompatible versions:
723# SysV /etc/install, /usr/sbin/install
724# SunOS /usr/etc/install
725# IRIX /sbin/install
726# AIX /bin/install
727# AFS /usr/afsws/bin/install, which mishandles nonexistent args
728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
729# ./install, which can be erroneously created by make from ./install.sh.
730echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
731echo "configure:732: checking for a BSD compatible install" >&5
732if test -z "$INSTALL"; then
733if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
734  echo $ac_n "(cached) $ac_c" 1>&6
735else
736    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
737  for ac_dir in $PATH; do
738    # Account for people who put trailing slashes in PATH elements.
739    case "$ac_dir/" in
740    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
741    *)
742      # OSF1 and SCO ODT 3.0 have their own names for install.
743      for ac_prog in ginstall installbsd scoinst install; do
744        if test -f $ac_dir/$ac_prog; then
745          if test $ac_prog = install &&
746            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
747            # AIX install.  It has an incompatible calling convention.
748            # OSF/1 installbsd also uses dspmsg, but is usable.
749            :
750          else
751            ac_cv_path_install="$ac_dir/$ac_prog -c"
752            break 2
753          fi
754        fi
755      done
756      ;;
757    esac
758  done
759  IFS="$ac_save_IFS"
760
761fi
762  if test "${ac_cv_path_install+set}" = set; then
763    INSTALL="$ac_cv_path_install"
764  else
765    # As a last resort, use the slow shell script.  We don't cache a
766    # path for INSTALL within a source directory, because that will
767    # break other packages using the cache if that directory is
768    # removed, or if the path is relative.
769    INSTALL="$ac_install_sh"
770  fi
771fi
772echo "$ac_t""$INSTALL" 1>&6
773
774# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
775# It thinks the first close brace ends the variable substitution.
776test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
777
778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
779
780
781# Check whether --with-com_err or --without-com_err was given.
782if test "${with_com_err+set}" = set; then
783  withval="$with_com_err"
784  com_err="$withval"
785else
786  com_err=yes
787fi
788
789if test "$com_err" != no; then
790        if test "$com_err" != yes; then
791                CPPFLAGS="$CPPFLAGS -I$com_err/include"
792                LDFLAGS="$LDFLAGS -L$com_err/lib"
793        fi
794        echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
795echo "configure:796: checking for com_err in -lcom_err" >&5
796ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
797if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
798  echo $ac_n "(cached) $ac_c" 1>&6
799else
800  ac_save_LIBS="$LIBS"
801LIBS="-lcom_err  $LIBS"
802cat > conftest.$ac_ext <<EOF
803#line 804 "configure"
804#include "confdefs.h"
805/* Override any gcc2 internal prototype to avoid an error.  */
806/* We use char because int might match the return type of a gcc2
807    builtin and then its argument prototype would still apply.  */
808char com_err();
809
810int main() {
811com_err()
812; return 0; }
813EOF
814if { (eval echo configure:815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
815  rm -rf conftest*
816  eval "ac_cv_lib_$ac_lib_var=yes"
817else
818  echo "configure: failed program was:" >&5
819  cat conftest.$ac_ext >&5
820  rm -rf conftest*
821  eval "ac_cv_lib_$ac_lib_var=no"
822fi
823rm -f conftest*
824LIBS="$ac_save_LIBS"
825
826fi
827if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
828  echo "$ac_t""yes" 1>&6
829  :
830else
831  echo "$ac_t""no" 1>&6
832{ echo "configure: error: com_err library not found" 1>&2; exit 1; }
833fi
834
835else
836        { echo "configure: error: This package requires com_err." 1>&2; exit 1; }
837fi
838# Check whether --with-krb4 or --without-krb4 was given.
839if test "${with_krb4+set}" = set; then
840  withval="$with_krb4"
841  krb4="$withval"
842else
843  krb4=yes
844fi
845
846if test "$afs" != no; then
847        echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
848echo "configure:849: checking for gethostbyname" >&5
849if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
850  echo $ac_n "(cached) $ac_c" 1>&6
851else
852  cat > conftest.$ac_ext <<EOF
853#line 854 "configure"
854#include "confdefs.h"
855/* System header to define __stub macros and hopefully few prototypes,
856    which can conflict with char gethostbyname(); below.  */
857#include <assert.h>
858/* Override any gcc2 internal prototype to avoid an error.  */
859/* We use char because int might match the return type of a gcc2
860    builtin and then its argument prototype would still apply.  */
861char gethostbyname();
862
863int main() {
864
865/* The GNU C library defines this for functions which it implements
866    to always fail with ENOSYS.  Some functions are actually named
867    something starting with __ and the normal name is an alias.  */
868#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
869choke me
870#else
871gethostbyname();
872#endif
873
874; return 0; }
875EOF
876if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
877  rm -rf conftest*
878  eval "ac_cv_func_gethostbyname=yes"
879else
880  echo "configure: failed program was:" >&5
881  cat conftest.$ac_ext >&5
882  rm -rf conftest*
883  eval "ac_cv_func_gethostbyname=no"
884fi
885rm -f conftest*
886fi
887
888if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
889  echo "$ac_t""yes" 1>&6
890  :
891else
892  echo "$ac_t""no" 1>&6
893echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
894echo "configure:895: checking for gethostbyname in -lnsl" >&5
895ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
896if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
897  echo $ac_n "(cached) $ac_c" 1>&6
898else
899  ac_save_LIBS="$LIBS"
900LIBS="-lnsl  $LIBS"
901cat > conftest.$ac_ext <<EOF
902#line 903 "configure"
903#include "confdefs.h"
904/* Override any gcc2 internal prototype to avoid an error.  */
905/* We use char because int might match the return type of a gcc2
906    builtin and then its argument prototype would still apply.  */
907char gethostbyname();
908
909int main() {
910gethostbyname()
911; return 0; }
912EOF
913if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
914  rm -rf conftest*
915  eval "ac_cv_lib_$ac_lib_var=yes"
916else
917  echo "configure: failed program was:" >&5
918  cat conftest.$ac_ext >&5
919  rm -rf conftest*
920  eval "ac_cv_lib_$ac_lib_var=no"
921fi
922rm -f conftest*
923LIBS="$ac_save_LIBS"
924
925fi
926if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
927  echo "$ac_t""yes" 1>&6
928    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
929    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
930  cat >> confdefs.h <<EOF
931#define $ac_tr_lib 1
932EOF
933
934  LIBS="-lnsl $LIBS"
935
936else
937  echo "$ac_t""no" 1>&6
938fi
939
940fi
941
942echo $ac_n "checking for socket""... $ac_c" 1>&6
943echo "configure:944: checking for socket" >&5
944if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
945  echo $ac_n "(cached) $ac_c" 1>&6
946else
947  cat > conftest.$ac_ext <<EOF
948#line 949 "configure"
949#include "confdefs.h"
950/* System header to define __stub macros and hopefully few prototypes,
951    which can conflict with char socket(); below.  */
952#include <assert.h>
953/* Override any gcc2 internal prototype to avoid an error.  */
954/* We use char because int might match the return type of a gcc2
955    builtin and then its argument prototype would still apply.  */
956char socket();
957
958int main() {
959
960/* The GNU C library defines this for functions which it implements
961    to always fail with ENOSYS.  Some functions are actually named
962    something starting with __ and the normal name is an alias.  */
963#if defined (__stub_socket) || defined (__stub___socket)
964choke me
965#else
966socket();
967#endif
968
969; return 0; }
970EOF
971if { (eval echo configure:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
972  rm -rf conftest*
973  eval "ac_cv_func_socket=yes"
974else
975  echo "configure: failed program was:" >&5
976  cat conftest.$ac_ext >&5
977  rm -rf conftest*
978  eval "ac_cv_func_socket=no"
979fi
980rm -f conftest*
981fi
982
983if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
984  echo "$ac_t""yes" 1>&6
985  :
986else
987  echo "$ac_t""no" 1>&6
988echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
989echo "configure:990: checking for socket in -lsocket" >&5
990ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
991if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
992  echo $ac_n "(cached) $ac_c" 1>&6
993else
994  ac_save_LIBS="$LIBS"
995LIBS="-lsocket  $LIBS"
996cat > conftest.$ac_ext <<EOF
997#line 998 "configure"
998#include "confdefs.h"
999/* Override any gcc2 internal prototype to avoid an error.  */
1000/* We use char because int might match the return type of a gcc2
1001    builtin and then its argument prototype would still apply.  */
1002char socket();
1003
1004int main() {
1005socket()
1006; return 0; }
1007EOF
1008if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1009  rm -rf conftest*
1010  eval "ac_cv_lib_$ac_lib_var=yes"
1011else
1012  echo "configure: failed program was:" >&5
1013  cat conftest.$ac_ext >&5
1014  rm -rf conftest*
1015  eval "ac_cv_lib_$ac_lib_var=no"
1016fi
1017rm -f conftest*
1018LIBS="$ac_save_LIBS"
1019
1020fi
1021if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1022  echo "$ac_t""yes" 1>&6
1023    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1024    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1025  cat >> confdefs.h <<EOF
1026#define $ac_tr_lib 1
1027EOF
1028
1029  LIBS="-lsocket $LIBS"
1030
1031else
1032  echo "$ac_t""no" 1>&6
1033fi
1034
1035fi
1036
1037echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6
1038echo "configure:1039: checking for compile in -lgen" >&5
1039ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'`
1040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1041  echo $ac_n "(cached) $ac_c" 1>&6
1042else
1043  ac_save_LIBS="$LIBS"
1044LIBS="-lgen  $LIBS"
1045cat > conftest.$ac_ext <<EOF
1046#line 1047 "configure"
1047#include "confdefs.h"
1048/* Override any gcc2 internal prototype to avoid an error.  */
1049/* We use char because int might match the return type of a gcc2
1050    builtin and then its argument prototype would still apply.  */
1051char compile();
1052
1053int main() {
1054compile()
1055; return 0; }
1056EOF
1057if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1058  rm -rf conftest*
1059  eval "ac_cv_lib_$ac_lib_var=yes"
1060else
1061  echo "configure: failed program was:" >&5
1062  cat conftest.$ac_ext >&5
1063  rm -rf conftest*
1064  eval "ac_cv_lib_$ac_lib_var=no"
1065fi
1066rm -f conftest*
1067LIBS="$ac_save_LIBS"
1068
1069fi
1070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1071  echo "$ac_t""yes" 1>&6
1072    ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1073    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1074  cat >> confdefs.h <<EOF
1075#define $ac_tr_lib 1
1076EOF
1077
1078  LIBS="-lgen $LIBS"
1079
1080else
1081  echo "$ac_t""no" 1>&6
1082fi
1083
1084if test "$krb4" != yes; then
1085        CPPFLAGS="$CPPFLAGS -I$krb4/include"
1086        if test -d "$krb4/include/kerberosIV"; then
1087                CPPFLAGS="$CPPFLAGS -I$krb4/include/kerberosIV"
1088        fi
1089        LDFLAGS="$LDFLAGS -L$krb4/lib"
1090elif test -d /usr/include/kerberosIV; then
1091        CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
1092fi
1093echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1094echo "configure:1095: checking for krb_rd_req in -lkrb4" >&5
1095ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1097  echo $ac_n "(cached) $ac_c" 1>&6
1098else
1099  ac_save_LIBS="$LIBS"
1100LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
1101cat > conftest.$ac_ext <<EOF
1102#line 1103 "configure"
1103#include "confdefs.h"
1104/* Override any gcc2 internal prototype to avoid an error.  */
1105/* We use char because int might match the return type of a gcc2
1106    builtin and then its argument prototype would still apply.  */
1107char krb_rd_req();
1108
1109int main() {
1110krb_rd_req()
1111; return 0; }
1112EOF
1113if { (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1114  rm -rf conftest*
1115  eval "ac_cv_lib_$ac_lib_var=yes"
1116else
1117  echo "configure: failed program was:" >&5
1118  cat conftest.$ac_ext >&5
1119  rm -rf conftest*
1120  eval "ac_cv_lib_$ac_lib_var=no"
1121fi
1122rm -f conftest*
1123LIBS="$ac_save_LIBS"
1124
1125fi
1126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1127  echo "$ac_t""yes" 1>&6
1128  KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
1129else
1130  echo "$ac_t""no" 1>&6
1131echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1132echo "configure:1133: checking for krb_rd_req in -lkrb" >&5
1133ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1135  echo $ac_n "(cached) $ac_c" 1>&6
1136else
1137  ac_save_LIBS="$LIBS"
1138LIBS="-lkrb -ldes $LIBS"
1139cat > conftest.$ac_ext <<EOF
1140#line 1141 "configure"
1141#include "confdefs.h"
1142/* Override any gcc2 internal prototype to avoid an error.  */
1143/* We use char because int might match the return type of a gcc2
1144    builtin and then its argument prototype would still apply.  */
1145char krb_rd_req();
1146
1147int main() {
1148krb_rd_req()
1149; return 0; }
1150EOF
1151if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1152  rm -rf conftest*
1153  eval "ac_cv_lib_$ac_lib_var=yes"
1154else
1155  echo "configure: failed program was:" >&5
1156  cat conftest.$ac_ext >&5
1157  rm -rf conftest*
1158  eval "ac_cv_lib_$ac_lib_var=no"
1159fi
1160rm -f conftest*
1161LIBS="$ac_save_LIBS"
1162
1163fi
1164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1165  echo "$ac_t""yes" 1>&6
1166  KRB4_LIBS="-lkrb -ldes"
1167else
1168  echo "$ac_t""no" 1>&6
1169{ echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1170fi
1171
1172fi
1173
1174       
1175else
1176        { echo "configure: error: This package requires Kerberos 4." 1>&2; exit 1; }
1177fi
1178# Check whether --with-afs or --without-afs was given.
1179if test "${with_afs+set}" = set; then
1180  withval="$with_afs"
1181  afs="$withval"
1182else
1183  afs=/usr/afsws
1184fi
1185
1186if test "$afs" != no; then
1187        echo $ac_n "checking for insque""... $ac_c" 1>&6
1188echo "configure:1189: checking for insque" >&5
1189if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
1190  echo $ac_n "(cached) $ac_c" 1>&6
1191else
1192  cat > conftest.$ac_ext <<EOF
1193#line 1194 "configure"
1194#include "confdefs.h"
1195/* System header to define __stub macros and hopefully few prototypes,
1196    which can conflict with char insque(); below.  */
1197#include <assert.h>
1198/* Override any gcc2 internal prototype to avoid an error.  */
1199/* We use char because int might match the return type of a gcc2
1200    builtin and then its argument prototype would still apply.  */
1201char insque();
1202
1203int main() {
1204
1205/* The GNU C library defines this for functions which it implements
1206    to always fail with ENOSYS.  Some functions are actually named
1207    something starting with __ and the normal name is an alias.  */
1208#if defined (__stub_insque) || defined (__stub___insque)
1209choke me
1210#else
1211insque();
1212#endif
1213
1214; return 0; }
1215EOF
1216if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1217  rm -rf conftest*
1218  eval "ac_cv_func_insque=yes"
1219else
1220  echo "configure: failed program was:" >&5
1221  cat conftest.$ac_ext >&5
1222  rm -rf conftest*
1223  eval "ac_cv_func_insque=no"
1224fi
1225rm -f conftest*
1226fi
1227
1228if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
1229  echo "$ac_t""yes" 1>&6
1230  :
1231else
1232  echo "$ac_t""no" 1>&6
1233echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
1234echo "configure:1235: checking for insque in -lcompat" >&5
1235ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
1236if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1237  echo $ac_n "(cached) $ac_c" 1>&6
1238else
1239  ac_save_LIBS="$LIBS"
1240LIBS="-lcompat  $LIBS"
1241cat > conftest.$ac_ext <<EOF
1242#line 1243 "configure"
1243#include "confdefs.h"
1244/* Override any gcc2 internal prototype to avoid an error.  */
1245/* We use char because int might match the return type of a gcc2
1246    builtin and then its argument prototype would still apply.  */
1247char insque();
1248
1249int main() {
1250insque()
1251; return 0; }
1252EOF
1253if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1254  rm -rf conftest*
1255  eval "ac_cv_lib_$ac_lib_var=yes"
1256else
1257  echo "configure: failed program was:" >&5
1258  cat conftest.$ac_ext >&5
1259  rm -rf conftest*
1260  eval "ac_cv_lib_$ac_lib_var=no"
1261fi
1262rm -f conftest*
1263LIBS="$ac_save_LIBS"
1264
1265fi
1266if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1267  echo "$ac_t""yes" 1>&6
1268    ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/^a-zA-Z0-9_/_/g' \
1269    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1270  cat >> confdefs.h <<EOF
1271#define $ac_tr_lib 1
1272EOF
1273
1274  LIBS="-lcompat $LIBS"
1275
1276else
1277  echo "$ac_t""no" 1>&6
1278fi
1279
1280fi
1281
1282echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1283echo "configure:1284: checking for sigvec" >&5
1284if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1285  echo $ac_n "(cached) $ac_c" 1>&6
1286else
1287  cat > conftest.$ac_ext <<EOF
1288#line 1289 "configure"
1289#include "confdefs.h"
1290/* System header to define __stub macros and hopefully few prototypes,
1291    which can conflict with char sigvec(); below.  */
1292#include <assert.h>
1293/* Override any gcc2 internal prototype to avoid an error.  */
1294/* We use char because int might match the return type of a gcc2
1295    builtin and then its argument prototype would still apply.  */
1296char sigvec();
1297
1298int main() {
1299
1300/* The GNU C library defines this for functions which it implements
1301    to always fail with ENOSYS.  Some functions are actually named
1302    something starting with __ and the normal name is an alias.  */
1303#if defined (__stub_sigvec) || defined (__stub___sigvec)
1304choke me
1305#else
1306sigvec();
1307#endif
1308
1309; return 0; }
1310EOF
1311if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1312  rm -rf conftest*
1313  eval "ac_cv_func_sigvec=yes"
1314else
1315  echo "configure: failed program was:" >&5
1316  cat conftest.$ac_ext >&5
1317  rm -rf conftest*
1318  eval "ac_cv_func_sigvec=no"
1319fi
1320rm -f conftest*
1321fi
1322
1323if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1324  echo "$ac_t""yes" 1>&6
1325  :
1326else
1327  echo "$ac_t""no" 1>&6
1328echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
1329echo "configure:1330: checking for sigvec in -lucb" >&5
1330ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
1331if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1332  echo $ac_n "(cached) $ac_c" 1>&6
1333else
1334  ac_save_LIBS="$LIBS"
1335LIBS="-lucb  $LIBS"
1336cat > conftest.$ac_ext <<EOF
1337#line 1338 "configure"
1338#include "confdefs.h"
1339/* Override any gcc2 internal prototype to avoid an error.  */
1340/* We use char because int might match the return type of a gcc2
1341    builtin and then its argument prototype would still apply.  */
1342char sigvec();
1343
1344int main() {
1345sigvec()
1346; return 0; }
1347EOF
1348if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1349  rm -rf conftest*
1350  eval "ac_cv_lib_$ac_lib_var=yes"
1351else
1352  echo "configure: failed program was:" >&5
1353  cat conftest.$ac_ext >&5
1354  rm -rf conftest*
1355  eval "ac_cv_lib_$ac_lib_var=no"
1356fi
1357rm -f conftest*
1358LIBS="$ac_save_LIBS"
1359
1360fi
1361if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1362  echo "$ac_t""yes" 1>&6
1363  LIBS="$LIBS -lc -lucb"
1364else
1365  echo "$ac_t""no" 1>&6
1366fi
1367
1368fi
1369
1370echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1371echo "configure:1372: checking for gethostbyname" >&5
1372if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1373  echo $ac_n "(cached) $ac_c" 1>&6
1374else
1375  cat > conftest.$ac_ext <<EOF
1376#line 1377 "configure"
1377#include "confdefs.h"
1378/* System header to define __stub macros and hopefully few prototypes,
1379    which can conflict with char gethostbyname(); below.  */
1380#include <assert.h>
1381/* Override any gcc2 internal prototype to avoid an error.  */
1382/* We use char because int might match the return type of a gcc2
1383    builtin and then its argument prototype would still apply.  */
1384char gethostbyname();
1385
1386int main() {
1387
1388/* The GNU C library defines this for functions which it implements
1389    to always fail with ENOSYS.  Some functions are actually named
1390    something starting with __ and the normal name is an alias.  */
1391#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1392choke me
1393#else
1394gethostbyname();
1395#endif
1396
1397; return 0; }
1398EOF
1399if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1400  rm -rf conftest*
1401  eval "ac_cv_func_gethostbyname=yes"
1402else
1403  echo "configure: failed program was:" >&5
1404  cat conftest.$ac_ext >&5
1405  rm -rf conftest*
1406  eval "ac_cv_func_gethostbyname=no"
1407fi
1408rm -f conftest*
1409fi
1410
1411if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1412  echo "$ac_t""yes" 1>&6
1413  :
1414else
1415  echo "$ac_t""no" 1>&6
1416echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1417echo "configure:1418: checking for gethostbyname in -lnsl" >&5
1418ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1420  echo $ac_n "(cached) $ac_c" 1>&6
1421else
1422  ac_save_LIBS="$LIBS"
1423LIBS="-lnsl  $LIBS"
1424cat > conftest.$ac_ext <<EOF
1425#line 1426 "configure"
1426#include "confdefs.h"
1427/* Override any gcc2 internal prototype to avoid an error.  */
1428/* We use char because int might match the return type of a gcc2
1429    builtin and then its argument prototype would still apply.  */
1430char gethostbyname();
1431
1432int main() {
1433gethostbyname()
1434; return 0; }
1435EOF
1436if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1437  rm -rf conftest*
1438  eval "ac_cv_lib_$ac_lib_var=yes"
1439else
1440  echo "configure: failed program was:" >&5
1441  cat conftest.$ac_ext >&5
1442  rm -rf conftest*
1443  eval "ac_cv_lib_$ac_lib_var=no"
1444fi
1445rm -f conftest*
1446LIBS="$ac_save_LIBS"
1447
1448fi
1449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1450  echo "$ac_t""yes" 1>&6
1451    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1452    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1453  cat >> confdefs.h <<EOF
1454#define $ac_tr_lib 1
1455EOF
1456
1457  LIBS="-lnsl $LIBS"
1458
1459else
1460  echo "$ac_t""no" 1>&6
1461fi
1462
1463fi
1464
1465echo $ac_n "checking for socket""... $ac_c" 1>&6
1466echo "configure:1467: checking for socket" >&5
1467if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1468  echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470  cat > conftest.$ac_ext <<EOF
1471#line 1472 "configure"
1472#include "confdefs.h"
1473/* System header to define __stub macros and hopefully few prototypes,
1474    which can conflict with char socket(); below.  */
1475#include <assert.h>
1476/* Override any gcc2 internal prototype to avoid an error.  */
1477/* We use char because int might match the return type of a gcc2
1478    builtin and then its argument prototype would still apply.  */
1479char socket();
1480
1481int main() {
1482
1483/* The GNU C library defines this for functions which it implements
1484    to always fail with ENOSYS.  Some functions are actually named
1485    something starting with __ and the normal name is an alias.  */
1486#if defined (__stub_socket) || defined (__stub___socket)
1487choke me
1488#else
1489socket();
1490#endif
1491
1492; return 0; }
1493EOF
1494if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1495  rm -rf conftest*
1496  eval "ac_cv_func_socket=yes"
1497else
1498  echo "configure: failed program was:" >&5
1499  cat conftest.$ac_ext >&5
1500  rm -rf conftest*
1501  eval "ac_cv_func_socket=no"
1502fi
1503rm -f conftest*
1504fi
1505
1506if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1507  echo "$ac_t""yes" 1>&6
1508  :
1509else
1510  echo "$ac_t""no" 1>&6
1511echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1512echo "configure:1513: checking for socket in -lsocket" >&5
1513ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515  echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517  ac_save_LIBS="$LIBS"
1518LIBS="-lsocket  $LIBS"
1519cat > conftest.$ac_ext <<EOF
1520#line 1521 "configure"
1521#include "confdefs.h"
1522/* Override any gcc2 internal prototype to avoid an error.  */
1523/* We use char because int might match the return type of a gcc2
1524    builtin and then its argument prototype would still apply.  */
1525char socket();
1526
1527int main() {
1528socket()
1529; return 0; }
1530EOF
1531if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1532  rm -rf conftest*
1533  eval "ac_cv_lib_$ac_lib_var=yes"
1534else
1535  echo "configure: failed program was:" >&5
1536  cat conftest.$ac_ext >&5
1537  rm -rf conftest*
1538  eval "ac_cv_lib_$ac_lib_var=no"
1539fi
1540rm -f conftest*
1541LIBS="$ac_save_LIBS"
1542
1543fi
1544if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1545  echo "$ac_t""yes" 1>&6
1546    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1547    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1548  cat >> confdefs.h <<EOF
1549#define $ac_tr_lib 1
1550EOF
1551
1552  LIBS="-lsocket $LIBS"
1553
1554else
1555  echo "$ac_t""no" 1>&6
1556fi
1557
1558fi
1559
1560if test "$afs" != yes; then
1561        CPPFLAGS="$CPPFLAGS -I$afs/include"
1562        LDFLAGS="$LDFLAGS -L$afs/lib -L$afs/lib/afs"
1563fi
1564echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
1565echo "configure:1566: checking for pioctl in -lsys" >&5
1566ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
1567if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1568  echo $ac_n "(cached) $ac_c" 1>&6
1569else
1570  ac_save_LIBS="$LIBS"
1571LIBS="-lsys -lrx -llwp -lsys $LIBS"
1572cat > conftest.$ac_ext <<EOF
1573#line 1574 "configure"
1574#include "confdefs.h"
1575/* Override any gcc2 internal prototype to avoid an error.  */
1576/* We use char because int might match the return type of a gcc2
1577    builtin and then its argument prototype would still apply.  */
1578char pioctl();
1579
1580int main() {
1581pioctl()
1582; return 0; }
1583EOF
1584if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1585  rm -rf conftest*
1586  eval "ac_cv_lib_$ac_lib_var=yes"
1587else
1588  echo "configure: failed program was:" >&5
1589  cat conftest.$ac_ext >&5
1590  rm -rf conftest*
1591  eval "ac_cv_lib_$ac_lib_var=no"
1592fi
1593rm -f conftest*
1594LIBS="$ac_save_LIBS"
1595
1596fi
1597if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1598  echo "$ac_t""yes" 1>&6
1599  :
1600else
1601  echo "$ac_t""no" 1>&6
1602{ echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
1603fi
1604
1605AFS_DIR=$afs
1606
1607else
1608        { echo "configure: error: This package requires AFS libraries." 1>&2; exit 1; }
1609fi
1610
1611trap '' 1 2 15
1612cat > confcache <<\EOF
1613# This file is a shell script that caches the results of configure
1614# tests run on this system so they can be shared between configure
1615# scripts and configure runs.  It is not useful on other systems.
1616# If it contains results you don't want to keep, you may remove or edit it.
1617#
1618# By default, configure uses ./config.cache as the cache file,
1619# creating it if it does not exist already.  You can give configure
1620# the --cache-file=FILE option to use a different cache file; that is
1621# what configure does when it calls configure scripts in
1622# subdirectories, so they share the cache.
1623# Giving --cache-file=/dev/null disables caching, for debugging configure.
1624# config.status only pays attention to the cache file if you give it the
1625# --recheck option to rerun configure.
1626#
1627EOF
1628# The following way of writing the cache mishandles newlines in values,
1629# but we know of no workaround that is simple, portable, and efficient.
1630# So, don't put newlines in cache variables' values.
1631# Ultrix sh set writes to stderr and can't be redirected directly,
1632# and sets the high bit in the cache file unless we assign to the vars.
1633(set) 2>&1 |
1634  case `(ac_space=' '; set) 2>&1` in
1635  *ac_space=\ *)
1636    # `set' does not quote correctly, so add quotes (double-quote substitution
1637    # turns \\\\ into \\, and sed turns \\ into \).
1638    sed -n \
1639      -e "s/'/'\\\\''/g" \
1640      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1641    ;;
1642  *)
1643    # `set' quotes correctly as required by POSIX, so do not add quotes.
1644    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1645    ;;
1646  esac >> confcache
1647if cmp -s $cache_file confcache; then
1648  :
1649else
1650  if test -w $cache_file; then
1651    echo "updating cache $cache_file"
1652    cat confcache > $cache_file
1653  else
1654    echo "not updating unwritable cache $cache_file"
1655  fi
1656fi
1657rm -f confcache
1658
1659trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1660
1661test "x$prefix" = xNONE && prefix=$ac_default_prefix
1662# Let make expand exec_prefix.
1663test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1664
1665# Any assignment to VPATH causes Sun make to only execute
1666# the first set of double-colon rules, so remove it if not needed.
1667# If there is a colon in the path, we need to keep it.
1668if test "x$srcdir" = x.; then
1669  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1670fi
1671
1672trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1673
1674# Transform confdefs.h into DEFS.
1675# Protect against shell expansion while executing Makefile rules.
1676# Protect against Makefile macro expansion.
1677cat > conftest.defs <<\EOF
1678s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1679s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1680s%\[%\\&%g
1681s%\]%\\&%g
1682s%\$%$$%g
1683EOF
1684DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1685rm -f conftest.defs
1686
1687
1688# Without the "./", some shells look in PATH for config.status.
1689: ${CONFIG_STATUS=./config.status}
1690
1691echo creating $CONFIG_STATUS
1692rm -f $CONFIG_STATUS
1693cat > $CONFIG_STATUS <<EOF
1694#! /bin/sh
1695# Generated automatically by configure.
1696# Run this file to recreate the current configuration.
1697# This directory was configured as follows,
1698# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1699#
1700# $0 $ac_configure_args
1701#
1702# Compiler output produced by configure, useful for debugging
1703# configure, is in ./config.log if it exists.
1704
1705ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1706for ac_option
1707do
1708  case "\$ac_option" in
1709  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1710    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1711    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1712  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1713    echo "$CONFIG_STATUS generated by autoconf version 2.12"
1714    exit 0 ;;
1715  -help | --help | --hel | --he | --h)
1716    echo "\$ac_cs_usage"; exit 0 ;;
1717  *) echo "\$ac_cs_usage"; exit 1 ;;
1718  esac
1719done
1720
1721ac_given_srcdir=$srcdir
1722ac_given_INSTALL="$INSTALL"
1723
1724trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1725EOF
1726cat >> $CONFIG_STATUS <<EOF
1727
1728# Protect against being on the right side of a sed subst in config.status.
1729sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1730 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1731$ac_vpsub
1732$extrasub
1733s%@CFLAGS@%$CFLAGS%g
1734s%@CPPFLAGS@%$CPPFLAGS%g
1735s%@CXXFLAGS@%$CXXFLAGS%g
1736s%@DEFS@%$DEFS%g
1737s%@LDFLAGS@%$LDFLAGS%g
1738s%@LIBS@%$LIBS%g
1739s%@exec_prefix@%$exec_prefix%g
1740s%@prefix@%$prefix%g
1741s%@program_transform_name@%$program_transform_name%g
1742s%@bindir@%$bindir%g
1743s%@sbindir@%$sbindir%g
1744s%@libexecdir@%$libexecdir%g
1745s%@datadir@%$datadir%g
1746s%@sysconfdir@%$sysconfdir%g
1747s%@sharedstatedir@%$sharedstatedir%g
1748s%@localstatedir@%$localstatedir%g
1749s%@libdir@%$libdir%g
1750s%@includedir@%$includedir%g
1751s%@oldincludedir@%$oldincludedir%g
1752s%@infodir@%$infodir%g
1753s%@mandir@%$mandir%g
1754s%@lbindir@%$lbindir%g
1755s%@CC@%$CC%g
1756s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1757s%@INSTALL_DATA@%$INSTALL_DATA%g
1758s%@KRB4_LIBS@%$KRB4_LIBS%g
1759s%@AFS_DIR@%$AFS_DIR%g
1760
1761CEOF
1762EOF
1763
1764cat >> $CONFIG_STATUS <<\EOF
1765
1766# Split the substitutions into bite-sized pieces for seds with
1767# small command number limits, like on Digital OSF/1 and HP-UX.
1768ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1769ac_file=1 # Number of current file.
1770ac_beg=1 # First line for current file.
1771ac_end=$ac_max_sed_cmds # Line after last line for current file.
1772ac_more_lines=:
1773ac_sed_cmds=""
1774while $ac_more_lines; do
1775  if test $ac_beg -gt 1; then
1776    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1777  else
1778    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1779  fi
1780  if test ! -s conftest.s$ac_file; then
1781    ac_more_lines=false
1782    rm -f conftest.s$ac_file
1783  else
1784    if test -z "$ac_sed_cmds"; then
1785      ac_sed_cmds="sed -f conftest.s$ac_file"
1786    else
1787      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1788    fi
1789    ac_file=`expr $ac_file + 1`
1790    ac_beg=$ac_end
1791    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1792  fi
1793done
1794if test -z "$ac_sed_cmds"; then
1795  ac_sed_cmds=cat
1796fi
1797EOF
1798
1799cat >> $CONFIG_STATUS <<EOF
1800
1801CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1802EOF
1803cat >> $CONFIG_STATUS <<\EOF
1804for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1805  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1806  case "$ac_file" in
1807  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1808       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1809  *) ac_file_in="${ac_file}.in" ;;
1810  esac
1811
1812  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1813
1814  # Remove last slash and all that follows it.  Not all systems have dirname.
1815  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1816  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1817    # The file is in a subdirectory.
1818    test ! -d "$ac_dir" && mkdir "$ac_dir"
1819    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1820    # A "../" for each directory in $ac_dir_suffix.
1821    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1822  else
1823    ac_dir_suffix= ac_dots=
1824  fi
1825
1826  case "$ac_given_srcdir" in
1827  .)  srcdir=.
1828      if test -z "$ac_dots"; then top_srcdir=.
1829      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1830  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1831  *) # Relative path.
1832    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1833    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1834  esac
1835
1836  case "$ac_given_INSTALL" in
1837  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1838  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1839  esac
1840
1841  echo creating "$ac_file"
1842  rm -f "$ac_file"
1843  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1844  case "$ac_file" in
1845  *Makefile*) ac_comsub="1i\\
1846# $configure_input" ;;
1847  *) ac_comsub= ;;
1848  esac
1849
1850  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1851  sed -e "$ac_comsub
1852s%@configure_input@%$configure_input%g
1853s%@srcdir@%$srcdir%g
1854s%@top_srcdir@%$top_srcdir%g
1855s%@INSTALL@%$INSTALL%g
1856" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1857fi; done
1858rm -f conftest.s*
1859
1860EOF
1861cat >> $CONFIG_STATUS <<EOF
1862
1863EOF
1864cat >> $CONFIG_STATUS <<\EOF
1865
1866exit 0
1867EOF
1868chmod +x $CONFIG_STATUS
1869rm -fr confdefs* $ac_clean_files
1870test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1871
Note: See TracBrowser for help on using the repository browser.