source: configure @ 140d02a

barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 140d02a was bbd2fdc, checked in by Kevin Chen <kchen@mit.edu>, 15 years ago
remove references to -ldes
  • Property mode set to 100755
File size: 162.5 KB
RevLine 
[7d4fbcd]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[8298425]3# Generated by GNU Autoconf 2.59.
[7d4fbcd]4#
[8298425]5# Copyright (C) 2003 Free Software Foundation, Inc.
[7d4fbcd]6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
[8298425]8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
[7d4fbcd]229
[8298425]230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
[7d4fbcd]254ac_default_prefix=/usr/local
[8298425]255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="owl.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subdirs_all="$ac_subdirs_all libfaim"
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP XSUBPPDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS'
314ac_subst_files=''
[7d4fbcd]315
316# Initialize some variables set by options.
[8298425]317ac_init_help=
318ac_init_version=false
[7d4fbcd]319# The variables have the same names as the options, with
320# dashes changed to underlines.
[8298425]321cache_file=/dev/null
[7d4fbcd]322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
[8298425]335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
[7d4fbcd]341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
[8298425]364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
[7d4fbcd]365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
[8298425]368  case $ac_option in
[7d4fbcd]369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
[8298425]373    bindir=$ac_optarg ;;
[7d4fbcd]374
375  -build | --build | --buil | --bui | --bu)
[8298425]376    ac_prev=build_alias ;;
[7d4fbcd]377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
[8298425]378    build_alias=$ac_optarg ;;
[7d4fbcd]379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
[8298425]385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
[7d4fbcd]389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
[8298425]394    datadir=$ac_optarg ;;
[7d4fbcd]395
396  -disable-* | --disable-*)
[8298425]397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
[7d4fbcd]398    # Reject names that are not valid shell variable names.
[8298425]399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
[7d4fbcd]404
405  -enable-* | --enable-*)
[8298425]406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
[7d4fbcd]407    # Reject names that are not valid shell variable names.
[8298425]408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
[7d4fbcd]414      *) ac_optarg=yes ;;
415    esac
[8298425]416    eval "enable_$ac_feature='$ac_optarg'" ;;
[7d4fbcd]417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
[8298425]425    exec_prefix=$ac_optarg ;;
[7d4fbcd]426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
[8298425]431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
[7d4fbcd]437
438  -host | --host | --hos | --ho)
[8298425]439    ac_prev=host_alias ;;
[7d4fbcd]440  -host=* | --host=* | --hos=* | --ho=*)
[8298425]441    host_alias=$ac_optarg ;;
[7d4fbcd]442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
[8298425]448    includedir=$ac_optarg ;;
[7d4fbcd]449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
[8298425]453    infodir=$ac_optarg ;;
[7d4fbcd]454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
[8298425]458    libdir=$ac_optarg ;;
[7d4fbcd]459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
[8298425]465    libexecdir=$ac_optarg ;;
[7d4fbcd]466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
[8298425]474    localstatedir=$ac_optarg ;;
[7d4fbcd]475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
[8298425]479    mandir=$ac_optarg ;;
[7d4fbcd]480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
[8298425]486  | --no-cr | --no-c | -n)
[7d4fbcd]487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
[8298425]500    oldincludedir=$ac_optarg ;;
[7d4fbcd]501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
[8298425]505    prefix=$ac_optarg ;;
[7d4fbcd]506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
[8298425]512    program_prefix=$ac_optarg ;;
[7d4fbcd]513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
[8298425]519    program_suffix=$ac_optarg ;;
[7d4fbcd]520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
[8298425]536    program_transform_name=$ac_optarg ;;
[7d4fbcd]537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
[8298425]546    sbindir=$ac_optarg ;;
[7d4fbcd]547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
[8298425]557    sharedstatedir=$ac_optarg ;;
[7d4fbcd]558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
[8298425]562    site=$ac_optarg ;;
[7d4fbcd]563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
[8298425]567    srcdir=$ac_optarg ;;
[7d4fbcd]568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
[8298425]574    sysconfdir=$ac_optarg ;;
[7d4fbcd]575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
[8298425]577    ac_prev=target_alias ;;
[7d4fbcd]578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
[8298425]579    target_alias=$ac_optarg ;;
[7d4fbcd]580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
[8298425]584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
[7d4fbcd]586
587  -with-* | --with-*)
[8298425]588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
[7d4fbcd]589    # Reject names that are not valid shell variable names.
[8298425]590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
[7d4fbcd]593    ac_package=`echo $ac_package| sed 's/-/_/g'`
[8298425]594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
[7d4fbcd]596      *) ac_optarg=yes ;;
597    esac
[8298425]598    eval "with_$ac_package='$ac_optarg'" ;;
[7d4fbcd]599
600  -without-* | --without-*)
[8298425]601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
[7d4fbcd]602    # Reject names that are not valid shell variable names.
[8298425]603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
[7d4fbcd]608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
[8298425]618    x_includes=$ac_optarg ;;
[7d4fbcd]619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
[8298425]625    x_libraries=$ac_optarg ;;
[7d4fbcd]626
[8298425]627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
[7d4fbcd]630    ;;
631
[8298425]632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
[7d4fbcd]642  *)
[8298425]643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
[7d4fbcd]648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
[8298425]654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
[7d4fbcd]657fi
658
[8298425]659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
[7d4fbcd]669
[8298425]670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672              localstatedir libdir includedir oldincludedir infodir mandir
[7d4fbcd]673do
[8298425]674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
[7d4fbcd]679  esac
680done
681
[8298425]682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
[7d4fbcd]699
[8298425]700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
[7d4fbcd]704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
[8298425]710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712         X"$0" : 'X\(//\)[^/]' \| \
713         X"$0" : 'X\(//\)$' \| \
714         X"$0" : 'X\(/\)' \| \
715         .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719          /^X\(\/\/\)$/{ s//\1/; q; }
720          /^X\(\/\).*/{ s//\1/; q; }
721          s/.*/./; q'`
[7d4fbcd]722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
[8298425]731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
[7d4fbcd]733  else
[8298425]734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
[7d4fbcd]736  fi
737fi
[8298425]738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807                          [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                          [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838
839  cat <<\_ACEOF
840
841Some influential environment variables:
842  CC          C compiler command
843  CFLAGS      C compiler flags
844  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
845              nonstandard directory <lib dir>
846  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
847              headers in a nonstandard directory <include dir>
848  CPP         C preprocessor
849
850Use these variables to override the choices made by `configure' or to help
851it to find libraries and programs with nonstandard names/locations.
852
853_ACEOF
854fi
855
856if test "$ac_init_help" = "recursive"; then
857  # If there are subdirs, report their specific --help.
858  ac_popdir=`pwd`
859  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
860    test -d $ac_dir || continue
861    ac_builddir=.
862
863if test "$ac_dir" != .; then
864  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
865  # A "../" for each directory in $ac_dir_suffix.
866  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
867else
868  ac_dir_suffix= ac_top_builddir=
869fi
870
871case $srcdir in
872  .)  # No --srcdir option.  We are building in place.
873    ac_srcdir=.
874    if test -z "$ac_top_builddir"; then
875       ac_top_srcdir=.
876    else
877       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
878    fi ;;
879  [\\/]* | ?:[\\/]* )  # Absolute path.
880    ac_srcdir=$srcdir$ac_dir_suffix;
881    ac_top_srcdir=$srcdir ;;
882  *) # Relative path.
883    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
884    ac_top_srcdir=$ac_top_builddir$srcdir ;;
885esac
886
887# Do not use `cd foo && pwd` to compute absolute paths, because
888# the directories may not exist.
889case `pwd` in
890.) ac_abs_builddir="$ac_dir";;
891*)
892  case "$ac_dir" in
893  .) ac_abs_builddir=`pwd`;;
894  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
895  *) ac_abs_builddir=`pwd`/"$ac_dir";;
896  esac;;
897esac
898case $ac_abs_builddir in
899.) ac_abs_top_builddir=${ac_top_builddir}.;;
900*)
901  case ${ac_top_builddir}. in
902  .) ac_abs_top_builddir=$ac_abs_builddir;;
903  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
904  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
905  esac;;
906esac
907case $ac_abs_builddir in
908.) ac_abs_srcdir=$ac_srcdir;;
909*)
910  case $ac_srcdir in
911  .) ac_abs_srcdir=$ac_abs_builddir;;
912  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
913  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
914  esac;;
915esac
916case $ac_abs_builddir in
917.) ac_abs_top_srcdir=$ac_top_srcdir;;
918*)
919  case $ac_top_srcdir in
920  .) ac_abs_top_srcdir=$ac_abs_builddir;;
921  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
922  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
923  esac;;
924esac
925
926    cd $ac_dir
927    # Check for guested configure; otherwise get Cygnus style configure.
928    if test -f $ac_srcdir/configure.gnu; then
929      echo
930      $SHELL $ac_srcdir/configure.gnu  --help=recursive
931    elif test -f $ac_srcdir/configure; then
932      echo
933      $SHELL $ac_srcdir/configure  --help=recursive
934    elif test -f $ac_srcdir/configure.ac ||
935           test -f $ac_srcdir/configure.in; then
936      echo
937      $ac_configure --help
938    else
939      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940    fi
941    cd $ac_popdir
942  done
943fi
944
945test -n "$ac_init_help" && exit 0
946if $ac_init_version; then
947  cat <<\_ACEOF
948
949Copyright (C) 2003 Free Software Foundation, Inc.
950This configure script is free software; the Free Software Foundation
951gives unlimited permission to copy, distribute and modify it.
952_ACEOF
953  exit 0
954fi
955exec 5>config.log
956cat >&5 <<_ACEOF
957This file contains any messages produced by compilers while
958running configure, to aid debugging if configure makes a mistake.
959
960It was created by $as_me, which was
961generated by GNU Autoconf 2.59.  Invocation command line was
962
963  $ $0 $@
964
965_ACEOF
966{
967cat <<_ASUNAME
968## --------- ##
969## Platform. ##
970## --------- ##
971
972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973uname -m = `(uname -m) 2>/dev/null || echo unknown`
974uname -r = `(uname -r) 2>/dev/null || echo unknown`
975uname -s = `(uname -s) 2>/dev/null || echo unknown`
976uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
980
981/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
982/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
985/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
986/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
987/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
988
989_ASUNAME
990
991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992for as_dir in $PATH
993do
994  IFS=$as_save_IFS
995  test -z "$as_dir" && as_dir=.
996  echo "PATH: $as_dir"
997done
998
999} >&5
1000
1001cat >&5 <<_ACEOF
1002
1003
1004## ----------- ##
1005## Core tests. ##
1006## ----------- ##
1007
1008_ACEOF
1009
1010
1011# Keep a trace of the command line.
1012# Strip out --no-create and --no-recursion so they do not pile up.
1013# Strip out --silent because we don't want to record it for future runs.
1014# Also quote any args containing shell meta-characters.
1015# Make two passes to allow for proper duplicate-argument suppression.
1016ac_configure_args=
1017ac_configure_args0=
1018ac_configure_args1=
1019ac_sep=
1020ac_must_keep_next=false
1021for ac_pass in 1 2
1022do
1023  for ac_arg
1024  do
1025    case $ac_arg in
1026    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028    | -silent | --silent | --silen | --sile | --sil)
1029      continue ;;
1030    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032    esac
1033    case $ac_pass in
1034    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035    2)
1036      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037      if test $ac_must_keep_next = true; then
1038        ac_must_keep_next=false # Got value, back to normal.
1039      else
1040        case $ac_arg in
1041          *=* | --config-cache | -C | -disable-* | --disable-* \
1042          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044          | -with-* | --with-* | -without-* | --without-* | --x)
1045            case "$ac_configure_args0 " in
1046              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047            esac
1048            ;;
1049          -* ) ac_must_keep_next=true ;;
1050        esac
1051      fi
1052      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053      # Get rid of the leading space.
1054      ac_sep=" "
1055      ;;
1056    esac
1057  done
1058done
1059$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062# When interrupted or exit'd, cleanup temporary files, and complete
1063# config.log.  We remove comments because anyway the quotes in there
1064# would cause problems or look ugly.
1065# WARNING: Be sure not to use single quotes in there, as some shells,
1066# such as our DU 5.0 friend, will then `close' the trap.
1067trap 'exit_status=$?
1068  # Save into config.log some information that might help in debugging.
1069  {
1070    echo
1071
1072    cat <<\_ASBOX
1073## ---------------- ##
1074## Cache variables. ##
1075## ---------------- ##
1076_ASBOX
1077    echo
1078    # The following way of writing the cache mishandles newlines in values,
1079{
1080  (set) 2>&1 |
1081    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082    *ac_space=\ *)
1083      sed -n \
1084        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086      ;;
1087    *)
1088      sed -n \
1089        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090      ;;
1091    esac;
1092}
1093    echo
1094
1095    cat <<\_ASBOX
1096## ----------------- ##
1097## Output variables. ##
1098## ----------------- ##
1099_ASBOX
1100    echo
1101    for ac_var in $ac_subst_vars
1102    do
1103      eval ac_val=$`echo $ac_var`
1104      echo "$ac_var='"'"'$ac_val'"'"'"
1105    done | sort
1106    echo
1107
1108    if test -n "$ac_subst_files"; then
1109      cat <<\_ASBOX
1110## ------------- ##
1111## Output files. ##
1112## ------------- ##
1113_ASBOX
1114      echo
1115      for ac_var in $ac_subst_files
1116      do
1117        eval ac_val=$`echo $ac_var`
1118        echo "$ac_var='"'"'$ac_val'"'"'"
1119      done | sort
1120      echo
1121    fi
1122
1123    if test -s confdefs.h; then
1124      cat <<\_ASBOX
1125## ----------- ##
1126## confdefs.h. ##
1127## ----------- ##
1128_ASBOX
1129      echo
1130      sed "/^$/d" confdefs.h | sort
1131      echo
1132    fi
1133    test "$ac_signal" != 0 &&
1134      echo "$as_me: caught signal $ac_signal"
1135    echo "$as_me: exit $exit_status"
1136  } >&5
1137  rm -f core *.core &&
1138  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139    exit $exit_status
1140     ' 0
1141for ac_signal in 1 2 13 15; do
1142  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143done
1144ac_signal=0
1145
1146# confdefs.h avoids OS command line length limits that DEFS can exceed.
1147rm -rf conftest* confdefs.h
1148# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149echo >confdefs.h
1150
1151# Predefined preprocessor variables.
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_NAME "$PACKAGE_NAME"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_VERSION "$PACKAGE_VERSION"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_STRING "$PACKAGE_STRING"
1170_ACEOF
[7d4fbcd]1171
[8298425]1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175_ACEOF
1176
1177
1178# Let the site file select an alternate cache file if it wants to.
[7d4fbcd]1179# Prefer explicitly selected file to automatically selected ones.
1180if test -z "$CONFIG_SITE"; then
1181  if test "x$prefix" != xNONE; then
1182    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183  else
1184    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185  fi
1186fi
1187for ac_site_file in $CONFIG_SITE; do
1188  if test -r "$ac_site_file"; then
[8298425]1189    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190echo "$as_me: loading site script $ac_site_file" >&6;}
1191    sed 's/^/| /' "$ac_site_file" >&5
[7d4fbcd]1192    . "$ac_site_file"
1193  fi
1194done
1195
1196if test -r "$cache_file"; then
[8298425]1197  # Some versions of bash will fail to source /dev/null (special
1198  # files actually), so we avoid doing that.
1199  if test -f "$cache_file"; then
1200    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201echo "$as_me: loading cache $cache_file" >&6;}
1202    case $cache_file in
1203      [\\/]* | ?:[\\/]* ) . $cache_file;;
1204      *)                      . ./$cache_file;;
1205    esac
1206  fi
[7d4fbcd]1207else
[8298425]1208  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209echo "$as_me: creating cache $cache_file" >&6;}
1210  >$cache_file
[7d4fbcd]1211fi
1212
[8298425]1213# Check that the precious variables saved in the cache have kept the same
1214# value.
1215ac_cache_corrupted=false
1216for ac_var in `(set) 2>&1 |
1217               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219  eval ac_new_set=\$ac_env_${ac_var}_set
1220  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221  eval ac_new_val="\$ac_env_${ac_var}_value"
1222  case $ac_old_set,$ac_new_set in
1223    set,)
1224      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226      ac_cache_corrupted=: ;;
1227    ,set)
1228      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230      ac_cache_corrupted=: ;;
1231    ,);;
1232    *)
1233      if test "x$ac_old_val" != "x$ac_new_val"; then
1234        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1237echo "$as_me:   former value:  $ac_old_val" >&2;}
1238        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1239echo "$as_me:   current value: $ac_new_val" >&2;}
1240        ac_cache_corrupted=:
1241      fi;;
1242  esac
1243  # Pass precious variables to config.status.
1244  if test "$ac_new_set" = set; then
1245    case $ac_new_val in
1246    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248    *) ac_arg=$ac_var=$ac_new_val ;;
1249    esac
1250    case " $ac_configure_args " in
1251      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1252      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253    esac
[7d4fbcd]1254  fi
[8298425]1255done
1256if $ac_cache_corrupted; then
1257  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261   { (exit 1); exit 1; }; }
[7d4fbcd]1262fi
1263
[8298425]1264ac_ext=c
1265ac_cpp='$CPP $CPPFLAGS'
1266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
[7d4fbcd]1270
1271
1272
1273
[8298425]1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289          ac_config_headers="$ac_config_headers config.h"
1290
1291
1292ac_ext=c
1293ac_cpp='$CPP $CPPFLAGS'
1294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297if test -n "$ac_tool_prefix"; then
1298  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1299set dummy ${ac_tool_prefix}gcc; ac_word=$2
1300echo "$as_me:$LINENO: checking for $ac_word" >&5
1301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1302if test "${ac_cv_prog_CC+set}" = set; then
1303  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]1304else
1305  if test -n "$CC"; then
1306  ac_cv_prog_CC="$CC" # Let the user override the test.
1307else
[8298425]1308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1309for as_dir in $PATH
1310do
1311  IFS=$as_save_IFS
1312  test -z "$as_dir" && as_dir=.
1313  for ac_exec_ext in '' $ac_executable_extensions; do
1314  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1315    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1317    break 2
1318  fi
1319done
1320done
1321
[7d4fbcd]1322fi
1323fi
[8298425]1324CC=$ac_cv_prog_CC
[7d4fbcd]1325if test -n "$CC"; then
[8298425]1326  echo "$as_me:$LINENO: result: $CC" >&5
1327echo "${ECHO_T}$CC" >&6
1328else
1329  echo "$as_me:$LINENO: result: no" >&5
1330echo "${ECHO_T}no" >&6
1331fi
1332
1333fi
1334if test -z "$ac_cv_prog_CC"; then
1335  ac_ct_CC=$CC
1336  # Extract the first word of "gcc", so it can be a program name with args.
1337set dummy gcc; ac_word=$2
1338echo "$as_me:$LINENO: checking for $ac_word" >&5
1339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1340if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1341  echo $ECHO_N "(cached) $ECHO_C" >&6
1342else
1343  if test -n "$ac_ct_CC"; then
1344  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1345else
1346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347for as_dir in $PATH
1348do
1349  IFS=$as_save_IFS
1350  test -z "$as_dir" && as_dir=.
1351  for ac_exec_ext in '' $ac_executable_extensions; do
1352  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1353    ac_cv_prog_ac_ct_CC="gcc"
1354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1355    break 2
1356  fi
1357done
1358done
1359
1360fi
1361fi
1362ac_ct_CC=$ac_cv_prog_ac_ct_CC
1363if test -n "$ac_ct_CC"; then
1364  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1365echo "${ECHO_T}$ac_ct_CC" >&6
1366else
1367  echo "$as_me:$LINENO: result: no" >&5
1368echo "${ECHO_T}no" >&6
1369fi
1370
1371  CC=$ac_ct_CC
[7d4fbcd]1372else
[8298425]1373  CC="$ac_cv_prog_CC"
[7d4fbcd]1374fi
1375
1376if test -z "$CC"; then
[8298425]1377  if test -n "$ac_tool_prefix"; then
1378  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1379set dummy ${ac_tool_prefix}cc; ac_word=$2
1380echo "$as_me:$LINENO: checking for $ac_word" >&5
1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382if test "${ac_cv_prog_CC+set}" = set; then
1383  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]1384else
1385  if test -n "$CC"; then
1386  ac_cv_prog_CC="$CC" # Let the user override the test.
1387else
[8298425]1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391  IFS=$as_save_IFS
1392  test -z "$as_dir" && as_dir=.
1393  for ac_exec_ext in '' $ac_executable_extensions; do
1394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395    ac_cv_prog_CC="${ac_tool_prefix}cc"
1396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397    break 2
1398  fi
1399done
1400done
1401
1402fi
1403fi
1404CC=$ac_cv_prog_CC
1405if test -n "$CC"; then
1406  echo "$as_me:$LINENO: result: $CC" >&5
1407echo "${ECHO_T}$CC" >&6
1408else
1409  echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
1411fi
1412
1413fi
1414if test -z "$ac_cv_prog_CC"; then
1415  ac_ct_CC=$CC
1416  # Extract the first word of "cc", so it can be a program name with args.
1417set dummy cc; ac_word=$2
1418echo "$as_me:$LINENO: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421  echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423  if test -n "$ac_ct_CC"; then
1424  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425else
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429  IFS=$as_save_IFS
1430  test -z "$as_dir" && as_dir=.
1431  for ac_exec_ext in '' $ac_executable_extensions; do
1432  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433    ac_cv_prog_ac_ct_CC="cc"
1434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435    break 2
1436  fi
1437done
1438done
1439
1440fi
1441fi
1442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443if test -n "$ac_ct_CC"; then
1444  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445echo "${ECHO_T}$ac_ct_CC" >&6
1446else
1447  echo "$as_me:$LINENO: result: no" >&5
1448echo "${ECHO_T}no" >&6
1449fi
1450
1451  CC=$ac_ct_CC
1452else
1453  CC="$ac_cv_prog_CC"
1454fi
1455
1456fi
1457if test -z "$CC"; then
1458  # Extract the first word of "cc", so it can be a program name with args.
1459set dummy cc; ac_word=$2
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_CC+set}" = set; then
1463  echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465  if test -n "$CC"; then
1466  ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
1468  ac_prog_rejected=no
1469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470for as_dir in $PATH
1471do
1472  IFS=$as_save_IFS
1473  test -z "$as_dir" && as_dir=.
1474  for ac_exec_ext in '' $ac_executable_extensions; do
1475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1477       ac_prog_rejected=yes
1478       continue
1479     fi
1480    ac_cv_prog_CC="cc"
1481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482    break 2
1483  fi
1484done
1485done
1486
[7d4fbcd]1487if test $ac_prog_rejected = yes; then
1488  # We found a bogon in the path, so make sure we never use it.
1489  set dummy $ac_cv_prog_CC
1490  shift
[8298425]1491  if test $# != 0; then
[7d4fbcd]1492    # We chose a different compiler from the bogus one.
1493    # However, it has the same basename, so the bogon will be chosen
1494    # first if we set CC to just the basename; use the full file name.
1495    shift
[8298425]1496    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
[7d4fbcd]1497  fi
1498fi
1499fi
1500fi
[8298425]1501CC=$ac_cv_prog_CC
[7d4fbcd]1502if test -n "$CC"; then
[8298425]1503  echo "$as_me:$LINENO: result: $CC" >&5
1504echo "${ECHO_T}$CC" >&6
[7d4fbcd]1505else
[8298425]1506  echo "$as_me:$LINENO: result: no" >&5
1507echo "${ECHO_T}no" >&6
[7d4fbcd]1508fi
1509
[8298425]1510fi
1511if test -z "$CC"; then
1512  if test -n "$ac_tool_prefix"; then
1513  for ac_prog in cl
1514  do
1515    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]1521else
1522  if test -n "$CC"; then
1523  ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
[8298425]1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528  IFS=$as_save_IFS
1529  test -z "$as_dir" && as_dir=.
1530  for ac_exec_ext in '' $ac_executable_extensions; do
1531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534    break 2
1535  fi
1536done
1537done
1538
[7d4fbcd]1539fi
1540fi
[8298425]1541CC=$ac_cv_prog_CC
[7d4fbcd]1542if test -n "$CC"; then
[8298425]1543  echo "$as_me:$LINENO: result: $CC" >&5
1544echo "${ECHO_T}$CC" >&6
[7d4fbcd]1545else
[8298425]1546  echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
[7d4fbcd]1548fi
[8298425]1549
1550    test -n "$CC" && break
1551  done
1552fi
1553if test -z "$CC"; then
1554  ac_ct_CC=$CC
1555  for ac_prog in cl
1556do
1557  # Extract the first word of "$ac_prog", so it can be a program name with args.
1558set dummy $ac_prog; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562  echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564  if test -n "$ac_ct_CC"; then
1565  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570  IFS=$as_save_IFS
1571  test -z "$as_dir" && as_dir=.
1572  for ac_exec_ext in '' $ac_executable_extensions; do
1573  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574    ac_cv_prog_ac_ct_CC="$ac_prog"
1575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576    break 2
[7d4fbcd]1577  fi
[8298425]1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588  echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
[7d4fbcd]1590fi
1591
[8298425]1592  test -n "$ac_ct_CC" && break
1593done
[7d4fbcd]1594
[8298425]1595  CC=$ac_ct_CC
1596fi
1597
1598fi
1599
1600
1601test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1602See \`config.log' for more details." >&5
1603echo "$as_me: error: no acceptable C compiler found in \$PATH
1604See \`config.log' for more details." >&2;}
1605   { (exit 1); exit 1; }; }
1606
1607# Provide some information about the compiler.
1608echo "$as_me:$LINENO:" \
1609     "checking for C compiler version" >&5
1610ac_compiler=`set X $ac_compile; echo $2`
1611{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1612  (eval $ac_compiler --version </dev/null >&5) 2>&5
1613  ac_status=$?
1614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1615  (exit $ac_status); }
1616{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1617  (eval $ac_compiler -v </dev/null >&5) 2>&5
1618  ac_status=$?
1619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1620  (exit $ac_status); }
1621{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1622  (eval $ac_compiler -V </dev/null >&5) 2>&5
1623  ac_status=$?
1624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625  (exit $ac_status); }
1626
1627cat >conftest.$ac_ext <<_ACEOF
1628/* confdefs.h.  */
1629_ACEOF
1630cat confdefs.h >>conftest.$ac_ext
1631cat >>conftest.$ac_ext <<_ACEOF
1632/* end confdefs.h.  */
1633
1634int
1635main ()
1636{
1637
1638  ;
1639  return 0;
1640}
1641_ACEOF
1642ac_clean_files_save=$ac_clean_files
1643ac_clean_files="$ac_clean_files a.out a.exe b.out"
1644# Try to create an executable without -o first, disregard a.out.
1645# It will help us diagnose broken compilers, and finding out an intuition
1646# of exeext.
1647echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1648echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1649ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1650if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1651  (eval $ac_link_default) 2>&5
1652  ac_status=$?
1653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654  (exit $ac_status); }; then
1655  # Find the output, starting from the most likely.  This scheme is
1656# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1657# resort.
1658
1659# Be careful to initialize this variable, since it used to be cached.
1660# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1661ac_cv_exeext=
1662# b.out is created by i960 compilers.
1663for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1664do
1665  test -f "$ac_file" || continue
1666  case $ac_file in
1667    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1668        ;;
1669    conftest.$ac_ext )
1670        # This is the source file.
1671        ;;
1672    [ab].out )
1673        # We found the default executable, but exeext='' is most
1674        # certainly right.
1675        break;;
1676    *.* )
1677        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1678        # FIXME: I believe we export ac_cv_exeext for Libtool,
1679        # but it would be cool to find out if it's true.  Does anybody
1680        # maintain Libtool? --akim.
1681        export ac_cv_exeext
1682        break;;
1683    * )
1684        break;;
1685  esac
1686done
1687else
1688  echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1692See \`config.log' for more details." >&5
1693echo "$as_me: error: C compiler cannot create executables
1694See \`config.log' for more details." >&2;}
1695   { (exit 77); exit 77; }; }
1696fi
1697
1698ac_exeext=$ac_cv_exeext
1699echo "$as_me:$LINENO: result: $ac_file" >&5
1700echo "${ECHO_T}$ac_file" >&6
1701
1702# Check the compiler produces executables we can run.  If not, either
1703# the compiler is broken, or we cross compile.
1704echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1705echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1706# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1707# If not cross compiling, check that we can run a simple program.
1708if test "$cross_compiling" != yes; then
1709  if { ac_try='./$ac_file'
1710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1711  (eval $ac_try) 2>&5
1712  ac_status=$?
1713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714  (exit $ac_status); }; }; then
1715    cross_compiling=no
[7d4fbcd]1716  else
[8298425]1717    if test "$cross_compiling" = maybe; then
1718        cross_compiling=yes
1719    else
1720        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1721If you meant to cross compile, use \`--host'.
1722See \`config.log' for more details." >&5
1723echo "$as_me: error: cannot run C compiled programs.
1724If you meant to cross compile, use \`--host'.
1725See \`config.log' for more details." >&2;}
1726   { (exit 1); exit 1; }; }
1727    fi
[7d4fbcd]1728  fi
1729fi
[8298425]1730echo "$as_me:$LINENO: result: yes" >&5
1731echo "${ECHO_T}yes" >&6
1732
1733rm -f a.out a.exe conftest$ac_cv_exeext b.out
1734ac_clean_files=$ac_clean_files_save
1735# Check the compiler produces executables we can run.  If not, either
1736# the compiler is broken, or we cross compile.
1737echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1738echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1739echo "$as_me:$LINENO: result: $cross_compiling" >&5
1740echo "${ECHO_T}$cross_compiling" >&6
1741
1742echo "$as_me:$LINENO: checking for suffix of executables" >&5
1743echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1745  (eval $ac_link) 2>&5
1746  ac_status=$?
1747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748  (exit $ac_status); }; then
1749  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1750# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1751# work properly (i.e., refer to `conftest.exe'), while it won't with
1752# `rm'.
1753for ac_file in conftest.exe conftest conftest.*; do
1754  test -f "$ac_file" || continue
1755  case $ac_file in
1756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1757    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758          export ac_cv_exeext
1759          break;;
1760    * ) break;;
1761  esac
1762done
[7d4fbcd]1763else
[8298425]1764  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1765See \`config.log' for more details." >&5
1766echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1767See \`config.log' for more details." >&2;}
1768   { (exit 1); exit 1; }; }
[7d4fbcd]1769fi
[8298425]1770
1771rm -f conftest$ac_cv_exeext
1772echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1773echo "${ECHO_T}$ac_cv_exeext" >&6
1774
1775rm -f conftest.$ac_ext
1776EXEEXT=$ac_cv_exeext
1777ac_exeext=$EXEEXT
1778echo "$as_me:$LINENO: checking for suffix of object files" >&5
1779echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1780if test "${ac_cv_objext+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  cat >conftest.$ac_ext <<_ACEOF
1784/* confdefs.h.  */
1785_ACEOF
1786cat confdefs.h >>conftest.$ac_ext
1787cat >>conftest.$ac_ext <<_ACEOF
1788/* end confdefs.h.  */
1789
1790int
1791main ()
1792{
1793
1794  ;
1795  return 0;
1796}
1797_ACEOF
1798rm -f conftest.o conftest.obj
1799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1800  (eval $ac_compile) 2>&5
1801  ac_status=$?
1802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803  (exit $ac_status); }; then
1804  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1805  case $ac_file in
1806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1807    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1808       break;;
1809  esac
1810done
1811else
1812  echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1816See \`config.log' for more details." >&5
1817echo "$as_me: error: cannot compute suffix of object files: cannot compile
1818See \`config.log' for more details." >&2;}
1819   { (exit 1); exit 1; }; }
[7d4fbcd]1820fi
1821
[8298425]1822rm -f conftest.$ac_cv_objext conftest.$ac_ext
1823fi
1824echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1825echo "${ECHO_T}$ac_cv_objext" >&6
1826OBJEXT=$ac_cv_objext
1827ac_objext=$OBJEXT
1828echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1829echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1830if test "${ac_cv_c_compiler_gnu+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  cat >conftest.$ac_ext <<_ACEOF
1834/* confdefs.h.  */
1835_ACEOF
1836cat confdefs.h >>conftest.$ac_ext
1837cat >>conftest.$ac_ext <<_ACEOF
1838/* end confdefs.h.  */
1839
1840int
1841main ()
1842{
1843#ifndef __GNUC__
1844       choke me
1845#endif
[7d4fbcd]1846
[8298425]1847  ;
1848  return 0;
1849}
1850_ACEOF
1851rm -f conftest.$ac_objext
1852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1853  (eval $ac_compile) 2>conftest.er1
1854  ac_status=$?
1855  grep -v '^ *+' conftest.er1 >conftest.err
1856  rm -f conftest.er1
1857  cat conftest.err >&5
1858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859  (exit $ac_status); } &&
1860         { ac_try='test -z "$ac_c_werror_flag"
1861                         || test ! -s conftest.err'
1862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863  (eval $ac_try) 2>&5
1864  ac_status=$?
1865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866  (exit $ac_status); }; } &&
1867         { ac_try='test -s conftest.$ac_objext'
1868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1869  (eval $ac_try) 2>&5
1870  ac_status=$?
1871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872  (exit $ac_status); }; }; then
1873  ac_compiler_gnu=yes
[7d4fbcd]1874else
[8298425]1875  echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878ac_compiler_gnu=no
[7d4fbcd]1879fi
[8298425]1880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1881ac_cv_c_compiler_gnu=$ac_compiler_gnu
[7d4fbcd]1882
[8298425]1883fi
1884echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1885echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1886GCC=`test $ac_compiler_gnu = yes && echo yes`
1887ac_test_CFLAGS=${CFLAGS+set}
1888ac_save_CFLAGS=$CFLAGS
1889CFLAGS="-g"
1890echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1891echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1892if test "${ac_cv_prog_cc_g+set}" = set; then
1893  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]1894else
[8298425]1895  cat >conftest.$ac_ext <<_ACEOF
1896/* confdefs.h.  */
1897_ACEOF
1898cat confdefs.h >>conftest.$ac_ext
1899cat >>conftest.$ac_ext <<_ACEOF
1900/* end confdefs.h.  */
1901
1902int
1903main ()
1904{
1905
1906  ;
1907  return 0;
1908}
1909_ACEOF
1910rm -f conftest.$ac_objext
1911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912  (eval $ac_compile) 2>conftest.er1
1913  ac_status=$?
1914  grep -v '^ *+' conftest.er1 >conftest.err
1915  rm -f conftest.er1
1916  cat conftest.err >&5
1917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918  (exit $ac_status); } &&
1919         { ac_try='test -z "$ac_c_werror_flag"
1920                         || test ! -s conftest.err'
1921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922  (eval $ac_try) 2>&5
1923  ac_status=$?
1924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925  (exit $ac_status); }; } &&
1926         { ac_try='test -s conftest.$ac_objext'
1927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928  (eval $ac_try) 2>&5
1929  ac_status=$?
1930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931  (exit $ac_status); }; }; then
[7d4fbcd]1932  ac_cv_prog_cc_g=yes
1933else
[8298425]1934  echo "$as_me: failed program was:" >&5
1935sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]1936
[8298425]1937ac_cv_prog_cc_g=no
[7d4fbcd]1938fi
[8298425]1939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1942echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
[7d4fbcd]1943if test "$ac_test_CFLAGS" = set; then
[8298425]1944  CFLAGS=$ac_save_CFLAGS
[7d4fbcd]1945elif test $ac_cv_prog_cc_g = yes; then
1946  if test "$GCC" = yes; then
1947    CFLAGS="-g -O2"
1948  else
1949    CFLAGS="-g"
1950  fi
1951else
1952  if test "$GCC" = yes; then
1953    CFLAGS="-O2"
1954  else
1955    CFLAGS=
1956  fi
1957fi
[8298425]1958echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1959echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1960if test "${ac_cv_prog_cc_stdc+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  ac_cv_prog_cc_stdc=no
1964ac_save_CC=$CC
1965cat >conftest.$ac_ext <<_ACEOF
1966/* confdefs.h.  */
1967_ACEOF
1968cat confdefs.h >>conftest.$ac_ext
1969cat >>conftest.$ac_ext <<_ACEOF
1970/* end confdefs.h.  */
1971#include <stdarg.h>
1972#include <stdio.h>
1973#include <sys/types.h>
1974#include <sys/stat.h>
1975/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1976struct buf { int x; };
1977FILE * (*rcsopen) (struct buf *, struct stat *, int);
1978static char *e (p, i)
1979     char **p;
1980     int i;
1981{
1982  return p[i];
1983}
1984static char *f (char * (*g) (char **, int), char **p, ...)
1985{
1986  char *s;
1987  va_list v;
1988  va_start (v,p);
1989  s = g (p, va_arg (v,int));
1990  va_end (v);
1991  return s;
1992}
1993
1994/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1995   function prototypes and stuff, but not '\xHH' hex character constants.
1996   These don't provoke an error unfortunately, instead are silently treated
1997   as 'x'.  The following induces an error, until -std1 is added to get
1998   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1999   array size at least.  It's necessary to write '\x00'==0 to get something
2000   that's true only with -std1.  */
2001int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2002
2003int test (int i, double x);
2004struct s1 {int (*f) (int a);};
2005struct s2 {int (*f) (double a);};
2006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2007int argc;
2008char **argv;
2009int
2010main ()
2011{
2012return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017# Don't try gcc -ansi; that turns off useful extensions and
2018# breaks some systems' header files.
2019# AIX                   -qlanglvl=ansi
2020# Ultrix and OSF/1      -std1
2021# HP-UX 10.20 and later -Ae
2022# HP-UX older versions  -Aa -D_HPUX_SOURCE
2023# SVR4                  -Xc -D__EXTENSIONS__
2024for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2025do
2026  CC="$ac_save_CC $ac_arg"
2027  rm -f conftest.$ac_objext
2028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029  (eval $ac_compile) 2>conftest.er1
2030  ac_status=$?
2031  grep -v '^ *+' conftest.er1 >conftest.err
2032  rm -f conftest.er1
2033  cat conftest.err >&5
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); } &&
2036         { ac_try='test -z "$ac_c_werror_flag"
2037                         || test ! -s conftest.err'
2038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039  (eval $ac_try) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; } &&
2043         { ac_try='test -s conftest.$ac_objext'
2044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045  (eval $ac_try) 2>&5
2046  ac_status=$?
2047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048  (exit $ac_status); }; }; then
2049  ac_cv_prog_cc_stdc=$ac_arg
2050break
2051else
2052  echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055fi
2056rm -f conftest.err conftest.$ac_objext
2057done
2058rm -f conftest.$ac_ext conftest.$ac_objext
2059CC=$ac_save_CC
2060
2061fi
2062
2063case "x$ac_cv_prog_cc_stdc" in
2064  x|xno)
2065    echo "$as_me:$LINENO: result: none needed" >&5
2066echo "${ECHO_T}none needed" >&6 ;;
2067  *)
2068    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2069echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2070    CC="$CC $ac_cv_prog_cc_stdc" ;;
2071esac
2072
2073# Some people use a C++ compiler to compile C.  Since we use `exit',
2074# in C++ we need to declare it.  In case someone uses the same compiler
2075# for both compiling C and C++ we need to have the C++ compiler decide
2076# the declaration of exit, since it's the most demanding environment.
2077cat >conftest.$ac_ext <<_ACEOF
2078#ifndef __cplusplus
2079  choke me
2080#endif
2081_ACEOF
2082rm -f conftest.$ac_objext
2083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084  (eval $ac_compile) 2>conftest.er1
2085  ac_status=$?
2086  grep -v '^ *+' conftest.er1 >conftest.err
2087  rm -f conftest.er1
2088  cat conftest.err >&5
2089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090  (exit $ac_status); } &&
2091         { ac_try='test -z "$ac_c_werror_flag"
2092                         || test ! -s conftest.err'
2093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094  (eval $ac_try) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; } &&
2098         { ac_try='test -s conftest.$ac_objext'
2099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100  (eval $ac_try) 2>&5
2101  ac_status=$?
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); }; }; then
2104  for ac_declaration in \
2105   '' \
2106   'extern "C" void std::exit (int) throw (); using std::exit;' \
2107   'extern "C" void std::exit (int); using std::exit;' \
2108   'extern "C" void exit (int) throw ();' \
2109   'extern "C" void exit (int);' \
2110   'void exit (int);'
2111do
2112  cat >conftest.$ac_ext <<_ACEOF
2113/* confdefs.h.  */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
2117/* end confdefs.h.  */
2118$ac_declaration
2119#include <stdlib.h>
2120int
2121main ()
2122{
2123exit (42);
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128rm -f conftest.$ac_objext
2129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2130  (eval $ac_compile) 2>conftest.er1
2131  ac_status=$?
2132  grep -v '^ *+' conftest.er1 >conftest.err
2133  rm -f conftest.er1
2134  cat conftest.err >&5
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); } &&
2137         { ac_try='test -z "$ac_c_werror_flag"
2138                         || test ! -s conftest.err'
2139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140  (eval $ac_try) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }; } &&
2144         { ac_try='test -s conftest.$ac_objext'
2145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146  (eval $ac_try) 2>&5
2147  ac_status=$?
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); }; }; then
2150  :
2151else
2152  echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155continue
2156fi
2157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2158  cat >conftest.$ac_ext <<_ACEOF
2159/* confdefs.h.  */
2160_ACEOF
2161cat confdefs.h >>conftest.$ac_ext
2162cat >>conftest.$ac_ext <<_ACEOF
2163/* end confdefs.h.  */
2164$ac_declaration
2165int
2166main ()
2167{
2168exit (42);
2169  ;
2170  return 0;
2171}
2172_ACEOF
2173rm -f conftest.$ac_objext
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175  (eval $ac_compile) 2>conftest.er1
2176  ac_status=$?
2177  grep -v '^ *+' conftest.er1 >conftest.err
2178  rm -f conftest.er1
2179  cat conftest.err >&5
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); } &&
2182         { ac_try='test -z "$ac_c_werror_flag"
2183                         || test ! -s conftest.err'
2184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185  (eval $ac_try) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; } &&
2189         { ac_try='test -s conftest.$ac_objext'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; }; then
2195  break
2196else
2197  echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200fi
2201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2202done
2203rm -f conftest*
2204if test -n "$ac_declaration"; then
2205  echo '#ifdef __cplusplus' >>confdefs.h
2206  echo $ac_declaration      >>confdefs.h
2207  echo '#endif'             >>confdefs.h
2208fi
2209
2210else
2211  echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214fi
2215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
[7d4fbcd]2221
2222
2223if test "$GCC" = yes; then
2224     CFLAGS="$CFLAGS -Wall -g";
2225fi
2226
[e51b410]2227
[8298425]2228echo "$as_me:$LINENO: checking for /usr/athena/include" >&5
2229echo $ECHO_N "checking for /usr/athena/include... $ECHO_C" >&6
[7d4fbcd]2230if test -d /usr/athena/include; then
2231        CFLAGS=${CFLAGS}\ -I/usr/athena/include
[e6449bc]2232        CPPFLAGS=${CPPFLAGS}\ -I/usr/athena/include
[8298425]2233        echo "$as_me:$LINENO: result: yes" >&5
2234echo "${ECHO_T}yes" >&6
[7d4fbcd]2235else
[8298425]2236        echo "$as_me:$LINENO: result: no" >&5
2237echo "${ECHO_T}no" >&6
[7d4fbcd]2238fi
[8298425]2239echo "$as_me:$LINENO: checking for /usr/athena/lib" >&5
2240echo $ECHO_N "checking for /usr/athena/lib... $ECHO_C" >&6
[7d4fbcd]2241if test -d /usr/athena/lib; then
[601a9e0]2242        LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
[8298425]2243        echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6
[7d4fbcd]2245else
[8298425]2246        echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
[7d4fbcd]2248fi
2249
[8298425]2250echo "$as_me:$LINENO: checking for /usr/include/kerberosIV" >&5
2251echo $ECHO_N "checking for /usr/include/kerberosIV... $ECHO_C" >&6
2252if test -d /usr/include/kerberosIV; then
2253        CFLAGS=${CFLAGS}\ -I/usr/include/kerberosIV
2254        CPPFLAGS=${CPPFLAGS}\ -I/usr/include/kerberosIV
2255        echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6
[7d4fbcd]2257else
[8298425]2258        echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6
2260fi
2261
2262
2263echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
2264echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
2265if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2269LIBS="-lncurses  $LIBS"
[8298425]2270cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h.  */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h.  */
2276
[7d4fbcd]2277/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2278#ifdef __cplusplus
2279extern "C"
2280#endif
[7d4fbcd]2281/* We use char because int might match the return type of a gcc2
[8298425]2282   builtin and then its argument prototype would still apply.  */
2283char initscr ();
2284int
2285main ()
2286{
2287initscr ();
2288  ;
2289  return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext conftest$ac_exeext
2293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294  (eval $ac_link) 2>conftest.er1
2295  ac_status=$?
2296  grep -v '^ *+' conftest.er1 >conftest.err
2297  rm -f conftest.er1
2298  cat conftest.err >&5
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); } &&
2301         { ac_try='test -z "$ac_c_werror_flag"
2302                         || test ! -s conftest.err'
2303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304  (eval $ac_try) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; } &&
2308         { ac_try='test -s conftest$ac_exeext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  ac_cv_lib_ncurses_initscr=yes
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2318
[8298425]2319ac_cv_lib_ncurses_initscr=no
[7d4fbcd]2320fi
[8298425]2321rm -f conftest.err conftest.$ac_objext \
2322      conftest$ac_exeext conftest.$ac_ext
2323LIBS=$ac_check_lib_save_LIBS
2324fi
2325echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
2326echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
2327if test $ac_cv_lib_ncurses_initscr = yes; then
2328  cat >>confdefs.h <<_ACEOF
2329#define HAVE_LIBNCURSES 1
2330_ACEOF
[7d4fbcd]2331
2332  LIBS="-lncurses $LIBS"
2333
2334else
[8298425]2335
2336echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
2337echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
2338if test "${ac_cv_lib_curses_initscr+set}" = set; then
2339  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2340else
[8298425]2341  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2342LIBS="-lcurses  $LIBS"
[8298425]2343
2344cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h.  */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h.  */
2350
[7d4fbcd]2351/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2352#ifdef __cplusplus
2353extern "C"
2354#endif
[7d4fbcd]2355/* We use char because int might match the return type of a gcc2
[8298425]2356   builtin and then its argument prototype would still apply.  */
2357char initscr ();
2358int
2359main ()
2360{
2361initscr ();
2362  ;
2363  return 0;
2364}
2365_ACEOF
2366rm -f conftest.$ac_objext conftest$ac_exeext
2367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2368  (eval $ac_link) 2>conftest.er1
2369  ac_status=$?
2370  grep -v '^ *+' conftest.er1 >conftest.err
2371  rm -f conftest.er1
2372  cat conftest.err >&5
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); } &&
2375         { ac_try='test -z "$ac_c_werror_flag"
2376                         || test ! -s conftest.err'
2377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378  (eval $ac_try) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; } &&
2382         { ac_try='test -s conftest$ac_exeext'
2383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384  (eval $ac_try) 2>&5
2385  ac_status=$?
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); }; }; then
2388  ac_cv_lib_curses_initscr=yes
2389else
2390  echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2392
[8298425]2393ac_cv_lib_curses_initscr=no
[7d4fbcd]2394fi
[8298425]2395rm -f conftest.err conftest.$ac_objext \
2396      conftest$ac_exeext conftest.$ac_ext
2397LIBS=$ac_check_lib_save_LIBS
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
2400echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
2401if test $ac_cv_lib_curses_initscr = yes; then
2402  cat >>confdefs.h <<_ACEOF
2403#define HAVE_LIBCURSES 1
2404_ACEOF
[7d4fbcd]2405
2406  LIBS="-lcurses $LIBS"
2407
2408else
[8298425]2409  { { echo "$as_me:$LINENO: error: No curses library found." >&5
2410echo "$as_me: error: No curses library found." >&2;}
2411   { (exit 1); exit 1; }; }
[7d4fbcd]2412fi
2413
2414fi
2415
[8298425]2416
2417echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
2418echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
2419if test "${ac_cv_lib_com_err_com_err+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2421else
[8298425]2422  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2423LIBS="-lcom_err  $LIBS"
[8298425]2424cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
[7d4fbcd]2431/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2432#ifdef __cplusplus
2433extern "C"
2434#endif
[7d4fbcd]2435/* We use char because int might match the return type of a gcc2
[8298425]2436   builtin and then its argument prototype would still apply.  */
2437char com_err ();
2438int
2439main ()
2440{
2441com_err ();
2442  ;
2443  return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext conftest$ac_exeext
2447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2448  (eval $ac_link) 2>conftest.er1
2449  ac_status=$?
2450  grep -v '^ *+' conftest.er1 >conftest.err
2451  rm -f conftest.er1
2452  cat conftest.err >&5
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); } &&
2455         { ac_try='test -z "$ac_c_werror_flag"
2456                         || test ! -s conftest.err'
2457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458  (eval $ac_try) 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; } &&
2462         { ac_try='test -s conftest$ac_exeext'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; }; then
2468  ac_cv_lib_com_err_com_err=yes
2469else
2470  echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2472
[8298425]2473ac_cv_lib_com_err_com_err=no
2474fi
2475rm -f conftest.err conftest.$ac_objext \
2476      conftest$ac_exeext conftest.$ac_ext
2477LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]2478fi
[8298425]2479echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
2480echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
2481if test $ac_cv_lib_com_err_com_err = yes; then
2482  cat >>confdefs.h <<_ACEOF
2483#define HAVE_LIBCOM_ERR 1
2484_ACEOF
[7d4fbcd]2485
2486  LIBS="-lcom_err $LIBS"
2487
2488fi
2489
[8298425]2490
2491echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2492echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2493if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2494  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2495else
[8298425]2496  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2497LIBS="-lnsl  $LIBS"
[8298425]2498cat >conftest.$ac_ext <<_ACEOF
2499/* confdefs.h.  */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
2503/* end confdefs.h.  */
2504
[7d4fbcd]2505/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2506#ifdef __cplusplus
2507extern "C"
2508#endif
[7d4fbcd]2509/* We use char because int might match the return type of a gcc2
[8298425]2510   builtin and then its argument prototype would still apply.  */
2511char gethostbyname ();
2512int
2513main ()
2514{
2515gethostbyname ();
2516  ;
2517  return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext conftest$ac_exeext
2521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2522  (eval $ac_link) 2>conftest.er1
2523  ac_status=$?
2524  grep -v '^ *+' conftest.er1 >conftest.err
2525  rm -f conftest.er1
2526  cat conftest.err >&5
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); } &&
2529         { ac_try='test -z "$ac_c_werror_flag"
2530                         || test ! -s conftest.err'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; } &&
2536         { ac_try='test -s conftest$ac_exeext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  ac_cv_lib_nsl_gethostbyname=yes
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2546
[8298425]2547ac_cv_lib_nsl_gethostbyname=no
[7d4fbcd]2548fi
[8298425]2549rm -f conftest.err conftest.$ac_objext \
2550      conftest$ac_exeext conftest.$ac_ext
2551LIBS=$ac_check_lib_save_LIBS
2552fi
2553echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2554echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2555if test $ac_cv_lib_nsl_gethostbyname = yes; then
2556  cat >>confdefs.h <<_ACEOF
2557#define HAVE_LIBNSL 1
2558_ACEOF
[7d4fbcd]2559
2560  LIBS="-lnsl $LIBS"
2561
2562fi
2563
[8298425]2564
2565echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2566echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2567if test "${ac_cv_lib_socket_socket+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2569else
[8298425]2570  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2571LIBS="-lsocket  $LIBS"
[8298425]2572cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h.  */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h.  */
2578
[7d4fbcd]2579/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2580#ifdef __cplusplus
2581extern "C"
2582#endif
[7d4fbcd]2583/* We use char because int might match the return type of a gcc2
[8298425]2584   builtin and then its argument prototype would still apply.  */
2585char socket ();
2586int
2587main ()
2588{
2589socket ();
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594rm -f conftest.$ac_objext conftest$ac_exeext
2595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596  (eval $ac_link) 2>conftest.er1
2597  ac_status=$?
2598  grep -v '^ *+' conftest.er1 >conftest.err
2599  rm -f conftest.er1
2600  cat conftest.err >&5
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); } &&
2603         { ac_try='test -z "$ac_c_werror_flag"
2604                         || test ! -s conftest.err'
2605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606  (eval $ac_try) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; } &&
2610         { ac_try='test -s conftest$ac_exeext'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; }; then
2616  ac_cv_lib_socket_socket=yes
2617else
2618  echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2620
[8298425]2621ac_cv_lib_socket_socket=no
2622fi
2623rm -f conftest.err conftest.$ac_objext \
2624      conftest$ac_exeext conftest.$ac_ext
2625LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]2626fi
[8298425]2627echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2628echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2629if test $ac_cv_lib_socket_socket = yes; then
2630  cat >>confdefs.h <<_ACEOF
2631#define HAVE_LIBSOCKET 1
2632_ACEOF
[7d4fbcd]2633
2634  LIBS="-lsocket $LIBS"
2635
2636fi
2637
[8298425]2638
2639echo "$as_me:$LINENO: checking for krb5_derive_key in -lk5crypto" >&5
2640echo $ECHO_N "checking for krb5_derive_key in -lk5crypto... $ECHO_C" >&6
2641if test "${ac_cv_lib_k5crypto_krb5_derive_key+set}" = set; then
2642  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2643else
[8298425]2644  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2645LIBS="-lk5crypto  $LIBS"
[8298425]2646cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h.  */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h.  */
2652
[7d4fbcd]2653/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2654#ifdef __cplusplus
2655extern "C"
2656#endif
[7d4fbcd]2657/* We use char because int might match the return type of a gcc2
[8298425]2658   builtin and then its argument prototype would still apply.  */
2659char krb5_derive_key ();
2660int
2661main ()
2662{
2663krb5_derive_key ();
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670  (eval $ac_link) 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -z "$ac_c_werror_flag"
2678                         || test ! -s conftest.err'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; } &&
2684         { ac_try='test -s conftest$ac_exeext'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; }; then
2690  ac_cv_lib_k5crypto_krb5_derive_key=yes
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2694
[8298425]2695ac_cv_lib_k5crypto_krb5_derive_key=no
2696fi
2697rm -f conftest.err conftest.$ac_objext \
2698      conftest$ac_exeext conftest.$ac_ext
2699LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]2700fi
[8298425]2701echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_derive_key" >&5
2702echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_derive_key" >&6
2703if test $ac_cv_lib_k5crypto_krb5_derive_key = yes; then
2704  cat >>confdefs.h <<_ACEOF
2705#define HAVE_LIBK5CRYPTO 1
2706_ACEOF
[7d4fbcd]2707
2708  LIBS="-lk5crypto $LIBS"
2709
2710fi
2711
[8298425]2712
2713echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
2714echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
2715if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
2716  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2717else
[8298425]2718  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2719LIBS="-ldes425  $LIBS"
[8298425]2720cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726
[7d4fbcd]2727/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2728#ifdef __cplusplus
2729extern "C"
2730#endif
[7d4fbcd]2731/* We use char because int might match the return type of a gcc2
[8298425]2732   builtin and then its argument prototype would still apply.  */
2733char des_cbc_encrypt ();
2734int
2735main ()
2736{
2737des_cbc_encrypt ();
2738  ;
2739  return 0;
2740}
2741_ACEOF
2742rm -f conftest.$ac_objext conftest$ac_exeext
2743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2744  (eval $ac_link) 2>conftest.er1
2745  ac_status=$?
2746  grep -v '^ *+' conftest.er1 >conftest.err
2747  rm -f conftest.er1
2748  cat conftest.err >&5
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); } &&
2751         { ac_try='test -z "$ac_c_werror_flag"
2752                         || test ! -s conftest.err'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; } &&
2758         { ac_try='test -s conftest$ac_exeext'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; }; then
2764  ac_cv_lib_des425_des_cbc_encrypt=yes
2765else
2766  echo "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2768
[8298425]2769ac_cv_lib_des425_des_cbc_encrypt=no
2770fi
2771rm -f conftest.err conftest.$ac_objext \
2772      conftest$ac_exeext conftest.$ac_ext
2773LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]2774fi
[8298425]2775echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
2776echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
2777if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
2778  cat >>confdefs.h <<_ACEOF
2779#define HAVE_LIBDES425 1
2780_ACEOF
[7d4fbcd]2781
2782  LIBS="-ldes425 $LIBS"
2783
2784fi
2785
[8298425]2786
2787echo "$as_me:$LINENO: checking for des_quad_cksum in -ldes" >&5
2788echo $ECHO_N "checking for des_quad_cksum in -ldes... $ECHO_C" >&6
2789if test "${ac_cv_lib_des_des_quad_cksum+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
[69894d2]2791else
[8298425]2792  ac_check_lib_save_LIBS=$LIBS
[bbd2fdc]2793LIBS="$LIBS"
[8298425]2794cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h.  */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h.  */
2800
[69894d2]2801/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2802#ifdef __cplusplus
2803extern "C"
2804#endif
[69894d2]2805/* We use char because int might match the return type of a gcc2
[8298425]2806   builtin and then its argument prototype would still apply.  */
2807char des_quad_cksum ();
2808int
2809main ()
2810{
2811des_quad_cksum ();
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } &&
2825         { ac_try='test -z "$ac_c_werror_flag"
2826                         || test ! -s conftest.err'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; } &&
2832         { ac_try='test -s conftest$ac_exeext'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; }; then
2838  ac_cv_lib_des_des_quad_cksum=yes
2839else
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
[69894d2]2842
[8298425]2843ac_cv_lib_des_des_quad_cksum=no
2844fi
2845rm -f conftest.err conftest.$ac_objext \
2846      conftest$ac_exeext conftest.$ac_ext
2847LIBS=$ac_check_lib_save_LIBS
[69894d2]2848fi
[8298425]2849echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_quad_cksum" >&5
2850echo "${ECHO_T}$ac_cv_lib_des_des_quad_cksum" >&6
2851if test $ac_cv_lib_des_des_quad_cksum = yes; then
2852  cat >>confdefs.h <<_ACEOF
2853#define HAVE_LIBDES 1
2854_ACEOF
[69894d2]2855
[bbd2fdc]2856  LIBS="$LIBS"
[69894d2]2857
2858fi
2859
[8298425]2860
2861echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
2862echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
2863if test "${ac_cv_lib_resolv_res_search+set}" = set; then
2864  echo $ECHO_N "(cached) $ECHO_C" >&6
[d09e5a1]2865else
[8298425]2866  ac_check_lib_save_LIBS=$LIBS
[d09e5a1]2867LIBS="-lresolv  $LIBS"
[8298425]2868cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h.  */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h.  */
2874
[d09e5a1]2875/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2876#ifdef __cplusplus
2877extern "C"
2878#endif
[d09e5a1]2879/* We use char because int might match the return type of a gcc2
[8298425]2880   builtin and then its argument prototype would still apply.  */
2881char res_search ();
2882int
2883main ()
2884{
2885res_search ();
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext conftest$ac_exeext
2891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2892  (eval $ac_link) 2>conftest.er1
2893  ac_status=$?
2894  grep -v '^ *+' conftest.er1 >conftest.err
2895  rm -f conftest.er1
2896  cat conftest.err >&5
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); } &&
2899         { ac_try='test -z "$ac_c_werror_flag"
2900                         || test ! -s conftest.err'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; } &&
2906         { ac_try='test -s conftest$ac_exeext'
2907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908  (eval $ac_try) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }; }; then
2912  ac_cv_lib_resolv_res_search=yes
2913else
2914  echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
[d09e5a1]2916
[8298425]2917ac_cv_lib_resolv_res_search=no
2918fi
2919rm -f conftest.err conftest.$ac_objext \
2920      conftest$ac_exeext conftest.$ac_ext
2921LIBS=$ac_check_lib_save_LIBS
[d09e5a1]2922fi
[8298425]2923echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
2924echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
2925if test $ac_cv_lib_resolv_res_search = yes; then
2926  cat >>confdefs.h <<_ACEOF
2927#define HAVE_LIBRESOLV 1
2928_ACEOF
[d09e5a1]2929
2930  LIBS="-lresolv $LIBS"
2931
2932fi
2933
[8298425]2934
2935echo "$as_me:$LINENO: checking for krb5_get_credentials in -lkrb5" >&5
2936echo $ECHO_N "checking for krb5_get_credentials in -lkrb5... $ECHO_C" >&6
2937if test "${ac_cv_lib_krb5_krb5_get_credentials+set}" = set; then
2938  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]2939else
[8298425]2940  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]2941LIBS="-lkrb5  $LIBS"
[8298425]2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
[7d4fbcd]2949/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]2950#ifdef __cplusplus
2951extern "C"
2952#endif
[7d4fbcd]2953/* We use char because int might match the return type of a gcc2
[8298425]2954   builtin and then its argument prototype would still apply.  */
2955char krb5_get_credentials ();
2956int
2957main ()
2958{
2959krb5_get_credentials ();
2960  ;
2961  return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext conftest$ac_exeext
2965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2966  (eval $ac_link) 2>conftest.er1
2967  ac_status=$?
2968  grep -v '^ *+' conftest.er1 >conftest.err
2969  rm -f conftest.er1
2970  cat conftest.err >&5
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); } &&
2973         { ac_try='test -z "$ac_c_werror_flag"
2974                         || test ! -s conftest.err'
2975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976  (eval $ac_try) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; } &&
2980         { ac_try='test -s conftest$ac_exeext'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; }; then
2986  ac_cv_lib_krb5_krb5_get_credentials=yes
2987else
2988  echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]2990
[8298425]2991ac_cv_lib_krb5_krb5_get_credentials=no
2992fi
2993rm -f conftest.err conftest.$ac_objext \
2994      conftest$ac_exeext conftest.$ac_ext
2995LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]2996fi
[8298425]2997echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_credentials" >&5
2998echo "${ECHO_T}$ac_cv_lib_krb5_krb5_get_credentials" >&6
2999if test $ac_cv_lib_krb5_krb5_get_credentials = yes; then
3000  cat >>confdefs.h <<_ACEOF
3001#define HAVE_LIBKRB5 1
3002_ACEOF
[7d4fbcd]3003
3004  LIBS="-lkrb5 $LIBS"
3005
3006fi
3007
[8298425]3008
3009echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb4" >&5
3010echo $ECHO_N "checking for krb_sendauth in -lkrb4... $ECHO_C" >&6
3011if test "${ac_cv_lib_krb4_krb_sendauth+set}" = set; then
3012  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3013else
[8298425]3014  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]3015LIBS="-lkrb4  $LIBS"
[8298425]3016cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022
[7d4fbcd]3023/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]3024#ifdef __cplusplus
3025extern "C"
3026#endif
[7d4fbcd]3027/* We use char because int might match the return type of a gcc2
[8298425]3028   builtin and then its argument prototype would still apply.  */
3029char krb_sendauth ();
3030int
3031main ()
3032{
3033krb_sendauth ();
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext conftest$ac_exeext
3039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040  (eval $ac_link) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047         { ac_try='test -z "$ac_c_werror_flag"
3048                         || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054         { ac_try='test -s conftest$ac_exeext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  ac_cv_lib_krb4_krb_sendauth=yes
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]3064
[8298425]3065ac_cv_lib_krb4_krb_sendauth=no
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]3070fi
[8298425]3071echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_sendauth" >&5
3072echo "${ECHO_T}$ac_cv_lib_krb4_krb_sendauth" >&6
3073if test $ac_cv_lib_krb4_krb_sendauth = yes; then
3074  cat >>confdefs.h <<_ACEOF
3075#define HAVE_LIBKRB4 1
3076_ACEOF
[7d4fbcd]3077
3078  LIBS="-lkrb4 $LIBS"
3079
3080else
[8298425]3081
3082echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
3083echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
3084if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
3085  echo $ECHO_N "(cached) $ECHO_C" >&6
[69894d2]3086else
[8298425]3087  ac_check_lib_save_LIBS=$LIBS
[69894d2]3088LIBS="-lkrb  $LIBS"
[8298425]3089cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
[69894d2]3096/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]3097#ifdef __cplusplus
3098extern "C"
3099#endif
[69894d2]3100/* We use char because int might match the return type of a gcc2
[8298425]3101   builtin and then its argument prototype would still apply.  */
3102char krb_sendauth ();
3103int
3104main ()
3105{
3106krb_sendauth ();
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext conftest$ac_exeext
3112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3113  (eval $ac_link) 2>conftest.er1
3114  ac_status=$?
3115  grep -v '^ *+' conftest.er1 >conftest.err
3116  rm -f conftest.er1
3117  cat conftest.err >&5
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); } &&
3120         { ac_try='test -z "$ac_c_werror_flag"
3121                         || test ! -s conftest.err'
3122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123  (eval $ac_try) 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); }; } &&
3127         { ac_try='test -s conftest$ac_exeext'
3128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129  (eval $ac_try) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); }; }; then
3133  ac_cv_lib_krb_krb_sendauth=yes
3134else
3135  echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
[69894d2]3137
[8298425]3138ac_cv_lib_krb_krb_sendauth=no
3139fi
3140rm -f conftest.err conftest.$ac_objext \
3141      conftest$ac_exeext conftest.$ac_ext
3142LIBS=$ac_check_lib_save_LIBS
[69894d2]3143fi
[8298425]3144echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
3145echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
3146if test $ac_cv_lib_krb_krb_sendauth = yes; then
3147  cat >>confdefs.h <<_ACEOF
3148#define HAVE_LIBKRB 1
3149_ACEOF
[69894d2]3150
3151  LIBS="-lkrb $LIBS"
3152
3153fi
3154
[d09e5a1]3155fi
3156
[8298425]3157
3158echo "$as_me:$LINENO: checking for ZGetSender in -lzephyr" >&5
3159echo $ECHO_N "checking for ZGetSender in -lzephyr... $ECHO_C" >&6
3160if test "${ac_cv_lib_zephyr_ZGetSender+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3162else
[8298425]3163  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]3164LIBS="-lzephyr  $LIBS"
[8298425]3165cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h.  */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h.  */
3171
[7d4fbcd]3172/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]3173#ifdef __cplusplus
3174extern "C"
3175#endif
[7d4fbcd]3176/* We use char because int might match the return type of a gcc2
[8298425]3177   builtin and then its argument prototype would still apply.  */
3178char ZGetSender ();
3179int
3180main ()
3181{
3182ZGetSender ();
3183  ;
3184  return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext conftest$ac_exeext
3188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3189  (eval $ac_link) 2>conftest.er1
3190  ac_status=$?
3191  grep -v '^ *+' conftest.er1 >conftest.err
3192  rm -f conftest.er1
3193  cat conftest.err >&5
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); } &&
3196         { ac_try='test -z "$ac_c_werror_flag"
3197                         || test ! -s conftest.err'
3198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199  (eval $ac_try) 2>&5
3200  ac_status=$?
3201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); }; } &&
3203         { ac_try='test -s conftest$ac_exeext'
3204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205  (eval $ac_try) 2>&5
3206  ac_status=$?
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); }; }; then
3209  ac_cv_lib_zephyr_ZGetSender=yes
3210else
3211  echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]3213
[8298425]3214ac_cv_lib_zephyr_ZGetSender=no
3215fi
3216rm -f conftest.err conftest.$ac_objext \
3217      conftest$ac_exeext conftest.$ac_ext
3218LIBS=$ac_check_lib_save_LIBS
[7d4fbcd]3219fi
[8298425]3220echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZGetSender" >&5
3221echo "${ECHO_T}$ac_cv_lib_zephyr_ZGetSender" >&6
3222if test $ac_cv_lib_zephyr_ZGetSender = yes; then
3223  cat >>confdefs.h <<_ACEOF
3224#define HAVE_LIBZEPHYR 1
3225_ACEOF
[7d4fbcd]3226
3227  LIBS="-lzephyr $LIBS"
3228
3229fi
3230
[8298425]3231echo "$as_me:$LINENO: checking for ZInitLocationInfo in -lzephyr" >&5
3232echo $ECHO_N "checking for ZInitLocationInfo in -lzephyr... $ECHO_C" >&6
3233if test "${ac_cv_lib_zephyr_ZInitLocationInfo+set}" = set; then
3234  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3235else
[8298425]3236  ac_check_lib_save_LIBS=$LIBS
[7d4fbcd]3237LIBS="-lzephyr  $LIBS"
[8298425]3238cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h.  */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h.  */
3244
[7d4fbcd]3245/* Override any gcc2 internal prototype to avoid an error.  */
[8298425]3246#ifdef __cplusplus
3247extern "C"
3248#endif
[7d4fbcd]3249/* We use char because int might match the return type of a gcc2
[8298425]3250   builtin and then its argument prototype would still apply.  */
3251char ZInitLocationInfo ();
3252int
3253main ()
3254{
3255ZInitLocationInfo ();
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext conftest$ac_exeext
3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262  (eval $ac_link) 2>conftest.er1
3263  ac_status=$?
3264  grep -v '^ *+' conftest.er1 >conftest.err
3265  rm -f conftest.er1
3266  cat conftest.err >&5
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); } &&
3269         { ac_try='test -z "$ac_c_werror_flag"
3270                         || test ! -s conftest.err'
3271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272  (eval $ac_try) 2>&5
3273  ac_status=$?
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); }; } &&
3276         { ac_try='test -s conftest$ac_exeext'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; }; then
3282  ac_cv_lib_zephyr_ZInitLocationInfo=yes
3283else
3284  echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
[7d4fbcd]3286
[8298425]3287ac_cv_lib_zephyr_ZInitLocationInfo=no
[7d4fbcd]3288fi
[8298425]3289rm -f conftest.err conftest.$ac_objext \
3290      conftest$ac_exeext conftest.$ac_ext
3291LIBS=$ac_check_lib_save_LIBS
3292fi
3293echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitLocationInfo" >&5
3294echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitLocationInfo" >&6
3295if test $ac_cv_lib_zephyr_ZInitLocationInfo = yes; then
3296
3297cat >>confdefs.h <<\_ACEOF
3298#define HAVE_LIBZEPHYR_ZINITLOCATIONINFO
3299_ACEOF
[7d4fbcd]3300
3301fi
3302
3303
[8298425]3304
3305
3306
3307
[c269e22]3308for ac_func in use_default_colors des_string_to_key des_key_sched des_ecb_encrypt
[e51b410]3309do
[8298425]3310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3311echo "$as_me:$LINENO: checking for $ac_func" >&5
3312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3313if eval "test \"\${$as_ac_var+set}\" = set"; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h.  */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h.  */
3322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3323   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3324#define $ac_func innocuous_$ac_func
3325
[e51b410]3326/* System header to define __stub macros and hopefully few prototypes,
[8298425]3327    which can conflict with char $ac_func (); below.
3328    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329    <limits.h> exists even on freestanding compilers.  */
[e51b410]3330
[8298425]3331#ifdef __STDC__
3332# include <limits.h>
3333#else
3334# include <assert.h>
3335#endif
[e51b410]3336
[8298425]3337#undef $ac_func
3338
3339/* Override any gcc2 internal prototype to avoid an error.  */
3340#ifdef __cplusplus
3341extern "C"
3342{
3343#endif
3344/* We use char because int might match the return type of a gcc2
3345   builtin and then its argument prototype would still apply.  */
3346char $ac_func ();
[e51b410]3347/* The GNU C library defines this for functions which it implements
3348    to always fail with ENOSYS.  Some functions are actually named
3349    something starting with __ and the normal name is an alias.  */
3350#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3351choke me
3352#else
[8298425]3353char (*f) () = $ac_func;
3354#endif
3355#ifdef __cplusplus
3356}
[e51b410]3357#endif
3358
[8298425]3359int
3360main ()
3361{
3362return f != $ac_func;
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext conftest$ac_exeext
3368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3369  (eval $ac_link) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376         { ac_try='test -z "$ac_c_werror_flag"
3377                         || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383         { ac_try='test -s conftest$ac_exeext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  eval "$as_ac_var=yes"
[e51b410]3390else
[8298425]3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394eval "$as_ac_var=no"
[e51b410]3395fi
[8298425]3396rm -f conftest.err conftest.$ac_objext \
3397      conftest$ac_exeext conftest.$ac_ext
[e51b410]3398fi
[8298425]3399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3400echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3401if test `eval echo '${'$as_ac_var'}'` = yes; then
3402  cat >>confdefs.h <<_ACEOF
3403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3404_ACEOF
[e51b410]3405
3406fi
3407done
3408
3409
[8298425]3410echo "$as_me:$LINENO: checking for des_ecb_encrypt prototype" >&5
3411echo $ECHO_N "checking for des_ecb_encrypt prototype... $ECHO_C" >&6
3412cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h.  */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h.  */
[69894d2]3418#include <des.h>
3419int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);
[8298425]3420int
3421main ()
3422{
[69894d2]3423int foo = des_ecb_encrypt(0,0,0,0);
[8298425]3424  ;
3425  return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430  (eval $ac_compile) 2>conftest.er1
3431  ac_status=$?
3432  grep -v '^ *+' conftest.er1 >conftest.err
3433  rm -f conftest.er1
3434  cat conftest.err >&5
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); } &&
3437         { ac_try='test -z "$ac_c_werror_flag"
3438                         || test ! -s conftest.err'
3439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440  (eval $ac_try) 2>&5
3441  ac_status=$?
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); }; } &&
3444         { ac_try='test -s conftest.$ac_objext'
3445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446  (eval $ac_try) 2>&5
3447  ac_status=$?
3448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449  (exit $ac_status); }; }; then
[69894d2]3450  ac_cv_des_ecb_encrypt_proto=no
3451else
[8298425]3452  echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455ac_cv_des_ecb_encrypt_proto=yes
[69894d2]3456fi
[8298425]3457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458echo "$as_me:$LINENO: result: $ac_cv_des_ecb_encrypt_proto" >&5
3459echo "${ECHO_T}$ac_cv_des_ecb_encrypt_proto" >&6
[69894d2]3460if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
[8298425]3461
3462cat >>confdefs.h <<\_ACEOF
3463#define HAVE_DES_ECB_ENCRYPT_PROTO
3464_ACEOF
[69894d2]3465
3466fi
3467
[8298425]3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3474echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
[7d4fbcd]3475# On Suns, sometimes $CPP names a directory.
3476if test -n "$CPP" && test -d "$CPP"; then
3477  CPP=
3478fi
3479if test -z "$CPP"; then
[8298425]3480  if test "${ac_cv_prog_CPP+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3482else
[8298425]3483      # Double quotes because CPP needs to be expanded
3484    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485    do
3486      ac_preproc_ok=false
3487for ac_c_preproc_warn_flag in '' yes
3488do
3489  # Use a header file that comes with gcc, so configuring glibc
3490  # with a fresh cross-compiler works.
3491  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492  # <limits.h> exists even on freestanding compilers.
[7d4fbcd]3493  # On the NeXT, cc -E runs the code through the compiler's parser,
[8298425]3494  # not just through cpp. "Syntax error" is here to catch this case.
3495  cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h.  */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h.  */
3501#ifdef __STDC__
3502# include <limits.h>
3503#else
3504# include <assert.h>
3505#endif
3506                     Syntax error
3507_ACEOF
3508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } >/dev/null; then
3516  if test -s conftest.err; then
3517    ac_cpp_err=$ac_c_preproc_warn_flag
3518    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519  else
3520    ac_cpp_err=
3521  fi
[7d4fbcd]3522else
[8298425]3523  ac_cpp_err=yes
3524fi
3525if test -z "$ac_cpp_err"; then
[7d4fbcd]3526  :
3527else
[8298425]3528  echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531  # Broken: fails on valid input.
3532continue
3533fi
3534rm -f conftest.err conftest.$ac_ext
3535
3536  # OK, works on sane cases.  Now check whether non-existent headers
3537  # can be detected and how.
3538  cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h.  */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h.  */
3544#include <ac_nonexistent.h>
3545_ACEOF
3546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3547  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3548  ac_status=$?
3549  grep -v '^ *+' conftest.er1 >conftest.err
3550  rm -f conftest.er1
3551  cat conftest.err >&5
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); } >/dev/null; then
3554  if test -s conftest.err; then
3555    ac_cpp_err=$ac_c_preproc_warn_flag
3556    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3557  else
3558    ac_cpp_err=
3559  fi
3560else
3561  ac_cpp_err=yes
3562fi
3563if test -z "$ac_cpp_err"; then
3564  # Broken: success on invalid input.
3565continue
3566else
3567  echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570  # Passes both tests.
3571ac_preproc_ok=:
3572break
3573fi
3574rm -f conftest.err conftest.$ac_ext
3575
3576done
3577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3578rm -f conftest.err conftest.$ac_ext
3579if $ac_preproc_ok; then
3580  break
3581fi
3582
3583    done
3584    ac_cv_prog_CPP=$CPP
3585
3586fi
3587  CPP=$ac_cv_prog_CPP
3588else
3589  ac_cv_prog_CPP=$CPP
3590fi
3591echo "$as_me:$LINENO: result: $CPP" >&5
3592echo "${ECHO_T}$CPP" >&6
3593ac_preproc_ok=false
3594for ac_c_preproc_warn_flag in '' yes
3595do
3596  # Use a header file that comes with gcc, so configuring glibc
3597  # with a fresh cross-compiler works.
3598  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599  # <limits.h> exists even on freestanding compilers.
3600  # On the NeXT, cc -E runs the code through the compiler's parser,
3601  # not just through cpp. "Syntax error" is here to catch this case.
3602  cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h.  */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h.  */
3608#ifdef __STDC__
3609# include <limits.h>
3610#else
3611# include <assert.h>
3612#endif
3613                     Syntax error
3614_ACEOF
3615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3617  ac_status=$?
3618  grep -v '^ *+' conftest.er1 >conftest.err
3619  rm -f conftest.er1
3620  cat conftest.err >&5
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); } >/dev/null; then
3623  if test -s conftest.err; then
3624    ac_cpp_err=$ac_c_preproc_warn_flag
3625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3626  else
3627    ac_cpp_err=
3628  fi
3629else
3630  ac_cpp_err=yes
3631fi
3632if test -z "$ac_cpp_err"; then
[7d4fbcd]3633  :
3634else
[8298425]3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638  # Broken: fails on valid input.
3639continue
[7d4fbcd]3640fi
[8298425]3641rm -f conftest.err conftest.$ac_ext
3642
3643  # OK, works on sane cases.  Now check whether non-existent headers
3644  # can be detected and how.
3645  cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h.  */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h.  */
3651#include <ac_nonexistent.h>
3652_ACEOF
3653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3654  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } >/dev/null; then
3661  if test -s conftest.err; then
3662    ac_cpp_err=$ac_c_preproc_warn_flag
3663    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664  else
3665    ac_cpp_err=
3666  fi
3667else
3668  ac_cpp_err=yes
[7d4fbcd]3669fi
[8298425]3670if test -z "$ac_cpp_err"; then
3671  # Broken: success on invalid input.
3672continue
3673else
3674  echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677  # Passes both tests.
3678ac_preproc_ok=:
3679break
[7d4fbcd]3680fi
[8298425]3681rm -f conftest.err conftest.$ac_ext
3682
3683done
3684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685rm -f conftest.err conftest.$ac_ext
3686if $ac_preproc_ok; then
3687  :
3688else
3689  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3690See \`config.log' for more details." >&5
3691echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3692See \`config.log' for more details." >&2;}
3693   { (exit 1); exit 1; }; }
[7d4fbcd]3694fi
[8298425]3695
3696ac_ext=c
3697ac_cpp='$CPP $CPPFLAGS'
3698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702
3703echo "$as_me:$LINENO: checking for egrep" >&5
3704echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3705if test "${ac_cv_prog_egrep+set}" = set; then
3706  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3707else
[8298425]3708  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3709    then ac_cv_prog_egrep='grep -E'
3710    else ac_cv_prog_egrep='egrep'
3711    fi
[7d4fbcd]3712fi
[8298425]3713echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3714echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3715 EGREP=$ac_cv_prog_egrep
[7d4fbcd]3716
[8298425]3717
3718echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3719echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3720if test "${ac_cv_header_stdc+set}" = set; then
3721  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3722else
[8298425]3723  cat >conftest.$ac_ext <<_ACEOF
3724/* confdefs.h.  */
3725_ACEOF
3726cat confdefs.h >>conftest.$ac_ext
3727cat >>conftest.$ac_ext <<_ACEOF
3728/* end confdefs.h.  */
[7d4fbcd]3729#include <stdlib.h>
3730#include <stdarg.h>
3731#include <string.h>
3732#include <float.h>
[8298425]3733
3734int
3735main ()
3736{
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext
3743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744  (eval $ac_compile) 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } &&
3751         { ac_try='test -z "$ac_c_werror_flag"
3752                         || test ! -s conftest.err'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; } &&
3758         { ac_try='test -s conftest.$ac_objext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
[7d4fbcd]3764  ac_cv_header_stdc=yes
3765else
[8298425]3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769ac_cv_header_stdc=no
[7d4fbcd]3770fi
[8298425]3771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[7d4fbcd]3772
3773if test $ac_cv_header_stdc = yes; then
3774  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
[8298425]3775  cat >conftest.$ac_ext <<_ACEOF
3776/* confdefs.h.  */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h.  */
[7d4fbcd]3781#include <string.h>
[8298425]3782
3783_ACEOF
[7d4fbcd]3784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[8298425]3785  $EGREP "memchr" >/dev/null 2>&1; then
[7d4fbcd]3786  :
3787else
3788  ac_cv_header_stdc=no
3789fi
3790rm -f conftest*
3791
3792fi
3793
3794if test $ac_cv_header_stdc = yes; then
3795  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
[8298425]3796  cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h.  */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h.  */
[7d4fbcd]3802#include <stdlib.h>
[8298425]3803
3804_ACEOF
[7d4fbcd]3805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
[8298425]3806  $EGREP "free" >/dev/null 2>&1; then
[7d4fbcd]3807  :
3808else
3809  ac_cv_header_stdc=no
3810fi
3811rm -f conftest*
3812
3813fi
3814
3815if test $ac_cv_header_stdc = yes; then
3816  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
[8298425]3817  if test "$cross_compiling" = yes; then
[7d4fbcd]3818  :
3819else
[8298425]3820  cat >conftest.$ac_ext <<_ACEOF
3821/* confdefs.h.  */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h.  */
[7d4fbcd]3826#include <ctype.h>
[8298425]3827#if ((' ' & 0x0FF) == 0x020)
3828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830#else
3831# define ISLOWER(c) \
3832                   (('a' <= (c) && (c) <= 'i') \
3833                     || ('j' <= (c) && (c) <= 'r') \
3834                     || ('s' <= (c) && (c) <= 'z'))
3835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836#endif
[7d4fbcd]3837
[8298425]3838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839int
3840main ()
3841{
3842  int i;
3843  for (i = 0; i < 256; i++)
3844    if (XOR (islower (i), ISLOWER (i))
3845        || toupper (i) != TOUPPER (i))
3846      exit(2);
3847  exit (0);
3848}
3849_ACEOF
3850rm -f conftest$ac_exeext
3851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852  (eval $ac_link) 2>&5
3853  ac_status=$?
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
[7d4fbcd]3861  :
3862else
[8298425]3863  echo "$as_me: program exited with status $ac_status" >&5
3864echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867( exit $ac_status )
3868ac_cv_header_stdc=no
[7d4fbcd]3869fi
[8298425]3870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
[7d4fbcd]3871fi
3872fi
3873fi
[8298425]3874echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3875echo "${ECHO_T}$ac_cv_header_stdc" >&6
[7d4fbcd]3876if test $ac_cv_header_stdc = yes; then
[8298425]3877
3878cat >>confdefs.h <<\_ACEOF
[7d4fbcd]3879#define STDC_HEADERS 1
[8298425]3880_ACEOF
[7d4fbcd]3881
3882fi
3883
[8298425]3884echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3885echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3886if test "${ac_cv_header_sys_wait_h+set}" = set; then
3887  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]3888else
[8298425]3889  cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h.  */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h.  */
[7d4fbcd]3895#include <sys/types.h>
3896#include <sys/wait.h>
3897#ifndef WEXITSTATUS
[8298425]3898# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
[7d4fbcd]3899#endif
3900#ifndef WIFEXITED
[8298425]3901# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
[7d4fbcd]3902#endif
[8298425]3903
3904int
3905main ()
3906{
3907  int s;
3908  wait (&s);
3909  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914rm -f conftest.$ac_objext
3915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916  (eval $ac_compile) 2>conftest.er1
3917  ac_status=$?
3918  grep -v '^ *+' conftest.er1 >conftest.err
3919  rm -f conftest.er1
3920  cat conftest.err >&5
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); } &&
3923         { ac_try='test -z "$ac_c_werror_flag"
3924                         || test ! -s conftest.err'
3925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926  (eval $ac_try) 2>&5
3927  ac_status=$?
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); }; } &&
3930         { ac_try='test -s conftest.$ac_objext'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; }; then
[7d4fbcd]3936  ac_cv_header_sys_wait_h=yes
3937else
[8298425]3938  echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941ac_cv_header_sys_wait_h=no
[7d4fbcd]3942fi
[8298425]3943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
[7d4fbcd]3944fi
[8298425]3945echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3946echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
[7d4fbcd]3947if test $ac_cv_header_sys_wait_h = yes; then
[8298425]3948
3949cat >>confdefs.h <<\_ACEOF
[7d4fbcd]3950#define HAVE_SYS_WAIT_H 1
[8298425]3951_ACEOF
[7d4fbcd]3952
3953fi
3954
[8298425]3955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3966                  inttypes.h stdint.h unistd.h
[7d4fbcd]3967do
[8298425]3968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3969echo "$as_me:$LINENO: checking for $ac_header" >&5
3970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3971if eval "test \"\${$as_ac_Header+set}\" = set"; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h.  */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h.  */
3980$ac_includes_default
3981
3982#include <$ac_header>
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986  (eval $ac_compile) 2>conftest.er1
3987  ac_status=$?
3988  grep -v '^ *+' conftest.er1 >conftest.err
3989  rm -f conftest.er1
3990  cat conftest.err >&5
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); } &&
3993         { ac_try='test -z "$ac_c_werror_flag"
3994                         || test ! -s conftest.err'
3995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996  (eval $ac_try) 2>&5
3997  ac_status=$?
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); }; } &&
4000         { ac_try='test -s conftest.$ac_objext'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; }; then
4006  eval "$as_ac_Header=yes"
4007else
4008  echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
4011eval "$as_ac_Header=no"
[7d4fbcd]4012fi
[8298425]4013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014fi
4015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4017if test `eval echo '${'$as_ac_Header'}'` = yes; then
4018  cat >>confdefs.h <<_ACEOF
4019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4020_ACEOF
4021
4022fi
4023
4024done
4025
4026
4027
4028
4029
4030
4031
4032for ac_header in strings.h sys/ioctl.h sys/filio.h unistd.h com_err.h
4033do
4034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4035if eval "test \"\${$as_ac_Header+set}\" = set"; then
4036  echo "$as_me:$LINENO: checking for $ac_header" >&5
4037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4038if eval "test \"\${$as_ac_Header+set}\" = set"; then
4039  echo $ECHO_N "(cached) $ECHO_C" >&6
4040fi
4041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4043else
4044  # Is the header compilable?
4045echo "$as_me:$LINENO: checking $ac_header usability" >&5
4046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4047cat >conftest.$ac_ext <<_ACEOF
4048/* confdefs.h.  */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h.  */
4053$ac_includes_default
4054#include <$ac_header>
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058  (eval $ac_compile) 2>conftest.er1
4059  ac_status=$?
4060  grep -v '^ *+' conftest.er1 >conftest.err
4061  rm -f conftest.er1
4062  cat conftest.err >&5
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); } &&
4065         { ac_try='test -z "$ac_c_werror_flag"
4066                         || test ! -s conftest.err'
4067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068  (eval $ac_try) 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }; } &&
4072         { ac_try='test -s conftest.$ac_objext'
4073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074  (eval $ac_try) 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; }; then
4078  ac_header_compiler=yes
4079else
4080  echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083ac_header_compiler=no
4084fi
4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4087echo "${ECHO_T}$ac_header_compiler" >&6
4088
4089# Is the header present?
4090echo "$as_me:$LINENO: checking $ac_header presence" >&5
4091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h.  */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h.  */
4098#include <$ac_header>
4099_ACEOF
4100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4101  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4102  ac_status=$?
4103  grep -v '^ *+' conftest.er1 >conftest.err
4104  rm -f conftest.er1
4105  cat conftest.err >&5
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); } >/dev/null; then
4108  if test -s conftest.err; then
4109    ac_cpp_err=$ac_c_preproc_warn_flag
4110    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4111  else
4112    ac_cpp_err=
4113  fi
4114else
4115  ac_cpp_err=yes
4116fi
4117if test -z "$ac_cpp_err"; then
4118  ac_header_preproc=yes
4119else
4120  echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123  ac_header_preproc=no
[7d4fbcd]4124fi
[8298425]4125rm -f conftest.err conftest.$ac_ext
4126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4127echo "${ECHO_T}$ac_header_preproc" >&6
4128
4129# So?  What about this header?
4130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4131  yes:no: )
4132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4136    ac_header_preproc=yes
4137    ;;
4138  no:yes:* )
4139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4151    (
4152      cat <<\_ASBOX
4153## ------------------------------------------ ##
4154## Report this to the AC_PACKAGE_NAME lists.  ##
4155## ------------------------------------------ ##
4156_ASBOX
4157    ) |
4158      sed "s/^/$as_me: WARNING:     /" >&2
4159    ;;
4160esac
4161echo "$as_me:$LINENO: checking for $ac_header" >&5
4162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4163if eval "test \"\${$as_ac_Header+set}\" = set"; then
4164  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]4165else
[8298425]4166  eval "$as_ac_Header=\$ac_header_preproc"
4167fi
4168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4170
[7d4fbcd]4171fi
[8298425]4172if test `eval echo '${'$as_ac_Header'}'` = yes; then
4173  cat >>confdefs.h <<_ACEOF
4174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175_ACEOF
4176
4177fi
4178
[7d4fbcd]4179done
4180
4181
4182FOO=`perl -MExtUtils::Embed -e ccopts`
4183echo Adding perl CFLAGS ${FOO}
4184CFLAGS=${CFLAGS}\ ${FOO}
4185
[8298425]4186echo "$as_me:$LINENO: checking for the perl xsubpp precompiler" >&5
4187echo $ECHO_N "checking for the perl xsubpp precompiler... $ECHO_C" >&6
[6794f72]4188XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
[8ee73f8d]4189if test -n "${XSUBPPDIR}"; then
[8298425]4190   echo "$as_me:$LINENO: result: ${XSUBPPDIR}" >&5
4191echo "${ECHO_T}${XSUBPPDIR}" >&6
[8ee73f8d]4192else
[8298425]4193   { { echo "$as_me:$LINENO: error: not found" >&5
4194echo "$as_me: error: not found" >&2;}
4195   { (exit 1); exit 1; }; }
[8ee73f8d]4196fi
4197
[884c272]4198FOO=`perl -MExtUtils::Embed -e ldopts | sed 's/,-E//' | sed 's/-liconv//'`
[7d4fbcd]4199echo Adding perl LDFLAGS ${FOO}
4200LDFLAGS=${LDFLAGS}\ ${FOO}
4201
[8298425]4202echo "$as_me:$LINENO: checking for /usr/share/terminfo" >&5
4203echo $ECHO_N "checking for /usr/share/terminfo... $ECHO_C" >&6
4204if test "${ac_cv_file__usr_share_terminfo+set}" = set; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]4206else
[8298425]4207  test "$cross_compiling" = yes &&
4208  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4209echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4210   { (exit 1); exit 1; }; }
4211if test -r "/usr/share/terminfo"; then
4212  ac_cv_file__usr_share_terminfo=yes
[7d4fbcd]4213else
[8298425]4214  ac_cv_file__usr_share_terminfo=no
[7d4fbcd]4215fi
4216fi
[8298425]4217echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_terminfo" >&5
4218echo "${ECHO_T}$ac_cv_file__usr_share_terminfo" >&6
4219if test $ac_cv_file__usr_share_terminfo = yes; then
4220
4221cat >>confdefs.h <<\_ACEOF
[7d4fbcd]4222#define TERMINFO "/usr/share/terminfo"
[8298425]4223_ACEOF
[7d4fbcd]4224
4225else
[8298425]4226  echo "$as_me:$LINENO: checking for /usr/share/lib/terminfo" >&5
4227echo $ECHO_N "checking for /usr/share/lib/terminfo... $ECHO_C" >&6
4228if test "${ac_cv_file__usr_share_lib_terminfo+set}" = set; then
4229  echo $ECHO_N "(cached) $ECHO_C" >&6
[7d4fbcd]4230else
[8298425]4231  test "$cross_compiling" = yes &&
4232  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4233echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4234   { (exit 1); exit 1; }; }
4235if test -r "/usr/share/lib/terminfo"; then
4236  ac_cv_file__usr_share_lib_terminfo=yes
[7d4fbcd]4237else
[8298425]4238  ac_cv_file__usr_share_lib_terminfo=no
[7d4fbcd]4239fi
4240fi
[8298425]4241echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_lib_terminfo" >&5
4242echo "${ECHO_T}$ac_cv_file__usr_share_lib_terminfo" >&6
4243if test $ac_cv_file__usr_share_lib_terminfo = yes; then
4244
4245cat >>confdefs.h <<\_ACEOF
[7d4fbcd]4246#define TERMINFO "/usr/share/lib/terminfo"
[8298425]4247_ACEOF
[7d4fbcd]4248
4249else
[8298425]4250  { { echo "$as_me:$LINENO: error: No terminfo found for this system" >&5
4251echo "$as_me: error: No terminfo found for this system" >&2;}
4252   { (exit 1); exit 1; }; }
[7d4fbcd]4253fi
4254
4255fi
4256
4257
4258
[8ee73f8d]4259
[69894d2]4260ac_aux_dir=
4261for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4262  if test -f $ac_dir/install-sh; then
4263    ac_aux_dir=$ac_dir
4264    ac_install_sh="$ac_aux_dir/install-sh -c"
4265    break
4266  elif test -f $ac_dir/install.sh; then
4267    ac_aux_dir=$ac_dir
4268    ac_install_sh="$ac_aux_dir/install.sh -c"
4269    break