root/rat/trunk/configure @ 3001

Revision 3001, 118.2 KB (checked in by ucacoxh, 14 years ago)

- configure now fixes broken X headers with a simple sed hack. Really

not sure this is a good idea. Had to re-organize order of flags in
Makefile.in too.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-sun-audio=DIR    specify Sun audio support home"
16ac_help="$ac_help
17  --with-osprey=DIR       specify Osprey (Sunvideo Plus PCI) support home"
18ac_help="$ac_help
19  --with-x                use the X Window System"
20ac_help="$ac_help
21  --with-tcl=DIR          specify location of Tcl installation"
22ac_help="$ac_help
23  --with-tk=DIR          specify location of Tk installation"
24ac_help="$ac_help
25  --with-common=DIR       specify location of UCL's common library"
26ac_help="$ac_help
27  --enable-profile        enable profiling"
28ac_help="$ac_help
29  --enable-bounds         enable bounds checking"
30ac_help="$ac_help
31  --enable-debug          enable debug messages and code"
32ac_help="$ac_help
33  --enable-debug-mem      enable memory debugging code"
34
35# Initialize some variables set by options.
36# The variables have the same names as the options, with
37# dashes changed to underlines.
38build=NONE
39cache_file=./config.cache
40exec_prefix=NONE
41host=NONE
42no_create=
43nonopt=NONE
44no_recursion=
45prefix=NONE
46program_prefix=NONE
47program_suffix=NONE
48program_transform_name=s,x,x,
49silent=
50site=
51srcdir=
52target=NONE
53verbose=
54x_includes=NONE
55x_libraries=NONE
56bindir='${exec_prefix}/bin'
57sbindir='${exec_prefix}/sbin'
58libexecdir='${exec_prefix}/libexec'
59datadir='${prefix}/share'
60sysconfdir='${prefix}/etc'
61sharedstatedir='${prefix}/com'
62localstatedir='${prefix}/var'
63libdir='${exec_prefix}/lib'
64includedir='${prefix}/include'
65oldincludedir='/usr/include'
66infodir='${prefix}/info'
67mandir='${prefix}/man'
68
69# Initialize some other variables.
70subdirs=
71MFLAGS= MAKEFLAGS=
72SHELL=${CONFIG_SHELL-/bin/sh}
73# Maximum number of lines to put in a shell here document.
74ac_max_here_lines=12
75
76ac_prev=
77for ac_option
78do
79
80  # If the previous option needs an argument, assign it.
81  if test -n "$ac_prev"; then
82    eval "$ac_prev=\$ac_option"
83    ac_prev=
84    continue
85  fi
86
87  case "$ac_option" in
88  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89  *) ac_optarg= ;;
90  esac
91
92  # Accept the important Cygnus configure options, so we can diagnose typos.
93
94  case "$ac_option" in
95
96  -bindir | --bindir | --bindi | --bind | --bin | --bi)
97    ac_prev=bindir ;;
98  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99    bindir="$ac_optarg" ;;
100
101  -build | --build | --buil | --bui | --bu)
102    ac_prev=build ;;
103  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104    build="$ac_optarg" ;;
105
106  -cache-file | --cache-file | --cache-fil | --cache-fi \
107  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108    ac_prev=cache_file ;;
109  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111    cache_file="$ac_optarg" ;;
112
113  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114    ac_prev=datadir ;;
115  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116  | --da=*)
117    datadir="$ac_optarg" ;;
118
119  -disable-* | --disable-*)
120    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121    # Reject names that are not valid shell variable names.
122    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124    fi
125    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126    eval "enable_${ac_feature}=no" ;;
127
128  -enable-* | --enable-*)
129    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130    # Reject names that are not valid shell variable names.
131    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133    fi
134    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135    case "$ac_option" in
136      *=*) ;;
137      *) ac_optarg=yes ;;
138    esac
139    eval "enable_${ac_feature}='$ac_optarg'" ;;
140
141  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143  | --exec | --exe | --ex)
144    ac_prev=exec_prefix ;;
145  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147  | --exec=* | --exe=* | --ex=*)
148    exec_prefix="$ac_optarg" ;;
149
150  -gas | --gas | --ga | --g)
151    # Obsolete; use --with-gas.
152    with_gas=yes ;;
153
154  -help | --help | --hel | --he)
155    # Omit some internal or obsolete options to make the list less imposing.
156    # This message is too long to be a string in the A/UX 3.1 sh.
157    cat << EOF
158Usage: configure [options] [host]
159Options: [defaults in brackets after descriptions]
160Configuration:
161  --cache-file=FILE       cache test results in FILE
162  --help                  print this message
163  --no-create             do not create output files
164  --quiet, --silent       do not print \`checking...' messages
165  --version               print the version of autoconf that created configure
166Directory and file names:
167  --prefix=PREFIX         install architecture-independent files in PREFIX
168                          [$ac_default_prefix]
169  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170                          [same as prefix]
171  --bindir=DIR            user executables in DIR [EPREFIX/bin]
172  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174  --datadir=DIR           read-only architecture-independent data in DIR
175                          [PREFIX/share]
176  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178                          [PREFIX/com]
179  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181  --includedir=DIR        C header files in DIR [PREFIX/include]
182  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183  --infodir=DIR           info documentation in DIR [PREFIX/info]
184  --mandir=DIR            man documentation in DIR [PREFIX/man]
185  --srcdir=DIR            find the sources in DIR [configure dir or ..]
186  --program-prefix=PREFIX prepend PREFIX to installed program names
187  --program-suffix=SUFFIX append SUFFIX to installed program names
188  --program-transform-name=PROGRAM
189                          run sed PROGRAM on installed program names
190EOF
191    cat << EOF
192Host type:
193  --build=BUILD           configure for building on BUILD [BUILD=HOST]
194  --host=HOST             configure for HOST [guessed]
195  --target=TARGET         configure for TARGET [TARGET=HOST]
196Features and packages:
197  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201  --x-includes=DIR        X include files are in DIR
202  --x-libraries=DIR       X library files are in DIR
203EOF
204    if test -n "$ac_help"; then
205      echo "--enable and --with options recognized:$ac_help"
206    fi
207    exit 0 ;;
208
209  -host | --host | --hos | --ho)
210    ac_prev=host ;;
211  -host=* | --host=* | --hos=* | --ho=*)
212    host="$ac_optarg" ;;
213
214  -includedir | --includedir | --includedi | --included | --include \
215  | --includ | --inclu | --incl | --inc)
216    ac_prev=includedir ;;
217  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218  | --includ=* | --inclu=* | --incl=* | --inc=*)
219    includedir="$ac_optarg" ;;
220
221  -infodir | --infodir | --infodi | --infod | --info | --inf)
222    ac_prev=infodir ;;
223  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224    infodir="$ac_optarg" ;;
225
226  -libdir | --libdir | --libdi | --libd)
227    ac_prev=libdir ;;
228  -libdir=* | --libdir=* | --libdi=* | --libd=*)
229    libdir="$ac_optarg" ;;
230
231  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232  | --libexe | --libex | --libe)
233    ac_prev=libexecdir ;;
234  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235  | --libexe=* | --libex=* | --libe=*)
236    libexecdir="$ac_optarg" ;;
237
238  -localstatedir | --localstatedir | --localstatedi | --localstated \
239  | --localstate | --localstat | --localsta | --localst \
240  | --locals | --local | --loca | --loc | --lo)
241    ac_prev=localstatedir ;;
242  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245    localstatedir="$ac_optarg" ;;
246
247  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248    ac_prev=mandir ;;
249  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250    mandir="$ac_optarg" ;;
251
252  -nfp | --nfp | --nf)
253    # Obsolete; use --without-fp.
254    with_fp=no ;;
255
256  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257  | --no-cr | --no-c)
258    no_create=yes ;;
259
260  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262    no_recursion=yes ;;
263
264  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266  | --oldin | --oldi | --old | --ol | --o)
267    ac_prev=oldincludedir ;;
268  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271    oldincludedir="$ac_optarg" ;;
272
273  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274    ac_prev=prefix ;;
275  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276    prefix="$ac_optarg" ;;
277
278  -program-prefix | --program-prefix | --program-prefi | --program-pref \
279  | --program-pre | --program-pr | --program-p)
280    ac_prev=program_prefix ;;
281  -program-prefix=* | --program-prefix=* | --program-prefi=* \
282  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283    program_prefix="$ac_optarg" ;;
284
285  -program-suffix | --program-suffix | --program-suffi | --program-suff \
286  | --program-suf | --program-su | --program-s)
287    ac_prev=program_suffix ;;
288  -program-suffix=* | --program-suffix=* | --program-suffi=* \
289  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290    program_suffix="$ac_optarg" ;;
291
292  -program-transform-name | --program-transform-name \
293  | --program-transform-nam | --program-transform-na \
294  | --program-transform-n | --program-transform- \
295  | --program-transform | --program-transfor \
296  | --program-transfo | --program-transf \
297  | --program-trans | --program-tran \
298  | --progr-tra | --program-tr | --program-t)
299    ac_prev=program_transform_name ;;
300  -program-transform-name=* | --program-transform-name=* \
301  | --program-transform-nam=* | --program-transform-na=* \
302  | --program-transform-n=* | --program-transform-=* \
303  | --program-transform=* | --program-transfor=* \
304  | --program-transfo=* | --program-transf=* \
305  | --program-trans=* | --program-tran=* \
306  | --progr-tra=* | --program-tr=* | --program-t=*)
307    program_transform_name="$ac_optarg" ;;
308
309  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310  | -silent | --silent | --silen | --sile | --sil)
311    silent=yes ;;
312
313  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314    ac_prev=sbindir ;;
315  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316  | --sbi=* | --sb=*)
317    sbindir="$ac_optarg" ;;
318
319  -sharedstatedir | --sharedstatedir | --sharedstatedi \
320  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321  | --sharedst | --shareds | --shared | --share | --shar \
322  | --sha | --sh)
323    ac_prev=sharedstatedir ;;
324  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327  | --sha=* | --sh=*)
328    sharedstatedir="$ac_optarg" ;;
329
330  -site | --site | --sit)
331    ac_prev=site ;;
332  -site=* | --site=* | --sit=*)
333    site="$ac_optarg" ;;
334
335  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336    ac_prev=srcdir ;;
337  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338    srcdir="$ac_optarg" ;;
339
340  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341  | --syscon | --sysco | --sysc | --sys | --sy)
342    ac_prev=sysconfdir ;;
343  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345    sysconfdir="$ac_optarg" ;;
346
347  -target | --target | --targe | --targ | --tar | --ta | --t)
348    ac_prev=target ;;
349  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350    target="$ac_optarg" ;;
351
352  -v | -verbose | --verbose | --verbos | --verbo | --verb)
353    verbose=yes ;;
354
355  -version | --version | --versio | --versi | --vers)
356    echo "configure generated by autoconf version 2.13"
357    exit 0 ;;
358
359  -with-* | --with-*)
360    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361    # Reject names that are not valid shell variable names.
362    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364    fi
365    ac_package=`echo $ac_package| sed 's/-/_/g'`
366    case "$ac_option" in
367      *=*) ;;
368      *) ac_optarg=yes ;;
369    esac
370    eval "with_${ac_package}='$ac_optarg'" ;;
371
372  -without-* | --without-*)
373    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374    # Reject names that are not valid shell variable names.
375    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377    fi
378    ac_package=`echo $ac_package| sed 's/-/_/g'`
379    eval "with_${ac_package}=no" ;;
380
381  --x)
382    # Obsolete; use --with-x.
383    with_x=yes ;;
384
385  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386  | --x-incl | --x-inc | --x-in | --x-i)
387    ac_prev=x_includes ;;
388  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390    x_includes="$ac_optarg" ;;
391
392  -x-libraries | --x-libraries | --x-librarie | --x-librari \
393  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394    ac_prev=x_libraries ;;
395  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397    x_libraries="$ac_optarg" ;;
398
399  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400    ;;
401
402  *)
403    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404      echo "configure: warning: $ac_option: invalid host type" 1>&2
405    fi
406    if test "x$nonopt" != xNONE; then
407      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408    fi
409    nonopt="$ac_option"
410    ;;
411
412  esac
413done
414
415if test -n "$ac_prev"; then
416  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417fi
418
419trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
421# File descriptor usage:
422# 0 standard input
423# 1 file creation
424# 2 errors and warnings
425# 3 some systems may open it to /dev/tty
426# 4 used on the Kubota Titan
427# 6 checking for... messages and results
428# 5 compiler messages saved in config.log
429if test "$silent" = yes; then
430  exec 6>/dev/null
431else
432  exec 6>&1
433fi
434exec 5>./config.log
435
436echo "\
437This file contains any messages produced by compilers while
438running configure, to aid debugging if configure makes a mistake.
439" 1>&5
440
441# Strip out --no-create and --no-recursion so they do not pile up.
442# Also quote any args containing shell metacharacters.
443ac_configure_args=
444for ac_arg
445do
446  case "$ac_arg" in
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c) ;;
449  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454  esac
455done
456
457# NLS nuisances.
458# Only set these to C if already set.  These must not be set unconditionally
459# because not all systems understand e.g. LANG=C (notably SCO).
460# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461# Non-C LC_CTYPE values break the ctype check.
462if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
463if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
466
467# confdefs.h avoids OS command line length limits that DEFS can exceed.
468rm -rf conftest* confdefs.h
469# AIX cpp loses on an empty file, so make sure it contains at least a newline.
470echo > confdefs.h
471
472# A filename unique to this package, relative to the directory that
473# configure is in, which we can look for to find out if srcdir is correct.
474ac_unique_file=converter.c
475
476# Find the source files, if location was not specified.
477if test -z "$srcdir"; then
478  ac_srcdir_defaulted=yes
479  # Try the directory containing this script, then its parent.
480  ac_prog=$0
481  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483  srcdir=$ac_confdir
484  if test ! -r $srcdir/$ac_unique_file; then
485    srcdir=..
486  fi
487else
488  ac_srcdir_defaulted=no
489fi
490if test ! -r $srcdir/$ac_unique_file; then
491  if test "$ac_srcdir_defaulted" = yes; then
492    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493  else
494    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495  fi
496fi
497srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498
499# Prefer explicitly selected file to automatically selected ones.
500if test -z "$CONFIG_SITE"; then
501  if test "x$prefix" != xNONE; then
502    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503  else
504    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505  fi
506fi
507for ac_site_file in $CONFIG_SITE; do
508  if test -r "$ac_site_file"; then
509    echo "loading site script $ac_site_file"
510    . "$ac_site_file"
511  fi
512done
513
514if test -r "$cache_file"; then
515  echo "loading cache $cache_file"
516  . $cache_file
517else
518  echo "creating cache $cache_file"
519  > $cache_file
520fi
521
522ac_ext=c
523# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524ac_cpp='$CPP $CPPFLAGS'
525ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527cross_compiling=$ac_cv_prog_cc_cross
528
529ac_exeext=
530ac_objext=o
531if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534    ac_n= ac_c='
535' ac_t='        '
536  else
537    ac_n=-n ac_c= ac_t=
538  fi
539else
540  ac_n= ac_c='\c' ac_t=
541fi
542
543
544
545ac_aux_dir=
546for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547  if test -f $ac_dir/install-sh; then
548    ac_aux_dir=$ac_dir
549    ac_install_sh="$ac_aux_dir/install-sh -c"
550    break
551  elif test -f $ac_dir/install.sh; then
552    ac_aux_dir=$ac_dir
553    ac_install_sh="$ac_aux_dir/install.sh -c"
554    break
555  fi
556done
557if test -z "$ac_aux_dir"; then
558  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559fi
560ac_config_guess=$ac_aux_dir/config.guess
561ac_config_sub=$ac_aux_dir/config.sub
562ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563
564
565# Do some error checking and defaulting for the host and target type.
566# The inputs are:
567#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
568#
569# The rules are:
570# 1. You are not allowed to specify --host, --target, and nonopt at the
571#    same time.
572# 2. Host defaults to nonopt.
573# 3. If nonopt is not specified, then host defaults to the current host,
574#    as determined by config.guess.
575# 4. Target and build default to nonopt.
576# 5. If nonopt is not specified, then target and build default to host.
577
578# The aliases save the names the user supplied, while $host etc.
579# will get canonicalized.
580case $host---$target---$nonopt in
581NONE---*---* | *---NONE---* | *---*---NONE) ;;
582*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
583esac
584
585
586# Make sure we can run config.sub.
587if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
588else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589fi
590
591echo $ac_n "checking host system type""... $ac_c" 1>&6
592echo "configure:593: checking host system type" >&5
593
594host_alias=$host
595case "$host_alias" in
596NONE)
597  case $nonopt in
598  NONE)
599    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601    fi ;;
602  *) host_alias=$nonopt ;;
603  esac ;;
604esac
605
606host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610echo "$ac_t""$host" 1>&6
611
612echo $ac_n "checking target system type""... $ac_c" 1>&6
613echo "configure:614: checking target system type" >&5
614
615target_alias=$target
616case "$target_alias" in
617NONE)
618  case $nonopt in
619  NONE) target_alias=$host_alias ;;
620  *) target_alias=$nonopt ;;
621  esac ;;
622esac
623
624target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
625target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628echo "$ac_t""$target" 1>&6
629
630echo $ac_n "checking build system type""... $ac_c" 1>&6
631echo "configure:632: checking build system type" >&5
632
633build_alias=$build
634case "$build_alias" in
635NONE)
636  case $nonopt in
637  NONE) build_alias=$host_alias ;;
638  *) build_alias=$nonopt ;;
639  esac ;;
640esac
641
642build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
643build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646echo "$ac_t""$build" 1>&6
647
648test "$host_alias" != "$target_alias" &&
649  test "$program_prefix$program_suffix$program_transform_name" = \
650    NONENONEs,x,x, &&
651  program_prefix=${target_alias}-
652
653
654# Extract the first word of "gcc", so it can be a program name with args.
655set dummy gcc; ac_word=$2
656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657echo "configure:658: checking for $ac_word" >&5
658if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659  echo $ac_n "(cached) $ac_c" 1>&6
660else
661  if test -n "$CC"; then
662  ac_cv_prog_CC="$CC" # Let the user override the test.
663else
664  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
665  ac_dummy="$PATH"
666  for ac_dir in $ac_dummy; do
667    test -z "$ac_dir" && ac_dir=.
668    if test -f $ac_dir/$ac_word; then
669      ac_cv_prog_CC="gcc"
670      break
671    fi
672  done
673  IFS="$ac_save_ifs"
674fi
675fi
676CC="$ac_cv_prog_CC"
677if test -n "$CC"; then
678  echo "$ac_t""$CC" 1>&6
679else
680  echo "$ac_t""no" 1>&6
681fi
682
683if test -z "$CC"; then
684  # Extract the first word of "cc", so it can be a program name with args.
685set dummy cc; ac_word=$2
686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687echo "configure:688: checking for $ac_word" >&5
688if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689  echo $ac_n "(cached) $ac_c" 1>&6
690else
691  if test -n "$CC"; then
692  ac_cv_prog_CC="$CC" # Let the user override the test.
693else
694  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
695  ac_prog_rejected=no
696  ac_dummy="$PATH"
697  for ac_dir in $ac_dummy; do
698    test -z "$ac_dir" && ac_dir=.
699    if test -f $ac_dir/$ac_word; then
700      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701        ac_prog_rejected=yes
702        continue
703      fi
704      ac_cv_prog_CC="cc"
705      break
706    fi
707  done
708  IFS="$ac_save_ifs"
709if test $ac_prog_rejected = yes; then
710  # We found a bogon in the path, so make sure we never use it.
711  set dummy $ac_cv_prog_CC
712  shift
713  if test $# -gt 0; then
714    # We chose a different compiler from the bogus one.
715    # However, it has the same basename, so the bogon will be chosen
716    # first if we set CC to just the basename; use the full file name.
717    shift
718    set dummy "$ac_dir/$ac_word" "$@"
719    shift
720    ac_cv_prog_CC="$@"
721  fi
722fi
723fi
724fi
725CC="$ac_cv_prog_CC"
726if test -n "$CC"; then
727  echo "$ac_t""$CC" 1>&6
728else
729  echo "$ac_t""no" 1>&6
730fi
731
732  if test -z "$CC"; then
733    case "`uname -s`" in
734    *win32* | *WIN32*)
735      # Extract the first word of "cl", so it can be a program name with args.
736set dummy cl; ac_word=$2
737echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738echo "configure:739: checking for $ac_word" >&5
739if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740  echo $ac_n "(cached) $ac_c" 1>&6
741else
742  if test -n "$CC"; then
743  ac_cv_prog_CC="$CC" # Let the user override the test.
744else
745  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
746  ac_dummy="$PATH"
747  for ac_dir in $ac_dummy; do
748    test -z "$ac_dir" && ac_dir=.
749    if test -f $ac_dir/$ac_word; then
750      ac_cv_prog_CC="cl"
751      break
752    fi
753  done
754  IFS="$ac_save_ifs"
755fi
756fi
757CC="$ac_cv_prog_CC"
758if test -n "$CC"; then
759  echo "$ac_t""$CC" 1>&6
760else
761  echo "$ac_t""no" 1>&6
762fi
763 ;;
764    esac
765  fi
766  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
767fi
768
769echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
771
772ac_ext=c
773# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774ac_cpp='$CPP $CPPFLAGS'
775ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777cross_compiling=$ac_cv_prog_cc_cross
778
779cat > conftest.$ac_ext << EOF
780
781#line 782 "configure"
782#include "confdefs.h"
783
784main(){return(0);}
785EOF
786if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
787  ac_cv_prog_cc_works=yes
788  # If we can't run a trivial program, we are probably using a cross compiler.
789  if (./conftest; exit) 2>/dev/null; then
790    ac_cv_prog_cc_cross=no
791  else
792    ac_cv_prog_cc_cross=yes
793  fi
794else
795  echo "configure: failed program was:" >&5
796  cat conftest.$ac_ext >&5
797  ac_cv_prog_cc_works=no
798fi
799rm -fr conftest*
800ac_ext=c
801# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802ac_cpp='$CPP $CPPFLAGS'
803ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805cross_compiling=$ac_cv_prog_cc_cross
806
807echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808if test $ac_cv_prog_cc_works = no; then
809  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
810fi
811echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814cross_compiling=$ac_cv_prog_cc_cross
815
816echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817echo "configure:818: checking whether we are using GNU C" >&5
818if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819  echo $ac_n "(cached) $ac_c" 1>&6
820else
821  cat > conftest.c <<EOF
822#ifdef __GNUC__
823  yes;
824#endif
825EOF
826if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
827  ac_cv_prog_gcc=yes
828else
829  ac_cv_prog_gcc=no
830fi
831fi
832
833echo "$ac_t""$ac_cv_prog_gcc" 1>&6
834
835if test $ac_cv_prog_gcc = yes; then
836  GCC=yes
837else
838  GCC=
839fi
840
841ac_test_CFLAGS="${CFLAGS+set}"
842ac_save_CFLAGS="$CFLAGS"
843CFLAGS=
844echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847  echo $ac_n "(cached) $ac_c" 1>&6
848else
849  echo 'void f(){}' > conftest.c
850if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851  ac_cv_prog_cc_g=yes
852else
853  ac_cv_prog_cc_g=no
854fi
855rm -f conftest*
856
857fi
858
859echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860if test "$ac_test_CFLAGS" = set; then
861  CFLAGS="$ac_save_CFLAGS"
862elif test $ac_cv_prog_cc_g = yes; then
863  if test "$GCC" = yes; then
864    CFLAGS="-g -O2"
865  else
866    CFLAGS="-g"
867  fi
868else
869  if test "$GCC" = yes; then
870    CFLAGS="-O2"
871  else
872    CFLAGS=
873  fi
874fi
875
876echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
877echo "configure:878: checking how to run the C preprocessor" >&5
878# On Suns, sometimes $CPP names a directory.
879if test -n "$CPP" && test -d "$CPP"; then
880  CPP=
881fi
882if test -z "$CPP"; then
883if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
884  echo $ac_n "(cached) $ac_c" 1>&6
885else
886    # This must be in double quotes, not single quotes, because CPP may get
887  # substituted into the Makefile and "${CC-cc}" will confuse make.
888  CPP="${CC-cc} -E"
889  # On the NeXT, cc -E runs the code through the compiler's parser,
890  # not just through cpp.
891  cat > conftest.$ac_ext <<EOF
892#line 893 "configure"
893#include "confdefs.h"
894#include <assert.h>
895Syntax Error
896EOF
897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
898{ (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
900if test -z "$ac_err"; then
901  :
902else
903  echo "$ac_err" >&5
904  echo "configure: failed program was:" >&5
905  cat conftest.$ac_ext >&5
906  rm -rf conftest*
907  CPP="${CC-cc} -E -traditional-cpp"
908  cat > conftest.$ac_ext <<EOF
909#line 910 "configure"
910#include "confdefs.h"
911#include <assert.h>
912Syntax Error
913EOF
914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917if test -z "$ac_err"; then
918  :
919else
920  echo "$ac_err" >&5
921  echo "configure: failed program was:" >&5
922  cat conftest.$ac_ext >&5
923  rm -rf conftest*
924  CPP="${CC-cc} -nologo -E"
925  cat > conftest.$ac_ext <<EOF
926#line 927 "configure"
927#include "confdefs.h"
928#include <assert.h>
929Syntax Error
930EOF
931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934if test -z "$ac_err"; then
935  :
936else
937  echo "$ac_err" >&5
938  echo "configure: failed program was:" >&5
939  cat conftest.$ac_ext >&5
940  rm -rf conftest*
941  CPP=/lib/cpp
942fi
943rm -f conftest*
944fi
945rm -f conftest*
946fi
947rm -f conftest*
948  ac_cv_prog_CPP="$CPP"
949fi
950  CPP="$ac_cv_prog_CPP"
951else
952  ac_cv_prog_CPP="$CPP"
953fi
954echo "$ac_t""$CPP" 1>&6
955
956# Extract the first word of "ranlib", so it can be a program name with args.
957set dummy ranlib; ac_word=$2
958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959echo "configure:960: checking for $ac_word" >&5
960if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
961  echo $ac_n "(cached) $ac_c" 1>&6
962else
963  if test -n "$RANLIB"; then
964  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
965else
966  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
967  ac_dummy="$PATH"
968  for ac_dir in $ac_dummy; do
969    test -z "$ac_dir" && ac_dir=.
970    if test -f $ac_dir/$ac_word; then
971      ac_cv_prog_RANLIB="ranlib"
972      break
973    fi
974  done
975  IFS="$ac_save_ifs"
976  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977fi
978fi
979RANLIB="$ac_cv_prog_RANLIB"
980if test -n "$RANLIB"; then
981  echo "$ac_t""$RANLIB" 1>&6
982else
983  echo "$ac_t""no" 1>&6
984fi
985
986
987echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
988echo "configure:989: checking for ANSI C header files" >&5
989if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
990  echo $ac_n "(cached) $ac_c" 1>&6
991else
992  cat > conftest.$ac_ext <<EOF
993#line 994 "configure"
994#include "confdefs.h"
995#include <stdlib.h>
996#include <stdarg.h>
997#include <string.h>
998#include <float.h>
999EOF
1000ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1001{ (eval echo configure:1002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1002ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1003if test -z "$ac_err"; then
1004  rm -rf conftest*
1005  ac_cv_header_stdc=yes
1006else
1007  echo "$ac_err" >&5
1008  echo "configure: failed program was:" >&5
1009  cat conftest.$ac_ext >&5
1010  rm -rf conftest*
1011  ac_cv_header_stdc=no
1012fi
1013rm -f conftest*
1014
1015if test $ac_cv_header_stdc = yes; then
1016  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1017cat > conftest.$ac_ext <<EOF
1018#line 1019 "configure"
1019#include "confdefs.h"
1020#include <string.h>
1021EOF
1022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1023  egrep "memchr" >/dev/null 2>&1; then
1024  :
1025else
1026  rm -rf conftest*
1027  ac_cv_header_stdc=no
1028fi
1029rm -f conftest*
1030
1031fi
1032
1033if test $ac_cv_header_stdc = yes; then
1034  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1035cat > conftest.$ac_ext <<EOF
1036#line 1037 "configure"
1037#include "confdefs.h"
1038#include <stdlib.h>
1039EOF
1040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1041  egrep "free" >/dev/null 2>&1; then
1042  :
1043else
1044  rm -rf conftest*
1045  ac_cv_header_stdc=no
1046fi
1047rm -f conftest*
1048
1049fi
1050
1051if test $ac_cv_header_stdc = yes; then
1052  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1053if test "$cross_compiling" = yes; then
1054  :
1055else
1056  cat > conftest.$ac_ext <<EOF
1057#line 1058 "configure"
1058#include "confdefs.h"
1059#include <ctype.h>
1060#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1061#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1062#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1063int main () { int i; for (i = 0; i < 256; i++)
1064if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1065exit (0); }
1066
1067EOF
1068if { (eval echo configure:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1069then
1070  :
1071else
1072  echo "configure: failed program was:" >&5
1073  cat conftest.$ac_ext >&5
1074  rm -fr conftest*
1075  ac_cv_header_stdc=no
1076fi
1077rm -fr conftest*
1078fi
1079
1080fi
1081fi
1082
1083echo "$ac_t""$ac_cv_header_stdc" 1>&6
1084if test $ac_cv_header_stdc = yes; then
1085  cat >> confdefs.h <<\EOF
1086#define STDC_HEADERS 1
1087EOF
1088
1089fi
1090
1091echo $ac_n "checking for working const""... $ac_c" 1>&6
1092echo "configure:1093: checking for working const" >&5
1093if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1094  echo $ac_n "(cached) $ac_c" 1>&6
1095else
1096  cat > conftest.$ac_ext <<EOF
1097#line 1098 "configure"
1098#include "confdefs.h"
1099
1100int main() {
1101
1102/* Ultrix mips cc rejects this.  */
1103typedef int charset[2]; const charset x;
1104/* SunOS 4.1.1 cc rejects this.  */
1105char const *const *ccp;
1106char **p;
1107/* NEC SVR4.0.2 mips cc rejects this.  */
1108struct point {int x, y;};
1109static struct point const zero = {0,0};
1110/* AIX XL C 1.02.0.0 rejects this.
1111   It does not let you subtract one const X* pointer from another in an arm
1112   of an if-expression whose if-part is not a constant expression */
1113const char *g = "string";
1114ccp = &g + (g ? g-g : 0);
1115/* HPUX 7.0 cc rejects these. */
1116++ccp;
1117p = (char**) ccp;
1118ccp = (char const *const *) p;
1119{ /* SCO 3.2v4 cc rejects this.  */
1120  char *t;
1121  char const *s = 0 ? (char *) 0 : (char const *) 0;
1122
1123  *t++ = 0;
1124}
1125{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1126  int x[] = {25, 17};
1127  const int *foo = &x[0];
1128  ++foo;
1129}
1130{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1131  typedef const int *iptr;
1132  iptr p = 0;
1133  ++p;
1134}
1135{ /* AIX XL C 1.02.0.0 rejects this saying
1136     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1137  struct s { int j; const int *ap[3]; };
1138  struct s *b; b->j = 5;
1139}
1140{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1141  const int foo = 10;
1142}
1143
1144; return 0; }
1145EOF
1146if { (eval echo configure:1147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1147  rm -rf conftest*
1148  ac_cv_c_const=yes
1149else
1150  echo "configure: failed program was:" >&5
1151  cat conftest.$ac_ext >&5
1152  rm -rf conftest*
1153  ac_cv_c_const=no
1154fi
1155rm -f conftest*
1156fi
1157
1158echo "$ac_t""$ac_cv_c_const" 1>&6
1159if test $ac_cv_c_const = no; then
1160  cat >> confdefs.h <<\EOF
1161#define const
1162EOF
1163
1164fi
1165
1166echo $ac_n "checking for size_t""... $ac_c" 1>&6
1167echo "configure:1168: checking for size_t" >&5
1168if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1169  echo $ac_n "(cached) $ac_c" 1>&6
1170else
1171  cat > conftest.$ac_ext <<EOF
1172#line 1173 "configure"
1173#include "confdefs.h"
1174#include <sys/types.h>
1175#if STDC_HEADERS
1176#include <stdlib.h>
1177#include <stddef.h>
1178#endif
1179EOF
1180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1181  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1182  rm -rf conftest*
1183  ac_cv_type_size_t=yes
1184else
1185  rm -rf conftest*
1186  ac_cv_type_size_t=no
1187fi
1188rm -f conftest*
1189
1190fi
1191echo "$ac_t""$ac_cv_type_size_t" 1>&6
1192if test $ac_cv_type_size_t = no; then
1193  cat >> confdefs.h <<\EOF
1194#define size_t unsigned
1195EOF
1196
1197fi
1198
1199
1200VERSION=`cat VERSION`
1201
1202
1203OSTYPE=$host_os
1204
1205
1206# The following two macros cause autoconf to complain.
1207echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1208echo "configure:1209: checking whether byte ordering is bigendian" >&5
1209if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1210  echo $ac_n "(cached) $ac_c" 1>&6
1211else
1212  ac_cv_c_bigendian=unknown
1213# See if sys/param.h defines the BYTE_ORDER macro.
1214cat > conftest.$ac_ext <<EOF
1215#line 1216 "configure"
1216#include "confdefs.h"
1217#include <sys/types.h>
1218#include <sys/param.h>
1219int main() {
1220
1221#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1222 bogus endian macros
1223#endif
1224; return 0; }
1225EOF
1226if { (eval echo configure:1227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1227  rm -rf conftest*
1228  # It does; now see whether it defined to BIG_ENDIAN or not.
1229cat > conftest.$ac_ext <<EOF
1230#line 1231 "configure"
1231#include "confdefs.h"
1232#include <sys/types.h>
1233#include <sys/param.h>
1234int main() {
1235
1236#if BYTE_ORDER != BIG_ENDIAN
1237 not big endian
1238#endif
1239; return 0; }
1240EOF
1241if { (eval echo configure:1242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1242  rm -rf conftest*
1243  ac_cv_c_bigendian=yes
1244else
1245  echo "configure: failed program was:" >&5
1246  cat conftest.$ac_ext >&5
1247  rm -rf conftest*
1248  ac_cv_c_bigendian=no
1249fi
1250rm -f conftest*
1251else
1252  echo "configure: failed program was:" >&5
1253  cat conftest.$ac_ext >&5
1254fi
1255rm -f conftest*
1256if test $ac_cv_c_bigendian = unknown; then
1257if test "$cross_compiling" = yes; then
1258    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1259else
1260  cat > conftest.$ac_ext <<EOF
1261#line 1262 "configure"
1262#include "confdefs.h"
1263main () {
1264  /* Are we little or big endian?  From Harbison&Steele.  */
1265  union
1266  {
1267    long l;
1268    char c[sizeof (long)];
1269  } u;
1270  u.l = 1;
1271  exit (u.c[sizeof (long) - 1] == 1);
1272}
1273EOF
1274if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1275then
1276  ac_cv_c_bigendian=no
1277else
1278  echo "configure: failed program was:" >&5
1279  cat conftest.$ac_ext >&5
1280  rm -fr conftest*
1281  ac_cv_c_bigendian=yes
1282fi
1283rm -fr conftest*
1284fi
1285
1286fi
1287fi
1288
1289echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1290if test $ac_cv_c_bigendian = yes; then
1291  cat >> confdefs.h <<\EOF
1292#define WORDS_BIGENDIAN 1
1293EOF
1294
1295fi
1296
1297echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
1298echo "configure:1299: checking whether char is unsigned" >&5
1299if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
1300  echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302  if test "$GCC" = yes; then
1303  # GCC predefines this symbol on systems where it applies.
1304cat > conftest.$ac_ext <<EOF
1305#line 1306 "configure"
1306#include "confdefs.h"
1307#ifdef __CHAR_UNSIGNED__
1308  yes
1309#endif
1310
1311EOF
1312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1313  egrep "yes" >/dev/null 2>&1; then
1314  rm -rf conftest*
1315  ac_cv_c_char_unsigned=yes
1316else
1317  rm -rf conftest*
1318  ac_cv_c_char_unsigned=no
1319fi
1320rm -f conftest*
1321
1322else
1323if test "$cross_compiling" = yes; then
1324    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1325else
1326  cat > conftest.$ac_ext <<EOF
1327#line 1328 "configure"
1328#include "confdefs.h"
1329/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
1330#if !defined(__STDC__) || __STDC__ != 1
1331#define volatile
1332#endif
1333main() {
1334  volatile char c = 255; exit(c < 0);
1335}
1336EOF
1337if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1338then
1339  ac_cv_c_char_unsigned=yes
1340else
1341  echo "configure: failed program was:" >&5
1342  cat conftest.$ac_ext >&5
1343  rm -fr conftest*
1344  ac_cv_c_char_unsigned=no
1345fi
1346rm -fr conftest*
1347fi
1348
1349fi
1350fi
1351
1352echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
1353if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
1354  cat >> confdefs.h <<\EOF
1355#define __CHAR_UNSIGNED__ 1
1356EOF
1357
1358fi
1359
1360
1361#------------------------------------------------------------------------------
1362# GCC-specific warning flags:  Set these early so all tests use arguments that
1363# application builds with.
1364#------------------------------------------------------------------------------
1365if test "$GCC" = yes
1366then
1367        CFLAGS="$CFLAGS -W -Wall -Wbad-function-cast -Wmissing-prototypes -Werror"
1368        if test -f .devel
1369        then
1370                CFLAGS="$CFLAGS -Werror"
1371        fi
1372fi
1373
1374# Check for various headers                                                 
1375for ac_hdr in stdint.h inttypes.h stropts.h sys/filio.h malloc.h bstring.h
1376do
1377ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1378echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1379echo "configure:1380: checking for $ac_hdr" >&5
1380if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1381  echo $ac_n "(cached) $ac_c" 1>&6
1382else
1383  cat > conftest.$ac_ext <<EOF
1384#line 1385 "configure"
1385#include "confdefs.h"
1386#include <$ac_hdr>
1387EOF
1388ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1389{ (eval echo configure:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1390ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1391if test -z "$ac_err"; then
1392  rm -rf conftest*
1393  eval "ac_cv_header_$ac_safe=yes"
1394else
1395  echo "$ac_err" >&5
1396  echo "configure: failed program was:" >&5
1397  cat conftest.$ac_ext >&5
1398  rm -rf conftest*
1399  eval "ac_cv_header_$ac_safe=no"
1400fi
1401rm -f conftest*
1402fi
1403if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1404  echo "$ac_t""yes" 1>&6
1405    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1406  cat >> confdefs.h <<EOF
1407#define $ac_tr_hdr 1
1408EOF
1409 
1410else
1411  echo "$ac_t""no" 1>&6
1412fi
1413done
1414
1415for ac_hdr in sys/sockio.h
1416do
1417ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1418echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1419echo "configure:1420: checking for $ac_hdr" >&5
1420if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1421  echo $ac_n "(cached) $ac_c" 1>&6
1422else
1423  cat > conftest.$ac_ext <<EOF
1424#line 1425 "configure"
1425#include "confdefs.h"
1426#include <$ac_hdr>
1427EOF
1428ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1429{ (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1430ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1431if test -z "$ac_err"; then
1432  rm -rf conftest*
1433  eval "ac_cv_header_$ac_safe=yes"
1434else
1435  echo "$ac_err" >&5
1436  echo "configure: failed program was:" >&5
1437  cat conftest.$ac_ext >&5
1438  rm -rf conftest*
1439  eval "ac_cv_header_$ac_safe=no"
1440fi
1441rm -f conftest*
1442fi
1443if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1444  echo "$ac_t""yes" 1>&6
1445    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1446  cat >> confdefs.h <<EOF
1447#define $ac_tr_hdr 1
1448EOF
1449 
1450else
1451  echo "$ac_t""no" 1>&6
1452fi
1453done
1454
1455
1456# Check for missing declarations
1457echo $ac_n "checking for kill declaration""... $ac_c" 1>&6
1458echo "configure:1459: checking for kill declaration" >&5
1459cat > conftest.$ac_ext <<EOF
1460#line 1461 "configure"
1461#include "confdefs.h"
1462#include <signal.h>
1463EOF
1464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1465  egrep "kill" >/dev/null 2>&1; then
1466  rm -rf conftest*
1467  echo "$ac_t""present" 1>&6
1468else
1469  rm -rf conftest*
1470 
1471        echo "$ac_t""missing" 1>&6
1472        cat >> confdefs.h <<\EOF
1473#define KILL_NOT_DECLARED 1
1474EOF
1475
1476
1477fi
1478rm -f conftest*
1479
1480echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
1481echo "configure:1482: checking for gettimeofday declaration" >&5
1482cat > conftest.$ac_ext <<EOF
1483#line 1484 "configure"
1484#include "confdefs.h"
1485#include <sys/time.h>
1486EOF
1487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488  egrep "gettimeofday" >/dev/null 2>&1; then
1489  rm -rf conftest*
1490  echo "$ac_t""present" 1>&6
1491else
1492  rm -rf conftest*
1493 
1494    echo "$ac_t""missing" 1>&6
1495    cat >> confdefs.h <<\EOF
1496#define GETTOD_NOT_DECLARED 1
1497EOF
1498
1499
1500fi
1501rm -f conftest*
1502
1503
1504# Check for libraries                                                       
1505
1506echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
1507echo "configure:1508: checking for library containing socket" >&5
1508if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
1509  echo $ac_n "(cached) $ac_c" 1>&6
1510else
1511  ac_func_search_save_LIBS="$LIBS"
1512ac_cv_search_socket="no"
1513cat > conftest.$ac_ext <<EOF
1514#line 1515 "configure"
1515#include "confdefs.h"
1516/* Override any gcc2 internal prototype to avoid an error.  */
1517/* We use char because int might match the return type of a gcc2
1518    builtin and then its argument prototype would still apply.  */
1519char socket();
1520
1521int main() {
1522socket()
1523; return 0; }
1524EOF
1525if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1526  rm -rf conftest*
1527  ac_cv_search_socket="none required"
1528else
1529  echo "configure: failed program was:" >&5
1530  cat conftest.$ac_ext >&5
1531fi
1532rm -f conftest*
1533test "$ac_cv_search_socket" = "no" && for i in socket; do
1534LIBS="-l$i  $ac_func_search_save_LIBS"
1535cat > conftest.$ac_ext <<EOF
1536#line 1537 "configure"
1537#include "confdefs.h"
1538/* Override any gcc2 internal prototype to avoid an error.  */
1539/* We use char because int might match the return type of a gcc2
1540    builtin and then its argument prototype would still apply.  */
1541char socket();
1542
1543int main() {
1544socket()
1545; return 0; }
1546EOF
1547if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1548  rm -rf conftest*
1549  ac_cv_search_socket="-l$i"
1550break
1551else
1552  echo "configure: failed program was:" >&5
1553  cat conftest.$ac_ext >&5
1554fi
1555rm -f conftest*
1556done
1557LIBS="$ac_func_search_save_LIBS"
1558fi
1559
1560echo "$ac_t""$ac_cv_search_socket" 1>&6
1561if test "$ac_cv_search_socket" != "no"; then
1562  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
1563 
1564else :
1565 
1566fi
1567
1568echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6
1569echo "configure:1570: checking for library containing inet_addr" >&5
1570if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then
1571  echo $ac_n "(cached) $ac_c" 1>&6
1572else
1573  ac_func_search_save_LIBS="$LIBS"
1574ac_cv_search_inet_addr="no"
1575cat > conftest.$ac_ext <<EOF
1576#line 1577 "configure"
1577#include "confdefs.h"
1578/* Override any gcc2 internal prototype to avoid an error.  */
1579/* We use char because int might match the return type of a gcc2
1580    builtin and then its argument prototype would still apply.  */
1581char inet_addr();
1582
1583int main() {
1584inet_addr()
1585; return 0; }
1586EOF
1587if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1588  rm -rf conftest*
1589  ac_cv_search_inet_addr="none required"
1590else
1591  echo "configure: failed program was:" >&5
1592  cat conftest.$ac_ext >&5
1593fi
1594rm -f conftest*
1595test "$ac_cv_search_inet_addr" = "no" && for i in nsl; do
1596LIBS="-l$i  $ac_func_search_save_LIBS"
1597cat > conftest.$ac_ext <<EOF
1598#line 1599 "configure"
1599#include "confdefs.h"
1600/* Override any gcc2 internal prototype to avoid an error.  */
1601/* We use char because int might match the return type of a gcc2
1602    builtin and then its argument prototype would still apply.  */
1603char inet_addr();
1604
1605int main() {
1606inet_addr()
1607; return 0; }
1608EOF
1609if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1610  rm -rf conftest*
1611  ac_cv_search_inet_addr="-l$i"
1612break
1613else
1614  echo "configure: failed program was:" >&5
1615  cat conftest.$ac_ext >&5
1616fi
1617rm -f conftest*
1618done
1619LIBS="$ac_func_search_save_LIBS"
1620fi
1621
1622echo "$ac_t""$ac_cv_search_inet_addr" 1>&6
1623if test "$ac_cv_search_inet_addr" != "no"; then
1624  test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
1625 
1626else :
1627 
1628fi
1629
1630echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
1631echo "configure:1632: checking for library containing dlopen" >&5
1632if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
1633  echo $ac_n "(cached) $ac_c" 1>&6
1634else
1635  ac_func_search_save_LIBS="$LIBS"
1636ac_cv_search_dlopen="no"
1637cat > conftest.$ac_ext <<EOF
1638#line 1639 "configure"
1639#include "confdefs.h"
1640/* Override any gcc2 internal prototype to avoid an error.  */
1641/* We use char because int might match the return type of a gcc2
1642    builtin and then its argument prototype would still apply.  */
1643char dlopen();
1644
1645int main() {
1646dlopen()
1647; return 0; }
1648EOF
1649if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650  rm -rf conftest*
1651  ac_cv_search_dlopen="none required"
1652else
1653  echo "configure: failed program was:" >&5
1654  cat conftest.$ac_ext >&5
1655fi
1656rm -f conftest*
1657test "$ac_cv_search_dlopen" = "no" && for i in dl; do
1658LIBS="-l$i  $ac_func_search_save_LIBS"
1659cat > conftest.$ac_ext <<EOF
1660#line 1661 "configure"
1661#include "confdefs.h"
1662/* Override any gcc2 internal prototype to avoid an error.  */
1663/* We use char because int might match the return type of a gcc2
1664    builtin and then its argument prototype would still apply.  */
1665char dlopen();
1666
1667int main() {
1668dlopen()
1669; return 0; }
1670EOF
1671if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672  rm -rf conftest*
1673  ac_cv_search_dlopen="-l$i"
1674break
1675else
1676  echo "configure: failed program was:" >&5
1677  cat conftest.$ac_ext >&5
1678fi
1679rm -f conftest*
1680done
1681LIBS="$ac_func_search_save_LIBS"
1682fi
1683
1684echo "$ac_t""$ac_cv_search_dlopen" 1>&6
1685if test "$ac_cv_search_dlopen" != "no"; then
1686  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
1687 
1688else :
1689 
1690fi
1691
1692echo $ac_n "checking for sin""... $ac_c" 1>&6
1693echo "configure:1694: checking for sin" >&5
1694if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
1695  echo $ac_n "(cached) $ac_c" 1>&6
1696else
1697  cat > conftest.$ac_ext <<EOF
1698#line 1699 "configure"
1699#include "confdefs.h"
1700/* System header to define __stub macros and hopefully few prototypes,
1701    which can conflict with char sin(); below.  */
1702#include <assert.h>
1703/* Override any gcc2 internal prototype to avoid an error.  */
1704/* We use char because int might match the return type of a gcc2
1705    builtin and then its argument prototype would still apply.  */
1706char sin();
1707
1708int main() {
1709
1710/* The GNU C library defines this for functions which it implements
1711    to always fail with ENOSYS.  Some functions are actually named
1712    something starting with __ and the normal name is an alias.  */
1713#if defined (__stub_sin) || defined (__stub___sin)
1714choke me
1715#else
1716sin();
1717#endif
1718
1719; return 0; }
1720EOF
1721if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1722  rm -rf conftest*
1723  eval "ac_cv_func_sin=yes"
1724else
1725  echo "configure: failed program was:" >&5
1726  cat conftest.$ac_ext >&5
1727  rm -rf conftest*
1728  eval "ac_cv_func_sin=no"
1729fi
1730rm -f conftest*
1731fi
1732
1733if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
1734  echo "$ac_t""yes" 1>&6
1735  MATHLIBS=""
1736else
1737  echo "$ac_t""no" 1>&6
1738MATHLIBS="-lm"
1739fi
1740
1741echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
1742echo "configure:1743: checking for main in -lieee" >&5
1743ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
1744if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745  echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747  ac_save_LIBS="$LIBS"
1748LIBS="-lieee  $LIBS"
1749cat > conftest.$ac_ext <<EOF
1750#line 1751 "configure"
1751#include "confdefs.h"
1752
1753int main() {
1754main()
1755; return 0; }
1756EOF
1757if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758  rm -rf conftest*
1759  eval "ac_cv_lib_$ac_lib_var=yes"
1760else
1761  echo "configure: failed program was:" >&5
1762  cat conftest.$ac_ext >&5
1763  rm -rf conftest*
1764  eval "ac_cv_lib_$ac_lib_var=no"
1765fi
1766rm -f conftest*
1767LIBS="$ac_save_LIBS"
1768
1769fi
1770if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1771  echo "$ac_t""yes" 1>&6
1772  MATHLIBS="-lieee $MATHLIBS"
1773else
1774  echo "$ac_t""no" 1>&6
1775fi
1776
1777
1778
1779# Check for standard size types.  The defaults are only valid on some systems
1780# so we hope that <inttypes.h> exists when they're wrong.                   
1781
1782echo $ac_n "checking for int8_t""... $ac_c" 1>&6
1783echo "configure:1784: checking for int8_t" >&5
1784if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
1785  echo $ac_n "(cached) $ac_c" 1>&6
1786else
1787  cat > conftest.$ac_ext <<EOF
1788#line 1789 "configure"
1789#include "confdefs.h"
1790#include <sys/types.h>
1791#if STDC_HEADERS
1792#include <stdlib.h>
1793#include <stddef.h>
1794#endif
1795EOF
1796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1797  egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1798  rm -rf conftest*
1799  ac_cv_type_int8_t=yes
1800else
1801  rm -rf conftest*
1802  ac_cv_type_int8_t=no
1803fi
1804rm -f conftest*
1805
1806fi
1807echo "$ac_t""$ac_cv_type_int8_t" 1>&6
1808if test $ac_cv_type_int8_t = no; then
1809  cat >> confdefs.h <<\EOF
1810#define int8_t signed char
1811EOF
1812
1813fi
1814
1815echo $ac_n "checking for int16_t""... $ac_c" 1>&6
1816echo "configure:1817: checking for int16_t" >&5
1817if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
1818  echo $ac_n "(cached) $ac_c" 1>&6
1819else
1820  cat > conftest.$ac_ext <<EOF
1821#line 1822 "configure"
1822#include "confdefs.h"
1823#include <sys/types.h>
1824#if STDC_HEADERS
1825#include <stdlib.h>
1826#include <stddef.h>
1827#endif
1828EOF
1829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1830  egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1831  rm -rf conftest*
1832  ac_cv_type_int16_t=yes
1833else
1834  rm -rf conftest*
1835  ac_cv_type_int16_t=no
1836fi
1837rm -f conftest*
1838
1839fi
1840echo "$ac_t""$ac_cv_type_int16_t" 1>&6
1841if test $ac_cv_type_int16_t = no; then
1842  cat >> confdefs.h <<\EOF
1843#define int16_t short
1844EOF
1845
1846fi
1847
1848echo $ac_n "checking for int32_t""... $ac_c" 1>&6
1849echo "configure:1850: checking for int32_t" >&5
1850if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
1851  echo $ac_n "(cached) $ac_c" 1>&6
1852else
1853  cat > conftest.$ac_ext <<EOF
1854#line 1855 "configure"
1855#include "confdefs.h"
1856#include <sys/types.h>
1857#if STDC_HEADERS
1858#include <stdlib.h>
1859#include <stddef.h>
1860#endif
1861EOF
1862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1863  egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1864  rm -rf conftest*
1865  ac_cv_type_int32_t=yes
1866else
1867  rm -rf conftest*
1868  ac_cv_type_int32_t=no
1869fi
1870rm -f conftest*
1871
1872fi
1873echo "$ac_t""$ac_cv_type_int32_t" 1>&6
1874if test $ac_cv_type_int32_t = no; then
1875  cat >> confdefs.h <<\EOF
1876#define int32_t long
1877EOF
1878
1879fi
1880
1881echo $ac_n "checking for int64_t""... $ac_c" 1>&6
1882echo "configure:1883: checking for int64_t" >&5
1883if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
1884  echo $ac_n "(cached) $ac_c" 1>&6
1885else
1886  cat > conftest.$ac_ext <<EOF
1887#line 1888 "configure"
1888#include "confdefs.h"
1889#include <sys/types.h>
1890#if STDC_HEADERS
1891#include <stdlib.h>
1892#include <stddef.h>
1893#endif
1894EOF
1895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1896  egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1897  rm -rf conftest*
1898  ac_cv_type_int64_t=yes
1899else
1900  rm -rf conftest*
1901  ac_cv_type_int64_t=no
1902fi
1903rm -f conftest*
1904
1905fi
1906echo "$ac_t""$ac_cv_type_int64_t" 1>&6
1907if test $ac_cv_type_int64_t = no; then
1908  cat >> confdefs.h <<\EOF
1909#define int64_t long long
1910EOF
1911
1912fi
1913
1914
1915# Some systems have these in <stdint.h>, just to be difficult...
1916echo $ac_n "checking for uint8_t in <stdint.h>""... $ac_c" 1>&6
1917echo "configure:1918: checking for uint8_t in <stdint.h>" >&5
1918if eval "test \"`echo '$''{'ucl_cv_uint8_t_in_stdint_h'+set}'`\" = set"; then
1919  echo $ac_n "(cached) $ac_c" 1>&6
1920else
1921  cat > conftest.$ac_ext <<EOF
1922#line 1923 "configure"
1923#include "confdefs.h"
1924#include <stdint.h>
1925EOF
1926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1927  egrep "uint8_t" >/dev/null 2>&1; then
1928  rm -rf conftest*
1929  ucl_cv_uint8_t_in_stdint_h=yes
1930else
1931  rm -rf conftest*
1932  ucl_cv_uint8_t_in_stdint_h=no
1933fi
1934rm -f conftest*
1935
1936fi
1937
1938echo "$ac_t""$ucl_cv_uint8_t_in_stdint_h" 1>&6
1939if test $ucl_cv_uint8_t_in_stdint_h = "no"
1940then
1941         echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
1942echo "configure:1943: checking for uint8_t" >&5
1943if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
1944  echo $ac_n "(cached) $ac_c" 1>&6
1945else
1946  cat > conftest.$ac_ext <<EOF
1947#line 1948 "configure"
1948#include "confdefs.h"
1949#include <sys/types.h>
1950#if STDC_HEADERS
1951#include <stdlib.h>
1952#include <stddef.h>
1953#endif
1954EOF
1955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1956  egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1957  rm -rf conftest*
1958  ac_cv_type_uint8_t=yes
1959else
1960  rm -rf conftest*
1961  ac_cv_type_uint8_t=no
1962fi
1963rm -f conftest*
1964
1965fi
1966echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
1967if test $ac_cv_type_uint8_t = no; then
1968  cat >> confdefs.h <<\EOF
1969#define uint8_t unsigned char
1970EOF
1971
1972fi
1973
1974fi
1975
1976echo $ac_n "checking for uint16_t in <stdint.h>""... $ac_c" 1>&6
1977echo "configure:1978: checking for uint16_t in <stdint.h>" >&5
1978if eval "test \"`echo '$''{'ucl_cv_uint16_t_in_stdint_h'+set}'`\" = set"; then
1979  echo $ac_n "(cached) $ac_c" 1>&6
1980else
1981  cat > conftest.$ac_ext <<EOF
1982#line 1983 "configure"
1983#include "confdefs.h"
1984#include <stdint.h>
1985EOF
1986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1987  egrep "uint16_t" >/dev/null 2>&1; then
1988  rm -rf conftest*
1989  ucl_cv_uint16_t_in_stdint_h=yes
1990else
1991  rm -rf conftest*
1992  ucl_cv_uint16_t_in_stdint_h=no
1993fi
1994rm -f conftest*
1995
1996fi
1997
1998echo "$ac_t""$ucl_cv_uint16_t_in_stdint_h" 1>&6
1999if test $ucl_cv_uint16_t_in_stdint_h = "no"
2000then
2001         echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
2002echo "configure:2003: checking for uint16_t" >&5
2003if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
2004  echo $ac_n "(cached) $ac_c" 1>&6
2005else
2006  cat > conftest.$ac_ext <<EOF
2007#line 2008 "configure"
2008#include "confdefs.h"
2009#include <sys/types.h>
2010#if STDC_HEADERS
2011#include <stdlib.h>
2012#include <stddef.h>
2013#endif
2014EOF
2015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2016  egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2017  rm -rf conftest*
2018  ac_cv_type_uint16_t=yes
2019else
2020  rm -rf conftest*
2021  ac_cv_type_uint16_t=no
2022fi
2023rm -f conftest*
2024
2025fi
2026echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
2027if test $ac_cv_type_uint16_t = no; then
2028  cat >> confdefs.h <<\EOF
2029#define uint16_t unsigned short
2030EOF
2031
2032fi
2033
2034fi
2035
2036echo $ac_n "checking for uint32_t in <stdint.h>""... $ac_c" 1>&6
2037echo "configure:2038: checking for uint32_t in <stdint.h>" >&5
2038if eval "test \"`echo '$''{'ucl_cv_uint32_t_in_stdint_h'+set}'`\" = set"; then
2039  echo $ac_n "(cached) $ac_c" 1>&6
2040else
2041  cat > conftest.$ac_ext <<EOF
2042#line 2043 "configure"
2043#include "confdefs.h"
2044#include <stdint.h>
2045EOF
2046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2047  egrep "uint32_t" >/dev/null 2>&1; then
2048  rm -rf conftest*
2049  ucl_cv_uint32_t_in_stdint_h=yes
2050else
2051  rm -rf conftest*
2052  ucl_cv_uint32_t_in_stdint_h=no
2053fi
2054rm -f conftest*
2055
2056fi
2057
2058echo "$ac_t""$ucl_cv_uint32_t_in_stdint_h" 1>&6
2059if test $ucl_cv_uint32_t_in_stdint_h = "no"
2060then
2061         echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
2062echo "configure:2063: checking for uint32_t" >&5
2063if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
2064  echo $ac_n "(cached) $ac_c" 1>&6
2065else
2066  cat > conftest.$ac_ext <<EOF
2067#line 2068 "configure"
2068#include "confdefs.h"
2069#include <sys/types.h>
2070#if STDC_HEADERS
2071#include <stdlib.h>
2072#include <stddef.h>
2073#endif
2074EOF
2075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2076  egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2077  rm -rf conftest*
2078  ac_cv_type_uint32_t=yes
2079else
2080  rm -rf conftest*
2081  ac_cv_type_uint32_t=no
2082fi
2083rm -f conftest*
2084
2085fi
2086echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
2087if test $ac_cv_type_uint32_t = no; then
2088  cat >> confdefs.h <<\EOF
2089#define uint32_t unsigned int
2090EOF
2091
2092fi
2093
2094fi
2095
2096#
2097# The (?which?) library does not work with unsigned characters.
2098# Force the compiler to use signed chars.
2099if test $ac_cv_c_char_unsigned = yes
2100then
2101        if test "$GCC" = yes
2102        then
2103                CFLAGS="$CFLAGS -fsigned-char"
2104        else
2105                case "$host_os" in
2106                # I don't know when "-signed" was added to IRIX CC
2107                # so err on the side of using it.
2108                irix*)  CFLAGS="$CFLAGS -signed"
2109                        ;;
2110                # need e.g. --force-signed-chars=-signed
2111                *)      { echo "configure: error: I don't know how to force signed chars" 1>&2; exit 1; }
2112                        ;;
2113                esac
2114        fi
2115fi
2116#  __CHAR_UNSIGNED__ will be defined; hope this is OK.
2117
2118# Check for missing functions                                               
2119EXTRA_OBJ=
2120echo $ac_n "checking for usleep""... $ac_c" 1>&6
2121echo "configure:2122: checking for usleep" >&5
2122if eval "test \"`echo '$''{'ac_cv_func_usleep'+set}'`\" = set"; then
2123  echo $ac_n "(cached) $ac_c" 1>&6
2124else
2125  cat > conftest.$ac_ext <<EOF
2126#line 2127 "configure"
2127#include "confdefs.h"
2128/* System header to define __stub macros and hopefully few prototypes,
2129    which can conflict with char usleep(); below.  */
2130#include <assert.h>
2131/* Override any gcc2 internal prototype to avoid an error.  */
2132/* We use char because int might match the return type of a gcc2
2133    builtin and then its argument prototype would still apply.  */
2134char usleep();
2135
2136int main() {
2137
2138/* The GNU C library defines this for functions which it implements
2139    to always fail with ENOSYS.  Some functions are actually named
2140    something starting with __ and the normal name is an alias.  */
2141#if defined (__stub_usleep) || defined (__stub___usleep)
2142choke me
2143#else
2144usleep();
2145#endif
2146
2147; return 0; }
2148EOF
2149if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2150  rm -rf conftest*
2151  eval "ac_cv_func_usleep=yes"
2152else
2153  echo "configure: failed program was:" >&5
2154  cat conftest.$ac_ext >&5
2155  rm -rf conftest*
2156  eval "ac_cv_func_usleep=no"
2157fi
2158rm -f conftest*
2159fi
2160
2161if eval "test \"`echo '$ac_cv_func_'usleep`\" = yes"; then
2162  echo "$ac_t""yes" 1>&6
2163  :
2164else
2165  echo "$ac_t""no" 1>&6
2166EXTRAOBJ="$EXTRA_OBJ usleep.o"
2167         cat >> confdefs.h <<\EOF
2168#define NEED_USLEEP 1
2169EOF
2170
2171fi
2172
2173
2174
2175
2176# Audio device selection,  derived from host type.  Could be smart and probe
2177# what's there...                                                           
2178
2179AU_INC=
2180AU_LIB=
2181AU_OBJ=
2182
2183case "$target" in
2184*solaris*)
2185        SUNAUDIOHOME="/usr/demo/SOUND"
2186        O1KHOME="/opt/SUNWo1kp"
2187        # Check whether --with-sun-audio or --without-sun-audio was given.
2188if test "${with_sun_audio+set}" = set; then
2189  withval="$with_sun_audio"
2190  SUNAUDIOHOME=$withval
2191fi
2192
2193        AU_INC="$AU_INC -I$SUNAUDIOHOME/include"
2194        AU_OBJ="$AU_OBJ auddev_sparc.o"
2195        cat >> confdefs.h <<\EOF
2196#define HAVE_SPARC_AUDIO 1
2197EOF
2198
2199        # Check whether --with-osprey-audio or --without-osprey-audio was given.
2200if test "${with_osprey_audio+set}" = set; then
2201  withval="$with_osprey_audio"
2202  O1KHOME=$withval
2203fi
2204
2205        ac_safe=`echo "$O1KHOME/include/oti_audio_device.h" | sed 'y%./+-%__p_%'`
2206echo $ac_n "checking for $O1KHOME/include/oti_audio_device.h""... $ac_c" 1>&6
2207echo "configure:2208: checking for $O1KHOME/include/oti_audio_device.h" >&5
2208if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2209  echo $ac_n "(cached) $ac_c" 1>&6
2210else
2211  cat > conftest.$ac_ext <<EOF
2212#line 2213 "configure"
2213#include "confdefs.h"
2214#include <$O1KHOME/include/oti_audio_device.h>
2215EOF
2216ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2217{ (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2218ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2219if test -z "$ac_err"; then
2220  rm -rf conftest*
2221  eval "ac_cv_header_$ac_safe=yes"
2222else
2223  echo "$ac_err" >&5
2224  echo "configure: failed program was:" >&5
2225  cat conftest.$ac_ext >&5
2226  rm -rf conftest*
2227  eval "ac_cv_header_$ac_safe=no"
2228fi
2229rm -f conftest*
2230fi
2231if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2232  echo "$ac_t""yes" 1>&6
2233  AU_INC="$AU_INC -I$O1KHOME/include"
2234                 AU_OBJ="$AU_OBJ auddev_osprey.o"
2235                 cat >> confdefs.h <<\EOF
2236#define HAVE_OSPREY_AUDIO 1
2237EOF
2238
2239else
2240  echo "$ac_t""no" 1>&6
2241fi
2242
2243        ;;
2244*linux*)
2245        AU_OBJ="$AU_OBJ auddev_oss.o"
2246        AU_INC="/usr/include/sys"
2247        cat >> confdefs.h <<\EOF
2248#define HAVE_OSS_AUDIO 1
2249EOF
2250
2251        ;;
2252*freebsd*)
2253        # PC Speaker device on FreeBSD
2254        for ac_hdr in machine/pcaudioio.h
2255do
2256ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2257echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2258echo "configure:2259: checking for $ac_hdr" >&5
2259if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2260  echo $ac_n "(cached) $ac_c" 1>&6
2261else
2262  cat > conftest.$ac_ext <<EOF
2263#line 2264 "configure"
2264#include "confdefs.h"
2265#include <$ac_hdr>
2266EOF
2267ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268{ (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2269ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2270if test -z "$ac_err"; then
2271  rm -rf conftest*
2272  eval "ac_cv_header_$ac_safe=yes"
2273else
2274  echo "$ac_err" >&5
2275  echo "configure: failed program was:" >&5
2276  cat conftest.$ac_ext >&5
2277  rm -rf conftest*
2278  eval "ac_cv_header_$ac_safe=no"
2279fi
2280rm -f conftest*
2281fi
2282if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2283  echo "$ac_t""yes" 1>&6
2284    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2285  cat >> confdefs.h <<EOF
2286#define $ac_tr_hdr 1
2287EOF
2288 
2289else
2290  echo "$ac_t""no" 1>&6
2291fi
2292done
2293
2294        # Luigi's driver
2295        AU_OBJ="$AU_OBJ auddev_luigi.o"
2296        cat >> confdefs.h <<\EOF
2297#define HAVE_LUIGI_AUDIO 1
2298EOF
2299
2300        ;;
2301*netbsd*)
2302        AU_OBJ="$AUDIOBJ auddev_netbsd.o"
2303        cat >> confdefs.h <<\EOF
2304#define HAVE_NETBSD_AUDIO 1
2305EOF
2306
2307        ;;
2308*irix*)
2309        AU_LIB="$AU_LIB -laudio"
2310        AU_OBJ="$AU_OBJ auddev_sgi.o"
2311        cat >> confdefs.h <<\EOF
2312#define HAVE_SGI_AUDIO 1
2313EOF
2314
2315        ;;
2316*hpux*)
2317        AU_LIB="$AU_LIB -lAlib"
2318        AU_OBJ="$AU_OBJ auddev_hpux_raw.o"
2319        cat >> confdefs.h <<\EOF
2320#define HAVE_HP_AUDIO 1
2321EOF
2322
2323        ;;
2324esac
2325
2326
2327
2328
2329
2330# X
2331#------------------------------------------------------------------------------
2332# Use autoconf inbuilt X location.  Works v. nicely.  Substitution of X vars
2333# comes after broken X11 header check and attempted fix.
2334#------------------------------------------------------------------------------
2335# If we find X, set shell vars x_includes and x_libraries to the
2336# paths, otherwise set no_x=yes.
2337# Uses ac_ vars as temps to allow command line to override cache and checks.
2338# --without-x overrides everything else, but does not touch the cache.
2339echo $ac_n "checking for X""... $ac_c" 1>&6
2340echo "configure:2341: checking for X" >&5
2341
2342# Check whether --with-x or --without-x was given.
2343if test "${with_x+set}" = set; then
2344  withval="$with_x"
2345  :
2346fi
2347
2348# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2349if test "x$with_x" = xno; then
2350  # The user explicitly disabled X.
2351  have_x=disabled
2352else
2353  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2354    # Both variables are already set.
2355    have_x=yes
2356  else
2357if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2358  echo $ac_n "(cached) $ac_c" 1>&6
2359else
2360  # One or both of the vars are not set, and there is no cached value.
2361ac_x_includes=NO ac_x_libraries=NO
2362rm -fr conftestdir
2363if mkdir conftestdir; then
2364  cd conftestdir
2365  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2366  cat > Imakefile <<'EOF'
2367acfindx:
2368        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2369EOF
2370  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2371    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2372    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2373    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2374    for ac_extension in a so sl; do
2375      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2376        test -f $ac_im_libdir/libX11.$ac_extension; then
2377        ac_im_usrlibdir=$ac_im_libdir; break
2378      fi
2379    done
2380    # Screen out bogus values from the imake configuration.  They are
2381    # bogus both because they are the default anyway, and because
2382    # using them would break gcc on systems where it needs fixed includes.
2383    case "$ac_im_incroot" in
2384        /usr/include) ;;
2385        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2386    esac
2387    case "$ac_im_usrlibdir" in
2388        /usr/lib | /lib) ;;
2389        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2390    esac
2391  fi
2392  cd ..
2393  rm -fr conftestdir
2394fi
2395
2396if test "$ac_x_includes" = NO; then
2397  # Guess where to find include files, by looking for this one X11 .h file.
2398  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2399
2400  # First, try using that file with no special directory specified.
2401cat > conftest.$ac_ext <<EOF
2402#line 2403 "configure"
2403#include "confdefs.h"
2404#include <$x_direct_test_include>
2405EOF
2406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2407{ (eval echo configure:2408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2408ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2409if test -z "$ac_err"; then
2410  rm -rf conftest*
2411  # We can compile using X headers with no special include directory.
2412ac_x_includes=
2413else
2414  echo "$ac_err" >&5
2415  echo "configure: failed program was:" >&5
2416  cat conftest.$ac_ext >&5
2417  rm -rf conftest*
2418  # Look for the header file in a standard set of common directories.
2419# Check X11 before X11Rn because it is often a symlink to the current release.
2420  for ac_dir in               \
2421    /usr/X11/include          \
2422    /usr/X11R6/include        \
2423    /usr/X11R5/include        \
2424    /usr/X11R4/include        \
2425                              \
2426    /usr/include/X11          \
2427    /usr/include/X11R6        \
2428    /usr/include/X11R5        \
2429    /usr/include/X11R4        \
2430                              \
2431    /usr/local/X11/include    \
2432    /usr/local/X11R6/include  \
2433    /usr/local/X11R5/include  \
2434    /usr/local/X11R4/include  \
2435                              \
2436    /usr/local/include/X11    \
2437    /usr/local/include/X11R6  \
2438    /usr/local/include/X11R5  \
2439    /usr/local/include/X11R4  \
2440                              \
2441    /usr/X386/include         \
2442    /usr/x386/include         \
2443    /usr/XFree86/include/X11  \
2444                              \
2445    /usr/include              \
2446    /usr/local/include        \
2447    /usr/unsupported/include  \
2448    /usr/athena/include       \
2449    /usr/local/x11r5/include  \
2450    /usr/lpp/Xamples/include  \
2451                              \
2452    /usr/openwin/include      \
2453    /usr/openwin/share/include \
2454    ; \
2455  do
2456    if test -r "$ac_dir/$x_direct_test_include"; then
2457      ac_x_includes=$ac_dir
2458      break
2459    fi
2460  done
2461fi
2462rm -f conftest*
2463fi # $ac_x_includes = NO
2464
2465if test "$ac_x_libraries" = NO; then
2466  # Check for the libraries.
2467
2468  test -z "$x_direct_test_library" && x_direct_test_library=Xt
2469  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2470
2471  # See if we find them without any special options.
2472  # Don't add to $LIBS permanently.
2473  ac_save_LIBS="$LIBS"
2474  LIBS="-l$x_direct_test_library $LIBS"
2475cat > conftest.$ac_ext <<EOF
2476#line 2477 "configure"
2477#include "confdefs.h"
2478
2479int main() {
2480${x_direct_test_function}()
2481; return 0; }
2482EOF
2483if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484  rm -rf conftest*
2485  LIBS="$ac_save_LIBS"
2486# We can link X programs with no special library path.
2487ac_x_libraries=
2488else
2489  echo "configure: failed program was:" >&5
2490  cat conftest.$ac_ext >&5
2491  rm -rf conftest*
2492  LIBS="$ac_save_LIBS"
2493# First see if replacing the include by lib works.
2494# Check X11 before X11Rn because it is often a symlink to the current release.
2495for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2496    /usr/X11/lib          \
2497    /usr/X11R6/lib        \
2498    /usr/X11R5/lib        \
2499    /usr/X11R4/lib        \
2500                          \
2501    /usr/lib/X11          \
2502    /usr/lib/X11R6        \
2503    /usr/lib/X11R5        \
2504    /usr/lib/X11R4        \
2505                          \
2506    /usr/local/X11/lib    \
2507    /usr/local/X11R6/lib  \
2508    /usr/local/X11R5/lib  \
2509    /usr/local/X11R4/lib  \
2510                          \
2511    /usr/local/lib/X11    \
2512    /usr/local/lib/X11R6  \
2513    /usr/local/lib/X11R5  \
2514    /usr/local/lib/X11R4  \
2515                          \
2516    /usr/X386/lib         \
2517    /usr/x386/lib         \
2518    /usr/XFree86/lib/X11  \
2519                          \
2520    /usr/lib              \
2521    /usr/local/lib        \
2522    /usr/unsupported/lib  \
2523    /usr/athena/lib       \
2524    /usr/local/x11r5/lib  \
2525    /usr/lpp/Xamples/lib  \
2526    /lib/usr/lib/X11      \
2527                          \
2528    /usr/openwin/lib      \
2529    /usr/openwin/share/lib \
2530    ; \
2531do
2532  for ac_extension in a so sl; do
2533    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2534      ac_x_libraries=$ac_dir
2535      break 2
2536    fi
2537  done
2538done
2539fi
2540rm -f conftest*
2541fi # $ac_x_libraries = NO
2542
2543if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2544  # Didn't find X anywhere.  Cache the known absence of X.
2545  ac_cv_have_x="have_x=no"
2546else
2547  # Record where we found X for the cache.
2548  ac_cv_have_x="have_x=yes \
2549                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2550fi
2551fi
2552  fi
2553  eval "$ac_cv_have_x"
2554fi # $with_x != no
2555
2556if test "$have_x" != yes; then
2557  echo "$ac_t""$have_x" 1>&6
2558  no_x=yes
2559else
2560  # If each of the values was on the command line, it overrides each guess.
2561  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2562  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2563  # Update the cache value to reflect the command line values.
2564  ac_cv_have_x="have_x=yes \
2565                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2566  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2567fi
2568
2569if test "$no_x" = yes; then
2570  # Not all programs may use this symbol, but it does not hurt to define it.
2571  cat >> confdefs.h <<\EOF
2572#define X_DISPLAY_MISSING 1
2573EOF
2574
2575  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2576else
2577  if test -n "$x_includes"; then
2578    X_CFLAGS="$X_CFLAGS -I$x_includes"
2579  fi
2580
2581  # It would also be nice to do this for all -L options, not just this one.
2582  if test -n "$x_libraries"; then
2583    X_LIBS="$X_LIBS -L$x_libraries"
2584    # For Solaris; some versions of Sun CC require a space after -R and
2585    # others require no space.  Words are not sufficient . . . .
2586    case "`(uname -sr) 2>/dev/null`" in
2587    "SunOS 5"*)
2588      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2589echo "configure:2590: checking whether -R must be followed by a space" >&5
2590      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2591      cat > conftest.$ac_ext <<EOF
2592#line 2593 "configure"
2593#include "confdefs.h"
2594
2595int main() {
2596
2597; return 0; }
2598EOF
2599if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2600  rm -rf conftest*
2601  ac_R_nospace=yes
2602else
2603  echo "configure: failed program was:" >&5
2604  cat conftest.$ac_ext >&5
2605  rm -rf conftest*
2606  ac_R_nospace=no
2607fi
2608rm -f conftest*
2609      if test $ac_R_nospace = yes; then
2610        echo "$ac_t""no" 1>&6
2611        X_LIBS="$X_LIBS -R$x_libraries"
2612      else
2613        LIBS="$ac_xsave_LIBS -R $x_libraries"
2614        cat > conftest.$ac_ext <<EOF
2615#line 2616 "configure"
2616#include "confdefs.h"
2617
2618int main() {
2619
2620; return 0; }
2621EOF
2622if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623  rm -rf conftest*
2624  ac_R_space=yes
2625else
2626  echo "configure: failed program was:" >&5
2627  cat conftest.$ac_ext >&5
2628  rm -rf conftest*
2629  ac_R_space=no
2630fi
2631rm -f conftest*
2632        if test $ac_R_space = yes; then
2633          echo "$ac_t""yes" 1>&6
2634          X_LIBS="$X_LIBS -R $x_libraries"
2635        else
2636          echo "$ac_t""neither works" 1>&6
2637        fi
2638      fi
2639      LIBS="$ac_xsave_LIBS"
2640    esac
2641  fi
2642
2643  # Check for system-dependent libraries X programs must link with.
2644  # Do this before checking for the system-independent R6 libraries
2645  # (-lICE), since we may need -lsocket or whatever for X linking.
2646
2647  if test "$ISC" = yes; then
2648    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2649  else
2650    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2651    # libraries were built with DECnet support.  And karl@cs.umb.edu says
2652    # the Alpha needs dnet_stub (dnet does not exist).
2653    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2654echo "configure:2655: checking for dnet_ntoa in -ldnet" >&5
2655ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2656if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2657  echo $ac_n "(cached) $ac_c" 1>&6
2658else
2659  ac_save_LIBS="$LIBS"
2660LIBS="-ldnet  $LIBS"
2661cat > conftest.$ac_ext <<EOF
2662#line 2663 "configure"
2663#include "confdefs.h"
2664/* Override any gcc2 internal prototype to avoid an error.  */
2665/* We use char because int might match the return type of a gcc2
2666    builtin and then its argument prototype would still apply.  */
2667char dnet_ntoa();
2668
2669int main() {
2670dnet_ntoa()
2671; return 0; }
2672EOF
2673if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2674  rm -rf conftest*
2675  eval "ac_cv_lib_$ac_lib_var=yes"
2676else
2677  echo "configure: failed program was:" >&5
2678  cat conftest.$ac_ext >&5
2679  rm -rf conftest*
2680  eval "ac_cv_lib_$ac_lib_var=no"
2681fi
2682rm -f conftest*
2683LIBS="$ac_save_LIBS"
2684
2685fi
2686if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2687  echo "$ac_t""yes" 1>&6
2688  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2689else
2690  echo "$ac_t""no" 1>&6
2691fi
2692
2693    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2694      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2695echo "configure:2696: checking for dnet_ntoa in -ldnet_stub" >&5
2696ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2697if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698  echo $ac_n "(cached) $ac_c" 1>&6
2699else
2700  ac_save_LIBS="$LIBS"
2701LIBS="-ldnet_stub  $LIBS"
2702cat > conftest.$ac_ext <<EOF
2703#line 2704 "configure"
2704#include "confdefs.h"
2705/* Override any gcc2 internal prototype to avoid an error.  */
2706/* We use char because int might match the return type of a gcc2
2707    builtin and then its argument prototype would still apply.  */
2708char dnet_ntoa();
2709
2710int main() {
2711dnet_ntoa()
2712; return 0; }
2713EOF
2714if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2715  rm -rf conftest*
2716  eval "ac_cv_lib_$ac_lib_var=yes"
2717else
2718  echo "configure: failed program was:" >&5
2719  cat conftest.$ac_ext >&5
2720  rm -rf conftest*
2721  eval "ac_cv_lib_$ac_lib_var=no"
2722fi
2723rm -f conftest*
2724LIBS="$ac_save_LIBS"
2725
2726fi
2727if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728  echo "$ac_t""yes" 1>&6
2729  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2730else
2731  echo "$ac_t""no" 1>&6
2732fi
2733
2734    fi
2735
2736    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2737    # to get the SysV transport functions.
2738    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2739    # needs -lnsl.
2740    # The nsl library prevents programs from opening the X display
2741    # on Irix 5.2, according to dickey@clark.net.
2742    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2743echo "configure:2744: checking for gethostbyname" >&5
2744if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2745  echo $ac_n "(cached) $ac_c" 1>&6
2746else
2747  cat > conftest.$ac_ext <<EOF
2748#line 2749 "configure"
2749#include "confdefs.h"
2750/* System header to define __stub macros and hopefully few prototypes,
2751    which can conflict with char gethostbyname(); below.  */
2752#include <assert.h>
2753/* Override any gcc2 internal prototype to avoid an error.  */
2754/* We use char because int might match the return type of a gcc2
2755    builtin and then its argument prototype would still apply.  */
2756char gethostbyname();
2757
2758int main() {
2759
2760/* The GNU C library defines this for functions which it implements
2761    to always fail with ENOSYS.  Some functions are actually named
2762    something starting with __ and the normal name is an alias.  */
2763#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2764choke me
2765#else
2766gethostbyname();
2767#endif
2768
2769; return 0; }
2770EOF
2771if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2772  rm -rf conftest*
2773  eval "ac_cv_func_gethostbyname=yes"
2774else
2775  echo "configure: failed program was:" >&5
2776  cat conftest.$ac_ext >&5
2777  rm -rf conftest*
2778  eval "ac_cv_func_gethostbyname=no"
2779fi
2780rm -f conftest*
2781fi
2782
2783if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2784  echo "$ac_t""yes" 1>&6
2785  :
2786else
2787  echo "$ac_t""no" 1>&6
2788fi
2789
2790    if test $ac_cv_func_gethostbyname = no; then
2791      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2792echo "configure:2793: checking for gethostbyname in -lnsl" >&5
2793ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795  echo $ac_n "(cached) $ac_c" 1>&6
2796else
2797  ac_save_LIBS="$LIBS"
2798LIBS="-lnsl  $LIBS"
2799cat > conftest.$ac_ext <<EOF
2800#line 2801 "configure"
2801#include "confdefs.h"
2802/* Override any gcc2 internal prototype to avoid an error.  */
2803/* We use char because int might match the return type of a gcc2
2804    builtin and then its argument prototype would still apply.  */
2805char gethostbyname();
2806
2807int main() {
2808gethostbyname()
2809; return 0; }
2810EOF
2811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812  rm -rf conftest*
2813  eval "ac_cv_lib_$ac_lib_var=yes"
2814else
2815  echo "configure: failed program was:" >&5
2816  cat conftest.$ac_ext >&5
2817  rm -rf conftest*
2818  eval "ac_cv_lib_$ac_lib_var=no"
2819fi
2820rm -f conftest*
2821LIBS="$ac_save_LIBS"
2822
2823fi
2824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825  echo "$ac_t""yes" 1>&6
2826  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2827else
2828  echo "$ac_t""no" 1>&6
2829fi
2830
2831    fi
2832
2833    # lieder@skyler.mavd.honeywell.com says without -lsocket,
2834    # socket/setsockopt and other routines are undefined under SCO ODT
2835    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2836    # on later versions), says simon@lia.di.epfl.ch: it contains
2837    # gethostby* variants that don't use the nameserver (or something).
2838    # -lsocket must be given before -lnsl if both are needed.
2839    # We assume that if connect needs -lnsl, so does gethostbyname.
2840    echo $ac_n "checking for connect""... $ac_c" 1>&6
2841echo "configure:2842: checking for connect" >&5
2842if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2843  echo $ac_n "(cached) $ac_c" 1>&6
2844else
2845  cat > conftest.$ac_ext <<EOF
2846#line 2847 "configure"
2847#include "confdefs.h"
2848/* System header to define __stub macros and hopefully few prototypes,
2849    which can conflict with char connect(); below.  */
2850#include <assert.h>
2851/* Override any gcc2 internal prototype to avoid an error.  */
2852/* We use char because int might match the return type of a gcc2
2853    builtin and then its argument prototype would still apply.  */
2854char connect();
2855
2856int main() {
2857
2858/* The GNU C library defines this for functions which it implements
2859    to always fail with ENOSYS.  Some functions are actually named
2860    something starting with __ and the normal name is an alias.  */
2861#if defined (__stub_connect) || defined (__stub___connect)
2862choke me
2863#else
2864connect();
2865#endif
2866
2867; return 0; }
2868EOF
2869if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2870  rm -rf conftest*
2871  eval "ac_cv_func_connect=yes"
2872else
2873  echo "configure: failed program was:" >&5
2874  cat conftest.$ac_ext >&5
2875  rm -rf conftest*
2876  eval "ac_cv_func_connect=no"
2877fi
2878rm -f conftest*
2879fi
2880
2881if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2882  echo "$ac_t""yes" 1>&6
2883  :
2884else
2885  echo "$ac_t""no" 1>&6
2886fi
2887
2888    if test $ac_cv_func_connect = no; then
2889      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2890echo "configure:2891: checking for connect in -lsocket" >&5
2891ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2892if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2893  echo $ac_n "(cached) $ac_c" 1>&6
2894else
2895  ac_save_LIBS="$LIBS"
2896LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2897cat > conftest.$ac_ext <<EOF
2898#line 2899 "configure"
2899#include "confdefs.h"
2900/* Override any gcc2 internal prototype to avoid an error.  */
2901/* We use char because int might match the return type of a gcc2
2902    builtin and then its argument prototype would still apply.  */
2903char connect();
2904
2905int main() {
2906connect()
2907; return 0; }
2908EOF
2909if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2910  rm -rf conftest*
2911  eval "ac_cv_lib_$ac_lib_var=yes"
2912else
2913  echo "configure: failed program was:" >&5
2914  cat conftest.$ac_ext >&5
2915  rm -rf conftest*
2916  eval "ac_cv_lib_$ac_lib_var=no"
2917fi
2918rm -f conftest*
2919LIBS="$ac_save_LIBS"
2920
2921fi
2922if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2923  echo "$ac_t""yes" 1>&6
2924  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2925else
2926  echo "$ac_t""no" 1>&6
2927fi
2928
2929    fi
2930
2931    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2932    echo $ac_n "checking for remove""... $ac_c" 1>&6
2933echo "configure:2934: checking for remove" >&5
2934if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2935  echo $ac_n "(cached) $ac_c" 1>&6
2936else
2937  cat > conftest.$ac_ext <<EOF
2938#line 2939 "configure"
2939#include "confdefs.h"
2940/* System header to define __stub macros and hopefully few prototypes,
2941    which can conflict with char remove(); below.  */
2942#include <assert.h>
2943/* Override any gcc2 internal prototype to avoid an error.  */
2944/* We use char because int might match the return type of a gcc2
2945    builtin and then its argument prototype would still apply.  */
2946char remove();
2947
2948int main() {
2949
2950/* The GNU C library defines this for functions which it implements
2951    to always fail with ENOSYS.  Some functions are actually named
2952    something starting with __ and the normal name is an alias.  */
2953#if defined (__stub_remove) || defined (__stub___remove)
2954choke me
2955#else
2956remove();
2957#endif
2958
2959; return 0; }
2960EOF
2961if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2962  rm -rf conftest*
2963  eval "ac_cv_func_remove=yes"
2964else
2965  echo "configure: failed program was:" >&5
2966  cat conftest.$ac_ext >&5
2967  rm -rf conftest*
2968  eval "ac_cv_func_remove=no"
2969fi
2970rm -f conftest*
2971fi
2972
2973if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2974  echo "$ac_t""yes" 1>&6
2975  :
2976else
2977  echo "$ac_t""no" 1>&6
2978fi
2979
2980    if test $ac_cv_func_remove = no; then
2981      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2982echo "configure:2983: checking for remove in -lposix" >&5
2983ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2985  echo $ac_n "(cached) $ac_c" 1>&6
2986else
2987  ac_save_LIBS="$LIBS"
2988LIBS="-lposix  $LIBS"
2989cat > conftest.$ac_ext <<EOF
2990#line 2991 "configure"
2991#include "confdefs.h"
2992/* Override any gcc2 internal prototype to avoid an error.  */
2993/* We use char because int might match the return type of a gcc2
2994    builtin and then its argument prototype would still apply.  */
2995char remove();
2996
2997int main() {
2998remove()
2999; return 0; }
3000EOF
3001if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3002  rm -rf conftest*
3003  eval "ac_cv_lib_$ac_lib_var=yes"
3004else
3005  echo "configure: failed program was:" >&5
3006  cat conftest.$ac_ext >&5
3007  rm -rf conftest*
3008  eval "ac_cv_lib_$ac_lib_var=no"
3009fi
3010rm -f conftest*
3011LIBS="$ac_save_LIBS"
3012
3013fi
3014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3015  echo "$ac_t""yes" 1>&6
3016  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3017else
3018  echo "$ac_t""no" 1>&6
3019fi
3020
3021    fi
3022
3023    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3024    echo $ac_n "checking for shmat""... $ac_c" 1>&6
3025echo "configure:3026: checking for shmat" >&5
3026if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3027  echo $ac_n "(cached) $ac_c" 1>&6
3028else
3029  cat > conftest.$ac_ext <<EOF
3030#line 3031 "configure"
3031#include "confdefs.h"
3032/* System header to define __stub macros and hopefully few prototypes,
3033    which can conflict with char shmat(); below.  */
3034#include <assert.h>
3035/* Override any gcc2 internal prototype to avoid an error.  */
3036/* We use char because int might match the return type of a gcc2
3037    builtin and then its argument prototype would still apply.  */
3038char shmat();
3039
3040int main() {
3041
3042/* The GNU C library defines this for functions which it implements
3043    to always fail with ENOSYS.  Some functions are actually named
3044    something starting with __ and the normal name is an alias.  */
3045#if defined (__stub_shmat) || defined (__stub___shmat)
3046choke me
3047#else
3048shmat();
3049#endif
3050
3051; return 0; }
3052EOF
3053if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3054  rm -rf conftest*
3055  eval "ac_cv_func_shmat=yes"
3056else
3057  echo "configure: failed program was:" >&5
3058  cat conftest.$ac_ext >&5
3059  rm -rf conftest*
3060  eval "ac_cv_func_shmat=no"
3061fi
3062rm -f conftest*
3063fi
3064
3065if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3066  echo "$ac_t""yes" 1>&6
3067  :
3068else
3069  echo "$ac_t""no" 1>&6
3070fi
3071
3072    if test $ac_cv_func_shmat = no; then
3073      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3074echo "configure:3075: checking for shmat in -lipc" >&5
3075ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077  echo $ac_n "(cached) $ac_c" 1>&6
3078else
3079  ac_save_LIBS="$LIBS"
3080LIBS="-lipc  $LIBS"
3081cat > conftest.$ac_ext <<EOF
3082#line 3083 "configure"
3083#include "confdefs.h"
3084/* Override any gcc2 internal prototype to avoid an error.  */
3085/* We use char because int might match the return type of a gcc2
3086    builtin and then its argument prototype would still apply.  */
3087char shmat();
3088
3089int main() {
3090shmat()
3091; return 0; }
3092EOF
3093if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094  rm -rf conftest*
3095  eval "ac_cv_lib_$ac_lib_var=yes"
3096else
3097  echo "configure: failed program was:" >&5
3098  cat conftest.$ac_ext >&5
3099  rm -rf conftest*
3100  eval "ac_cv_lib_$ac_lib_var=no"
3101fi
3102rm -f conftest*
3103LIBS="$ac_save_LIBS"
3104
3105fi
3106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107  echo "$ac_t""yes" 1>&6
3108  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3109else
3110  echo "$ac_t""no" 1>&6
3111fi
3112
3113    fi
3114  fi
3115
3116  # Check for libraries that X11R6 Xt/Xaw programs need.
3117  ac_save_LDFLAGS="$LDFLAGS"
3118  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3119  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3120  # check for ICE first), but we must link in the order -lSM -lICE or
3121  # we get undefined symbols.  So assume we have SM if we have ICE.
3122  # These have to be linked with before -lX11, unlike the other
3123  # libraries we check for below, so use a different variable.
3124  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3125  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3126echo "configure:3127: checking for IceConnectionNumber in -lICE" >&5
3127ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3128if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3129  echo $ac_n "(cached) $ac_c" 1>&6
3130else
3131  ac_save_LIBS="$LIBS"
3132LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3133cat > conftest.$ac_ext <<EOF
3134#line 3135 "configure"
3135#include "confdefs.h"
3136/* Override any gcc2 internal prototype to avoid an error.  */
3137/* We use char because int might match the return type of a gcc2
3138    builtin and then its argument prototype would still apply.  */
3139char IceConnectionNumber();
3140
3141int main() {
3142IceConnectionNumber()
3143; return 0; }
3144EOF
3145if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146  rm -rf conftest*
3147  eval "ac_cv_lib_$ac_lib_var=yes"
3148else
3149  echo "configure: failed program was:" >&5
3150  cat conftest.$ac_ext >&5
3151  rm -rf conftest*
3152  eval "ac_cv_lib_$ac_lib_var=no"
3153fi
3154rm -f conftest*
3155LIBS="$ac_save_LIBS"
3156
3157fi
3158if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3159  echo "$ac_t""yes" 1>&6
3160  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3161else
3162  echo "$ac_t""no" 1>&6
3163fi
3164
3165  LDFLAGS="$ac_save_LDFLAGS"
3166
3167fi
3168
3169
3170#------------------------------------------------------------------------------
3171# Check if X headers are broken.  GCC 2.95 and up reject headers that don't
3172# have omit types, X11 headers have implicit int declarations on some systems
3173# (e.g. Solaris).
3174#------------------------------------------------------------------------------
3175echo $ac_n "checking whether X11 headers are broken""... $ac_c" 1>&6
3176echo "configure:3177: checking whether X11 headers are broken" >&5
3177if eval "test \"`echo '$''{'x11_cv_broken_headers'+set}'`\" = set"; then
3178  echo $ac_n "(cached) $ac_c" 1>&6
3179else
3180 
3181                SAVED_CFLAGS=$CFLAGS
3182                CFLAGS="$X_CFLAGS $CFLAGS"
3183                cat > conftest.$ac_ext <<EOF
3184#line 3185 "configure"
3185#include "confdefs.h"
3186#include <X11/Xlib.h>
3187                #include <X11/Xutil.h>
3188int main() {
3189return 0
3190; return 0; }
3191EOF
3192if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193  rm -rf conftest*
3194  x11_cv_broken_headers=no
3195else
3196  echo "configure: failed program was:" >&5
3197  cat conftest.$ac_ext >&5
3198  rm -rf conftest*
3199  x11_cv_broken_headers=yes
3200fi
3201rm -f conftest*
3202                CFLAGS=$SAVED_CFLAGS
3203       
3204fi
3205
3206echo "$ac_t""$x11_cv_broken_headers" 1>&6;
3207#------------------------------------------------------------------------------
3208# Attempt to make local copies of headers.
3209#------------------------------------------------------------------------------
3210if test $x11_cv_broken_headers=yes ; then
3211        if test ! -d ./X11 ; then
3212                mkdir ./X11
3213                for header in Xlib.h Xutil.h
3214                do
3215                        cat $x_includes/X11/$header | sed 's/^\(extern\) \([A-Za-z0-9]*($\)/\1 int \2/' > X11/$header
3216                        echo "creating ./X11/$header"
3217                done
3218        fi
3219        X_CFLAGS="-I. $X_CFLAGS"
3220fi
3221
3222
3223
3224
3225
3226
3227# TCL/TK
3228#------------------------------------------------------------------------------
3229# We could be dealing with a source installation or a full installation.
3230# Expect a source installation to have headers in TCL8_HOME/generic and libs in
3231# TCL8_HOME/unix.  A full installation should have headers in
3232# INSTDIR/include/tcl8.0, or INSTDIR/include, and have libraries be in
3233# INSTDIR/lib.
3234#------------------------------------------------------------------------------
3235PARENT=`echo $PWD | sed -e 's%/[^/]*$%%'`
3236TCL_INC=${PARENT}/tcl-8.0
3237TCL_LIB=${PARENT}/tcl-8.0
3238
3239# Check whether --with-tcl or --without-tcl was given.
3240if test "${with_tcl+set}" = set; then
3241  withval="$with_tcl"
3242  TCL_INC=$withval
3243         TCL_LIB=$withval
3244fi
3245
3246
3247# Depending on config expect tcl.h to be tcl source dir or include path
3248for i in $TCL_INC/generic $TCL_INC/include/tcl8.0 $TCL_INC/include $TCL_INC
3249do
3250        if test -d $i ; then
3251                TCL_INC=$i
3252                break
3253        fi
3254done
3255
3256ac_safe=`echo "${TCL_INC}/tcl.h" | sed 'y%./+-%__p_%'`
3257echo $ac_n "checking for ${TCL_INC}/tcl.h""... $ac_c" 1>&6
3258echo "configure:3259: checking for ${TCL_INC}/tcl.h" >&5
3259if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3260  echo $ac_n "(cached) $ac_c" 1>&6
3261else
3262  cat > conftest.$ac_ext <<EOF
3263#line 3264 "configure"
3264#include "confdefs.h"
3265#include <${TCL_INC}/tcl.h>
3266EOF
3267ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3268{ (eval echo configure:3269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3269ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3270if test -z "$ac_err"; then
3271  rm -rf conftest*
3272  eval "ac_cv_header_$ac_safe=yes"
3273else
3274  echo "$ac_err" >&5
3275  echo "configure: failed program was:" >&5
3276  cat conftest.$ac_ext >&5
3277  rm -rf conftest*
3278  eval "ac_cv_header_$ac_safe=no"
3279fi
3280rm -f conftest*
3281fi
3282if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3283  echo "$ac_t""yes" 1>&6
3284  TCL_INC=-I${TCL_INC}
3285else
3286  echo "$ac_t""no" 1>&6
3287TCL_INC=no
3288fi
3289
3290
3291if test "$TCL_INC" = no
3292then
3293        echo "Could not find tcl.h.  One of the following halted progress:"
3294        echo "   (a) Tcl is not installed."
3295        echo "   (b) Tcl's location was mis-specified, or not specified (--with-tcl=DIR)."
3296        echo "   (c) this script failed to see it (please inform rat-trap@cs.ucl.ac.uk)."
3297        exit
3298fi
3299
3300# Guess most probable tcl lib location
3301for i in $TCL_LIB/unix $TCL_LIB/lib $TCL_LIB
3302do
3303        if test -d $i ; then
3304                TCL_LIB=$i
3305                break
3306        fi
3307done
3308
3309SAVED_LIBS=$LIBS
3310LIBS=""
3311FOUND_TCL_LIB=no
3312
3313echo $ac_n "checking for library containing Tcl_Init""... $ac_c" 1>&6
3314echo "configure:3315: checking for library containing Tcl_Init" >&5
3315if eval "test \"`echo '$''{'ac_cv_search_Tcl_Init'+set}'`\" = set"; then
3316  echo $ac_n "(cached) $ac_c" 1>&6
3317else
3318  ac_func_search_save_LIBS="$LIBS"
3319ac_cv_search_Tcl_Init="no"
3320cat > conftest.$ac_ext <<EOF
3321#line 3322 "configure"
3322#include "confdefs.h"
3323/* Override any gcc2 internal prototype to avoid an error.  */
3324/* We use char because int might match the return type of a gcc2
3325    builtin and then its argument prototype would still apply.  */
3326char Tcl_Init();
3327
3328int main() {
3329Tcl_Init()
3330; return 0; }
3331EOF
3332if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3333  rm -rf conftest*
3334  ac_cv_search_Tcl_Init="none required"
3335else
3336  echo "configure: failed program was:" >&5
3337  cat conftest.$ac_ext >&5
3338fi
3339rm -f conftest*
3340test "$ac_cv_search_Tcl_Init" = "no" && for i in tcl8.0 tcl80; do
3341LIBS="-l$i -L${TCL_LIB} ${SAVED_LIBS} -lm $ac_func_search_save_LIBS"
3342cat > conftest.$ac_ext <<EOF
3343#line 3344 "configure"
3344#include "confdefs.h"
3345/* Override any gcc2 internal prototype to avoid an error.  */
3346/* We use char because int might match the return type of a gcc2
3347    builtin and then its argument prototype would still apply.  */
3348char Tcl_Init();
3349
3350int main() {
3351Tcl_Init()
3352; return 0; }
3353EOF
3354if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355  rm -rf conftest*
3356  ac_cv_search_Tcl_Init="-l$i"
3357break
3358else
3359  echo "configure: failed program was:" >&5
3360  cat conftest.$ac_ext >&5
3361fi
3362rm -f conftest*
3363done
3364LIBS="$ac_func_search_save_LIBS"
3365fi
3366
3367echo "$ac_t""$ac_cv_search_Tcl_Init" 1>&6
3368if test "$ac_cv_search_Tcl_Init" != "no"; then
3369  test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
3370  FOUND_TCL_LIB=yes
3371else :
3372 
3373fi
3374TCL_LIB="-L${TCL_LIB} $LIBS"
3375LIBS=$SAVED_LIBS
3376
3377if test $FOUND_TCL_LIB = no
3378then
3379        echo "Could not find Tcl library.  One of the following halted progess:"
3380        echo "   (a) Tcl is not installed."
3381        echo "   (b) Library is not built or not in expected location (--with-tcl=DIR)."
3382        echo "   (c) this script failed to see it (please inform rat-trap@cs.ucl.ac.uk)."
3383        exit
3384fi
3385
3386TK_INC=${PARENT}/tk-8.0
3387TK_LIB=${PARENT}/tk-8.0
3388
3389# Check whether --with-tk or --without-tk was given.
3390if test "${with_tk+set}" = set; then
3391  withval="$with_tk"
3392  TK_INC=$withval
3393         TK_LIB=$withval
3394fi
3395
3396
3397# Depending on config expect tk.h to be tk source dir or include path
3398# AC_CHECK_HEADER(S) are totally inadequate since it is necessary to
3399# include tcl.h, Xlib.h, Xutil.h before tk.h.
3400FOUND_TK_INC=0
3401for i in $TK_INC/generic $TK_INC/include/tk8.0 $TK_INC/include $TK_INC
3402do
3403        echo $ac_n "checking for $i/tk.h""... $ac_c" 1>&6
3404echo "configure:3405: checking for $i/tk.h" >&5
3405        if test -r $i/tk.h ; then
3406                TK_INC=-I$i
3407                FOUND_TK_INC=1
3408                echo "$ac_t""yes" 1>&6
3409                break
3410        fi
3411        echo "$ac_t""no" 1>&6
3412done
3413
3414if test $FOUND_TK_INC = 0 ; then
3415        echo "Could not find tk.h.  One of the following halted progress:"
3416        echo "   (a) Tk is not installed."
3417        echo "   (b) Tk's location was mis-specified, or not specified (--with-tk=DIR)."
3418        echo "   (c) this script failed to see it (please inform rat-trap@cs.ucl.ac.uk)."
3419        exit
3420fi
3421
3422# Guess most probable tk lib location
3423for i in $TK_LIB/unix $TK_LIB/lib $TK_LIB
3424do
3425        if test -d $i ; then
3426                TK_LIB=$i
3427                break
3428        fi
3429done
3430
3431SAVED_LIBS=$LIBS
3432LIBS=""
3433FOUND_TK_LIB=no
3434
3435echo $ac_n "checking for library containing Tk_Init""... $ac_c" 1>&6
3436echo "configure:3437: checking for library containing Tk_Init" >&5
3437if eval "test \"`echo '$''{'ac_cv_search_Tk_Init'+set}'`\" = set"; then
3438  echo $ac_n "(cached) $ac_c" 1>&6
3439else
3440  ac_func_search_save_LIBS="$LIBS"
3441ac_cv_search_Tk_Init="no"
3442cat > conftest.$ac_ext <<EOF
3443#line 3444 "configure"
3444#include "confdefs.h"
3445/* Override any gcc2 internal prototype to avoid an error.  */
3446/* We use char because int might match the return type of a gcc2
3447    builtin and then its argument prototype would still apply.  */
3448char Tk_Init();
3449
3450int main() {
3451Tk_Init()
3452; return 0; }
3453EOF
3454if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455  rm -rf conftest*
3456  ac_cv_search_Tk_Init="none required"
3457else
3458  echo "configure: failed program was:" >&5
3459  cat conftest.$ac_ext >&5
3460fi
3461rm -f conftest*
3462test "$ac_cv_search_Tk_Init" = "no" && for i in tk8.0 tk80; do
3463LIBS="-l$i -L${TK_LIB} ${TCL_LIB} $X_LIBS $X_PRE_LIBS  -lXext -lX11 $X_EXTRA_LIBS ${SAVED_LIBS} -lm $ac_func_search_save_LIBS"
3464cat > conftest.$ac_ext <<EOF
3465#line 3466 "configure"
3466#include "confdefs.h"
3467/* Override any gcc2 internal prototype to avoid an error.  */
3468/* We use char because int might match the return type of a gcc2
3469    builtin and then its argument prototype would still apply.  */
3470char Tk_Init();
3471
3472int main() {
3473Tk_Init()
3474; return 0; }
3475EOF
3476if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3477  rm -rf conftest*
3478  ac_cv_search_Tk_Init="-l$i"
3479break
3480else
3481  echo "configure: failed program was:" >&5
3482  cat conftest.$ac_ext >&5
3483fi
3484rm -f conftest*
3485done
3486LIBS="$ac_func_search_save_LIBS"
3487fi
3488
3489echo "$ac_t""$ac_cv_search_Tk_Init" 1>&6
3490if test "$ac_cv_search_Tk_Init" != "no"; then
3491  test "$ac_cv_search_Tk_Init" = "none required" || LIBS="$ac_cv_search_Tk_Init $LIBS"
3492  FOUND_TK_LIB=yes
3493else :
3494 
3495fi
3496TK_LIB="-L${TK_LIB} $LIBS"
3497LIBS=$SAVED_LIBS
3498
3499if test $FOUND_TK_LIB = no
3500then
3501        echo "Could not find Tk library.  One of the following halted progess:"
3502        echo "   (a) Tk is not installed."
3503        echo "   (b) Library is not built or not in expected location (--with-tk=DIR)."
3504        echo "   (c) this script failed to see it (please inform rat-trap@cs.ucl.ac.uk)."
3505        exit
3506fi
3507
3508
3509
3510
3511
3512
3513# XXX Add check for common
3514
3515COMMON_INC=${PARENT}/common
3516COMMON_LIB=${PARENT}/common
3517
3518# Check whether --with-common or --without-common was given.
3519if test "${with_common+set}" = set; then
3520  withval="$with_common"
3521   COMMON_INC=$withval
3522          COMMON_LIB=$withval
3523fi
3524
3525
3526FOUND_COMMON_H=no
3527for h in ${COMMON_INC} ${COMMON_INC}/include
3528do
3529ac_safe=`echo "$h/mbus.h" | sed 'y%./+-%__p_%'`
3530echo $ac_n "checking for $h/mbus.h""... $ac_c" 1>&6
3531echo "configure:3532: checking for $h/mbus.h" >&5
3532if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3533  echo $ac_n "(cached) $ac_c" 1>&6
3534else
3535  cat > conftest.$ac_ext <<EOF
3536#line 3537 "configure"
3537#include "confdefs.h"
3538#include <$h/mbus.h>
3539EOF
3540ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3541{ (eval echo configure:3542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3542ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3543if test -z "$ac_err"; then
3544  rm -rf conftest*
3545  eval "ac_cv_header_$ac_safe=yes"
3546else
3547  echo "$ac_err" >&5
3548  echo "configure: failed program was:" >&5
3549  cat conftest.$ac_ext >&5
3550  rm -rf conftest*
3551  eval "ac_cv_header_$ac_safe=no"
3552fi
3553rm -f conftest*
3554fi
3555if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3556  echo "$ac_t""yes" 1>&6
3557 
3558                COMMON_INC="-I${h}"
3559                FOUND_COMMON_H=yes
3560                break
3561       
3562else
3563  echo "$ac_t""no" 1>&6
3564fi
3565
3566done
3567
3568if test $FOUND_COMMON_H = no
3569then
3570        echo "Could not find mbus.h from UCL's common library.  Maybe:"
3571        echo "   (a) common library is not installed."
3572        echo "   (b) common library's locations was mis/not specified (--with-common=DIR)."
3573        echo "   (c) this script failed to see it (please inform rat-trap@cs.ucl.ac.uk)."
3574        exit
3575fi
3576
3577# Check if installed it on it's own...
3578if test ! -d ${COMMON_LIB}
3579then
3580        COMMON_LIB=${COMMON_LIB}/lib
3581fi
3582
3583echo $ac_n "checking for mbus_init in -lcommon""... $ac_c" 1>&6
3584echo "configure:3585: checking for mbus_init in -lcommon" >&5
3585ac_lib_var=`echo common'_'mbus_init | sed 'y%./+-%__p_%'`
3586if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3587  echo $ac_n "(cached) $ac_c" 1>&6
3588else
3589  ac_save_LIBS="$LIBS"
3590LIBS="-lcommon -L${COMMON_LIB} $LIBS"
3591cat > conftest.$ac_ext <<EOF
3592#line 3593 "configure"
3593#include "confdefs.h"
3594/* Override any gcc2 internal prototype to avoid an error.  */
3595/* We use char because int might match the return type of a gcc2
3596    builtin and then its argument prototype would still apply.  */
3597char mbus_init();
3598
3599int main() {
3600mbus_init()
3601; return 0; }
3602EOF
3603if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3604  rm -rf conftest*
3605  eval "ac_cv_lib_$ac_lib_var=yes"
3606else
3607  echo "configure: failed program was:" >&5
3608  cat conftest.$ac_ext >&5
3609  rm -rf conftest*
3610  eval "ac_cv_lib_$ac_lib_var=no"
3611fi
3612rm -f conftest*
3613LIBS="$ac_save_LIBS"
3614
3615fi
3616if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3617  echo "$ac_t""yes" 1>&6
3618 
3619                EXTERNAL_DEP="${EXTERNAL_DEP} ${COMMON_LIB}/libcommon.a"
3620                COMMON_LIB="-L${COMMON_LIB} -lcommon"
3621       
3622else
3623  echo "$ac_t""no" 1>&6
3624
3625                echo "Could not find UCL Common library.  One of the following halted progess:"
3626                echo "   (a) Common Library is not installed."
3627                echo "   (b) Library is not built or not in expected location (--with-common=DIR)."
3628                echo "   (c) this script failed to see it (please inform rat-trap@cs.ucl.ac.uk)."
3629                exit
3630       
3631fi
3632
3633
3634
3635
3636
3637
3638# Enable options
3639# Check whether --enable-profile or --disable-profile was given.
3640if test "${enable_profile+set}" = set; then
3641  enableval="$enable_profile"
3642  if test $enableval = yes
3643        then
3644                if test "$GCC" = yes
3645                then
3646                        CFLAGS="$CFLAGS -pg"
3647                else
3648                        { echo "configure: error: Don't know how to enable profiling for $CC" 1>&2; exit 1; }
3649                fi
3650        fi
3651fi
3652
3653# Check whether --enable-bounds or --disable-bounds was given.
3654if test "${enable_bounds+set}" = set; then
3655  enableval="$enable_bounds"
3656  if test $enableval = yes
3657        then
3658                if test "$GCC" = yes
3659                then
3660                        CFLAGS="$CFLAGS -fbounds-checking"
3661                        LIBS="$LIBS -lcheck"
3662                else
3663                        { echo "configure: error: Don't know how to enable profiling for $CC" 1>&2; exit 1; }
3664                fi
3665        fi
3666fi
3667
3668# Check whether --enable-debug or --disable-debug was given.
3669if test "${enable_debug+set}" = set; then
3670  enableval="$enable_debug"
3671  if test $enableval = yes
3672        then
3673                cat >> confdefs.h <<\EOF
3674#define DEBUG 1
3675EOF
3676
3677        fi
3678fi
3679
3680# Check whether --enable-debug-mem or --disable-debug-mem was given.
3681if test "${enable_debug_mem+set}" = set; then
3682  enableval="$enable_debug_mem"
3683  if test $enableval = yes
3684        then
3685                cat >> confdefs.h <<\EOF
3686#define DEBUG_MEM 1
3687EOF
3688
3689        fi
3690fi
3691
3692
3693
3694# GSM flag checks
3695#-----------------------------------------------------------------------------
3696# Check if Signed arithmetic shift right (SASR).  If SASR then -1 >> 1 == 1.
3697# Return value from test program of zero indicates success.
3698#-----------------------------------------------------------------------------
3699echo $ac_n "checking signed arithmetic shift right""... $ac_c" 1>&6
3700echo "configure:3701: checking signed arithmetic shift right" >&5
3701if eval "test \"`echo '$''{'gsm_cv_sasr'+set}'`\" = set"; then
3702  echo $ac_n "(cached) $ac_c" 1>&6
3703else
3704  if test "$cross_compiling" = yes; then
3705    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3706else
3707  cat > conftest.$ac_ext <<EOF
3708#line 3709 "configure"
3709#include "confdefs.h"
3710int main() { return (-1 >> 1) != -1;}
3711EOF
3712if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3713then
3714  gsm_cv_sasr=yes
3715else
3716  echo "configure: failed program was:" >&5
3717  cat conftest.$ac_ext >&5
3718  rm -fr conftest*
3719  gsm_cv_sasr=no
3720fi
3721rm -fr conftest*
3722fi
3723
3724fi
3725
3726echo "$ac_t""$gsm_cv_sasr" 1>&6
3727if test $gsm_cv_sasr = yes ; then
3728        cat >> confdefs.h <<\EOF
3729#define SASR 1
3730EOF
3731
3732fi
3733#-----------------------------------------------------------------------------
3734# GSM Options, almost certainly not sensible on all platforms, performance
3735# tests in a configure script ?
3736#-----------------------------------------------------------------------------
3737cat >> confdefs.h <<\EOF
3738#define FAST 1
3739EOF
3740
3741cat >> confdefs.h <<\EOF
3742#define USE_FLOAT_MUL 1
3743EOF
3744
3745
3746
3747
3748trap '' 1 2 15
3749cat > confcache <<\EOF
3750# This file is a shell script that caches the results of configure
3751# tests run on this system so they can be shared between configure
3752# scripts and configure runs.  It is not useful on other systems.
3753# If it contains results you don't want to keep, you may remove or edit it.
3754#
3755# By default, configure uses ./config.cache as the cache file,
3756# creating it if it does not exist already.  You can give configure
3757# the --cache-file=FILE option to use a different cache file; that is
3758# what configure does when it calls configure scripts in
3759# subdirectories, so they share the cache.
3760# Giving --cache-file=/dev/null disables caching, for debugging configure.
3761# config.status only pays attention to the cache file if you give it the
3762# --recheck option to rerun configure.
3763#
3764EOF
3765# The following way of writing the cache mishandles newlines in values,
3766# but we know of no workaround that is simple, portable, and efficient.
3767# So, don't put newlines in cache variables' values.
3768# Ultrix sh set writes to stderr and can't be redirected directly,
3769# and sets the high bit in the cache file unless we assign to the vars.
3770(set) 2>&1 |
3771  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3772  *ac_space=\ *)
3773    # `set' does not quote correctly, so add quotes (double-quote substitution
3774    # turns \\\\ into \\, and sed turns \\ into \).
3775    sed -n \
3776      -e "s/'/'\\\\''/g" \
3777      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3778    ;;
3779  *)
3780    # `set' quotes correctly as required by POSIX, so do not add quotes.
3781    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3782    ;;
3783  esac >> confcache
3784if cmp -s $cache_file confcache; then
3785  :
3786else
3787  if test -w $cache_file; then
3788    echo "updating cache $cache_file"
3789    cat confcache > $cache_file
3790  else
3791    echo "not updating unwritable cache $cache_file"
3792  fi
3793fi
3794rm -f confcache
3795
3796trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3797
3798test "x$prefix" = xNONE && prefix=$ac_default_prefix
3799# Let make expand exec_prefix.
3800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3801
3802# Any assignment to VPATH causes Sun make to only execute
3803# the first set of double-colon rules, so remove it if not needed.
3804# If there is a colon in the path, we need to keep it.
3805if test "x$srcdir" = x.; then
3806  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3807fi
3808
3809trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3810
3811DEFS=-DHAVE_CONFIG_H
3812
3813# Without the "./", some shells look in PATH for config.status.
3814: ${CONFIG_STATUS=./config.status}
3815
3816echo creating $CONFIG_STATUS
3817rm -f $CONFIG_STATUS
3818cat > $CONFIG_STATUS <<EOF
3819#! /bin/sh
3820# Generated automatically by configure.
3821# Run this file to recreate the current configuration.
3822# This directory was configured as follows,
3823# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3824#
3825# $0 $ac_configure_args
3826#
3827# Compiler output produced by configure, useful for debugging
3828# configure, is in ./config.log if it exists.
3829
3830ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3831for ac_option
3832do
3833  case "\$ac_option" in
3834  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3835    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3836    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3837  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3838    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3839    exit 0 ;;
3840  -help | --help | --hel | --he | --h)
3841    echo "\$ac_cs_usage"; exit 0 ;;
3842  *) echo "\$ac_cs_usage"; exit 1 ;;
3843  esac
3844done
3845
3846ac_given_srcdir=$srcdir
3847
3848trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3849EOF
3850cat >> $CONFIG_STATUS <<EOF
3851
3852# Protect against being on the right side of a sed subst in config.status.
3853sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3854 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3855$ac_vpsub
3856$extrasub
3857s%@SHELL@%$SHELL%g
3858s%@CFLAGS@%$CFLAGS%g
3859s%@CPPFLAGS@%$CPPFLAGS%g
3860s%@CXXFLAGS@%$CXXFLAGS%g
3861s%@FFLAGS@%$FFLAGS%g
3862s%@DEFS@%$DEFS%g
3863s%@LDFLAGS@%$LDFLAGS%g
3864s%@LIBS@%$LIBS%g
3865s%@exec_prefix@%$exec_prefix%g
3866s%@prefix@%$prefix%g
3867s%@program_transform_name@%$program_transform_name%g
3868s%@bindir@%$bindir%g
3869s%@sbindir@%$sbindir%g
3870s%@libexecdir@%$libexecdir%g
3871s%@datadir@%$datadir%g
3872s%@sysconfdir@%$sysconfdir%g
3873s%@sharedstatedir@%$sharedstatedir%g
3874s%@localstatedir@%$localstatedir%g
3875s%@libdir@%$libdir%g
3876s%@includedir@%$includedir%g
3877s%@oldincludedir@%$oldincludedir%g
3878s%@infodir@%$infodir%g
3879s%@mandir@%$mandir%g
3880s%@host@%$host%g
3881s%@host_alias@%$host_alias%g
3882s%@host_cpu@%$host_cpu%g
3883s%@host_vendor@%$host_vendor%g
3884s%@host_os@%$host_os%g
3885s%@target@%$target%g
3886s%@target_alias@%$target_alias%g
3887s%@target_cpu@%$target_cpu%g
3888s%@target_vendor@%$target_vendor%g
3889s%@target_os@%$target_os%g
3890s%@build@%$build%g
3891s%@build_alias@%$build_alias%g
3892s%@build_cpu@%$build_cpu%g
3893s%@build_vendor@%$build_vendor%g
3894s%@build_os@%$build_os%g
3895s%@CC@%$CC%g
3896s%@CPP@%$CPP%g
3897s%@RANLIB@%$RANLIB%g
3898s%@VERSION@%$VERSION%g
3899s%@OSTYPE@%$OSTYPE%g
3900s%@MATHLIBS@%$MATHLIBS%g
3901s%@EXTRA_OBJ@%$EXTRA_OBJ%g
3902s%@AU_OBJ@%$AU_OBJ%g
3903s%@AU_INC@%$AU_INC%g
3904s%@AU_LIB@%$AU_LIB%g
3905s%@X_CFLAGS@%$X_CFLAGS%g
3906s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3907s%@X_LIBS@%$X_LIBS%g
3908s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3909s%@TCL_INC@%$TCL_INC%g
3910s%@TCL_LIB@%$TCL_LIB%g
3911s%@TK_INC@%$TK_INC%g
3912s%@TK_LIB@%$TK_LIB%g
3913s%@COMMON_INC@%$COMMON_INC%g
3914s%@COMMON_LIB@%$COMMON_LIB%g
3915s%@EXTERNAL_DEP@%$EXTERNAL_DEP%g
3916
3917CEOF
3918EOF
3919
3920cat >> $CONFIG_STATUS <<\EOF
3921
3922# Split the substitutions into bite-sized pieces for seds with
3923# small command number limits, like on Digital OSF/1 and HP-UX.
3924ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3925ac_file=1 # Number of current file.
3926ac_beg=1 # First line for current file.
3927ac_end=$ac_max_sed_cmds # Line after last line for current file.
3928ac_more_lines=:
3929ac_sed_cmds=""
3930while $ac_more_lines; do
3931  if test $ac_beg -gt 1; then
3932    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3933  else
3934    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3935  fi
3936  if test ! -s conftest.s$ac_file; then
3937    ac_more_lines=false
3938    rm -f conftest.s$ac_file
3939  else
3940    if test -z "$ac_sed_cmds"; then
3941      ac_sed_cmds="sed -f conftest.s$ac_file"
3942    else
3943      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3944    fi
3945    ac_file=`expr $ac_file + 1`
3946    ac_beg=$ac_end
3947    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3948  fi
3949done
3950if test -z "$ac_sed_cmds"; then
3951  ac_sed_cmds=cat
3952fi
3953EOF
3954
3955cat >> $CONFIG_STATUS <<EOF
3956
3957CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3958EOF
3959cat >> $CONFIG_STATUS <<\EOF
3960for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3961  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3962  case "$ac_file" in
3963  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3964       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3965  *) ac_file_in="${ac_file}.in" ;;
3966  esac
3967
3968  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3969
3970  # Remove last slash and all that follows it.  Not all systems have dirname.
3971  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3972  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3973    # The file is in a subdirectory.
3974    test ! -d "$ac_dir" && mkdir "$ac_dir"
3975    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3976    # A "../" for each directory in $ac_dir_suffix.
3977    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3978  else
3979    ac_dir_suffix= ac_dots=
3980  fi
3981
3982  case "$ac_given_srcdir" in
3983  .)  srcdir=.
3984      if test -z "$ac_dots"; then top_srcdir=.
3985      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3986  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3987  *) # Relative path.
3988    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3989    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3990  esac
3991
3992
3993  echo creating "$ac_file"
3994  rm -f "$ac_file"
3995  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3996  case "$ac_file" in
3997  *Makefile*) ac_comsub="1i\\
3998# $configure_input" ;;
3999  *) ac_comsub= ;;
4000  esac
4001
4002  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4003  sed -e "$ac_comsub
4004s%@configure_input@%$configure_input%g
4005s%@srcdir@%$srcdir%g
4006s%@top_srcdir@%$top_srcdir%g
4007" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4008fi; done
4009rm -f conftest.s*
4010
4011# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4012# NAME is the cpp macro being defined and VALUE is the value it is being given.
4013#
4014# ac_d sets the value in "#define NAME VALUE" lines.
4015ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4016ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4017ac_dC='\3'
4018ac_dD='%g'
4019# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4020ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4021ac_uB='\([      ]\)%\1#\2define\3'
4022ac_uC=' '
4023ac_uD='\4%g'
4024# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4025ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4026ac_eB='$%\1#\2define\3'
4027ac_eC=' '
4028ac_eD='%g'
4029
4030if test "${CONFIG_HEADERS+set}" != set; then
4031EOF
4032cat >> $CONFIG_STATUS <<EOF
4033  CONFIG_HEADERS="config.h"
4034EOF
4035cat >> $CONFIG_STATUS <<\EOF
4036fi
4037for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4038  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4039  case "$ac_file" in
4040  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4041       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4042  *) ac_file_in="${ac_file}.in" ;;
4043  esac
4044
4045  echo creating $ac_file
4046
4047  rm -f conftest.frag conftest.in conftest.out
4048  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4049  cat $ac_file_inputs > conftest.in
4050
4051EOF
4052
4053# Transform confdefs.h into a sed script conftest.vals that substitutes
4054# the proper values into config.h.in to produce config.h.  And first:
4055# Protect against being on the right side of a sed subst in config.status.
4056# Protect against being in an unquoted here document in config.status.
4057rm -f conftest.vals
4058cat > conftest.hdr <<\EOF
4059s/[\\&%]/\\&/g
4060s%[\\$`]%\\&%g
4061s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4062s%ac_d%ac_u%gp
4063s%ac_u%ac_e%gp
4064EOF
4065sed -n -f conftest.hdr confdefs.h > conftest.vals
4066rm -f conftest.hdr
4067
4068# This sed command replaces #undef with comments.  This is necessary, for
4069# example, in the case of _POSIX_SOURCE, which is predefined and required
4070# on some systems where configure will not decide to define it.
4071cat >> conftest.vals <<\EOF
4072s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4073EOF
4074
4075# Break up conftest.vals because some shells have a limit on
4076# the size of here documents, and old seds have small limits too.
4077
4078rm -f conftest.tail
4079while :
4080do
4081  ac_lines=`grep -c . conftest.vals`
4082  # grep -c gives empty output for an empty file on some AIX systems.
4083  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4084  # Write a limited-size here document to conftest.frag.
4085  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4086  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4087  echo 'CEOF
4088  sed -f conftest.frag conftest.in > conftest.out
4089  rm -f conftest.in
4090  mv conftest.out conftest.in
4091' >> $CONFIG_STATUS
4092  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4093  rm -f conftest.vals
4094  mv conftest.tail conftest.vals
4095done
4096rm -f conftest.vals
4097
4098cat >> $CONFIG_STATUS <<\EOF
4099  rm -f conftest.frag conftest.h
4100  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4101  cat conftest.in >> conftest.h
4102  rm -f conftest.in
4103  if cmp -s $ac_file conftest.h 2>/dev/null; then
4104    echo "$ac_file is unchanged"
4105    rm -f conftest.h
4106  else
4107    # Remove last slash and all that follows it.  Not all systems have dirname.
4108      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4109      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4110      # The file is in a subdirectory.
4111      test ! -d "$ac_dir" && mkdir "$ac_dir"
4112    fi
4113    rm -f $ac_file
4114    mv conftest.h $ac_file
4115  fi
4116fi; done
4117
4118EOF
4119cat >> $CONFIG_STATUS <<EOF
4120
4121EOF
4122cat >> $CONFIG_STATUS <<\EOF
4123
4124exit 0
4125EOF
4126chmod +x $CONFIG_STATUS
4127rm -fr confdefs* $ac_clean_files
4128test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4129
4130
Note: See TracBrowser for help on using the browser.