source: trunk/athena/bin/xcluster/configure @ 12283

Revision 12283, 64.8 KB checked in by ghudson, 26 years ago (diff)
Move here from athena/bin/dash/src/xcluster and autoconfiscate.
  • 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-x                use the X Window System"
16ac_help="$ac_help
17  --with-hesiod=PREFIX    Use Hesiod"
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=xcluster.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
776echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
777echo "configure:778: checking how to run the C preprocessor" >&5
778# On Suns, sometimes $CPP names a directory.
779if test -n "$CPP" && test -d "$CPP"; then
780  CPP=
781fi
782if test -z "$CPP"; then
783if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
784  echo $ac_n "(cached) $ac_c" 1>&6
785else
786    # This must be in double quotes, not single quotes, because CPP may get
787  # substituted into the Makefile and "${CC-cc}" will confuse make.
788  CPP="${CC-cc} -E"
789  # On the NeXT, cc -E runs the code through the compiler's parser,
790  # not just through cpp.
791  cat > conftest.$ac_ext <<EOF
792#line 793 "configure"
793#include "confdefs.h"
794#include <assert.h>
795Syntax Error
796EOF
797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
798{ (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
799ac_err=`grep -v '^ *+' conftest.out`
800if test -z "$ac_err"; then
801  :
802else
803  echo "$ac_err" >&5
804  echo "configure: failed program was:" >&5
805  cat conftest.$ac_ext >&5
806  rm -rf conftest*
807  CPP="${CC-cc} -E -traditional-cpp"
808  cat > conftest.$ac_ext <<EOF
809#line 810 "configure"
810#include "confdefs.h"
811#include <assert.h>
812Syntax Error
813EOF
814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815{ (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816ac_err=`grep -v '^ *+' conftest.out`
817if test -z "$ac_err"; then
818  :
819else
820  echo "$ac_err" >&5
821  echo "configure: failed program was:" >&5
822  cat conftest.$ac_ext >&5
823  rm -rf conftest*
824  CPP=/lib/cpp
825fi
826rm -f conftest*
827fi
828rm -f conftest*
829  ac_cv_prog_CPP="$CPP"
830fi
831  CPP="$ac_cv_prog_CPP"
832else
833  ac_cv_prog_CPP="$CPP"
834fi
835echo "$ac_t""$CPP" 1>&6
836
837# If we find X, set shell vars x_includes and x_libraries to the
838# paths, otherwise set no_x=yes.
839# Uses ac_ vars as temps to allow command line to override cache and checks.
840# --without-x overrides everything else, but does not touch the cache.
841echo $ac_n "checking for X""... $ac_c" 1>&6
842echo "configure:843: checking for X" >&5
843
844# Check whether --with-x or --without-x was given.
845if test "${with_x+set}" = set; then
846  withval="$with_x"
847  :
848fi
849
850# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
851if test "x$with_x" = xno; then
852  # The user explicitly disabled X.
853  have_x=disabled
854else
855  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
856    # Both variables are already set.
857    have_x=yes
858  else
859if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
860  echo $ac_n "(cached) $ac_c" 1>&6
861else
862  # One or both of the vars are not set, and there is no cached value.
863ac_x_includes=NO ac_x_libraries=NO
864rm -fr conftestdir
865if mkdir conftestdir; then
866  cd conftestdir
867  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
868  cat > Imakefile <<'EOF'
869acfindx:
870        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
871EOF
872  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
873    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
874    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
875    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
876    for ac_extension in a so sl; do
877      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
878        test -f $ac_im_libdir/libX11.$ac_extension; then
879        ac_im_usrlibdir=$ac_im_libdir; break
880      fi
881    done
882    # Screen out bogus values from the imake configuration.  They are
883    # bogus both because they are the default anyway, and because
884    # using them would break gcc on systems where it needs fixed includes.
885    case "$ac_im_incroot" in
886        /usr/include) ;;
887        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
888    esac
889    case "$ac_im_usrlibdir" in
890        /usr/lib | /lib) ;;
891        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
892    esac
893  fi
894  cd ..
895  rm -fr conftestdir
896fi
897
898if test "$ac_x_includes" = NO; then
899  # Guess where to find include files, by looking for this one X11 .h file.
900  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
901
902  # First, try using that file with no special directory specified.
903cat > conftest.$ac_ext <<EOF
904#line 905 "configure"
905#include "confdefs.h"
906#include <$x_direct_test_include>
907EOF
908ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
909{ (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
910ac_err=`grep -v '^ *+' conftest.out`
911if test -z "$ac_err"; then
912  rm -rf conftest*
913  # We can compile using X headers with no special include directory.
914ac_x_includes=
915else
916  echo "$ac_err" >&5
917  echo "configure: failed program was:" >&5
918  cat conftest.$ac_ext >&5
919  rm -rf conftest*
920  # Look for the header file in a standard set of common directories.
921# Check X11 before X11Rn because it is often a symlink to the current release.
922  for ac_dir in               \
923    /usr/X11/include          \
924    /usr/X11R6/include        \
925    /usr/X11R5/include        \
926    /usr/X11R4/include        \
927                              \
928    /usr/include/X11          \
929    /usr/include/X11R6        \
930    /usr/include/X11R5        \
931    /usr/include/X11R4        \
932                              \
933    /usr/local/X11/include    \
934    /usr/local/X11R6/include  \
935    /usr/local/X11R5/include  \
936    /usr/local/X11R4/include  \
937                              \
938    /usr/local/include/X11    \
939    /usr/local/include/X11R6  \
940    /usr/local/include/X11R5  \
941    /usr/local/include/X11R4  \
942                              \
943    /usr/X386/include         \
944    /usr/x386/include         \
945    /usr/XFree86/include/X11  \
946                              \
947    /usr/include              \
948    /usr/local/include        \
949    /usr/unsupported/include  \
950    /usr/athena/include       \
951    /usr/local/x11r5/include  \
952    /usr/lpp/Xamples/include  \
953                              \
954    /usr/openwin/include      \
955    /usr/openwin/share/include \
956    ; \
957  do
958    if test -r "$ac_dir/$x_direct_test_include"; then
959      ac_x_includes=$ac_dir
960      break
961    fi
962  done
963fi
964rm -f conftest*
965fi # $ac_x_includes = NO
966
967if test "$ac_x_libraries" = NO; then
968  # Check for the libraries.
969
970  test -z "$x_direct_test_library" && x_direct_test_library=Xt
971  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
972
973  # See if we find them without any special options.
974  # Don't add to $LIBS permanently.
975  ac_save_LIBS="$LIBS"
976  LIBS="-l$x_direct_test_library $LIBS"
977cat > conftest.$ac_ext <<EOF
978#line 979 "configure"
979#include "confdefs.h"
980
981int main() {
982${x_direct_test_function}()
983; return 0; }
984EOF
985if { (eval echo configure:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
986  rm -rf conftest*
987  LIBS="$ac_save_LIBS"
988# We can link X programs with no special library path.
989ac_x_libraries=
990else
991  echo "configure: failed program was:" >&5
992  cat conftest.$ac_ext >&5
993  rm -rf conftest*
994  LIBS="$ac_save_LIBS"
995# First see if replacing the include by lib works.
996# Check X11 before X11Rn because it is often a symlink to the current release.
997for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
998    /usr/X11/lib          \
999    /usr/X11R6/lib        \
1000    /usr/X11R5/lib        \
1001    /usr/X11R4/lib        \
1002                          \
1003    /usr/lib/X11          \
1004    /usr/lib/X11R6        \
1005    /usr/lib/X11R5        \
1006    /usr/lib/X11R4        \
1007                          \
1008    /usr/local/X11/lib    \
1009    /usr/local/X11R6/lib  \
1010    /usr/local/X11R5/lib  \
1011    /usr/local/X11R4/lib  \
1012                          \
1013    /usr/local/lib/X11    \
1014    /usr/local/lib/X11R6  \
1015    /usr/local/lib/X11R5  \
1016    /usr/local/lib/X11R4  \
1017                          \
1018    /usr/X386/lib         \
1019    /usr/x386/lib         \
1020    /usr/XFree86/lib/X11  \
1021                          \
1022    /usr/lib              \
1023    /usr/local/lib        \
1024    /usr/unsupported/lib  \
1025    /usr/athena/lib       \
1026    /usr/local/x11r5/lib  \
1027    /usr/lpp/Xamples/lib  \
1028    /lib/usr/lib/X11      \
1029                          \
1030    /usr/openwin/lib      \
1031    /usr/openwin/share/lib \
1032    ; \
1033do
1034  for ac_extension in a so sl; do
1035    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1036      ac_x_libraries=$ac_dir
1037      break 2
1038    fi
1039  done
1040done
1041fi
1042rm -f conftest*
1043fi # $ac_x_libraries = NO
1044
1045if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1046  # Didn't find X anywhere.  Cache the known absence of X.
1047  ac_cv_have_x="have_x=no"
1048else
1049  # Record where we found X for the cache.
1050  ac_cv_have_x="have_x=yes \
1051                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1052fi
1053fi
1054  fi
1055  eval "$ac_cv_have_x"
1056fi # $with_x != no
1057
1058if test "$have_x" != yes; then
1059  echo "$ac_t""$have_x" 1>&6
1060  no_x=yes
1061else
1062  # If each of the values was on the command line, it overrides each guess.
1063  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1064  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1065  # Update the cache value to reflect the command line values.
1066  ac_cv_have_x="have_x=yes \
1067                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1068  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1069fi
1070
1071if test "$no_x" = yes; then
1072  # Not all programs may use this symbol, but it does not hurt to define it.
1073  cat >> confdefs.h <<\EOF
1074#define X_DISPLAY_MISSING 1
1075EOF
1076
1077  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1078else
1079  if test -n "$x_includes"; then
1080    X_CFLAGS="$X_CFLAGS -I$x_includes"
1081  fi
1082
1083  # It would also be nice to do this for all -L options, not just this one.
1084  if test -n "$x_libraries"; then
1085    X_LIBS="$X_LIBS -L$x_libraries"
1086    # For Solaris; some versions of Sun CC require a space after -R and
1087    # others require no space.  Words are not sufficient . . . .
1088    case "`(uname -sr) 2>/dev/null`" in
1089    "SunOS 5"*)
1090      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1091echo "configure:1092: checking whether -R must be followed by a space" >&5
1092      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1093      cat > conftest.$ac_ext <<EOF
1094#line 1095 "configure"
1095#include "confdefs.h"
1096
1097int main() {
1098
1099; return 0; }
1100EOF
1101if { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1102  rm -rf conftest*
1103  ac_R_nospace=yes
1104else
1105  echo "configure: failed program was:" >&5
1106  cat conftest.$ac_ext >&5
1107  rm -rf conftest*
1108  ac_R_nospace=no
1109fi
1110rm -f conftest*
1111      if test $ac_R_nospace = yes; then
1112        echo "$ac_t""no" 1>&6
1113        X_LIBS="$X_LIBS -R$x_libraries"
1114      else
1115        LIBS="$ac_xsave_LIBS -R $x_libraries"
1116        cat > conftest.$ac_ext <<EOF
1117#line 1118 "configure"
1118#include "confdefs.h"
1119
1120int main() {
1121
1122; return 0; }
1123EOF
1124if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1125  rm -rf conftest*
1126  ac_R_space=yes
1127else
1128  echo "configure: failed program was:" >&5
1129  cat conftest.$ac_ext >&5
1130  rm -rf conftest*
1131  ac_R_space=no
1132fi
1133rm -f conftest*
1134        if test $ac_R_space = yes; then
1135          echo "$ac_t""yes" 1>&6
1136          X_LIBS="$X_LIBS -R $x_libraries"
1137        else
1138          echo "$ac_t""neither works" 1>&6
1139        fi
1140      fi
1141      LIBS="$ac_xsave_LIBS"
1142    esac
1143  fi
1144
1145  # Check for system-dependent libraries X programs must link with.
1146  # Do this before checking for the system-independent R6 libraries
1147  # (-lICE), since we may need -lsocket or whatever for X linking.
1148
1149  if test "$ISC" = yes; then
1150    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1151  else
1152    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1153    # libraries were built with DECnet support.  And karl@cs.umb.edu says
1154    # the Alpha needs dnet_stub (dnet does not exist).
1155    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1156echo "configure:1157: checking for dnet_ntoa in -ldnet" >&5
1157ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1159  echo $ac_n "(cached) $ac_c" 1>&6
1160else
1161  ac_save_LIBS="$LIBS"
1162LIBS="-ldnet  $LIBS"
1163cat > conftest.$ac_ext <<EOF
1164#line 1165 "configure"
1165#include "confdefs.h"
1166/* Override any gcc2 internal prototype to avoid an error.  */
1167/* We use char because int might match the return type of a gcc2
1168    builtin and then its argument prototype would still apply.  */
1169char dnet_ntoa();
1170
1171int main() {
1172dnet_ntoa()
1173; return 0; }
1174EOF
1175if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1176  rm -rf conftest*
1177  eval "ac_cv_lib_$ac_lib_var=yes"
1178else
1179  echo "configure: failed program was:" >&5
1180  cat conftest.$ac_ext >&5
1181  rm -rf conftest*
1182  eval "ac_cv_lib_$ac_lib_var=no"
1183fi
1184rm -f conftest*
1185LIBS="$ac_save_LIBS"
1186
1187fi
1188if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1189  echo "$ac_t""yes" 1>&6
1190  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1191else
1192  echo "$ac_t""no" 1>&6
1193fi
1194
1195    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1196      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1197echo "configure:1198: checking for dnet_ntoa in -ldnet_stub" >&5
1198ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1199if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1200  echo $ac_n "(cached) $ac_c" 1>&6
1201else
1202  ac_save_LIBS="$LIBS"
1203LIBS="-ldnet_stub  $LIBS"
1204cat > conftest.$ac_ext <<EOF
1205#line 1206 "configure"
1206#include "confdefs.h"
1207/* Override any gcc2 internal prototype to avoid an error.  */
1208/* We use char because int might match the return type of a gcc2
1209    builtin and then its argument prototype would still apply.  */
1210char dnet_ntoa();
1211
1212int main() {
1213dnet_ntoa()
1214; return 0; }
1215EOF
1216if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1217  rm -rf conftest*
1218  eval "ac_cv_lib_$ac_lib_var=yes"
1219else
1220  echo "configure: failed program was:" >&5
1221  cat conftest.$ac_ext >&5
1222  rm -rf conftest*
1223  eval "ac_cv_lib_$ac_lib_var=no"
1224fi
1225rm -f conftest*
1226LIBS="$ac_save_LIBS"
1227
1228fi
1229if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1230  echo "$ac_t""yes" 1>&6
1231  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1232else
1233  echo "$ac_t""no" 1>&6
1234fi
1235
1236    fi
1237
1238    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1239    # to get the SysV transport functions.
1240    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1241    # needs -lnsl.
1242    # The nsl library prevents programs from opening the X display
1243    # on Irix 5.2, according to dickey@clark.net.
1244    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1245echo "configure:1246: checking for gethostbyname" >&5
1246if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1247  echo $ac_n "(cached) $ac_c" 1>&6
1248else
1249  cat > conftest.$ac_ext <<EOF
1250#line 1251 "configure"
1251#include "confdefs.h"
1252/* System header to define __stub macros and hopefully few prototypes,
1253    which can conflict with char gethostbyname(); below.  */
1254#include <assert.h>
1255/* Override any gcc2 internal prototype to avoid an error.  */
1256/* We use char because int might match the return type of a gcc2
1257    builtin and then its argument prototype would still apply.  */
1258char gethostbyname();
1259
1260int main() {
1261
1262/* The GNU C library defines this for functions which it implements
1263    to always fail with ENOSYS.  Some functions are actually named
1264    something starting with __ and the normal name is an alias.  */
1265#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1266choke me
1267#else
1268gethostbyname();
1269#endif
1270
1271; return 0; }
1272EOF
1273if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1274  rm -rf conftest*
1275  eval "ac_cv_func_gethostbyname=yes"
1276else
1277  echo "configure: failed program was:" >&5
1278  cat conftest.$ac_ext >&5
1279  rm -rf conftest*
1280  eval "ac_cv_func_gethostbyname=no"
1281fi
1282rm -f conftest*
1283fi
1284
1285if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1286  echo "$ac_t""yes" 1>&6
1287  :
1288else
1289  echo "$ac_t""no" 1>&6
1290fi
1291
1292    if test $ac_cv_func_gethostbyname = no; then
1293      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1294echo "configure:1295: checking for gethostbyname in -lnsl" >&5
1295ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1296if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1297  echo $ac_n "(cached) $ac_c" 1>&6
1298else
1299  ac_save_LIBS="$LIBS"
1300LIBS="-lnsl  $LIBS"
1301cat > conftest.$ac_ext <<EOF
1302#line 1303 "configure"
1303#include "confdefs.h"
1304/* Override any gcc2 internal prototype to avoid an error.  */
1305/* We use char because int might match the return type of a gcc2
1306    builtin and then its argument prototype would still apply.  */
1307char gethostbyname();
1308
1309int main() {
1310gethostbyname()
1311; return 0; }
1312EOF
1313if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1314  rm -rf conftest*
1315  eval "ac_cv_lib_$ac_lib_var=yes"
1316else
1317  echo "configure: failed program was:" >&5
1318  cat conftest.$ac_ext >&5
1319  rm -rf conftest*
1320  eval "ac_cv_lib_$ac_lib_var=no"
1321fi
1322rm -f conftest*
1323LIBS="$ac_save_LIBS"
1324
1325fi
1326if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1327  echo "$ac_t""yes" 1>&6
1328  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1329else
1330  echo "$ac_t""no" 1>&6
1331fi
1332
1333    fi
1334
1335    # lieder@skyler.mavd.honeywell.com says without -lsocket,
1336    # socket/setsockopt and other routines are undefined under SCO ODT
1337    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
1338    # on later versions), says simon@lia.di.epfl.ch: it contains
1339    # gethostby* variants that don't use the nameserver (or something).
1340    # -lsocket must be given before -lnsl if both are needed.
1341    # We assume that if connect needs -lnsl, so does gethostbyname.
1342    echo $ac_n "checking for connect""... $ac_c" 1>&6
1343echo "configure:1344: checking for connect" >&5
1344if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1345  echo $ac_n "(cached) $ac_c" 1>&6
1346else
1347  cat > conftest.$ac_ext <<EOF
1348#line 1349 "configure"
1349#include "confdefs.h"
1350/* System header to define __stub macros and hopefully few prototypes,
1351    which can conflict with char connect(); below.  */
1352#include <assert.h>
1353/* Override any gcc2 internal prototype to avoid an error.  */
1354/* We use char because int might match the return type of a gcc2
1355    builtin and then its argument prototype would still apply.  */
1356char connect();
1357
1358int main() {
1359
1360/* The GNU C library defines this for functions which it implements
1361    to always fail with ENOSYS.  Some functions are actually named
1362    something starting with __ and the normal name is an alias.  */
1363#if defined (__stub_connect) || defined (__stub___connect)
1364choke me
1365#else
1366connect();
1367#endif
1368
1369; return 0; }
1370EOF
1371if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1372  rm -rf conftest*
1373  eval "ac_cv_func_connect=yes"
1374else
1375  echo "configure: failed program was:" >&5
1376  cat conftest.$ac_ext >&5
1377  rm -rf conftest*
1378  eval "ac_cv_func_connect=no"
1379fi
1380rm -f conftest*
1381fi
1382
1383if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1384  echo "$ac_t""yes" 1>&6
1385  :
1386else
1387  echo "$ac_t""no" 1>&6
1388fi
1389
1390    if test $ac_cv_func_connect = no; then
1391      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1392echo "configure:1393: checking for connect in -lsocket" >&5
1393ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1395  echo $ac_n "(cached) $ac_c" 1>&6
1396else
1397  ac_save_LIBS="$LIBS"
1398LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1399cat > conftest.$ac_ext <<EOF
1400#line 1401 "configure"
1401#include "confdefs.h"
1402/* Override any gcc2 internal prototype to avoid an error.  */
1403/* We use char because int might match the return type of a gcc2
1404    builtin and then its argument prototype would still apply.  */
1405char connect();
1406
1407int main() {
1408connect()
1409; return 0; }
1410EOF
1411if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1412  rm -rf conftest*
1413  eval "ac_cv_lib_$ac_lib_var=yes"
1414else
1415  echo "configure: failed program was:" >&5
1416  cat conftest.$ac_ext >&5
1417  rm -rf conftest*
1418  eval "ac_cv_lib_$ac_lib_var=no"
1419fi
1420rm -f conftest*
1421LIBS="$ac_save_LIBS"
1422
1423fi
1424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1425  echo "$ac_t""yes" 1>&6
1426  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1427else
1428  echo "$ac_t""no" 1>&6
1429fi
1430
1431    fi
1432
1433    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1434    echo $ac_n "checking for remove""... $ac_c" 1>&6
1435echo "configure:1436: checking for remove" >&5
1436if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1437  echo $ac_n "(cached) $ac_c" 1>&6
1438else
1439  cat > conftest.$ac_ext <<EOF
1440#line 1441 "configure"
1441#include "confdefs.h"
1442/* System header to define __stub macros and hopefully few prototypes,
1443    which can conflict with char remove(); below.  */
1444#include <assert.h>
1445/* Override any gcc2 internal prototype to avoid an error.  */
1446/* We use char because int might match the return type of a gcc2
1447    builtin and then its argument prototype would still apply.  */
1448char remove();
1449
1450int main() {
1451
1452/* The GNU C library defines this for functions which it implements
1453    to always fail with ENOSYS.  Some functions are actually named
1454    something starting with __ and the normal name is an alias.  */
1455#if defined (__stub_remove) || defined (__stub___remove)
1456choke me
1457#else
1458remove();
1459#endif
1460
1461; return 0; }
1462EOF
1463if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1464  rm -rf conftest*
1465  eval "ac_cv_func_remove=yes"
1466else
1467  echo "configure: failed program was:" >&5
1468  cat conftest.$ac_ext >&5
1469  rm -rf conftest*
1470  eval "ac_cv_func_remove=no"
1471fi
1472rm -f conftest*
1473fi
1474
1475if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1476  echo "$ac_t""yes" 1>&6
1477  :
1478else
1479  echo "$ac_t""no" 1>&6
1480fi
1481
1482    if test $ac_cv_func_remove = no; then
1483      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1484echo "configure:1485: checking for remove in -lposix" >&5
1485ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1487  echo $ac_n "(cached) $ac_c" 1>&6
1488else
1489  ac_save_LIBS="$LIBS"
1490LIBS="-lposix  $LIBS"
1491cat > conftest.$ac_ext <<EOF
1492#line 1493 "configure"
1493#include "confdefs.h"
1494/* Override any gcc2 internal prototype to avoid an error.  */
1495/* We use char because int might match the return type of a gcc2
1496    builtin and then its argument prototype would still apply.  */
1497char remove();
1498
1499int main() {
1500remove()
1501; return 0; }
1502EOF
1503if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1504  rm -rf conftest*
1505  eval "ac_cv_lib_$ac_lib_var=yes"
1506else
1507  echo "configure: failed program was:" >&5
1508  cat conftest.$ac_ext >&5
1509  rm -rf conftest*
1510  eval "ac_cv_lib_$ac_lib_var=no"
1511fi
1512rm -f conftest*
1513LIBS="$ac_save_LIBS"
1514
1515fi
1516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1517  echo "$ac_t""yes" 1>&6
1518  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1519else
1520  echo "$ac_t""no" 1>&6
1521fi
1522
1523    fi
1524
1525    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1526    echo $ac_n "checking for shmat""... $ac_c" 1>&6
1527echo "configure:1528: checking for shmat" >&5
1528if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1529  echo $ac_n "(cached) $ac_c" 1>&6
1530else
1531  cat > conftest.$ac_ext <<EOF
1532#line 1533 "configure"
1533#include "confdefs.h"
1534/* System header to define __stub macros and hopefully few prototypes,
1535    which can conflict with char shmat(); below.  */
1536#include <assert.h>
1537/* Override any gcc2 internal prototype to avoid an error.  */
1538/* We use char because int might match the return type of a gcc2
1539    builtin and then its argument prototype would still apply.  */
1540char shmat();
1541
1542int main() {
1543
1544/* The GNU C library defines this for functions which it implements
1545    to always fail with ENOSYS.  Some functions are actually named
1546    something starting with __ and the normal name is an alias.  */
1547#if defined (__stub_shmat) || defined (__stub___shmat)
1548choke me
1549#else
1550shmat();
1551#endif
1552
1553; return 0; }
1554EOF
1555if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1556  rm -rf conftest*
1557  eval "ac_cv_func_shmat=yes"
1558else
1559  echo "configure: failed program was:" >&5
1560  cat conftest.$ac_ext >&5
1561  rm -rf conftest*
1562  eval "ac_cv_func_shmat=no"
1563fi
1564rm -f conftest*
1565fi
1566
1567if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1568  echo "$ac_t""yes" 1>&6
1569  :
1570else
1571  echo "$ac_t""no" 1>&6
1572fi
1573
1574    if test $ac_cv_func_shmat = no; then
1575      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1576echo "configure:1577: checking for shmat in -lipc" >&5
1577ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1578if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1579  echo $ac_n "(cached) $ac_c" 1>&6
1580else
1581  ac_save_LIBS="$LIBS"
1582LIBS="-lipc  $LIBS"
1583cat > conftest.$ac_ext <<EOF
1584#line 1585 "configure"
1585#include "confdefs.h"
1586/* Override any gcc2 internal prototype to avoid an error.  */
1587/* We use char because int might match the return type of a gcc2
1588    builtin and then its argument prototype would still apply.  */
1589char shmat();
1590
1591int main() {
1592shmat()
1593; return 0; }
1594EOF
1595if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1596  rm -rf conftest*
1597  eval "ac_cv_lib_$ac_lib_var=yes"
1598else
1599  echo "configure: failed program was:" >&5
1600  cat conftest.$ac_ext >&5
1601  rm -rf conftest*
1602  eval "ac_cv_lib_$ac_lib_var=no"
1603fi
1604rm -f conftest*
1605LIBS="$ac_save_LIBS"
1606
1607fi
1608if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1609  echo "$ac_t""yes" 1>&6
1610  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1611else
1612  echo "$ac_t""no" 1>&6
1613fi
1614
1615    fi
1616  fi
1617
1618  # Check for libraries that X11R6 Xt/Xaw programs need.
1619  ac_save_LDFLAGS="$LDFLAGS"
1620  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1621  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1622  # check for ICE first), but we must link in the order -lSM -lICE or
1623  # we get undefined symbols.  So assume we have SM if we have ICE.
1624  # These have to be linked with before -lX11, unlike the other
1625  # libraries we check for below, so use a different variable.
1626  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1627  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1628echo "configure:1629: checking for IceConnectionNumber in -lICE" >&5
1629ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631  echo $ac_n "(cached) $ac_c" 1>&6
1632else
1633  ac_save_LIBS="$LIBS"
1634LIBS="-lICE  $LIBS"
1635cat > conftest.$ac_ext <<EOF
1636#line 1637 "configure"
1637#include "confdefs.h"
1638/* Override any gcc2 internal prototype to avoid an error.  */
1639/* We use char because int might match the return type of a gcc2
1640    builtin and then its argument prototype would still apply.  */
1641char IceConnectionNumber();
1642
1643int main() {
1644IceConnectionNumber()
1645; return 0; }
1646EOF
1647if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1648  rm -rf conftest*
1649  eval "ac_cv_lib_$ac_lib_var=yes"
1650else
1651  echo "configure: failed program was:" >&5
1652  cat conftest.$ac_ext >&5
1653  rm -rf conftest*
1654  eval "ac_cv_lib_$ac_lib_var=no"
1655fi
1656rm -f conftest*
1657LIBS="$ac_save_LIBS"
1658
1659fi
1660if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1661  echo "$ac_t""yes" 1>&6
1662  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1663else
1664  echo "$ac_t""no" 1>&6
1665fi
1666
1667  LDFLAGS="$ac_save_LDFLAGS"
1668
1669fi
1670
1671# Check whether --with-hesiod or --without-hesiod was given.
1672if test "${with_hesiod+set}" = set; then
1673  withval="$with_hesiod"
1674  hesiod="$withval"
1675else
1676  hesiod=no
1677fi
1678
1679if test "$hesiod" != no; then
1680        echo $ac_n "checking for res_send""... $ac_c" 1>&6
1681echo "configure:1682: checking for res_send" >&5
1682if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1683  echo $ac_n "(cached) $ac_c" 1>&6
1684else
1685  cat > conftest.$ac_ext <<EOF
1686#line 1687 "configure"
1687#include "confdefs.h"
1688/* System header to define __stub macros and hopefully few prototypes,
1689    which can conflict with char res_send(); below.  */
1690#include <assert.h>
1691/* Override any gcc2 internal prototype to avoid an error.  */
1692/* We use char because int might match the return type of a gcc2
1693    builtin and then its argument prototype would still apply.  */
1694char res_send();
1695
1696int main() {
1697
1698/* The GNU C library defines this for functions which it implements
1699    to always fail with ENOSYS.  Some functions are actually named
1700    something starting with __ and the normal name is an alias.  */
1701#if defined (__stub_res_send) || defined (__stub___res_send)
1702choke me
1703#else
1704res_send();
1705#endif
1706
1707; return 0; }
1708EOF
1709if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1710  rm -rf conftest*
1711  eval "ac_cv_func_res_send=yes"
1712else
1713  echo "configure: failed program was:" >&5
1714  cat conftest.$ac_ext >&5
1715  rm -rf conftest*
1716  eval "ac_cv_func_res_send=no"
1717fi
1718rm -f conftest*
1719fi
1720
1721if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1722  echo "$ac_t""yes" 1>&6
1723  :
1724else
1725  echo "$ac_t""no" 1>&6
1726echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1727echo "configure:1728: checking for res_send in -lresolv" >&5
1728ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1730  echo $ac_n "(cached) $ac_c" 1>&6
1731else
1732  ac_save_LIBS="$LIBS"
1733LIBS="-lresolv  $LIBS"
1734cat > conftest.$ac_ext <<EOF
1735#line 1736 "configure"
1736#include "confdefs.h"
1737/* Override any gcc2 internal prototype to avoid an error.  */
1738/* We use char because int might match the return type of a gcc2
1739    builtin and then its argument prototype would still apply.  */
1740char res_send();
1741
1742int main() {
1743res_send()
1744; return 0; }
1745EOF
1746if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1747  rm -rf conftest*
1748  eval "ac_cv_lib_$ac_lib_var=yes"
1749else
1750  echo "configure: failed program was:" >&5
1751  cat conftest.$ac_ext >&5
1752  rm -rf conftest*
1753  eval "ac_cv_lib_$ac_lib_var=no"
1754fi
1755rm -f conftest*
1756LIBS="$ac_save_LIBS"
1757
1758fi
1759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1760  echo "$ac_t""yes" 1>&6
1761    ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1762    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1763  cat >> confdefs.h <<EOF
1764#define $ac_tr_lib 1
1765EOF
1766
1767  LIBS="-lresolv $LIBS"
1768
1769else
1770  echo "$ac_t""no" 1>&6
1771fi
1772
1773fi
1774
1775if test "$hesiod" != yes; then
1776        CPPFLAGS="$CPPFLAGS -I$hesiod/include"
1777        LDFLAGS="$LDFLAGS -L$hesiod/lib"
1778fi
1779echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1780echo "configure:1781: checking for hes_resolve in -lhesiod" >&5
1781ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1782if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1783  echo $ac_n "(cached) $ac_c" 1>&6
1784else
1785  ac_save_LIBS="$LIBS"
1786LIBS="-lhesiod  $LIBS"
1787cat > conftest.$ac_ext <<EOF
1788#line 1789 "configure"
1789#include "confdefs.h"
1790/* Override any gcc2 internal prototype to avoid an error.  */
1791/* We use char because int might match the return type of a gcc2
1792    builtin and then its argument prototype would still apply.  */
1793char hes_resolve();
1794
1795int main() {
1796hes_resolve()
1797; return 0; }
1798EOF
1799if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1800  rm -rf conftest*
1801  eval "ac_cv_lib_$ac_lib_var=yes"
1802else
1803  echo "configure: failed program was:" >&5
1804  cat conftest.$ac_ext >&5
1805  rm -rf conftest*
1806  eval "ac_cv_lib_$ac_lib_var=no"
1807fi
1808rm -f conftest*
1809LIBS="$ac_save_LIBS"
1810
1811fi
1812if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1813  echo "$ac_t""yes" 1>&6
1814  :
1815else
1816  echo "$ac_t""no" 1>&6
1817{ echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1818fi
1819
1820        HESIOD_LIBS="-lhesiod"
1821        cat >> confdefs.h <<\EOF
1822#define HAVE_HESIOD 1
1823EOF
1824
1825fi
1826
1827
1828trap '' 1 2 15
1829cat > confcache <<\EOF
1830# This file is a shell script that caches the results of configure
1831# tests run on this system so they can be shared between configure
1832# scripts and configure runs.  It is not useful on other systems.
1833# If it contains results you don't want to keep, you may remove or edit it.
1834#
1835# By default, configure uses ./config.cache as the cache file,
1836# creating it if it does not exist already.  You can give configure
1837# the --cache-file=FILE option to use a different cache file; that is
1838# what configure does when it calls configure scripts in
1839# subdirectories, so they share the cache.
1840# Giving --cache-file=/dev/null disables caching, for debugging configure.
1841# config.status only pays attention to the cache file if you give it the
1842# --recheck option to rerun configure.
1843#
1844EOF
1845# The following way of writing the cache mishandles newlines in values,
1846# but we know of no workaround that is simple, portable, and efficient.
1847# So, don't put newlines in cache variables' values.
1848# Ultrix sh set writes to stderr and can't be redirected directly,
1849# and sets the high bit in the cache file unless we assign to the vars.
1850(set) 2>&1 |
1851  case `(ac_space=' '; set) 2>&1` in
1852  *ac_space=\ *)
1853    # `set' does not quote correctly, so add quotes (double-quote substitution
1854    # turns \\\\ into \\, and sed turns \\ into \).
1855    sed -n \
1856      -e "s/'/'\\\\''/g" \
1857      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1858    ;;
1859  *)
1860    # `set' quotes correctly as required by POSIX, so do not add quotes.
1861    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1862    ;;
1863  esac >> confcache
1864if cmp -s $cache_file confcache; then
1865  :
1866else
1867  if test -w $cache_file; then
1868    echo "updating cache $cache_file"
1869    cat confcache > $cache_file
1870  else
1871    echo "not updating unwritable cache $cache_file"
1872  fi
1873fi
1874rm -f confcache
1875
1876trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1877
1878test "x$prefix" = xNONE && prefix=$ac_default_prefix
1879# Let make expand exec_prefix.
1880test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1881
1882# Any assignment to VPATH causes Sun make to only execute
1883# the first set of double-colon rules, so remove it if not needed.
1884# If there is a colon in the path, we need to keep it.
1885if test "x$srcdir" = x.; then
1886  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1887fi
1888
1889trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1890
1891# Transform confdefs.h into DEFS.
1892# Protect against shell expansion while executing Makefile rules.
1893# Protect against Makefile macro expansion.
1894cat > conftest.defs <<\EOF
1895s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1896s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1897s%\[%\\&%g
1898s%\]%\\&%g
1899s%\$%$$%g
1900EOF
1901DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1902rm -f conftest.defs
1903
1904
1905# Without the "./", some shells look in PATH for config.status.
1906: ${CONFIG_STATUS=./config.status}
1907
1908echo creating $CONFIG_STATUS
1909rm -f $CONFIG_STATUS
1910cat > $CONFIG_STATUS <<EOF
1911#! /bin/sh
1912# Generated automatically by configure.
1913# Run this file to recreate the current configuration.
1914# This directory was configured as follows,
1915# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1916#
1917# $0 $ac_configure_args
1918#
1919# Compiler output produced by configure, useful for debugging
1920# configure, is in ./config.log if it exists.
1921
1922ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1923for ac_option
1924do
1925  case "\$ac_option" in
1926  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1927    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1928    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1929  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1930    echo "$CONFIG_STATUS generated by autoconf version 2.12"
1931    exit 0 ;;
1932  -help | --help | --hel | --he | --h)
1933    echo "\$ac_cs_usage"; exit 0 ;;
1934  *) echo "\$ac_cs_usage"; exit 1 ;;
1935  esac
1936done
1937
1938ac_given_srcdir=$srcdir
1939ac_given_INSTALL="$INSTALL"
1940
1941trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1942EOF
1943cat >> $CONFIG_STATUS <<EOF
1944
1945# Protect against being on the right side of a sed subst in config.status.
1946sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1947 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1948$ac_vpsub
1949$extrasub
1950s%@CFLAGS@%$CFLAGS%g
1951s%@CPPFLAGS@%$CPPFLAGS%g
1952s%@CXXFLAGS@%$CXXFLAGS%g
1953s%@DEFS@%$DEFS%g
1954s%@LDFLAGS@%$LDFLAGS%g
1955s%@LIBS@%$LIBS%g
1956s%@exec_prefix@%$exec_prefix%g
1957s%@prefix@%$prefix%g
1958s%@program_transform_name@%$program_transform_name%g
1959s%@bindir@%$bindir%g
1960s%@sbindir@%$sbindir%g
1961s%@libexecdir@%$libexecdir%g
1962s%@datadir@%$datadir%g
1963s%@sysconfdir@%$sysconfdir%g
1964s%@sharedstatedir@%$sharedstatedir%g
1965s%@localstatedir@%$localstatedir%g
1966s%@libdir@%$libdir%g
1967s%@includedir@%$includedir%g
1968s%@oldincludedir@%$oldincludedir%g
1969s%@infodir@%$infodir%g
1970s%@mandir@%$mandir%g
1971s%@CC@%$CC%g
1972s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1973s%@INSTALL_DATA@%$INSTALL_DATA%g
1974s%@CPP@%$CPP%g
1975s%@X_CFLAGS@%$X_CFLAGS%g
1976s%@X_PRE_LIBS@%$X_PRE_LIBS%g
1977s%@X_LIBS@%$X_LIBS%g
1978s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
1979s%@HESIOD_LIBS@%$HESIOD_LIBS%g
1980
1981CEOF
1982EOF
1983
1984cat >> $CONFIG_STATUS <<\EOF
1985
1986# Split the substitutions into bite-sized pieces for seds with
1987# small command number limits, like on Digital OSF/1 and HP-UX.
1988ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1989ac_file=1 # Number of current file.
1990ac_beg=1 # First line for current file.
1991ac_end=$ac_max_sed_cmds # Line after last line for current file.
1992ac_more_lines=:
1993ac_sed_cmds=""
1994while $ac_more_lines; do
1995  if test $ac_beg -gt 1; then
1996    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1997  else
1998    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1999  fi
2000  if test ! -s conftest.s$ac_file; then
2001    ac_more_lines=false
2002    rm -f conftest.s$ac_file
2003  else
2004    if test -z "$ac_sed_cmds"; then
2005      ac_sed_cmds="sed -f conftest.s$ac_file"
2006    else
2007      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2008    fi
2009    ac_file=`expr $ac_file + 1`
2010    ac_beg=$ac_end
2011    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2012  fi
2013done
2014if test -z "$ac_sed_cmds"; then
2015  ac_sed_cmds=cat
2016fi
2017EOF
2018
2019cat >> $CONFIG_STATUS <<EOF
2020
2021CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2022EOF
2023cat >> $CONFIG_STATUS <<\EOF
2024for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2025  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2026  case "$ac_file" in
2027  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2028       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2029  *) ac_file_in="${ac_file}.in" ;;
2030  esac
2031
2032  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2033
2034  # Remove last slash and all that follows it.  Not all systems have dirname.
2035  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2036  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2037    # The file is in a subdirectory.
2038    test ! -d "$ac_dir" && mkdir "$ac_dir"
2039    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2040    # A "../" for each directory in $ac_dir_suffix.
2041    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2042  else
2043    ac_dir_suffix= ac_dots=
2044  fi
2045
2046  case "$ac_given_srcdir" in
2047  .)  srcdir=.
2048      if test -z "$ac_dots"; then top_srcdir=.
2049      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2050  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2051  *) # Relative path.
2052    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2053    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2054  esac
2055
2056  case "$ac_given_INSTALL" in
2057  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2058  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2059  esac
2060
2061  echo creating "$ac_file"
2062  rm -f "$ac_file"
2063  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2064  case "$ac_file" in
2065  *Makefile*) ac_comsub="1i\\
2066# $configure_input" ;;
2067  *) ac_comsub= ;;
2068  esac
2069
2070  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2071  sed -e "$ac_comsub
2072s%@configure_input@%$configure_input%g
2073s%@srcdir@%$srcdir%g
2074s%@top_srcdir@%$top_srcdir%g
2075s%@INSTALL@%$INSTALL%g
2076" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2077fi; done
2078rm -f conftest.s*
2079
2080EOF
2081cat >> $CONFIG_STATUS <<EOF
2082
2083EOF
2084cat >> $CONFIG_STATUS <<\EOF
2085
2086exit 0
2087EOF
2088chmod +x $CONFIG_STATUS
2089rm -fr confdefs* $ac_clean_files
2090test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2091
Note: See TracBrowser for help on using the repository browser.