source: trunk/athena/bin/discuss/configure @ 12440

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