source: configure @ c86a35c

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