source: trunk/athena/bin/voldump/configure @ 11143

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