source: configure @ df0d93a

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since df0d93a was d09e5a1, checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
Added libfaim Added basic AIM support, including the "aimlogin", "aimwrite" and "aimlogout" commands
  • Property mode set to 100755
File size: 72.3 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 res_search in -lresolv""... $ac_c" 1>&6
1150echo "configure:1151: checking for res_search in -lresolv" >&5
1151ac_lib_var=`echo resolv'_'res_search | 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="-lresolv  $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 res_search();
1164
1165int main() {
1166res_search()
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 resolv | 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="-lresolv $LIBS"
1191
1192else
1193  echo "$ac_t""no" 1>&6
1194fi
1195
1196echo $ac_n "checking for krb5_get_credentials in -lkrb5""... $ac_c" 1>&6
1197echo "configure:1198: checking for krb5_get_credentials in -lkrb5" >&5
1198ac_lib_var=`echo krb5'_'krb5_get_credentials | 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="-lkrb5  $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 krb5_get_credentials();
1211
1212int main() {
1213krb5_get_credentials()
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 krb5 | 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="-lkrb5 $LIBS"
1238
1239else
1240  echo "$ac_t""no" 1>&6
1241fi
1242
1243echo $ac_n "checking for krb_sendauth in -lkrb4""... $ac_c" 1>&6
1244echo "configure:1245: checking for krb_sendauth in -lkrb4" >&5
1245ac_lib_var=`echo krb4'_'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="-lkrb4  $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 krb4 | 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="-lkrb4 $LIBS"
1285
1286else
1287  echo "$ac_t""no" 1>&6
1288echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
1289echo "configure:1290: checking for krb_sendauth in -lkrb" >&5
1290ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
1291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1292  echo $ac_n "(cached) $ac_c" 1>&6
1293else
1294  ac_save_LIBS="$LIBS"
1295LIBS="-lkrb  $LIBS"
1296cat > conftest.$ac_ext <<EOF
1297#line 1298 "configure"
1298#include "confdefs.h"
1299/* Override any gcc2 internal prototype to avoid an error.  */
1300/* We use char because int might match the return type of a gcc2
1301    builtin and then its argument prototype would still apply.  */
1302char krb_sendauth();
1303
1304int main() {
1305krb_sendauth()
1306; return 0; }
1307EOF
1308if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1309  rm -rf conftest*
1310  eval "ac_cv_lib_$ac_lib_var=yes"
1311else
1312  echo "configure: failed program was:" >&5
1313  cat conftest.$ac_ext >&5
1314  rm -rf conftest*
1315  eval "ac_cv_lib_$ac_lib_var=no"
1316fi
1317rm -f conftest*
1318LIBS="$ac_save_LIBS"
1319
1320fi
1321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1322  echo "$ac_t""yes" 1>&6
1323    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
1324    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1325  cat >> confdefs.h <<EOF
1326#define $ac_tr_lib 1
1327EOF
1328
1329  LIBS="-lkrb $LIBS"
1330
1331else
1332  echo "$ac_t""no" 1>&6
1333fi
1334
1335fi
1336
1337echo $ac_n "checking for ZGetSender in -lzephyr""... $ac_c" 1>&6
1338echo "configure:1339: checking for ZGetSender in -lzephyr" >&5
1339ac_lib_var=`echo zephyr'_'ZGetSender | sed 'y%./+-%__p_%'`
1340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1341  echo $ac_n "(cached) $ac_c" 1>&6
1342else
1343  ac_save_LIBS="$LIBS"
1344LIBS="-lzephyr  $LIBS"
1345cat > conftest.$ac_ext <<EOF
1346#line 1347 "configure"
1347#include "confdefs.h"
1348/* Override any gcc2 internal prototype to avoid an error.  */
1349/* We use char because int might match the return type of a gcc2
1350    builtin and then its argument prototype would still apply.  */
1351char ZGetSender();
1352
1353int main() {
1354ZGetSender()
1355; return 0; }
1356EOF
1357if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1358  rm -rf conftest*
1359  eval "ac_cv_lib_$ac_lib_var=yes"
1360else
1361  echo "configure: failed program was:" >&5
1362  cat conftest.$ac_ext >&5
1363  rm -rf conftest*
1364  eval "ac_cv_lib_$ac_lib_var=no"
1365fi
1366rm -f conftest*
1367LIBS="$ac_save_LIBS"
1368
1369fi
1370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1371  echo "$ac_t""yes" 1>&6
1372    ac_tr_lib=HAVE_LIB`echo zephyr | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1373    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1374  cat >> confdefs.h <<EOF
1375#define $ac_tr_lib 1
1376EOF
1377
1378  LIBS="-lzephyr $LIBS"
1379
1380else
1381  echo "$ac_t""no" 1>&6
1382{ echo "configure: error: No zephyr library found." 1>&2; exit 1; }
1383fi
1384
1385echo $ac_n "checking for ZInitLocationInfo in -lzephyr""... $ac_c" 1>&6
1386echo "configure:1387: checking for ZInitLocationInfo in -lzephyr" >&5
1387ac_lib_var=`echo zephyr'_'ZInitLocationInfo | sed 'y%./+-%__p_%'`
1388if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1389  echo $ac_n "(cached) $ac_c" 1>&6
1390else
1391  ac_save_LIBS="$LIBS"
1392LIBS="-lzephyr  $LIBS"
1393cat > conftest.$ac_ext <<EOF
1394#line 1395 "configure"
1395#include "confdefs.h"
1396/* Override any gcc2 internal prototype to avoid an error.  */
1397/* We use char because int might match the return type of a gcc2
1398    builtin and then its argument prototype would still apply.  */
1399char ZInitLocationInfo();
1400
1401int main() {
1402ZInitLocationInfo()
1403; return 0; }
1404EOF
1405if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1406  rm -rf conftest*
1407  eval "ac_cv_lib_$ac_lib_var=yes"
1408else
1409  echo "configure: failed program was:" >&5
1410  cat conftest.$ac_ext >&5
1411  rm -rf conftest*
1412  eval "ac_cv_lib_$ac_lib_var=no"
1413fi
1414rm -f conftest*
1415LIBS="$ac_save_LIBS"
1416
1417fi
1418if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1419  echo "$ac_t""yes" 1>&6
1420  cat >> confdefs.h <<\EOF
1421#define HAVE_LIBZEPHYR_ZINITLOCATIONINFO
1422EOF
1423
1424else
1425  echo "$ac_t""no" 1>&6
1426fi
1427
1428
1429for ac_func in use_default_colors des_string_to_key des_key_sched des_ecb_encrypt
1430do
1431echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1432echo "configure:1433: checking for $ac_func" >&5
1433if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1434  echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436  cat > conftest.$ac_ext <<EOF
1437#line 1438 "configure"
1438#include "confdefs.h"
1439/* System header to define __stub macros and hopefully few prototypes,
1440    which can conflict with char $ac_func(); below.  */
1441#include <assert.h>
1442/* Override any gcc2 internal prototype to avoid an error.  */
1443/* We use char because int might match the return type of a gcc2
1444    builtin and then its argument prototype would still apply.  */
1445char $ac_func();
1446
1447int main() {
1448
1449/* The GNU C library defines this for functions which it implements
1450    to always fail with ENOSYS.  Some functions are actually named
1451    something starting with __ and the normal name is an alias.  */
1452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1453choke me
1454#else
1455$ac_func();
1456#endif
1457
1458; return 0; }
1459EOF
1460if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1461  rm -rf conftest*
1462  eval "ac_cv_func_$ac_func=yes"
1463else
1464  echo "configure: failed program was:" >&5
1465  cat conftest.$ac_ext >&5
1466  rm -rf conftest*
1467  eval "ac_cv_func_$ac_func=no"
1468fi
1469rm -f conftest*
1470fi
1471
1472if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1473  echo "$ac_t""yes" 1>&6
1474    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1475  cat >> confdefs.h <<EOF
1476#define $ac_tr_func 1
1477EOF
1478 
1479else
1480  echo "$ac_t""no" 1>&6
1481fi
1482done
1483
1484
1485echo $ac_n "checking for des_ecb_encrypt prototype""... $ac_c" 1>&6
1486echo "configure:1487: checking for des_ecb_encrypt prototype" >&5
1487cat > conftest.$ac_ext <<EOF
1488#line 1489 "configure"
1489#include "confdefs.h"
1490#include <des.h>
1491int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);
1492int main() {
1493int foo = des_ecb_encrypt(0,0,0,0);
1494; return 0; }
1495EOF
1496if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1497  rm -rf conftest*
1498  ac_cv_des_ecb_encrypt_proto=no
1499else
1500  echo "configure: failed program was:" >&5
1501  cat conftest.$ac_ext >&5
1502  rm -rf conftest*
1503  ac_cv_des_ecb_encrypt_proto=yes
1504fi
1505rm -f conftest*
1506echo "$ac_t""$ac_cv_des_ecb_encrypt_proto" 1>&6
1507if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
1508        cat >> confdefs.h <<\EOF
1509#define HAVE_DES_ECB_ENCRYPT_PROTO
1510EOF
1511
1512fi
1513
1514
1515echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1516echo "configure:1517: checking how to run the C preprocessor" >&5
1517# On Suns, sometimes $CPP names a directory.
1518if test -n "$CPP" && test -d "$CPP"; then
1519  CPP=
1520fi
1521if test -z "$CPP"; then
1522if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1523  echo $ac_n "(cached) $ac_c" 1>&6
1524else
1525    # This must be in double quotes, not single quotes, because CPP may get
1526  # substituted into the Makefile and "${CC-cc}" will confuse make.
1527  CPP="${CC-cc} -E"
1528  # On the NeXT, cc -E runs the code through the compiler's parser,
1529  # not just through cpp.
1530  cat > conftest.$ac_ext <<EOF
1531#line 1532 "configure"
1532#include "confdefs.h"
1533#include <assert.h>
1534Syntax Error
1535EOF
1536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1537{ (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1539if test -z "$ac_err"; then
1540  :
1541else
1542  echo "$ac_err" >&5
1543  echo "configure: failed program was:" >&5
1544  cat conftest.$ac_ext >&5
1545  rm -rf conftest*
1546  CPP="${CC-cc} -E -traditional-cpp"
1547  cat > conftest.$ac_ext <<EOF
1548#line 1549 "configure"
1549#include "confdefs.h"
1550#include <assert.h>
1551Syntax Error
1552EOF
1553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554{ (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556if test -z "$ac_err"; then
1557  :
1558else
1559  echo "$ac_err" >&5
1560  echo "configure: failed program was:" >&5
1561  cat conftest.$ac_ext >&5
1562  rm -rf conftest*
1563  CPP="${CC-cc} -nologo -E"
1564  cat > conftest.$ac_ext <<EOF
1565#line 1566 "configure"
1566#include "confdefs.h"
1567#include <assert.h>
1568Syntax Error
1569EOF
1570ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1571{ (eval echo configure:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1572ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1573if test -z "$ac_err"; then
1574  :
1575else
1576  echo "$ac_err" >&5
1577  echo "configure: failed program was:" >&5
1578  cat conftest.$ac_ext >&5
1579  rm -rf conftest*
1580  CPP=/lib/cpp
1581fi
1582rm -f conftest*
1583fi
1584rm -f conftest*
1585fi
1586rm -f conftest*
1587  ac_cv_prog_CPP="$CPP"
1588fi
1589  CPP="$ac_cv_prog_CPP"
1590else
1591  ac_cv_prog_CPP="$CPP"
1592fi
1593echo "$ac_t""$CPP" 1>&6
1594
1595echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1596echo "configure:1597: checking for ANSI C header files" >&5
1597if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1598  echo $ac_n "(cached) $ac_c" 1>&6
1599else
1600  cat > conftest.$ac_ext <<EOF
1601#line 1602 "configure"
1602#include "confdefs.h"
1603#include <stdlib.h>
1604#include <stdarg.h>
1605#include <string.h>
1606#include <float.h>
1607EOF
1608ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609{ (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1611if test -z "$ac_err"; then
1612  rm -rf conftest*
1613  ac_cv_header_stdc=yes
1614else
1615  echo "$ac_err" >&5
1616  echo "configure: failed program was:" >&5
1617  cat conftest.$ac_ext >&5
1618  rm -rf conftest*
1619  ac_cv_header_stdc=no
1620fi
1621rm -f conftest*
1622
1623if test $ac_cv_header_stdc = yes; then
1624  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1625cat > conftest.$ac_ext <<EOF
1626#line 1627 "configure"
1627#include "confdefs.h"
1628#include <string.h>
1629EOF
1630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631  egrep "memchr" >/dev/null 2>&1; then
1632  :
1633else
1634  rm -rf conftest*
1635  ac_cv_header_stdc=no
1636fi
1637rm -f conftest*
1638
1639fi
1640
1641if test $ac_cv_header_stdc = yes; then
1642  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1643cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646#include <stdlib.h>
1647EOF
1648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1649  egrep "free" >/dev/null 2>&1; then
1650  :
1651else
1652  rm -rf conftest*
1653  ac_cv_header_stdc=no
1654fi
1655rm -f conftest*
1656
1657fi
1658
1659if test $ac_cv_header_stdc = yes; then
1660  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1661if test "$cross_compiling" = yes; then
1662  :
1663else
1664  cat > conftest.$ac_ext <<EOF
1665#line 1666 "configure"
1666#include "confdefs.h"
1667#include <ctype.h>
1668#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1669#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1671int main () { int i; for (i = 0; i < 256; i++)
1672if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1673exit (0); }
1674
1675EOF
1676if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1677then
1678  :
1679else
1680  echo "configure: failed program was:" >&5
1681  cat conftest.$ac_ext >&5
1682  rm -fr conftest*
1683  ac_cv_header_stdc=no
1684fi
1685rm -fr conftest*
1686fi
1687
1688fi
1689fi
1690
1691echo "$ac_t""$ac_cv_header_stdc" 1>&6
1692if test $ac_cv_header_stdc = yes; then
1693  cat >> confdefs.h <<\EOF
1694#define STDC_HEADERS 1
1695EOF
1696
1697fi
1698
1699echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1700echo "configure:1701: checking for sys/wait.h that is POSIX.1 compatible" >&5
1701if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1702  echo $ac_n "(cached) $ac_c" 1>&6
1703else
1704  cat > conftest.$ac_ext <<EOF
1705#line 1706 "configure"
1706#include "confdefs.h"
1707#include <sys/types.h>
1708#include <sys/wait.h>
1709#ifndef WEXITSTATUS
1710#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1711#endif
1712#ifndef WIFEXITED
1713#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1714#endif
1715int main() {
1716int s;
1717wait (&s);
1718s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1719; return 0; }
1720EOF
1721if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1722  rm -rf conftest*
1723  ac_cv_header_sys_wait_h=yes
1724else
1725  echo "configure: failed program was:" >&5
1726  cat conftest.$ac_ext >&5
1727  rm -rf conftest*
1728  ac_cv_header_sys_wait_h=no
1729fi
1730rm -f conftest*
1731fi
1732
1733echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1734if test $ac_cv_header_sys_wait_h = yes; then
1735  cat >> confdefs.h <<\EOF
1736#define HAVE_SYS_WAIT_H 1
1737EOF
1738
1739fi
1740
1741for ac_hdr in strings.h sys/ioctl.h unistd.h
1742do
1743ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1744echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1745echo "configure:1746: checking for $ac_hdr" >&5
1746if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1747  echo $ac_n "(cached) $ac_c" 1>&6
1748else
1749  cat > conftest.$ac_ext <<EOF
1750#line 1751 "configure"
1751#include "confdefs.h"
1752#include <$ac_hdr>
1753EOF
1754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1755{ (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1757if test -z "$ac_err"; then
1758  rm -rf conftest*
1759  eval "ac_cv_header_$ac_safe=yes"
1760else
1761  echo "$ac_err" >&5
1762  echo "configure: failed program was:" >&5
1763  cat conftest.$ac_ext >&5
1764  rm -rf conftest*
1765  eval "ac_cv_header_$ac_safe=no"
1766fi
1767rm -f conftest*
1768fi
1769if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1770  echo "$ac_t""yes" 1>&6
1771    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1772  cat >> confdefs.h <<EOF
1773#define $ac_tr_hdr 1
1774EOF
1775 
1776else
1777  echo "$ac_t""no" 1>&6
1778fi
1779done
1780
1781
1782FOO=`perl -MExtUtils::Embed -e ccopts`
1783echo Adding perl CFLAGS ${FOO}
1784CFLAGS=${CFLAGS}\ ${FOO}
1785
1786echo $ac_n "checking for the perl xsubpp precompiler""... $ac_c" 1>&6
1787echo "configure:1788: checking for the perl xsubpp precompiler" >&5
1788XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
1789if test -n "${XSUBPPDIR}"; then
1790   echo "$ac_t""${XSUBPPDIR}" 1>&6
1791else
1792   { echo "configure: error: not found" 1>&2; exit 1; }
1793fi
1794
1795FOO=`perl -MExtUtils::Embed -e ldopts | sed 's/,-E//'`
1796echo Adding perl LDFLAGS ${FOO}
1797LDFLAGS=${LDFLAGS}\ ${FOO}
1798
1799
1800ac_safe=`echo "/usr/share/terminfo" | sed 'y%./+-%__p_%'`
1801echo $ac_n "checking for /usr/share/terminfo""... $ac_c" 1>&6
1802echo "configure:1803: checking for /usr/share/terminfo" >&5
1803if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1804  echo $ac_n "(cached) $ac_c" 1>&6
1805else
1806  if test "$cross_compiling" = yes; then
1807    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1808else
1809  if test -r /usr/share/terminfo; then
1810    eval "ac_cv_file_$ac_safe=yes"
1811  else
1812    eval "ac_cv_file_$ac_safe=no"
1813  fi
1814fi
1815fi
1816if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1817  echo "$ac_t""yes" 1>&6
1818  cat >> confdefs.h <<\EOF
1819#define TERMINFO "/usr/share/terminfo"
1820EOF
1821
1822else
1823  echo "$ac_t""no" 1>&6
1824
1825ac_safe=`echo "/usr/share/lib/terminfo" | sed 'y%./+-%__p_%'`
1826echo $ac_n "checking for /usr/share/lib/terminfo""... $ac_c" 1>&6
1827echo "configure:1828: checking for /usr/share/lib/terminfo" >&5
1828if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1829  echo $ac_n "(cached) $ac_c" 1>&6
1830else
1831  if test "$cross_compiling" = yes; then
1832    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1833else
1834  if test -r /usr/share/lib/terminfo; then
1835    eval "ac_cv_file_$ac_safe=yes"
1836  else
1837    eval "ac_cv_file_$ac_safe=no"
1838  fi
1839fi
1840fi
1841if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1842  echo "$ac_t""yes" 1>&6
1843  cat >> confdefs.h <<\EOF
1844#define TERMINFO "/usr/share/lib/terminfo"
1845EOF
1846
1847else
1848  echo "$ac_t""no" 1>&6
1849{ echo "configure: error: No terminfo found for this system" 1>&2; exit 1; }
1850fi
1851
1852fi
1853
1854
1855
1856
1857ac_aux_dir=
1858for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1859  if test -f $ac_dir/install-sh; then
1860    ac_aux_dir=$ac_dir
1861    ac_install_sh="$ac_aux_dir/install-sh -c"
1862    break
1863  elif test -f $ac_dir/install.sh; then
1864    ac_aux_dir=$ac_dir
1865    ac_install_sh="$ac_aux_dir/install.sh -c"
1866    break
1867  fi
1868done
1869if test -z "$ac_aux_dir"; then
1870  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1871fi
1872ac_config_guess=$ac_aux_dir/config.guess
1873ac_config_sub=$ac_aux_dir/config.sub
1874ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1875
1876# Find a good install program.  We prefer a C program (faster),
1877# so one script is as good as another.  But avoid the broken or
1878# incompatible versions:
1879# SysV /etc/install, /usr/sbin/install
1880# SunOS /usr/etc/install
1881# IRIX /sbin/install
1882# AIX /bin/install
1883# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1884# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1885# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1886# ./install, which can be erroneously created by make from ./install.sh.
1887echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1888echo "configure:1889: checking for a BSD compatible install" >&5
1889if test -z "$INSTALL"; then
1890if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1891  echo $ac_n "(cached) $ac_c" 1>&6
1892else
1893    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1894  for ac_dir in $PATH; do
1895    # Account for people who put trailing slashes in PATH elements.
1896    case "$ac_dir/" in
1897    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1898    *)
1899      # OSF1 and SCO ODT 3.0 have their own names for install.
1900      # Don't use installbsd from OSF since it installs stuff as root
1901      # by default.
1902      for ac_prog in ginstall scoinst install; do
1903        if test -f $ac_dir/$ac_prog; then
1904          if test $ac_prog = install &&
1905            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1906            # AIX install.  It has an incompatible calling convention.
1907            :
1908          else
1909            ac_cv_path_install="$ac_dir/$ac_prog -c"
1910            break 2
1911          fi
1912        fi
1913      done
1914      ;;
1915    esac
1916  done
1917  IFS="$ac_save_IFS"
1918
1919fi
1920  if test "${ac_cv_path_install+set}" = set; then
1921    INSTALL="$ac_cv_path_install"
1922  else
1923    # As a last resort, use the slow shell script.  We don't cache a
1924    # path for INSTALL within a source directory, because that will
1925    # break other packages using the cache if that directory is
1926    # removed, or if the path is relative.
1927    INSTALL="$ac_install_sh"
1928  fi
1929fi
1930echo "$ac_t""$INSTALL" 1>&6
1931
1932# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1933# It thinks the first close brace ends the variable substitution.
1934test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1935
1936test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1937
1938test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1939
1940
1941subdirs="libfaim"
1942
1943
1944trap '' 1 2 15
1945cat > confcache <<\EOF
1946# This file is a shell script that caches the results of configure
1947# tests run on this system so they can be shared between configure
1948# scripts and configure runs.  It is not useful on other systems.
1949# If it contains results you don't want to keep, you may remove or edit it.
1950#
1951# By default, configure uses ./config.cache as the cache file,
1952# creating it if it does not exist already.  You can give configure
1953# the --cache-file=FILE option to use a different cache file; that is
1954# what configure does when it calls configure scripts in
1955# subdirectories, so they share the cache.
1956# Giving --cache-file=/dev/null disables caching, for debugging configure.
1957# config.status only pays attention to the cache file if you give it the
1958# --recheck option to rerun configure.
1959#
1960EOF
1961# The following way of writing the cache mishandles newlines in values,
1962# but we know of no workaround that is simple, portable, and efficient.
1963# So, don't put newlines in cache variables' values.
1964# Ultrix sh set writes to stderr and can't be redirected directly,
1965# and sets the high bit in the cache file unless we assign to the vars.
1966(set) 2>&1 |
1967  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1968  *ac_space=\ *)
1969    # `set' does not quote correctly, so add quotes (double-quote substitution
1970    # turns \\\\ into \\, and sed turns \\ into \).
1971    sed -n \
1972      -e "s/'/'\\\\''/g" \
1973      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1974    ;;
1975  *)
1976    # `set' quotes correctly as required by POSIX, so do not add quotes.
1977    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1978    ;;
1979  esac >> confcache
1980if cmp -s $cache_file confcache; then
1981  :
1982else
1983  if test -w $cache_file; then
1984    echo "updating cache $cache_file"
1985    cat confcache > $cache_file
1986  else
1987    echo "not updating unwritable cache $cache_file"
1988  fi
1989fi
1990rm -f confcache
1991
1992trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1993
1994test "x$prefix" = xNONE && prefix=$ac_default_prefix
1995# Let make expand exec_prefix.
1996test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1997
1998# Any assignment to VPATH causes Sun make to only execute
1999# the first set of double-colon rules, so remove it if not needed.
2000# If there is a colon in the path, we need to keep it.
2001if test "x$srcdir" = x.; then
2002  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2003fi
2004
2005trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2006
2007DEFS=-DHAVE_CONFIG_H
2008
2009# Without the "./", some shells look in PATH for config.status.
2010: ${CONFIG_STATUS=./config.status}
2011
2012echo creating $CONFIG_STATUS
2013rm -f $CONFIG_STATUS
2014cat > $CONFIG_STATUS <<EOF
2015#! /bin/sh
2016# Generated automatically by configure.
2017# Run this file to recreate the current configuration.
2018# This directory was configured as follows,
2019# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2020#
2021# $0 $ac_configure_args
2022#
2023# Compiler output produced by configure, useful for debugging
2024# configure, is in ./config.log if it exists.
2025
2026ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2027for ac_option
2028do
2029  case "\$ac_option" in
2030  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2031    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2032    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2033  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2034    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2035    exit 0 ;;
2036  -help | --help | --hel | --he | --h)
2037    echo "\$ac_cs_usage"; exit 0 ;;
2038  *) echo "\$ac_cs_usage"; exit 1 ;;
2039  esac
2040done
2041
2042ac_given_srcdir=$srcdir
2043ac_given_INSTALL="$INSTALL"
2044
2045trap 'rm -fr `echo "Makefile config.h" | 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%@SHELL@%$SHELL%g
2055s%@CFLAGS@%$CFLAGS%g
2056s%@CPPFLAGS@%$CPPFLAGS%g
2057s%@CXXFLAGS@%$CXXFLAGS%g
2058s%@FFLAGS@%$FFLAGS%g
2059s%@DEFS@%$DEFS%g
2060s%@LDFLAGS@%$LDFLAGS%g
2061s%@LIBS@%$LIBS%g
2062s%@exec_prefix@%$exec_prefix%g
2063s%@prefix@%$prefix%g
2064s%@program_transform_name@%$program_transform_name%g
2065s%@bindir@%$bindir%g
2066s%@sbindir@%$sbindir%g
2067s%@libexecdir@%$libexecdir%g
2068s%@datadir@%$datadir%g
2069s%@sysconfdir@%$sysconfdir%g
2070s%@sharedstatedir@%$sharedstatedir%g
2071s%@localstatedir@%$localstatedir%g
2072s%@libdir@%$libdir%g
2073s%@includedir@%$includedir%g
2074s%@oldincludedir@%$oldincludedir%g
2075s%@infodir@%$infodir%g
2076s%@mandir@%$mandir%g
2077s%@CC@%$CC%g
2078s%@CPP@%$CPP%g
2079s%@XSUBPPDIR@%$XSUBPPDIR%g
2080s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2081s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2082s%@INSTALL_DATA@%$INSTALL_DATA%g
2083s%@subdirs@%$subdirs%g
2084
2085CEOF
2086EOF
2087
2088cat >> $CONFIG_STATUS <<\EOF
2089
2090# Split the substitutions into bite-sized pieces for seds with
2091# small command number limits, like on Digital OSF/1 and HP-UX.
2092ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2093ac_file=1 # Number of current file.
2094ac_beg=1 # First line for current file.
2095ac_end=$ac_max_sed_cmds # Line after last line for current file.
2096ac_more_lines=:
2097ac_sed_cmds=""
2098while $ac_more_lines; do
2099  if test $ac_beg -gt 1; then
2100    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2101  else
2102    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2103  fi
2104  if test ! -s conftest.s$ac_file; then
2105    ac_more_lines=false
2106    rm -f conftest.s$ac_file
2107  else
2108    if test -z "$ac_sed_cmds"; then
2109      ac_sed_cmds="sed -f conftest.s$ac_file"
2110    else
2111      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2112    fi
2113    ac_file=`expr $ac_file + 1`
2114    ac_beg=$ac_end
2115    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2116  fi
2117done
2118if test -z "$ac_sed_cmds"; then
2119  ac_sed_cmds=cat
2120fi
2121EOF
2122
2123cat >> $CONFIG_STATUS <<EOF
2124
2125CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2126EOF
2127cat >> $CONFIG_STATUS <<\EOF
2128for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2129  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2130  case "$ac_file" in
2131  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2132       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2133  *) ac_file_in="${ac_file}.in" ;;
2134  esac
2135
2136  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2137
2138  # Remove last slash and all that follows it.  Not all systems have dirname.
2139  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2140  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2141    # The file is in a subdirectory.
2142    test ! -d "$ac_dir" && mkdir "$ac_dir"
2143    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2144    # A "../" for each directory in $ac_dir_suffix.
2145    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2146  else
2147    ac_dir_suffix= ac_dots=
2148  fi
2149
2150  case "$ac_given_srcdir" in
2151  .)  srcdir=.
2152      if test -z "$ac_dots"; then top_srcdir=.
2153      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2154  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2155  *) # Relative path.
2156    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2157    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2158  esac
2159
2160  case "$ac_given_INSTALL" in
2161  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2162  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2163  esac
2164
2165  echo creating "$ac_file"
2166  rm -f "$ac_file"
2167  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2168  case "$ac_file" in
2169  *Makefile*) ac_comsub="1i\\
2170# $configure_input" ;;
2171  *) ac_comsub= ;;
2172  esac
2173
2174  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2175  sed -e "$ac_comsub
2176s%@configure_input@%$configure_input%g
2177s%@srcdir@%$srcdir%g
2178s%@top_srcdir@%$top_srcdir%g
2179s%@INSTALL@%$INSTALL%g
2180" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2181fi; done
2182rm -f conftest.s*
2183
2184# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2185# NAME is the cpp macro being defined and VALUE is the value it is being given.
2186#
2187# ac_d sets the value in "#define NAME VALUE" lines.
2188ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2189ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2190ac_dC='\3'
2191ac_dD='%g'
2192# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2193ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2194ac_uB='\([      ]\)%\1#\2define\3'
2195ac_uC=' '
2196ac_uD='\4%g'
2197# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2198ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2199ac_eB='$%\1#\2define\3'
2200ac_eC=' '
2201ac_eD='%g'
2202
2203if test "${CONFIG_HEADERS+set}" != set; then
2204EOF
2205cat >> $CONFIG_STATUS <<EOF
2206  CONFIG_HEADERS="config.h"
2207EOF
2208cat >> $CONFIG_STATUS <<\EOF
2209fi
2210for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2211  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2212  case "$ac_file" in
2213  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2214       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2215  *) ac_file_in="${ac_file}.in" ;;
2216  esac
2217
2218  echo creating $ac_file
2219
2220  rm -f conftest.frag conftest.in conftest.out
2221  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2222  cat $ac_file_inputs > conftest.in
2223
2224EOF
2225
2226# Transform confdefs.h into a sed script conftest.vals that substitutes
2227# the proper values into config.h.in to produce config.h.  And first:
2228# Protect against being on the right side of a sed subst in config.status.
2229# Protect against being in an unquoted here document in config.status.
2230rm -f conftest.vals
2231cat > conftest.hdr <<\EOF
2232s/[\\&%]/\\&/g
2233s%[\\$`]%\\&%g
2234s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2235s%ac_d%ac_u%gp
2236s%ac_u%ac_e%gp
2237EOF
2238sed -n -f conftest.hdr confdefs.h > conftest.vals
2239rm -f conftest.hdr
2240
2241# This sed command replaces #undef with comments.  This is necessary, for
2242# example, in the case of _POSIX_SOURCE, which is predefined and required
2243# on some systems where configure will not decide to define it.
2244cat >> conftest.vals <<\EOF
2245s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2246EOF
2247
2248# Break up conftest.vals because some shells have a limit on
2249# the size of here documents, and old seds have small limits too.
2250
2251rm -f conftest.tail
2252while :
2253do
2254  ac_lines=`grep -c . conftest.vals`
2255  # grep -c gives empty output for an empty file on some AIX systems.
2256  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2257  # Write a limited-size here document to conftest.frag.
2258  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2259  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2260  echo 'CEOF
2261  sed -f conftest.frag conftest.in > conftest.out
2262  rm -f conftest.in
2263  mv conftest.out conftest.in
2264' >> $CONFIG_STATUS
2265  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2266  rm -f conftest.vals
2267  mv conftest.tail conftest.vals
2268done
2269rm -f conftest.vals
2270
2271cat >> $CONFIG_STATUS <<\EOF
2272  rm -f conftest.frag conftest.h
2273  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2274  cat conftest.in >> conftest.h
2275  rm -f conftest.in
2276  if cmp -s $ac_file conftest.h 2>/dev/null; then
2277    echo "$ac_file is unchanged"
2278    rm -f conftest.h
2279  else
2280    # Remove last slash and all that follows it.  Not all systems have dirname.
2281      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2282      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2283      # The file is in a subdirectory.
2284      test ! -d "$ac_dir" && mkdir "$ac_dir"
2285    fi
2286    rm -f $ac_file
2287    mv conftest.h $ac_file
2288  fi
2289fi; done
2290
2291EOF
2292cat >> $CONFIG_STATUS <<EOF
2293
2294EOF
2295cat >> $CONFIG_STATUS <<\EOF
2296
2297exit 0
2298EOF
2299chmod +x $CONFIG_STATUS
2300rm -fr confdefs* $ac_clean_files
2301test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2302
2303if test "$no_recursion" != yes; then
2304
2305  # Remove --cache-file and --srcdir arguments so they do not pile up.
2306  ac_sub_configure_args=
2307  ac_prev=
2308  for ac_arg in $ac_configure_args; do
2309    if test -n "$ac_prev"; then
2310      ac_prev=
2311      continue
2312    fi
2313    case "$ac_arg" in
2314    -cache-file | --cache-file | --cache-fil | --cache-fi \
2315    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2316      ac_prev=cache_file ;;
2317    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2318    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2319      ;;
2320    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2321      ac_prev=srcdir ;;
2322    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2323      ;;
2324    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2325    esac
2326  done
2327
2328  for ac_config_dir in libfaim; do
2329
2330    # Do not complain, so a configure script can configure whichever
2331    # parts of a large source tree are present.
2332    if test ! -d $srcdir/$ac_config_dir; then
2333      continue
2334    fi
2335
2336    echo configuring in $ac_config_dir
2337
2338    case "$srcdir" in
2339    .) ;;
2340    *)
2341      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2342      else
2343        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2344      fi
2345      ;;
2346    esac
2347
2348    ac_popdir=`pwd`
2349    cd $ac_config_dir
2350
2351      # A "../" for each directory in /$ac_config_dir.
2352      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2353
2354    case "$srcdir" in
2355    .) # No --srcdir option.  We are building in place.
2356      ac_sub_srcdir=$srcdir ;;
2357    /*) # Absolute path.
2358      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2359    *) # Relative path.
2360      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2361    esac
2362
2363    # Check for guested configure; otherwise get Cygnus style configure.
2364    if test -f $ac_sub_srcdir/configure; then
2365      ac_sub_configure=$ac_sub_srcdir/configure
2366    elif test -f $ac_sub_srcdir/configure.in; then
2367      ac_sub_configure=$ac_configure
2368    else
2369      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2370      ac_sub_configure=
2371    fi
2372
2373    # The recursion is here.
2374    if test -n "$ac_sub_configure"; then
2375
2376      # Make the cache file name correct relative to the subdirectory.
2377      case "$cache_file" in
2378      /*) ac_sub_cache_file=$cache_file ;;
2379      *) # Relative path.
2380        ac_sub_cache_file="$ac_dots$cache_file" ;;
2381      esac
2382  case "$ac_given_INSTALL" in
2383        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2384        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2385        esac
2386
2387      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2388      # The eval makes quoting arguments work.
2389      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2390      then :
2391      else
2392        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2393      fi
2394    fi
2395
2396    cd $ac_popdir
2397  done
2398fi
2399
Note: See TracBrowser for help on using the repository browser.