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  --without-gcc           don't use gcc"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
50
51# Initialize some other variables.
52subdirs=
53MFLAGS= MAKEFLAGS=
54SHELL=${CONFIG_SHELL-/bin/sh}
55# Maximum number of lines to put in a shell here document.
56ac_max_here_lines=12
57
58ac_prev=
59for ac_option
60do
61
62  # If the previous option needs an argument, assign it.
63  if test -n "$ac_prev"; then
64    eval "$ac_prev=\$ac_option"
65    ac_prev=
66    continue
67  fi
68
69  case "$ac_option" in
70  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71  *) ac_optarg= ;;
72  esac
73
74  # Accept the important Cygnus configure options, so we can diagnose typos.
75
76  case "$ac_option" in
77
78  -bindir | --bindir | --bindi | --bind | --bin | --bi)
79    ac_prev=bindir ;;
80  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81    bindir="$ac_optarg" ;;
82
83  -build | --build | --buil | --bui | --bu)
84    ac_prev=build ;;
85  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86    build="$ac_optarg" ;;
87
88  -cache-file | --cache-file | --cache-fil | --cache-fi \
89  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90    ac_prev=cache_file ;;
91  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93    cache_file="$ac_optarg" ;;
94
95  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96    ac_prev=datadir ;;
97  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98  | --da=*)
99    datadir="$ac_optarg" ;;
100
101  -disable-* | --disable-*)
102    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103    # Reject names that are not valid shell variable names.
104    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106    fi
107    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108    eval "enable_${ac_feature}=no" ;;
109
110  -enable-* | --enable-*)
111    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112    # Reject names that are not valid shell variable names.
113    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115    fi
116    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117    case "$ac_option" in
118      *=*) ;;
119      *) ac_optarg=yes ;;
120    esac
121    eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125  | --exec | --exe | --ex)
126    ac_prev=exec_prefix ;;
127  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129  | --exec=* | --exe=* | --ex=*)
130    exec_prefix="$ac_optarg" ;;
131
132  -gas | --gas | --ga | --g)
133    # Obsolete; use --with-gas.
134    with_gas=yes ;;
135
136  -help | --help | --hel | --he)
137    # Omit some internal or obsolete options to make the list less imposing.
138    # This message is too long to be a string in the A/UX 3.1 sh.
139    cat << EOF
140Usage: configure [options] [host]
141Options: [defaults in brackets after descriptions]
142Configuration:
143  --cache-file=FILE       cache test results in FILE
144  --help                  print this message
145  --no-create             do not create output files
146  --quiet, --silent       do not print \`checking...' messages
147  --version               print the version of autoconf that created configure
148Directory and file names:
149  --prefix=PREFIX         install architecture-independent files in PREFIX
150                          [$ac_default_prefix]
151  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                          [same as prefix]
153  --bindir=DIR            user executables in DIR [EPREFIX/bin]
154  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156  --datadir=DIR           read-only architecture-independent data in DIR
157                          [PREFIX/share]
158  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                          [PREFIX/com]
161  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163  --includedir=DIR        C header files in DIR [PREFIX/include]
164  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165  --infodir=DIR           info documentation in DIR [PREFIX/info]
166  --mandir=DIR            man documentation in DIR [PREFIX/man]
167  --srcdir=DIR            find the sources in DIR [configure dir or ..]
168  --program-prefix=PREFIX prepend PREFIX to installed program names
169  --program-suffix=SUFFIX append SUFFIX to installed program names
170  --program-transform-name=PROGRAM
171                          run sed PROGRAM on installed program names
172EOF
173    cat << EOF
174Host type:
175  --build=BUILD           configure for building on BUILD [BUILD=HOST]
176  --host=HOST             configure for HOST [guessed]
177  --target=TARGET         configure for TARGET [TARGET=HOST]
178Features and packages:
179  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183  --x-includes=DIR        X include files are in DIR
184  --x-libraries=DIR       X library files are in DIR
185EOF
186    if test -n "$ac_help"; then
187      echo "--enable and --with options recognized:$ac_help"
188    fi
189    exit 0 ;;
190
191  -host | --host | --hos | --ho)
192    ac_prev=host ;;
193  -host=* | --host=* | --hos=* | --ho=*)
194    host="$ac_optarg" ;;
195
196  -includedir | --includedir | --includedi | --included | --include \
197  | --includ | --inclu | --incl | --inc)
198    ac_prev=includedir ;;
199  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200  | --includ=* | --inclu=* | --incl=* | --inc=*)
201    includedir="$ac_optarg" ;;
202
203  -infodir | --infodir | --infodi | --infod | --info | --inf)
204    ac_prev=infodir ;;
205  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206    infodir="$ac_optarg" ;;
207
208  -libdir | --libdir | --libdi | --libd)
209    ac_prev=libdir ;;
210  -libdir=* | --libdir=* | --libdi=* | --libd=*)
211    libdir="$ac_optarg" ;;
212
213  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214  | --libexe | --libex | --libe)
215    ac_prev=libexecdir ;;
216  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217  | --libexe=* | --libex=* | --libe=*)
218    libexecdir="$ac_optarg" ;;
219
220  -localstatedir | --localstatedir | --localstatedi | --localstated \
221  | --localstate | --localstat | --localsta | --localst \
222  | --locals | --local | --loca | --loc | --lo)
223    ac_prev=localstatedir ;;
224  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227    localstatedir="$ac_optarg" ;;
228
229  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230    ac_prev=mandir ;;
231  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232    mandir="$ac_optarg" ;;
233
234  -nfp | --nfp | --nf)
235    # Obsolete; use --without-fp.
236    with_fp=no ;;
237
238  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239  | --no-cr | --no-c)
240    no_create=yes ;;
241
242  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244    no_recursion=yes ;;
245
246  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248  | --oldin | --oldi | --old | --ol | --o)
249    ac_prev=oldincludedir ;;
250  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253    oldincludedir="$ac_optarg" ;;
254
255  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256    ac_prev=prefix ;;
257  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258    prefix="$ac_optarg" ;;
259
260  -program-prefix | --program-prefix | --program-prefi | --program-pref \
261  | --program-pre | --program-pr | --program-p)
262    ac_prev=program_prefix ;;
263  -program-prefix=* | --program-prefix=* | --program-prefi=* \
264  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265    program_prefix="$ac_optarg" ;;
266
267  -program-suffix | --program-suffix | --program-suffi | --program-suff \
268  | --program-suf | --program-su | --program-s)
269    ac_prev=program_suffix ;;
270  -program-suffix=* | --program-suffix=* | --program-suffi=* \
271  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272    program_suffix="$ac_optarg" ;;
273
274  -program-transform-name | --program-transform-name \
275  | --program-transform-nam | --program-transform-na \
276  | --program-transform-n | --program-transform- \
277  | --program-transform | --program-transfor \
278  | --program-transfo | --program-transf \
279  | --program-trans | --program-tran \
280  | --progr-tra | --program-tr | --program-t)
281    ac_prev=program_transform_name ;;
282  -program-transform-name=* | --program-transform-name=* \
283  | --program-transform-nam=* | --program-transform-na=* \
284  | --program-transform-n=* | --program-transform-=* \
285  | --program-transform=* | --program-transfor=* \
286  | --program-transfo=* | --program-transf=* \
287  | --program-trans=* | --program-tran=* \
288  | --progr-tra=* | --program-tr=* | --program-t=*)
289    program_transform_name="$ac_optarg" ;;
290
291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292  | -silent | --silent | --silen | --sile | --sil)
293    silent=yes ;;
294
295  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296    ac_prev=sbindir ;;
297  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298  | --sbi=* | --sb=*)
299    sbindir="$ac_optarg" ;;
300
301  -sharedstatedir | --sharedstatedir | --sharedstatedi \
302  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303  | --sharedst | --shareds | --shared | --share | --shar \
304  | --sha | --sh)
305    ac_prev=sharedstatedir ;;
306  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309  | --sha=* | --sh=*)
310    sharedstatedir="$ac_optarg" ;;
311
312  -site | --site | --sit)
313    ac_prev=site ;;
314  -site=* | --site=* | --sit=*)
315    site="$ac_optarg" ;;
316
317  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318    ac_prev=srcdir ;;
319  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320    srcdir="$ac_optarg" ;;
321
322  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323  | --syscon | --sysco | --sysc | --sys | --sy)
324    ac_prev=sysconfdir ;;
325  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327    sysconfdir="$ac_optarg" ;;
328
329  -target | --target | --targe | --targ | --tar | --ta | --t)
330    ac_prev=target ;;
331  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332    target="$ac_optarg" ;;
333
334  -v | -verbose | --verbose | --verbos | --verbo | --verb)
335    verbose=yes ;;
336
337  -version | --version | --versio | --versi | --vers)
338    echo "configure generated by autoconf version 2.13"
339    exit 0 ;;
340
341  -with-* | --with-*)
342    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343    # Reject names that are not valid shell variable names.
344    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346    fi
347    ac_package=`echo $ac_package| sed 's/-/_/g'`
348    case "$ac_option" in
349      *=*) ;;
350      *) ac_optarg=yes ;;
351    esac
352    eval "with_${ac_package}='$ac_optarg'" ;;
353
354  -without-* | --without-*)
355    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356    # Reject names that are not valid shell variable names.
357    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359    fi
360    ac_package=`echo $ac_package| sed 's/-/_/g'`
361    eval "with_${ac_package}=no" ;;
362
363  --x)
364    # Obsolete; use --with-x.
365    with_x=yes ;;
366
367  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368  | --x-incl | --x-inc | --x-in | --x-i)
369    ac_prev=x_includes ;;
370  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372    x_includes="$ac_optarg" ;;
373
374  -x-libraries | --x-libraries | --x-librarie | --x-librari \
375  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376    ac_prev=x_libraries ;;
377  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379    x_libraries="$ac_optarg" ;;
380
381  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382    ;;
383
384  *)
385    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386      echo "configure: warning: $ac_option: invalid host type" 1>&2
387    fi
388    if test "x$nonopt" != xNONE; then
389      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390    fi
391    nonopt="$ac_option"
392    ;;
393
394  esac
395done
396
397if test -n "$ac_prev"; then
398  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399fi
400
401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403# File descriptor usage:
404# 0 standard input
405# 1 file creation
406# 2 errors and warnings
407# 3 some systems may open it to /dev/tty
408# 4 used on the Kubota Titan
409# 6 checking for... messages and results
410# 5 compiler messages saved in config.log
411if test "$silent" = yes; then
412  exec 6>/dev/null
413else
414  exec 6>&1
415fi
416exec 5>./config.log
417
418echo "\
419This file contains any messages produced by compilers while
420running configure, to aid debugging if configure makes a mistake.
421" 1>&5
422
423# Strip out --no-create and --no-recursion so they do not pile up.
424# Also quote any args containing shell metacharacters.
425ac_configure_args=
426for ac_arg
427do
428  case "$ac_arg" in
429  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430  | --no-cr | --no-c) ;;
431  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436  esac
437done
438
439# NLS nuisances.
440# Only set these to C if already set.  These must not be set unconditionally
441# because not all systems understand e.g. LANG=C (notably SCO).
442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443# Non-C LC_CTYPE values break the ctype check.
444if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449# confdefs.h avoids OS command line length limits that DEFS can exceed.
450rm -rf conftest* confdefs.h
451# AIX cpp loses on an empty file, so make sure it contains at least a newline.
452echo > confdefs.h
453
454# A filename unique to this package, relative to the directory that
455# configure is in, which we can look for to find out if srcdir is correct.
456ac_unique_file=nslint.c
457
458# Find the source files, if location was not specified.
459if test -z "$srcdir"; then
460  ac_srcdir_defaulted=yes
461  # Try the directory containing this script, then its parent.
462  ac_prog=$0
463  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465  srcdir=$ac_confdir
466  if test ! -r $srcdir/$ac_unique_file; then
467    srcdir=..
468  fi
469else
470  ac_srcdir_defaulted=no
471fi
472if test ! -r $srcdir/$ac_unique_file; then
473  if test "$ac_srcdir_defaulted" = yes; then
474    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475  else
476    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477  fi
478fi
479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481# Prefer explicitly selected file to automatically selected ones.
482if test -z "$CONFIG_SITE"; then
483  if test "x$prefix" != xNONE; then
484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485  else
486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487  fi
488fi
489for ac_site_file in $CONFIG_SITE; do
490  if test -r "$ac_site_file"; then
491    echo "loading site script $ac_site_file"
492    . "$ac_site_file"
493  fi
494done
495
496if test -r "$cache_file"; then
497  echo "loading cache $cache_file"
498  . $cache_file
499else
500  echo "creating cache $cache_file"
501  > $cache_file
502fi
503
504ac_ext=c
505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506ac_cpp='$CPP $CPPFLAGS'
507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509cross_compiling=$ac_cv_prog_cc_cross
510
511ac_exeext=
512ac_objext=o
513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516    ac_n= ac_c='
517' ac_t='	'
518  else
519    ac_n=-n ac_c= ac_t=
520  fi
521else
522  ac_n= ac_c='\c' ac_t=
523fi
524
525
526
527ac_aux_dir=
528for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
529  if test -f $ac_dir/install-sh; then
530    ac_aux_dir=$ac_dir
531    ac_install_sh="$ac_aux_dir/install-sh -c"
532    break
533  elif test -f $ac_dir/install.sh; then
534    ac_aux_dir=$ac_dir
535    ac_install_sh="$ac_aux_dir/install.sh -c"
536    break
537  fi
538done
539if test -z "$ac_aux_dir"; then
540  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541fi
542ac_config_guess=$ac_aux_dir/config.guess
543ac_config_sub=$ac_aux_dir/config.sub
544ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545
546
547# Do some error checking and defaulting for the host and target type.
548# The inputs are:
549#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
550#
551# The rules are:
552# 1. You are not allowed to specify --host, --target, and nonopt at the
553#    same time.
554# 2. Host defaults to nonopt.
555# 3. If nonopt is not specified, then host defaults to the current host,
556#    as determined by config.guess.
557# 4. Target and build default to nonopt.
558# 5. If nonopt is not specified, then target and build default to host.
559
560# The aliases save the names the user supplied, while $host etc.
561# will get canonicalized.
562case $host---$target---$nonopt in
563NONE---*---* | *---NONE---* | *---*---NONE) ;;
564*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
565esac
566
567
568# Make sure we can run config.sub.
569if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
570else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
571fi
572
573echo $ac_n "checking host system type""... $ac_c" 1>&6
574echo "configure:575: checking host system type" >&5
575
576host_alias=$host
577case "$host_alias" in
578NONE)
579  case $nonopt in
580  NONE)
581    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
582    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
583    fi ;;
584  *) host_alias=$nonopt ;;
585  esac ;;
586esac
587
588host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
589host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
590host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
591host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592echo "$ac_t""$host" 1>&6
593
594echo $ac_n "checking target system type""... $ac_c" 1>&6
595echo "configure:596: checking target system type" >&5
596
597target_alias=$target
598case "$target_alias" in
599NONE)
600  case $nonopt in
601  NONE) target_alias=$host_alias ;;
602  *) target_alias=$nonopt ;;
603  esac ;;
604esac
605
606target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
607target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610echo "$ac_t""$target" 1>&6
611
612echo $ac_n "checking build system type""... $ac_c" 1>&6
613echo "configure:614: checking build system type" >&5
614
615build_alias=$build
616case "$build_alias" in
617NONE)
618  case $nonopt in
619  NONE) build_alias=$host_alias ;;
620  *) build_alias=$nonopt ;;
621  esac ;;
622esac
623
624build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
625build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628echo "$ac_t""$build" 1>&6
629
630test "$host_alias" != "$target_alias" &&
631  test "$program_prefix$program_suffix$program_transform_name" = \
632    NONENONEs,x,x, &&
633  program_prefix=${target_alias}-
634
635
636umask 002
637
638if test -z "$PWD" ; then
639	PWD=`pwd`
640fi
641
642
643    
644    
645    
646    # Check whether --with-gcc or --without-gcc was given.
647if test "${with_gcc+set}" = set; then
648  withval="$with_gcc"
649  :
650fi
651
652    V_CCOPT="-O"
653    V_INCLS=""
654    if test "${srcdir}" != "." ; then
655	    V_INCLS="-I\$\(srcdir\)"
656    fi
657    if test "${CFLAGS+set}" = set; then
658	    LBL_CFLAGS="$CFLAGS"
659    fi
660    if test -z "$CC" ; then
661	    case "$target_os" in
662
663	    bsdi*)
664		    # Extract the first word of "shlicc2", so it can be a program name with args.
665set dummy shlicc2; ac_word=$2
666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667echo "configure:668: checking for $ac_word" >&5
668if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
669  echo $ac_n "(cached) $ac_c" 1>&6
670else
671  if test -n "$SHLICC2"; then
672  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
673else
674  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
675  ac_dummy="$PATH"
676  for ac_dir in $ac_dummy; do
677    test -z "$ac_dir" && ac_dir=.
678    if test -f $ac_dir/$ac_word; then
679      ac_cv_prog_SHLICC2="yes"
680      break
681    fi
682  done
683  IFS="$ac_save_ifs"
684  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
685fi
686fi
687SHLICC2="$ac_cv_prog_SHLICC2"
688if test -n "$SHLICC2"; then
689  echo "$ac_t""$SHLICC2" 1>&6
690else
691  echo "$ac_t""no" 1>&6
692fi
693
694		    if test $SHLICC2 = yes ; then
695			    CC=shlicc2
696			    export CC
697		    fi
698		    ;;
699	    esac
700    fi
701    if test -z "$CC" -a "$with_gcc" = no ; then
702	    CC=cc
703	    export CC
704    fi
705    # Extract the first word of "gcc", so it can be a program name with args.
706set dummy gcc; ac_word=$2
707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
708echo "configure:709: checking for $ac_word" >&5
709if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
710  echo $ac_n "(cached) $ac_c" 1>&6
711else
712  if test -n "$CC"; then
713  ac_cv_prog_CC="$CC" # Let the user override the test.
714else
715  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
716  ac_dummy="$PATH"
717  for ac_dir in $ac_dummy; do
718    test -z "$ac_dir" && ac_dir=.
719    if test -f $ac_dir/$ac_word; then
720      ac_cv_prog_CC="gcc"
721      break
722    fi
723  done
724  IFS="$ac_save_ifs"
725fi
726fi
727CC="$ac_cv_prog_CC"
728if test -n "$CC"; then
729  echo "$ac_t""$CC" 1>&6
730else
731  echo "$ac_t""no" 1>&6
732fi
733
734if test -z "$CC"; then
735  # Extract the first word of "cc", so it can be a program name with args.
736set dummy cc; 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_prog_rejected=no
747  ac_dummy="$PATH"
748  for ac_dir in $ac_dummy; do
749    test -z "$ac_dir" && ac_dir=.
750    if test -f $ac_dir/$ac_word; then
751      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
752        ac_prog_rejected=yes
753	continue
754      fi
755      ac_cv_prog_CC="cc"
756      break
757    fi
758  done
759  IFS="$ac_save_ifs"
760if test $ac_prog_rejected = yes; then
761  # We found a bogon in the path, so make sure we never use it.
762  set dummy $ac_cv_prog_CC
763  shift
764  if test $# -gt 0; then
765    # We chose a different compiler from the bogus one.
766    # However, it has the same basename, so the bogon will be chosen
767    # first if we set CC to just the basename; use the full file name.
768    shift
769    set dummy "$ac_dir/$ac_word" "$@"
770    shift
771    ac_cv_prog_CC="$@"
772  fi
773fi
774fi
775fi
776CC="$ac_cv_prog_CC"
777if test -n "$CC"; then
778  echo "$ac_t""$CC" 1>&6
779else
780  echo "$ac_t""no" 1>&6
781fi
782
783  if test -z "$CC"; then
784    case "`uname -s`" in
785    *win32* | *WIN32*)
786      # Extract the first word of "cl", so it can be a program name with args.
787set dummy cl; ac_word=$2
788echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
789echo "configure:790: checking for $ac_word" >&5
790if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
791  echo $ac_n "(cached) $ac_c" 1>&6
792else
793  if test -n "$CC"; then
794  ac_cv_prog_CC="$CC" # Let the user override the test.
795else
796  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
797  ac_dummy="$PATH"
798  for ac_dir in $ac_dummy; do
799    test -z "$ac_dir" && ac_dir=.
800    if test -f $ac_dir/$ac_word; then
801      ac_cv_prog_CC="cl"
802      break
803    fi
804  done
805  IFS="$ac_save_ifs"
806fi
807fi
808CC="$ac_cv_prog_CC"
809if test -n "$CC"; then
810  echo "$ac_t""$CC" 1>&6
811else
812  echo "$ac_t""no" 1>&6
813fi
814 ;;
815    esac
816  fi
817  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
818fi
819
820echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
821echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
822
823ac_ext=c
824# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
825ac_cpp='$CPP $CPPFLAGS'
826ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
827ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
828cross_compiling=$ac_cv_prog_cc_cross
829
830cat > conftest.$ac_ext << EOF
831
832#line 833 "configure"
833#include "confdefs.h"
834
835main(){return(0);}
836EOF
837if { (eval echo configure:838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
838  ac_cv_prog_cc_works=yes
839  # If we can't run a trivial program, we are probably using a cross compiler.
840  if (./conftest; exit) 2>/dev/null; then
841    ac_cv_prog_cc_cross=no
842  else
843    ac_cv_prog_cc_cross=yes
844  fi
845else
846  echo "configure: failed program was:" >&5
847  cat conftest.$ac_ext >&5
848  ac_cv_prog_cc_works=no
849fi
850rm -fr conftest*
851ac_ext=c
852# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
853ac_cpp='$CPP $CPPFLAGS'
854ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
855ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
856cross_compiling=$ac_cv_prog_cc_cross
857
858echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
859if test $ac_cv_prog_cc_works = no; then
860  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
861fi
862echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
863echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
864echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
865cross_compiling=$ac_cv_prog_cc_cross
866
867echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
868echo "configure:869: checking whether we are using GNU C" >&5
869if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
870  echo $ac_n "(cached) $ac_c" 1>&6
871else
872  cat > conftest.c <<EOF
873#ifdef __GNUC__
874  yes;
875#endif
876EOF
877if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
878  ac_cv_prog_gcc=yes
879else
880  ac_cv_prog_gcc=no
881fi
882fi
883
884echo "$ac_t""$ac_cv_prog_gcc" 1>&6
885
886if test $ac_cv_prog_gcc = yes; then
887  GCC=yes
888else
889  GCC=
890fi
891
892ac_test_CFLAGS="${CFLAGS+set}"
893ac_save_CFLAGS="$CFLAGS"
894CFLAGS=
895echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
896echo "configure:897: checking whether ${CC-cc} accepts -g" >&5
897if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
898  echo $ac_n "(cached) $ac_c" 1>&6
899else
900  echo 'void f(){}' > conftest.c
901if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
902  ac_cv_prog_cc_g=yes
903else
904  ac_cv_prog_cc_g=no
905fi
906rm -f conftest*
907
908fi
909
910echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
911if test "$ac_test_CFLAGS" = set; then
912  CFLAGS="$ac_save_CFLAGS"
913elif test $ac_cv_prog_cc_g = yes; then
914  if test "$GCC" = yes; then
915    CFLAGS="-g -O2"
916  else
917    CFLAGS="-g"
918  fi
919else
920  if test "$GCC" = yes; then
921    CFLAGS="-O2"
922  else
923    CFLAGS=
924  fi
925fi
926
927    if test "$GCC" != yes ; then
928	    echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
929echo "configure:930: checking that $CC handles ansi prototypes" >&5
930	    if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
931  echo $ac_n "(cached) $ac_c" 1>&6
932else
933  cat > conftest.$ac_ext <<EOF
934#line 935 "configure"
935#include "confdefs.h"
936#include <sys/types.h>
937int main() {
938int frob(int, char *)
939; return 0; }
940EOF
941if { (eval echo configure:942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
942  rm -rf conftest*
943  ac_cv_lbl_cc_ansi_prototypes=yes
944else
945  echo "configure: failed program was:" >&5
946  cat conftest.$ac_ext >&5
947  rm -rf conftest*
948  ac_cv_lbl_cc_ansi_prototypes=no
949fi
950rm -f conftest*
951fi
952
953	    echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
954	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
955		    case "$target_os" in
956
957		    hpux*)
958			    echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
959echo "configure:960: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
960			    savedcflags="$CFLAGS"
961			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
962			    if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
963  echo $ac_n "(cached) $ac_c" 1>&6
964else
965  cat > conftest.$ac_ext <<EOF
966#line 967 "configure"
967#include "confdefs.h"
968#include <sys/types.h>
969int main() {
970int frob(int, char *)
971; return 0; }
972EOF
973if { (eval echo configure:974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
974  rm -rf conftest*
975  ac_cv_lbl_cc_hpux_cc_aa=yes
976else
977  echo "configure: failed program was:" >&5
978  cat conftest.$ac_ext >&5
979  rm -rf conftest*
980  ac_cv_lbl_cc_hpux_cc_aa=no
981fi
982rm -f conftest*
983fi
984
985			    echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
986			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
987				    { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
988			    fi
989			    CFLAGS="$savedcflags"
990			    V_CCOPT="-Aa $V_CCOPT"
991			    cat >> confdefs.h <<\EOF
992#define _HPUX_SOURCE 1
993EOF
994
995			    ;;
996
997		    *)
998			    { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
999			    ;;
1000		    esac
1001	    fi
1002	    V_INCLS="$V_INCLS -I/usr/local/include"
1003	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
1004
1005	    case "$target_os" in
1006
1007	    irix*)
1008		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
1009		    ;;
1010
1011	    osf*)
1012		    V_CCOPT="$V_CCOPT -std1 -g3"
1013		    ;;
1014
1015	    ultrix*)
1016		    echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1017echo "configure:1018: checking that Ultrix $CC hacks const in prototypes" >&5
1018		    if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1019  echo $ac_n "(cached) $ac_c" 1>&6
1020else
1021  cat > conftest.$ac_ext <<EOF
1022#line 1023 "configure"
1023#include "confdefs.h"
1024#include <sys/types.h>
1025int main() {
1026struct a { int b; };
1027			    void c(const struct a *)
1028; return 0; }
1029EOF
1030if { (eval echo configure:1031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1031  rm -rf conftest*
1032  ac_cv_lbl_cc_const_proto=yes
1033else
1034  echo "configure: failed program was:" >&5
1035  cat conftest.$ac_ext >&5
1036  rm -rf conftest*
1037  ac_cv_lbl_cc_const_proto=no
1038fi
1039rm -f conftest*
1040fi
1041
1042		    echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1043		    if test $ac_cv_lbl_cc_const_proto = no ; then
1044			    cat >> confdefs.h <<\EOF
1045#define const 
1046EOF
1047
1048		    fi
1049		    ;;
1050	    esac
1051    fi
1052
1053
1054echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1055echo "configure:1056: checking how to run the C preprocessor" >&5
1056# On Suns, sometimes $CPP names a directory.
1057if test -n "$CPP" && test -d "$CPP"; then
1058  CPP=
1059fi
1060if test -z "$CPP"; then
1061if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1062  echo $ac_n "(cached) $ac_c" 1>&6
1063else
1064    # This must be in double quotes, not single quotes, because CPP may get
1065  # substituted into the Makefile and "${CC-cc}" will confuse make.
1066  CPP="${CC-cc} -E"
1067  # On the NeXT, cc -E runs the code through the compiler's parser,
1068  # not just through cpp.
1069  cat > conftest.$ac_ext <<EOF
1070#line 1071 "configure"
1071#include "confdefs.h"
1072#include <assert.h>
1073Syntax Error
1074EOF
1075ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1076{ (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1077ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1078if test -z "$ac_err"; then
1079  :
1080else
1081  echo "$ac_err" >&5
1082  echo "configure: failed program was:" >&5
1083  cat conftest.$ac_ext >&5
1084  rm -rf conftest*
1085  CPP="${CC-cc} -E -traditional-cpp"
1086  cat > conftest.$ac_ext <<EOF
1087#line 1088 "configure"
1088#include "confdefs.h"
1089#include <assert.h>
1090Syntax Error
1091EOF
1092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1093{ (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1095if test -z "$ac_err"; then
1096  :
1097else
1098  echo "$ac_err" >&5
1099  echo "configure: failed program was:" >&5
1100  cat conftest.$ac_ext >&5
1101  rm -rf conftest*
1102  CPP="${CC-cc} -nologo -E"
1103  cat > conftest.$ac_ext <<EOF
1104#line 1105 "configure"
1105#include "confdefs.h"
1106#include <assert.h>
1107Syntax Error
1108EOF
1109ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110{ (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1112if test -z "$ac_err"; then
1113  :
1114else
1115  echo "$ac_err" >&5
1116  echo "configure: failed program was:" >&5
1117  cat conftest.$ac_ext >&5
1118  rm -rf conftest*
1119  CPP=/lib/cpp
1120fi
1121rm -f conftest*
1122fi
1123rm -f conftest*
1124fi
1125rm -f conftest*
1126  ac_cv_prog_CPP="$CPP"
1127fi
1128  CPP="$ac_cv_prog_CPP"
1129else
1130  ac_cv_prog_CPP="$CPP"
1131fi
1132echo "$ac_t""$CPP" 1>&6
1133
1134for ac_hdr in fcntl.h malloc.h memory.h
1135do
1136ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1137echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1138echo "configure:1139: checking for $ac_hdr" >&5
1139if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1140  echo $ac_n "(cached) $ac_c" 1>&6
1141else
1142  cat > conftest.$ac_ext <<EOF
1143#line 1144 "configure"
1144#include "confdefs.h"
1145#include <$ac_hdr>
1146EOF
1147ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1148{ (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1149ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1150if test -z "$ac_err"; then
1151  rm -rf conftest*
1152  eval "ac_cv_header_$ac_safe=yes"
1153else
1154  echo "$ac_err" >&5
1155  echo "configure: failed program was:" >&5
1156  cat conftest.$ac_ext >&5
1157  rm -rf conftest*
1158  eval "ac_cv_header_$ac_safe=no"
1159fi
1160rm -f conftest*
1161fi
1162if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1163  echo "$ac_t""yes" 1>&6
1164    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1165  cat >> confdefs.h <<EOF
1166#define $ac_tr_hdr 1
1167EOF
1168 
1169else
1170  echo "$ac_t""no" 1>&6
1171fi
1172done
1173
1174
1175for ac_func in strerror
1176do
1177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1178echo "configure:1179: checking for $ac_func" >&5
1179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1180  echo $ac_n "(cached) $ac_c" 1>&6
1181else
1182  cat > conftest.$ac_ext <<EOF
1183#line 1184 "configure"
1184#include "confdefs.h"
1185/* System header to define __stub macros and hopefully few prototypes,
1186    which can conflict with char $ac_func(); below.  */
1187#include <assert.h>
1188/* Override any gcc2 internal prototype to avoid an error.  */
1189/* We use char because int might match the return type of a gcc2
1190    builtin and then its argument prototype would still apply.  */
1191char $ac_func();
1192
1193int main() {
1194
1195/* The GNU C library defines this for functions which it implements
1196    to always fail with ENOSYS.  Some functions are actually named
1197    something starting with __ and the normal name is an alias.  */
1198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1199choke me
1200#else
1201$ac_func();
1202#endif
1203
1204; return 0; }
1205EOF
1206if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1207  rm -rf conftest*
1208  eval "ac_cv_func_$ac_func=yes"
1209else
1210  echo "configure: failed program was:" >&5
1211  cat conftest.$ac_ext >&5
1212  rm -rf conftest*
1213  eval "ac_cv_func_$ac_func=no"
1214fi
1215rm -f conftest*
1216fi
1217
1218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1219  echo "$ac_t""yes" 1>&6
1220    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1221  cat >> confdefs.h <<EOF
1222#define $ac_tr_func 1
1223EOF
1224 
1225else
1226  echo "$ac_t""no" 1>&6
1227LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1228fi
1229done
1230
1231
1232echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1233echo "configure:1234: checking for main in -lnsl" >&5
1234ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1236  echo $ac_n "(cached) $ac_c" 1>&6
1237else
1238  ac_save_LIBS="$LIBS"
1239LIBS="-lnsl  $LIBS"
1240cat > conftest.$ac_ext <<EOF
1241#line 1242 "configure"
1242#include "confdefs.h"
1243
1244int main() {
1245main()
1246; return 0; }
1247EOF
1248if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1249  rm -rf conftest*
1250  eval "ac_cv_lib_$ac_lib_var=yes"
1251else
1252  echo "configure: failed program was:" >&5
1253  cat conftest.$ac_ext >&5
1254  rm -rf conftest*
1255  eval "ac_cv_lib_$ac_lib_var=no"
1256fi
1257rm -f conftest*
1258LIBS="$ac_save_LIBS"
1259
1260fi
1261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1262  echo "$ac_t""yes" 1>&6
1263    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1264    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1265  cat >> confdefs.h <<EOF
1266#define $ac_tr_lib 1
1267EOF
1268
1269  LIBS="-lnsl $LIBS"
1270
1271else
1272  echo "$ac_t""no" 1>&6
1273fi
1274
1275echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1276echo "configure:1277: checking for main in -lsocket" >&5
1277ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1278if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1279  echo $ac_n "(cached) $ac_c" 1>&6
1280else
1281  ac_save_LIBS="$LIBS"
1282LIBS="-lsocket  $LIBS"
1283cat > conftest.$ac_ext <<EOF
1284#line 1285 "configure"
1285#include "confdefs.h"
1286
1287int main() {
1288main()
1289; return 0; }
1290EOF
1291if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1292  rm -rf conftest*
1293  eval "ac_cv_lib_$ac_lib_var=yes"
1294else
1295  echo "configure: failed program was:" >&5
1296  cat conftest.$ac_ext >&5
1297  rm -rf conftest*
1298  eval "ac_cv_lib_$ac_lib_var=no"
1299fi
1300rm -f conftest*
1301LIBS="$ac_save_LIBS"
1302
1303fi
1304if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1305  echo "$ac_t""yes" 1>&6
1306    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1307    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1308  cat >> confdefs.h <<EOF
1309#define $ac_tr_lib 1
1310EOF
1311
1312  LIBS="-lsocket $LIBS"
1313
1314else
1315  echo "$ac_t""no" 1>&6
1316fi
1317
1318
1319echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1320echo "configure:1321: checking for ANSI C header files" >&5
1321if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1322  echo $ac_n "(cached) $ac_c" 1>&6
1323else
1324  cat > conftest.$ac_ext <<EOF
1325#line 1326 "configure"
1326#include "confdefs.h"
1327#include <stdlib.h>
1328#include <stdarg.h>
1329#include <string.h>
1330#include <float.h>
1331EOF
1332ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1333{ (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1334ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1335if test -z "$ac_err"; then
1336  rm -rf conftest*
1337  ac_cv_header_stdc=yes
1338else
1339  echo "$ac_err" >&5
1340  echo "configure: failed program was:" >&5
1341  cat conftest.$ac_ext >&5
1342  rm -rf conftest*
1343  ac_cv_header_stdc=no
1344fi
1345rm -f conftest*
1346
1347if test $ac_cv_header_stdc = yes; then
1348  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1349cat > conftest.$ac_ext <<EOF
1350#line 1351 "configure"
1351#include "confdefs.h"
1352#include <string.h>
1353EOF
1354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1355  egrep "memchr" >/dev/null 2>&1; then
1356  :
1357else
1358  rm -rf conftest*
1359  ac_cv_header_stdc=no
1360fi
1361rm -f conftest*
1362
1363fi
1364
1365if test $ac_cv_header_stdc = yes; then
1366  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1367cat > conftest.$ac_ext <<EOF
1368#line 1369 "configure"
1369#include "confdefs.h"
1370#include <stdlib.h>
1371EOF
1372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1373  egrep "free" >/dev/null 2>&1; then
1374  :
1375else
1376  rm -rf conftest*
1377  ac_cv_header_stdc=no
1378fi
1379rm -f conftest*
1380
1381fi
1382
1383if test $ac_cv_header_stdc = yes; then
1384  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1385if test "$cross_compiling" = yes; then
1386  :
1387else
1388  cat > conftest.$ac_ext <<EOF
1389#line 1390 "configure"
1390#include "confdefs.h"
1391#include <ctype.h>
1392#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1393#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1395int main () { int i; for (i = 0; i < 256; i++)
1396if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1397exit (0); }
1398
1399EOF
1400if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1401then
1402  :
1403else
1404  echo "configure: failed program was:" >&5
1405  cat conftest.$ac_ext >&5
1406  rm -fr conftest*
1407  ac_cv_header_stdc=no
1408fi
1409rm -fr conftest*
1410fi
1411
1412fi
1413fi
1414
1415echo "$ac_t""$ac_cv_header_stdc" 1>&6
1416if test $ac_cv_header_stdc = yes; then
1417  cat >> confdefs.h <<\EOF
1418#define STDC_HEADERS 1
1419EOF
1420
1421fi
1422
1423echo $ac_n "checking for int32_t""... $ac_c" 1>&6
1424echo "configure:1425: checking for int32_t" >&5
1425if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
1426  echo $ac_n "(cached) $ac_c" 1>&6
1427else
1428  cat > conftest.$ac_ext <<EOF
1429#line 1430 "configure"
1430#include "confdefs.h"
1431#include <sys/types.h>
1432#if STDC_HEADERS
1433#include <stdlib.h>
1434#include <stddef.h>
1435#endif
1436EOF
1437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438  egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1439  rm -rf conftest*
1440  ac_cv_type_int32_t=yes
1441else
1442  rm -rf conftest*
1443  ac_cv_type_int32_t=no
1444fi
1445rm -f conftest*
1446
1447fi
1448echo "$ac_t""$ac_cv_type_int32_t" 1>&6
1449if test $ac_cv_type_int32_t = no; then
1450  cat >> confdefs.h <<\EOF
1451#define int32_t int
1452EOF
1453
1454fi
1455
1456echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
1457echo "configure:1458: checking for u_int32_t" >&5
1458if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
1459  echo $ac_n "(cached) $ac_c" 1>&6
1460else
1461  cat > conftest.$ac_ext <<EOF
1462#line 1463 "configure"
1463#include "confdefs.h"
1464#include <sys/types.h>
1465#if STDC_HEADERS
1466#include <stdlib.h>
1467#include <stddef.h>
1468#endif
1469EOF
1470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1471  egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1472  rm -rf conftest*
1473  ac_cv_type_u_int32_t=yes
1474else
1475  rm -rf conftest*
1476  ac_cv_type_u_int32_t=no
1477fi
1478rm -f conftest*
1479
1480fi
1481echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
1482if test $ac_cv_type_u_int32_t = no; then
1483  cat >> confdefs.h <<\EOF
1484#define u_int32_t u_int
1485EOF
1486
1487fi
1488
1489
1490rm -f os-proto.h
1491    if test "${LBL_CFLAGS+set}" = set; then
1492	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
1493    fi
1494    if test -f .devel ; then
1495	     if test "$GCC" = yes ; then
1496	    if test "$SHLICC2" = yes ; then
1497		    ac_cv_lbl_gcc_vers=2
1498		    V_CCOPT="`echo $V_CCOPT | sed -e 's/-O/-O2/'`"
1499	    else
1500		    echo $ac_n "checking gcc version""... $ac_c" 1>&6
1501echo "configure:1502: checking gcc version" >&5
1502		    if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
1503  echo $ac_n "(cached) $ac_c" 1>&6
1504else
1505  ac_cv_lbl_gcc_vers=`$CC --version 2>&1 | \
1506			    sed -e 's/\..*//'`
1507fi
1508
1509		    echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1510		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1511			    V_CCOPT="`echo $V_CCOPT | sed -e 's/-O/-O2/'`"
1512		    fi
1513	    fi
1514	    if test "${LBL_CFLAGS+set}" != set; then
1515		    if test "$ac_cv_prog_cc_g" = yes ; then
1516			    V_CCOPT="-g $V_CCOPT"
1517		    fi
1518		    V_CCOPT="$V_CCOPT -Wall"
1519		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1520			    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
1521		    fi
1522	    fi
1523    else
1524	    case "$target_os" in
1525
1526	    irix6*)
1527		    V_CCOPT="$V_CCOPT -fullwarn -n32"
1528		    ;;
1529
1530	    *)
1531		    ;;
1532	    esac
1533    fi
1534	    os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
1535	    name="lbl/os-$os.h"
1536	    if test -f $name ; then
1537		    ln -s $name os-proto.h
1538		    cat >> confdefs.h <<\EOF
1539#define HAVE_OS_PROTO_H 1
1540EOF
1541
1542	    else
1543		    echo "configure: warning: can't find $name" 1>&2
1544	    fi
1545    fi
1546
1547if test -r lbl/gnuc.h ; then
1548	rm -f gnuc.h
1549	ln -s lbl/gnuc.h gnuc.h
1550fi
1551
1552
1553
1554
1555# Find a good install program.  We prefer a C program (faster),
1556# so one script is as good as another.  But avoid the broken or
1557# incompatible versions:
1558# SysV /etc/install, /usr/sbin/install
1559# SunOS /usr/etc/install
1560# IRIX /sbin/install
1561# AIX /bin/install
1562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1565# ./install, which can be erroneously created by make from ./install.sh.
1566echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1567echo "configure:1568: checking for a BSD compatible install" >&5
1568if test -z "$INSTALL"; then
1569if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1570  echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1573  for ac_dir in $PATH; do
1574    # Account for people who put trailing slashes in PATH elements.
1575    case "$ac_dir/" in
1576    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1577    *)
1578      # OSF1 and SCO ODT 3.0 have their own names for install.
1579      # Don't use installbsd from OSF since it installs stuff as root
1580      # by default.
1581      for ac_prog in ginstall scoinst install; do
1582        if test -f $ac_dir/$ac_prog; then
1583	  if test $ac_prog = install &&
1584            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1585	    # AIX install.  It has an incompatible calling convention.
1586	    :
1587	  else
1588	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1589	    break 2
1590	  fi
1591	fi
1592      done
1593      ;;
1594    esac
1595  done
1596  IFS="$ac_save_IFS"
1597
1598fi
1599  if test "${ac_cv_path_install+set}" = set; then
1600    INSTALL="$ac_cv_path_install"
1601  else
1602    # As a last resort, use the slow shell script.  We don't cache a
1603    # path for INSTALL within a source directory, because that will
1604    # break other packages using the cache if that directory is
1605    # removed, or if the path is relative.
1606    INSTALL="$ac_install_sh"
1607  fi
1608fi
1609echo "$ac_t""$INSTALL" 1>&6
1610
1611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1612# It thinks the first close brace ends the variable substitution.
1613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1614
1615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1616
1617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618
1619
1620trap '' 1 2 15
1621cat > confcache <<\EOF
1622# This file is a shell script that caches the results of configure
1623# tests run on this system so they can be shared between configure
1624# scripts and configure runs.  It is not useful on other systems.
1625# If it contains results you don't want to keep, you may remove or edit it.
1626#
1627# By default, configure uses ./config.cache as the cache file,
1628# creating it if it does not exist already.  You can give configure
1629# the --cache-file=FILE option to use a different cache file; that is
1630# what configure does when it calls configure scripts in
1631# subdirectories, so they share the cache.
1632# Giving --cache-file=/dev/null disables caching, for debugging configure.
1633# config.status only pays attention to the cache file if you give it the
1634# --recheck option to rerun configure.
1635#
1636EOF
1637# The following way of writing the cache mishandles newlines in values,
1638# but we know of no workaround that is simple, portable, and efficient.
1639# So, don't put newlines in cache variables' values.
1640# Ultrix sh set writes to stderr and can't be redirected directly,
1641# and sets the high bit in the cache file unless we assign to the vars.
1642(set) 2>&1 |
1643  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1644  *ac_space=\ *)
1645    # `set' does not quote correctly, so add quotes (double-quote substitution
1646    # turns \\\\ into \\, and sed turns \\ into \).
1647    sed -n \
1648      -e "s/'/'\\\\''/g" \
1649      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1650    ;;
1651  *)
1652    # `set' quotes correctly as required by POSIX, so do not add quotes.
1653    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1654    ;;
1655  esac >> confcache
1656if cmp -s $cache_file confcache; then
1657  :
1658else
1659  if test -w $cache_file; then
1660    echo "updating cache $cache_file"
1661    cat confcache > $cache_file
1662  else
1663    echo "not updating unwritable cache $cache_file"
1664  fi
1665fi
1666rm -f confcache
1667
1668trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1669
1670test "x$prefix" = xNONE && prefix=$ac_default_prefix
1671# Let make expand exec_prefix.
1672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1673
1674# Any assignment to VPATH causes Sun make to only execute
1675# the first set of double-colon rules, so remove it if not needed.
1676# If there is a colon in the path, we need to keep it.
1677if test "x$srcdir" = x.; then
1678  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1679fi
1680
1681trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1682
1683# Transform confdefs.h into DEFS.
1684# Protect against shell expansion while executing Makefile rules.
1685# Protect against Makefile macro expansion.
1686cat > conftest.defs <<\EOF
1687s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1688s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
1689s%\[%\\&%g
1690s%\]%\\&%g
1691s%\$%$$%g
1692EOF
1693DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1694rm -f conftest.defs
1695
1696
1697# Without the "./", some shells look in PATH for config.status.
1698: ${CONFIG_STATUS=./config.status}
1699
1700echo creating $CONFIG_STATUS
1701rm -f $CONFIG_STATUS
1702cat > $CONFIG_STATUS <<EOF
1703#! /bin/sh
1704# Generated automatically by configure.
1705# Run this file to recreate the current configuration.
1706# This directory was configured as follows,
1707# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1708#
1709# $0 $ac_configure_args
1710#
1711# Compiler output produced by configure, useful for debugging
1712# configure, is in ./config.log if it exists.
1713
1714ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1715for ac_option
1716do
1717  case "\$ac_option" in
1718  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1719    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1720    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1721  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1722    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1723    exit 0 ;;
1724  -help | --help | --hel | --he | --h)
1725    echo "\$ac_cs_usage"; exit 0 ;;
1726  *) echo "\$ac_cs_usage"; exit 1 ;;
1727  esac
1728done
1729
1730ac_given_srcdir=$srcdir
1731ac_given_INSTALL="$INSTALL"
1732
1733trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1734EOF
1735cat >> $CONFIG_STATUS <<EOF
1736
1737# Protect against being on the right side of a sed subst in config.status.
1738sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1739 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1740$ac_vpsub
1741$extrasub
1742s%@SHELL@%$SHELL%g
1743s%@CFLAGS@%$CFLAGS%g
1744s%@CPPFLAGS@%$CPPFLAGS%g
1745s%@CXXFLAGS@%$CXXFLAGS%g
1746s%@FFLAGS@%$FFLAGS%g
1747s%@DEFS@%$DEFS%g
1748s%@LDFLAGS@%$LDFLAGS%g
1749s%@LIBS@%$LIBS%g
1750s%@exec_prefix@%$exec_prefix%g
1751s%@prefix@%$prefix%g
1752s%@program_transform_name@%$program_transform_name%g
1753s%@bindir@%$bindir%g
1754s%@sbindir@%$sbindir%g
1755s%@libexecdir@%$libexecdir%g
1756s%@datadir@%$datadir%g
1757s%@sysconfdir@%$sysconfdir%g
1758s%@sharedstatedir@%$sharedstatedir%g
1759s%@localstatedir@%$localstatedir%g
1760s%@libdir@%$libdir%g
1761s%@includedir@%$includedir%g
1762s%@oldincludedir@%$oldincludedir%g
1763s%@infodir@%$infodir%g
1764s%@mandir@%$mandir%g
1765s%@host@%$host%g
1766s%@host_alias@%$host_alias%g
1767s%@host_cpu@%$host_cpu%g
1768s%@host_vendor@%$host_vendor%g
1769s%@host_os@%$host_os%g
1770s%@target@%$target%g
1771s%@target_alias@%$target_alias%g
1772s%@target_cpu@%$target_cpu%g
1773s%@target_vendor@%$target_vendor%g
1774s%@target_os@%$target_os%g
1775s%@build@%$build%g
1776s%@build_alias@%$build_alias%g
1777s%@build_cpu@%$build_cpu%g
1778s%@build_vendor@%$build_vendor%g
1779s%@build_os@%$build_os%g
1780s%@SHLICC2@%$SHLICC2%g
1781s%@CC@%$CC%g
1782s%@CPP@%$CPP%g
1783s%@LIBOBJS@%$LIBOBJS%g
1784s%@V_CCOPT@%$V_CCOPT%g
1785s%@V_INCLS@%$V_INCLS%g
1786s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1787s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1788s%@INSTALL_DATA@%$INSTALL_DATA%g
1789
1790CEOF
1791EOF
1792
1793cat >> $CONFIG_STATUS <<\EOF
1794
1795# Split the substitutions into bite-sized pieces for seds with
1796# small command number limits, like on Digital OSF/1 and HP-UX.
1797ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1798ac_file=1 # Number of current file.
1799ac_beg=1 # First line for current file.
1800ac_end=$ac_max_sed_cmds # Line after last line for current file.
1801ac_more_lines=:
1802ac_sed_cmds=""
1803while $ac_more_lines; do
1804  if test $ac_beg -gt 1; then
1805    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1806  else
1807    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1808  fi
1809  if test ! -s conftest.s$ac_file; then
1810    ac_more_lines=false
1811    rm -f conftest.s$ac_file
1812  else
1813    if test -z "$ac_sed_cmds"; then
1814      ac_sed_cmds="sed -f conftest.s$ac_file"
1815    else
1816      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1817    fi
1818    ac_file=`expr $ac_file + 1`
1819    ac_beg=$ac_end
1820    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1821  fi
1822done
1823if test -z "$ac_sed_cmds"; then
1824  ac_sed_cmds=cat
1825fi
1826EOF
1827
1828cat >> $CONFIG_STATUS <<EOF
1829
1830CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1831EOF
1832cat >> $CONFIG_STATUS <<\EOF
1833for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1834  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1835  case "$ac_file" in
1836  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1837       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1838  *) ac_file_in="${ac_file}.in" ;;
1839  esac
1840
1841  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1842
1843  # Remove last slash and all that follows it.  Not all systems have dirname.
1844  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1845  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1846    # The file is in a subdirectory.
1847    test ! -d "$ac_dir" && mkdir "$ac_dir"
1848    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1849    # A "../" for each directory in $ac_dir_suffix.
1850    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1851  else
1852    ac_dir_suffix= ac_dots=
1853  fi
1854
1855  case "$ac_given_srcdir" in
1856  .)  srcdir=.
1857      if test -z "$ac_dots"; then top_srcdir=.
1858      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1859  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1860  *) # Relative path.
1861    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1862    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1863  esac
1864
1865  case "$ac_given_INSTALL" in
1866  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1867  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1868  esac
1869
1870  echo creating "$ac_file"
1871  rm -f "$ac_file"
1872  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1873  case "$ac_file" in
1874  *Makefile*) ac_comsub="1i\\
1875# $configure_input" ;;
1876  *) ac_comsub= ;;
1877  esac
1878
1879  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1880  sed -e "$ac_comsub
1881s%@configure_input@%$configure_input%g
1882s%@srcdir@%$srcdir%g
1883s%@top_srcdir@%$top_srcdir%g
1884s%@INSTALL@%$INSTALL%g
1885" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1886fi; done
1887rm -f conftest.s*
1888
1889EOF
1890cat >> $CONFIG_STATUS <<EOF
1891
1892EOF
1893cat >> $CONFIG_STATUS <<\EOF
1894
1895exit 0
1896EOF
1897chmod +x $CONFIG_STATUS
1898rm -fr confdefs* $ac_clean_files
1899test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1900
1901
1902if test -f .devel ; then
1903	make depend
1904fi
1905exit 0
1906