#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
  --enable-dynamic        use dynamic linking  (yes)"
ac_help="$ac_help
  --enable-absolute-pathes  burn absolute pathes to tools  (yes)"
ac_help="$ac_help
  --enable-doc            install documentation  (no)"
ac_help="$ac_help
  --enable-oasys          install Oasys interpreter  (yes [no for cygwin])"
ac_help="$ac_help
  --enable-dosfop         install Dosfop documentation system  (no)"
ac_help="$ac_help
  --enable-opalwin        install OpalWin library  (yes [no for cygwin])"
ac_help="$ac_help
  --enable-reflections    install Dynamite Opal reflection library  (yes)"
ac_help="$ac_help
  --enable-tivi2          install TIVI2 InterOpal viewer  (yes [no for cygwin])"
ac_help="$ac_help
  --enable-opaljava       install Opal/Java library  (no)"
ac_help="$ac_help
  --enable-oc5            install alternative frontend  (no)"
ac_help="$ac_help
  --enable-proofchecker   install Oasys with integrated proof checker  (no)"
ac_help="$ac_help
  --enable-locallinks     install links in /usr/local/bin (yes)"
ac_help="$ac_help
  --with-cflags=FLAGS     pass FLAGS on C compilation"
ac_help="$ac_help
  --with-ldflags=FLAGS    pass FLAGS on linkage"
ac_help="$ac_help
  --with-libs=LIBS        use LIBS on linkage"
ac_help="$ac_help
  --with-dldlflags=FLAGS  pass FLAGS on linkage of dynamic"
ac_help="$ac_help
  --with-dldlibs=LIBS     use LIBS on linkage of dynamic"
ac_help="$ac_help
  --with-ldrpath=FLAGS    specify how to add directory to linker's runtime library search path"
ac_help="$ac_help
  --with-ldrpathlink=FLAGS  specify how to add directory to linker's link time library search path"
ac_help="$ac_help
  --with-soname=FLAGS     specify how to set internal SONAME field"
ac_help="$ac_help
  --with-ldstatic=FLAGS   specify how to mark static link targets"
ac_help="$ac_help
  --with-lddynamic=FLAGS  specify how to mark dynamic link targets"
ac_help="$ac_help
  --with-readline-lib=LIBFLAGS    how to link readline library"
ac_help="$ac_help
  --with-readline-incl=INCLFLAGS  how to include readline/readline.h"
ac_help="$ac_help
  --with-tcl-lib=LIBFLAGS         how to link Tcl library"
ac_help="$ac_help
  --with-tcl-incl=INCLFLAGS       how to include tcl.h"
ac_help="$ac_help
  --with-tk-lib=LIBFLAGS          how to link Tk library"
ac_help="$ac_help
  --with-tk-incl=INCLFLAGS        how to include tk.h"
ac_help="$ac_help
  --with-java-lib=LIBFLAGS        how to link Java library"
ac_help="$ac_help
  --with-java-incl=INCLFLAGS      how to include jni.h"
ac_help="$ac_help
  --with-pizzahome=PATH           path to pizza home directory"
ac_help="$ac_help
  --with-x                use the X Window System"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
for ac_option
do

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *)
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=ocs-version

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi



# -------------------------------------------------------------------------
# Clearing unwanted defaults

CC=
CPP=
CFLAGS=
CPPFLAGS=
LDFLAGS=
LIBS=
DEFS=

# -------------------------------------------------------------------------
# Check for C compiler

CFLAGS=

# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:609: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:639: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_prog_rejected=no
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test -z "$CC"; then
    case "`uname -s`" in
    *win32* | *WIN32*)
      # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:690: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext << EOF

#line 733 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:769: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
else
  GCC=
fi

ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:797: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
else
  ac_cv_prog_cc_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
  CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
 

# Check for POSIX ISC
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo "configure:831: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
  echo "$ac_t""yes" 1>&6
  ISC=yes # If later tests want to check for ISC.
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  if test "$GCC" = yes; then
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
else
  echo "$ac_t""no" 1>&6
  ISC=
fi



## get current system
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.


# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:880: checking host system type" >&5

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:901: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 906 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
if { (eval echo configure:917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_cygwin=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_cygwin=no
fi
rm -f conftest*
rm -f conftest*
fi

echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes

echo "CYGWINs value is >$CYGWIN<"
if test -z "$CYGWIN" 
then
  featureflag=yes
else
  featureflag=no
fi

# -------------------------------------------------------------------------
# Macro definitions


















      





















# -------------------------------------------------------------------------
# Checking features 
# export features














  echo $ac_n "checking feature dynamic""... $ac_c" 1>&6
echo "configure:1002: checking feature dynamic" >&5
  # Check whether --enable-dynamic or --disable-dynamic was given.
if test "${enable_dynamic+set}" = set; then
  enableval="$enable_dynamic"
  ocs_cv_feature_dynamic=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_dynamic'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_dynamic=yes
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_dynamic" 1>&6



  echo $ac_n "checking feature absolute-pathes""... $ac_c" 1>&6
echo "configure:1022: checking feature absolute-pathes" >&5
  # Check whether --enable-absolute-pathes or --disable-absolute-pathes was given.
if test "${enable_absolute_pathes+set}" = set; then
  enableval="$enable_absolute_pathes"
  ocs_cv_feature_absolute_pathes=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_absolute_pathes'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_absolute_pathes=yes
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_absolute_pathes" 1>&6



  echo $ac_n "checking feature doc""... $ac_c" 1>&6
echo "configure:1042: checking feature doc" >&5
  # Check whether --enable-doc or --disable-doc was given.
if test "${enable_doc+set}" = set; then
  enableval="$enable_doc"
  ocs_cv_feature_doc=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_doc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_doc=no
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_doc" 1>&6



  echo $ac_n "checking feature oasys""... $ac_c" 1>&6
echo "configure:1062: checking feature oasys" >&5
  # Check whether --enable-oasys or --disable-oasys was given.
if test "${enable_oasys+set}" = set; then
  enableval="$enable_oasys"
  ocs_cv_feature_oasys=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_oasys'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_oasys=$featureflag
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_oasys" 1>&6



  echo $ac_n "checking feature dosfop""... $ac_c" 1>&6
echo "configure:1082: checking feature dosfop" >&5
  # Check whether --enable-dosfop or --disable-dosfop was given.
if test "${enable_dosfop+set}" = set; then
  enableval="$enable_dosfop"
  ocs_cv_feature_dosfop=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_dosfop'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_dosfop=no
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_dosfop" 1>&6



  echo $ac_n "checking feature opalwin""... $ac_c" 1>&6
echo "configure:1102: checking feature opalwin" >&5
  # Check whether --enable-opalwin or --disable-opalwin was given.
if test "${enable_opalwin+set}" = set; then
  enableval="$enable_opalwin"
  ocs_cv_feature_opalwin=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_opalwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_opalwin=$featureflag
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_opalwin" 1>&6



  echo $ac_n "checking feature reflections""... $ac_c" 1>&6
echo "configure:1122: checking feature reflections" >&5
  # Check whether --enable-reflections or --disable-reflections was given.
if test "${enable_reflections+set}" = set; then
  enableval="$enable_reflections"
  ocs_cv_feature_reflections=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_reflections'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_reflections=yes
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_reflections" 1>&6



  echo $ac_n "checking feature tivi2""... $ac_c" 1>&6
echo "configure:1142: checking feature tivi2" >&5
  # Check whether --enable-tivi2 or --disable-tivi2 was given.
if test "${enable_tivi2+set}" = set; then
  enableval="$enable_tivi2"
  ocs_cv_feature_tivi2=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_tivi2'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_tivi2=$featureflag
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_tivi2" 1>&6



  echo $ac_n "checking feature opaljava""... $ac_c" 1>&6
echo "configure:1162: checking feature opaljava" >&5
  # Check whether --enable-opaljava or --disable-opaljava was given.
if test "${enable_opaljava+set}" = set; then
  enableval="$enable_opaljava"
  ocs_cv_feature_opaljava=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_opaljava'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_opaljava=no
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_opaljava" 1>&6



  echo $ac_n "checking feature oc5""... $ac_c" 1>&6
echo "configure:1182: checking feature oc5" >&5
  # Check whether --enable-oc5 or --disable-oc5 was given.
if test "${enable_oc5+set}" = set; then
  enableval="$enable_oc5"
  ocs_cv_feature_oc5=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_oc5'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_oc5=no
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_oc5" 1>&6



  echo $ac_n "checking feature proofchecker""... $ac_c" 1>&6
echo "configure:1202: checking feature proofchecker" >&5
  # Check whether --enable-proofchecker or --disable-proofchecker was given.
if test "${enable_proofchecker+set}" = set; then
  enableval="$enable_proofchecker"
  ocs_cv_feature_proofchecker=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_proofchecker'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_proofchecker=no
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_proofchecker" 1>&6



  echo $ac_n "checking feature locallinks""... $ac_c" 1>&6
echo "configure:1222: checking feature locallinks" >&5
  # Check whether --enable-locallinks or --disable-locallinks was given.
if test "${enable_locallinks+set}" = set; then
  enableval="$enable_locallinks"
  ocs_cv_feature_locallinks=$enableval
else
  if eval "test \"`echo '$''{'ocs_cv_feature_locallinks'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_feature_locallinks=yes
fi

  
fi

  echo "$ac_t""$ocs_cv_feature_locallinks" 1>&6



## check explicit given flags


  echo $ac_n "checking flags cflags""... $ac_c" 1>&6
echo "configure:1245: checking flags cflags" >&5
  # Check whether --with-cflags or --without-cflags was given.
if test "${with_cflags+set}" = set; then
  withval="$with_cflags"
  ocs_cv_with_cflags=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_cflags'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_cflags=no
fi

  
fi

  echo "$ac_t""$ocs_cv_with_cflags" 1>&6



  echo $ac_n "checking flags ldflags""... $ac_c" 1>&6
echo "configure:1265: checking flags ldflags" >&5
  # Check whether --with-ldflags or --without-ldflags was given.
if test "${with_ldflags+set}" = set; then
  withval="$with_ldflags"
  ocs_cv_with_ldflags=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_ldflags'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_ldflags=no
fi

  
fi

  echo "$ac_t""$ocs_cv_with_ldflags" 1>&6



  echo $ac_n "checking flags libs""... $ac_c" 1>&6
echo "configure:1285: checking flags libs" >&5
  # Check whether --with-libs or --without-libs was given.
if test "${with_libs+set}" = set; then
  withval="$with_libs"
  ocs_cv_with_libs=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_libs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_libs=no
fi

  
fi

  echo "$ac_t""$ocs_cv_with_libs" 1>&6



  echo $ac_n "checking flags dldflags""... $ac_c" 1>&6
echo "configure:1305: checking flags dldflags" >&5
  # Check whether --with-dldflags or --without-dldflags was given.
if test "${with_dldflags+set}" = set; then
  withval="$with_dldflags"
  ocs_cv_with_dldflags=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_dldflags'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_dldflags=no
fi

  
fi

  echo "$ac_t""$ocs_cv_with_dldflags" 1>&6



  echo $ac_n "checking flags dldlibs""... $ac_c" 1>&6
echo "configure:1325: checking flags dldlibs" >&5
  # Check whether --with-dldlibs or --without-dldlibs was given.
if test "${with_dldlibs+set}" = set; then
  withval="$with_dldlibs"
  ocs_cv_with_dldlibs=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_dldlibs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_dldlibs=no
fi

  
fi

  echo "$ac_t""$ocs_cv_with_dldlibs" 1>&6



  echo $ac_n "checking flags ldrpath""... $ac_c" 1>&6
echo "configure:1345: checking flags ldrpath" >&5
  # Check whether --with-ldrpath or --without-ldrpath was given.
if test "${with_ldrpath+set}" = set; then
  withval="$with_ldrpath"
  ocs_cv_with_ldrpath=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_ldrpath'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_ldrpath=""
fi

  
fi

  echo "$ac_t""$ocs_cv_with_ldrpath" 1>&6



  echo $ac_n "checking flags ldrpathlink""... $ac_c" 1>&6
echo "configure:1365: checking flags ldrpathlink" >&5
  # Check whether --with-ldrpathlink or --without-ldrpathlink was given.
if test "${with_ldrpathlink+set}" = set; then
  withval="$with_ldrpathlink"
  ocs_cv_with_ldrpathlink=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_ldrpathlink'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_ldrpathlink=""
fi

  
fi

  echo "$ac_t""$ocs_cv_with_ldrpathlink" 1>&6



  echo $ac_n "checking flags soname""... $ac_c" 1>&6
echo "configure:1385: checking flags soname" >&5
  # Check whether --with-soname or --without-soname was given.
if test "${with_soname+set}" = set; then
  withval="$with_soname"
  ocs_cv_with_soname=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_soname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_soname=""
fi

  
fi

  echo "$ac_t""$ocs_cv_with_soname" 1>&6



  echo $ac_n "checking flags ldstatic""... $ac_c" 1>&6
echo "configure:1405: checking flags ldstatic" >&5
  # Check whether --with-ldstatic or --without-ldstatic was given.
if test "${with_ldstatic+set}" = set; then
  withval="$with_ldstatic"
  ocs_cv_with_ldstatic=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_ldstatic'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_ldstatic=""
fi

  
fi

  echo "$ac_t""$ocs_cv_with_ldstatic" 1>&6



  echo $ac_n "checking flags lddynamic""... $ac_c" 1>&6
echo "configure:1425: checking flags lddynamic" >&5
  # Check whether --with-lddynamic or --without-lddynamic was given.
if test "${with_lddynamic+set}" = set; then
  withval="$with_lddynamic"
  ocs_cv_with_lddynamic=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_lddynamic'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_lddynamic=""
fi

  
fi

  echo "$ac_t""$ocs_cv_with_lddynamic" 1>&6


# readline library

  echo $ac_n "checking flags readline-lib""... $ac_c" 1>&6
echo "configure:1446: checking flags readline-lib" >&5
  # Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
  withval="$with_readline_lib"
  ocs_cv_with_readline_lib=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_readline_lib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_readline_lib="yes"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_readline_lib" 1>&6



  echo $ac_n "checking flags readline-incl""... $ac_c" 1>&6
echo "configure:1466: checking flags readline-incl" >&5
  # Check whether --with-readline-incl or --without-readline-incl was given.
if test "${with_readline_incl+set}" = set; then
  withval="$with_readline_incl"
  ocs_cv_with_readline_incl=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_readline_incl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_readline_incl="yes"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_readline_incl" 1>&6


# tcllibrary

  echo $ac_n "checking flags tcl-lib""... $ac_c" 1>&6
echo "configure:1487: checking flags tcl-lib" >&5
  # Check whether --with-tcl-lib or --without-tcl-lib was given.
if test "${with_tcl_lib+set}" = set; then
  withval="$with_tcl_lib"
  ocs_cv_with_tcl_lib=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_tcl_lib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_tcl_lib="yes"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_tcl_lib" 1>&6



  echo $ac_n "checking flags tcl-incl""... $ac_c" 1>&6
echo "configure:1507: checking flags tcl-incl" >&5
  # Check whether --with-tcl-incl or --without-tcl-incl was given.
if test "${with_tcl_incl+set}" = set; then
  withval="$with_tcl_incl"
  ocs_cv_with_tcl_incl=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_tcl_incl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_tcl_incl="yes"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_tcl_incl" 1>&6



# tk library

  echo $ac_n "checking flags tk-lib""... $ac_c" 1>&6
echo "configure:1529: checking flags tk-lib" >&5
  # Check whether --with-tk-lib or --without-tk-lib was given.
if test "${with_tk_lib+set}" = set; then
  withval="$with_tk_lib"
  ocs_cv_with_tk_lib=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_tk_lib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_tk_lib="$featureflag"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_tk_lib" 1>&6


  echo $ac_n "checking flags tk-incl""... $ac_c" 1>&6
echo "configure:1548: checking flags tk-incl" >&5
  # Check whether --with-tk-incl or --without-tk-incl was given.
if test "${with_tk_incl+set}" = set; then
  withval="$with_tk_incl"
  ocs_cv_with_tk_incl=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_tk_incl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_tk_incl="$featureflag"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_tk_incl" 1>&6


# java

  echo $ac_n "checking flags java-lib""... $ac_c" 1>&6
echo "configure:1569: checking flags java-lib" >&5
  # Check whether --with-java-lib or --without-java-lib was given.
if test "${with_java_lib+set}" = set; then
  withval="$with_java_lib"
  ocs_cv_with_java_lib=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_java_lib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_java_lib="$featureflag"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_java_lib" 1>&6



  echo $ac_n "checking flags java-incl""... $ac_c" 1>&6
echo "configure:1589: checking flags java-incl" >&5
  # Check whether --with-java-incl or --without-java-incl was given.
if test "${with_java_incl+set}" = set; then
  withval="$with_java_incl"
  ocs_cv_with_java_incl=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_java_incl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_java_incl="$featureflag"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_java_incl" 1>&6



  echo $ac_n "checking flags pizzahome""... $ac_c" 1>&6
echo "configure:1609: checking flags pizzahome" >&5
  # Check whether --with-pizzahome or --without-pizzahome was given.
if test "${with_pizzahome+set}" = set; then
  withval="$with_pizzahome"
  ocs_cv_with_pizzahome=$withval
else
  if eval "test \"`echo '$''{'ocs_cv_with_pizzahome'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_with_pizzahome="$featureflag"
fi

  
fi

  echo "$ac_t""$ocs_cv_with_pizzahome" 1>&6


cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


## Check which packages are included

ocs_std_packages=lib.opal_parserlight

ocs_lib_readline=X
ocs_lib_java=X
ocs_lib_tcl=X
ocs_lib_tk=X

if test -z "$CYGWIN" 
then
  
  if test "$ocs_cv_with_readline_lib" = "no" -o "$ocs_cv_with_readline_incl" = "no"
  then
    echo $ac_n "checking disabling readline library""... $ac_c" 1>&6
echo "configure:1690: checking disabling readline library" >&5
    ocs_lib_readline=
  else
    ocs_std_packages="$ocs_std_packages lib.opal_readline"
  fi

fi

if test -z "$CYGWIN" 
then
  if test "$ocs_cv_feature_opaljava" = "yes"
  then
    ocs_std_packages="$ocs_std_packages pkg.javabind lib.opal_java"
  fi
fi

if test -z "$CYGWIN"
then
  
  if test "$ocs_cv_with_tcl_lib" = "no" -o "$ocs_cv_with_tcl_incl" = "no"
  then
    echo $ac_n "checking disabling tcl library""... $ac_c" 1>&6
echo "configure:1712: checking disabling tcl library" >&5
    ocs_lib_tcl=
  else
    ocs_std_packages="$ocs_std_packages lib.opal_tcl"
  fi

  
  if test "$ocs_cv_with_tk_lib" = "no" -o "$ocs_cv_with_tk_incl" = "no"
  then
    echo $ac_n "checking disabling tk library""... $ac_c" 1>&6
echo "configure:1722: checking disabling tk library" >&5
    ocs_lib_tk=
  else
    ocs_std_packages="$ocs_std_packages lib.opal_tk"
  fi


  
  ocs_lib_win=lib.opal_win
  
  if test -z "$ocs_lib_tcl"
  then
  ocs_lib_win=
  echo "configure: warning: disabling Opal Windows" 1>&2
  fi
  
  
  if test -z "$ocs_lib_tk"
  then
  ocs_lib_win=
  echo "configure: warning: disabling Opal Windows" 1>&2
  fi
  
  if test -n "$ocs_lib_win"
  then
    ocs_std_packages="$ocs_std_packages lib.opal_win"
  fi
fi


if test "$ocs_cv_feature_reflections" != "no"
then
  ocs_std_packages="$ocs_std_packages pkg.dynamite lib.oc_reflections"
fi

ocs_std_packages="$ocs_std_packages pkg.browser pkg.emacs pkg.kde pkg.vim"


if test "$ocs_cv_feature_dosfop" != "no"
then
ocs_std_packages="$ocs_std_packages pkg.dosfop"
fi


if test "$ocs_cv_feature_doc" != "no"
then
  if test "$ocs_cv_feature_dosfop" = "no"
  then
    { echo "configure: error: "cannot install documentation without dosfop"" 1>&2; exit 1; }
  fi
  if test "$CYGWIN" = "yes" 
  then
    { echo "configure: error: "cannot generate documentation on cygwin systems"" 1>&2; exit 1; }
  else
    ocs_std_packages="$ocs_std_packages pkg.doc"
  fi
   	
fi

ocs_std_packages="$ocs_std_packages pkg.ordinatrice"

if test -z "$CYGWIN"
then
  
  if test "$ocs_cv_feature_oasys" != "no"
  then
    if test "$ocs_cv_feature_dynamic" = "no"
    then
      { echo "configure: error: Oasys needs dynamic linking" 1>&2; exit 1; }
    fi 
      if test -z "$ocs_lib_readline"
    then
      echo "configure: warning: disabling fancy input for Oasys" 1>&2
    fi
    
  if test -z "$ocs_lib_tcl"
  then
  { echo "configure: error: Oasys depends on Tcl" 1>&2; exit 1; }
  fi

    ocs_std_packages="$ocs_std_packages lib.oasys_shared lib.oasys_main pkg.oasys pkg.evaluator"
  fi
fi

if test -z "$CYGWIN"
then
  
  if test "$ocs_cv_feature_tivi2" = "yes"
  then
    ocs_pkg_tivi2=pkg.tivi2
    
  if test -z "$ocs_lib_win"
  then
  ocs_pkg_tivi2=
  echo "configure: warning: disabling tivi2" 1>&2
  fi
  
    if test -n "$ocs_pkg_tivi2"
    then
      ocs_std_packages="$ocs_std_packages pkg.tivi2"
    fi
  fi
fi

if test "$ocs_cv_feature_oc5" != "no"
then
  ocs_std_packages="$ocs_std_packages pkg.oc5"
fi

if test -z "$CYGWIN"
then
  if test "$ocs_cv_feature_proofchecker" != "no"
  then
    if test "$ocs_cv_feature_oasys" != "no"
    then
      ocs_std_packages="$ocs_std_packages lib.oasys_pc pkg.oasyspc lib.oasys_prooflib"
    else
      { echo "configure: error: Proofchecker requires Oasys" 1>&2; exit 1; }
    fi
  fi
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


# -------------------------------------------------------------------------
# Checks for C compiler characteristics and general configuration







  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in $ac_cv_prog_CC
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1908: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_CC" in
  /*)
  ac_cv_path_ac_cv_path_CC="$ac_cv_path_CC" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_CC="$ac_cv_path_CC" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_CC="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_CC="$ac_cv_path_ac_cv_path_CC"
if test -n "$ac_cv_path_CC"; then
  echo "$ac_t""$ac_cv_path_CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CC" && break
done

  else
     for ac_prog in $ac_cv_prog_CC
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1949: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_CC"; then
  ac_cv_prog_ac_cv_path_CC="$ac_cv_path_CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_CC="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_CC="$ac_cv_prog_ac_cv_path_CC"
if test -n "$ac_cv_path_CC"; then
  echo "$ac_t""$ac_cv_path_CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CC" && break
done

  fi


if test "$ocs_cv_with_cflags" != no
then
  ocs_CC="$ac_cv_path_CC  $ocs_cv_with_cflags"
else
  ocs_CC="$ac_cv_path_CC"
fi
CC="$ocs_CC"
CFLAGS=


ocs_CC="$CC"


# Check how to run the preprocessor

echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1997: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 2012 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 2029 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
#line 2046 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6










# Check if word sizes are as expected

echo $ac_n "checking size of void *""... $ac_c" 1>&6
echo "configure:2088: checking size of void *" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 2096 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void *));
  exit(0);
}
EOF
if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_sizeof_void_p=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_sizeof_void_p=0
fi
rm -fr conftest*
fi

fi
echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
EOF


if test "$ac_cv_sizeof_void_p" -lt 4
then
   { echo "configure: error: Sorry. You cannot use OCS at the moment
on systems with less than 32 bits per word." 1>&2; exit 1; }
fi


# Check for C compiler optimization flags 

echo $ac_n "checking C compiler optimization flags""... $ac_c" 1>&6
echo "configure:2136: checking C compiler optimization flags" >&5
if eval "test \"`echo '$''{'ocs_cv_flag_cc_opt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_flag_cc_opt=
  for ocs_flag in -O2 -O
  do 
    cat > conftest.c <<EOF
int main() {return 0;}
EOF
    if test -z "`$CC -c $ocs_flag conftest.c 2>&1 1>/dev/null`"
    then
      ocs_cv_flag_cc_opt="$ocs_flag"
      break
    fi
  done
  rm -f conftest* a.out
  if test -n "$ocs_cv_flag_cc_opt" && test -n ""
  then
    ocs_act=""
  else
    if test -z "$ocs_cv_flag_cc_opt" && test -n ""
    then
      ocs_act=""
    else
      ocs_act=":"
    fi
  fi
  $ocs_act

fi

echo "$ac_t""$ocs_cv_flag_cc_opt" 1>&6
if test -z "$ocs_cv_flag_cc_opt"
then
  echo "configure: warning: cannot figure out how to optimize with $CC (will be disabled)" 1>&2
fi



# Check for C compiler debugging flags 

echo $ac_n "checking C compiler debugging flags""... $ac_c" 1>&6
echo "configure:2179: checking C compiler debugging flags" >&5
if eval "test \"`echo '$''{'ocs_cv_flag_cc_debug'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_flag_cc_debug=
  for ocs_flag in -g
  do 
    cat > conftest.c <<EOF
int main() {return 0;}
EOF
    if test -z "`$CC -c $ocs_flag conftest.c 2>&1 1>/dev/null`"
    then
      ocs_cv_flag_cc_debug="$ocs_flag"
      break
    fi
  done
  rm -f conftest* a.out
  if test -n "$ocs_cv_flag_cc_debug" && test -n ""
  then
    ocs_act=""
  else
    if test -z "$ocs_cv_flag_cc_debug" && test -n ""
    then
      ocs_act=""
    else
      ocs_act=":"
    fi
  fi
  $ocs_act

fi

echo "$ac_t""$ocs_cv_flag_cc_debug" 1>&6
if test -z "$ocs_cv_flag_cc_debug"
then
  echo "configure: warning: cannot figure out how to debug with $CC (will be disabled)" 1>&2
fi


# Check for C compiler profiling flags 

echo $ac_n "checking C compiler profiling flags""... $ac_c" 1>&6
echo "configure:2221: checking C compiler profiling flags" >&5
if eval "test \"`echo '$''{'ocs_cv_flag_cc_profile'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_flag_cc_profile=
  for ocs_flag in "-g -pg" "-g -p"
  do 
    cat > conftest.c <<EOF
int main() {return 0;}
EOF
    if test -z "`$CC -c $ocs_flag conftest.c 2>&1 1>/dev/null`"
    then
      ocs_cv_flag_cc_profile="$ocs_flag"
      break
    fi
  done
  rm -f conftest* a.out
  if test -n "$ocs_cv_flag_cc_profile" && test -n ""
  then
    ocs_act=""
  else
    if test -z "$ocs_cv_flag_cc_profile" && test -n ""
    then
      ocs_act=""
    else
      ocs_act=":"
    fi
  fi
  $ocs_act

fi

echo "$ac_t""$ocs_cv_flag_cc_profile" 1>&6
if test -z "$ocs_cv_flag_cc_profile"
then
  echo "configure: warning: cannot figure out how to profile with $CC (will be disabled)" 1>&2
fi


# Check if we have to align doubles - always set currently

ocs_DEFS="$ocs_DEFS -D_ALIGN_DOUBLE_"

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


# -------------------------------------------------------------------------
# Check linker and libraries




if test "$ocs_cv_with_ldflags" != no
then
  ocs_LD="$ac_cv_path_CC $ocs_cv_with_ldflags"
  LDFLAGS="$ocs_cv_with_ldflags"
else
  ocs_LD="$ac_cv_path_CC"
  LDFLAGS=
fi

if test "$ocs_cv_with_libs" != no
then
  ocs_LIBS="$ocs_cv_with_libs"
else
  echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo "configure:2332: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2340 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_LIBS="$ocs_LIBS -lm"
else
  echo "$ac_t""no" 1>&6
fi

  if test "$ocs_cv_feature_dynamic" = yes
  then
      echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
echo "configure:2370: checking for main in -ldl" >&5
ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2378 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_LIBS="$ocs_LIBS -ldl"
else
  echo "$ac_t""no" 1>&6
fi

  fi
fi

case "$ocs_LIBS" in
  *-lm*)
    ;;
  *)
    echo "configure: warning: -lm not provided" 1>&2
    ;;
esac

LIBS="$ocs_LIBS"

if test "$ocs_cv_with_libs" != no
then 
  echo $ac_n "checking whether $ocs_LIBS links""... $ac_c" 1>&6
echo "configure:2421: checking whether $ocs_LIBS links" >&5
  cat > conftest.$ac_ext <<EOF
#line 2423 "configure"
#include "confdefs.h"

int main() {
return 0;
; return 0; }
EOF
if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


# -------------------------------------------------------------------------
# Check for dynamic linker












if test "$ocs_cv_feature_dynamic" = "yes"
then

  echo $ac_n "checking how to produce position-independent code""... $ac_c" 1>&6
echo "configure:2508: checking how to produce position-independent code" >&5
  if test "$ac_cv_prog_gcc" = yes
  then
    if eval "test \"`echo '$''{'ocs_cv_flag_cc_pic'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_flag_cc_pic=
  for ocs_flag in -fPIC -fpic
  do 
    cat > conftest.c <<EOF
int main() {return 0;}
EOF
    if test -z "`$CC -c $ocs_flag conftest.c 2>&1 1>/dev/null`"
    then
      ocs_cv_flag_cc_pic="$ocs_flag"
      break
    fi
  done
  rm -f conftest* a.out
  if test -n "$ocs_cv_flag_cc_pic" && test -n ""
  then
    ocs_act=""
  else
    if test -z "$ocs_cv_flag_cc_pic" && test -n ""
    then
      ocs_act=""
    else
      ocs_act=":"
    fi
  fi
  $ocs_act

fi

  else
    if eval "test \"`echo '$''{'ocs_cv_flag_cc_pic'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_flag_cc_pic=
  for ocs_flag in -PIC -pic "-K PIC" "-K pic"
  do 
    cat > conftest.c <<EOF
int main() {return 0;}
EOF
    if test -z "`$CC -c $ocs_flag conftest.c 2>&1 1>/dev/null`"
    then
      ocs_cv_flag_cc_pic="$ocs_flag"
      break
    fi
  done
  rm -f conftest* a.out
  if test -n "$ocs_cv_flag_cc_pic" && test -n ""
  then
    ocs_act=""
  else
    if test -z "$ocs_cv_flag_cc_pic" && test -n ""
    then
      ocs_act=""
    else
      ocs_act=":"
    fi
  fi
  $ocs_act

fi

  fi
  echo "$ac_t""$ocs_cv_flag_cc_pic" 1>&6
  if test -z "$ocs_cv_flag_cc_pic"
  then
    echo "configure: warning: cannot figure out how to produce position-independent code (ignored)" 1>&2
  fi

  if test "$ocs_cv_with_dldflags" = no
  then
    echo $ac_n "checking how to link shared objects""... $ac_c" 1>&6
echo "configure:2584: checking how to link shared objects" >&5
    if eval "test \"`echo '$''{'ocs_cv_flag_cc_shared'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ocs_cv_flag_cc_shared=
  for ocs_flag in -shared
  do 
    cat > conftest.c <<EOF
int main() {return 0;}
EOF
    if test -z "`$CC -c $ocs_flag conftest.c 2>&1 1>/dev/null`"
    then
      ocs_cv_flag_cc_shared="$ocs_flag"
      break
    fi
  done
  rm -f conftest* a.out
  if test -n "$ocs_cv_flag_cc_shared" && test -n ""
  then
    ocs_act=""
  else
    if test -z "$ocs_cv_flag_cc_shared" && test -n ""
    then
      ocs_act=""
    else
      ocs_act=":"
    fi
  fi
  $ocs_act

fi

    echo "$ac_t""$ocs_cv_flag_cc_shared" 1>&6
    if test -z "$ocs_cv_flag_cc_shared"
    then
      echo "configure: warning: cannot figure out how to link shared objects (ignored)" 1>&2
    fi
    ocs_DLD="$ac_cv_path_CC $ocs_LDFLAGS $ocs_cv_flag_cc_shared"
  else
    ocs_DLD="$ac_cv_path_CC $ocs_LDFLAGS $ocs_cv_with_dldflags"
  fi

  if test "$ocs_cv_with_dldlibs" != no
  then
    ocs_DLDLIBS="$ocs_LIBS $ocs_cv_with_dldlibs"
  else
    ocs_DLDLIBS="$ocs_LIBS"
  fi

  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in ld
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2641: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_LD" in
  /*)
  ac_cv_path_ac_cv_path_LD="$ac_cv_path_LD" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_LD="$ac_cv_path_LD" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_LD="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_LD="$ac_cv_path_ac_cv_path_LD"
if test -n "$ac_cv_path_LD"; then
  echo "$ac_t""$ac_cv_path_LD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LD" && break
done

  else
     for ac_prog in ld
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2682: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_LD"; then
  ac_cv_prog_ac_cv_path_LD="$ac_cv_path_LD" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_LD="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_LD="$ac_cv_prog_ac_cv_path_LD"
if test -n "$ac_cv_path_LD"; then
  echo "$ac_t""$ac_cv_path_LD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LD" && break
done

  fi

  echo $ac_n "checking what flags your linker needs for shared libraries""... $ac_c" 1>&6
echo "configure:2714: checking what flags your linker needs for shared libraries" >&5
  ocs_found=no
  
  
  
  
  

  if test -n "$ocs_cv_with_ldrpath" -a \
          -n "$ocs_cv_with_ldrpathlink" -a \
          -n "$ocs_cv_with_soname" -a \
          -n "$ocs_cv_with_ldstatic" -a \
          -n "$ocs_cv_with_lddynamic"
  then
    ocs_found=yes
    echo "$ac_t""explicitly provided" 1>&6
    ocs_save_LIBS=$LIBS
    LIBS="$LIBS -ldl"
    for ac_func in dlopen
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2735: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2740 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

    LIBS=$ocs_save_LIBS
  fi

  # do we have the GNU linker?
  if test "$ocs_found" = no 
  then
    if $ac_cv_path_LD -V 2>&1 | grep "GNU" 1> /dev/null 2>&1
    then
      echo "$ac_t""GNU linker flags" 1>&6
      ocs_found=yes
      
  ocs_cv_with_ldrpath=-Wl,-rpath,
  

      
  ocs_cv_with_ldrpathlink=-Wl,-rpath-link,
  

      
  ocs_cv_with_soname=-Wl,-soname,
  

      
  ocs_cv_with_ldstatic="-Xlinker -Bstatic"
  

      
  ocs_cv_with_lddynamic="-Xlinker -Bdynamic"
  

      ocs_save_LIBS=$LIBS
      LIBS="$LIBS -ldl"
      for ac_func in dlopen
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2822: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2827 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

      LIBS=$ocs_save_LIBS
    fi
  fi
  # do we have the solaris linker?
  if test "$ocs_found" = no 
  then
    if $ac_cv_path_LD -V 2>&1| grep "Solaris" 1> /dev/null 2>&1
    then
      echo "$ac_t""Solaris linker flags" 1>&6
      ocs_found=yes
      
  ocs_cv_with_ldrpath=-Wl,-R
  

      
  ocs_cv_with_ldrpathlink=-Wl,-R
  

      
  ocs_cv_with_soname=-Wl,-h
  

      
  ocs_cv_with_ldstatic=-Wl,-B,static
  

      
  ocs_cv_with_lddynamic=-Wl,-B,dynamic
  

      ocs_save_LIBS=$LIBS
      LIBS="$LIBS -ldl"
      for ac_func in dlopen
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2909: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2914 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

      LIBS=$ocs_save_LIBS
    fi 
  fi

  if test "$ocs_found" = no
  then
    { echo "configure: error: cannot find out what flags your linker needs." 1>&2; exit 1; }
  fi 

  ocs_LD="$ocs_CC $ocs_cv_with_ldrpath\${OCSLIBPATH} $ocs_cv_with_ldrpathlink\${OCSLIBPATH}"
else
    ocs_LD=$ocs_CC        
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


# -------------------------------------------------------------------------
# Check for basic includes

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3027: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3032 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3057 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3075 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 3096 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

if test "$ac_cv_header_stdc" = no
then
  echo "configure: warning: seem to have no STDC headers (might cause problems)" 1>&2
fi

for ac_hdr in unistd.h memory.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3139: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3144 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done



cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# -------------------------------------------------------------------------
# Check system types

for ac_hdr in sys/types.h limits.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3231: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3236 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
echo "configure:3269: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3274 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_uid_t=yes
else
  rm -rf conftest*
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
  cat >> confdefs.h <<\EOF
#define uid_t int
EOF

  cat >> confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo $ac_n "checking for mode_t""... $ac_c" 1>&6
echo "configure:3303: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3308 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_mode_t=yes
else
  rm -rf conftest*
  ac_cv_type_mode_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
  cat >> confdefs.h <<\EOF
#define mode_t int
EOF

fi

echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:3336: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3341 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:3369: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3374 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:3402: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3407 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int main() {
int i;
; return 0; }
EOF
if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_signal=int
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF


echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
echo "configure:3443: checking type of array argument to getgroups" >&5
if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_type_getgroups=cross
else
  cat > conftest.$ac_ext <<EOF
#line 3451 "configure"
#include "confdefs.h"

/* Thanks to Mike Rendell for this test.  */
#include <sys/types.h>
#define NGID 256
#undef MAX
#define MAX(x, y) ((x) > (y) ? (x) : (y))
main()
{
  gid_t gidset[NGID];
  int i, n;
  union { gid_t gval; long lval; }  val;

  val.lval = -1;
  for (i = 0; i < NGID; i++)
    gidset[i] = val.gval;
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                 gidset);
  /* Exit non-zero if getgroups seems to require an array of ints.  This
     happens when gid_t is short but getgroups modifies an array of ints.  */
  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
}

EOF
if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
    ac_cv_type_getgroups=gid_t
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_type_getgroups=int
fi
rm -fr conftest*
fi

if test $ac_cv_type_getgroups = cross; then
        cat > conftest.$ac_ext <<EOF
#line 3490 "configure"
#include "confdefs.h"
#include <unistd.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_getgroups=gid_t
else
  rm -rf conftest*
  ac_cv_type_getgroups=int
fi
rm -f conftest*

fi
fi

echo "$ac_t""$ac_cv_type_getgroups" 1>&6
cat >> confdefs.h <<EOF
#define GETGROUPS_T $ac_cv_type_getgroups
EOF



cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# -------------------------------------------------------------------------
# Check user and groups

for ac_hdr in pwd.h grp.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3568: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3573 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


# -------------------------------------------------------------------------
# Check process control facilities

echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
echo "configure:3609: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3614 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
int main() {
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_sys_wait_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_sys_wait_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
if test $ac_cv_header_sys_wait_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1
EOF

fi


# -------------------------------------------------------------------------
# Check time facilities and stat

for ac_hdr in sys/time.h sys/times.h sys/stat.h utime.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3658: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3663 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:3695: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3700 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
echo "configure:3730: checking whether utime accepts a null argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata; > conftestdata
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
if test "$cross_compiling" = yes; then
  ac_cv_func_utime_null=no
else
  cat > conftest.$ac_ext <<EOF
#line 3740 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
main() {
struct stat s, t;
exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
&& t.st_mtime - s.st_mtime < 120));
}
EOF
if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_utime_null=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_utime_null=no
fi
rm -fr conftest*
fi

rm -f core core.* *.core
fi

echo "$ac_t""$ac_cv_func_utime_null" 1>&6
if test $ac_cv_func_utime_null = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_UTIME_NULL 1
EOF

fi


if test "$ocs_cv_feature_proofchecker" != "no"
then
  for ac_func in gettimeofday
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3780: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3785 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 ocs_found=yes
else
  echo "$ac_t""no" 1>&6
ocs_found=no
fi
done

  if test "$ocs_found" = "no"
  then
    { echo "configure: error: proofchecker employs gettimeofday function / disable proofchecker" 1>&2; exit 1; }
  fi
fi
  

# -------------------------------------------------------------------------
# Check for dirent

ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
echo "configure:3848: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3853 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
int main() {
DIR *dirp = 0;
; return 0; }
EOF
if { (eval echo configure:3861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 ac_header_dirent=$ac_hdr; break
else
  echo "$ac_t""no" 1>&6
fi
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:3886: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldir  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3894 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -ldir"
else
  echo "$ac_t""no" 1>&6
fi

else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:3927: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lx  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3935 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lx"
else
  echo "$ac_t""no" 1>&6
fi

fi


cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# -------------------------------------------------------------------------
# Check for float ranges

echo $ac_n "checking for DBL_MAX et al. in <float.h>""... $ac_c" 1>&6
echo "configure:4020: checking for DBL_MAX et al. in <float.h>" >&5
cat > conftest.$ac_ext <<EOF
#line 4022 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <float.h>
#ifdef DBL_MAX 
  has__DBL_MAX
#endif
  
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "has__DBL_MAX" >/dev/null 2>&1; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_DBL_MAX 1
EOF

else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
  echo $ac_n "checking for MAXDOUBLE et al. in <values.h>""... $ac_c" 1>&6
echo "configure:4043: checking for MAXDOUBLE et al. in <values.h>" >&5
  cat > conftest.$ac_ext <<EOF
#line 4045 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <values.h>
#ifdef MAXDOUBLE 
  has__MAXDOUBLE
#endif
    
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "has__MAXDOUBLE" >/dev/null 2>&1; then
  rm -rf conftest*
  echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define HAVE_MAXDOUBLE 1
EOF

else
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
  
fi
rm -f conftest*


fi
rm -f conftest*


# -------------------------------------------------------------------------
# Checks for library functions.

for ac_func in getcwd mkdir mkfifo rmdir times clock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4080: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4085 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

for ac_func in strerror strftime strtod difftime strdup
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4135: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4140 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


if test "$ac_cv_func_strerror" = no
then
  for ac_func in sys_errlist
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4193: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4198 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi


echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
echo "configure:4249: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_memcmp_clean=no
else
  cat > conftest.$ac_ext <<EOF
#line 4257 "configure"
#include "confdefs.h"

main()
{
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
}

EOF
if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_memcmp_clean=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_memcmp_clean=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"

if test "$ac_cv_func_memcmp_clean" = yes
then
  cat >> confdefs.h <<\EOF
#define HAVE_CLEAN_MEMCMP 1
EOF

fi

echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
echo "configure:4293: checking whether getpgrp takes no argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
else
  cat > conftest.$ac_ext <<EOF
#line 4301 "configure"
#include "confdefs.h"

/*
 * If this system has a BSD-style getpgrp(),
 * which takes a pid argument, exit unsuccessfully.
 *
 * Snarfed from Chet Ramey's bash pgrp.c test program
 */
#include <stdio.h>
#include <sys/types.h>

int     pid;
int     pg1, pg2, pg3, pg4;
int     ng, np, s, child;

main()
{
        pid = getpid();
        pg1 = getpgrp(0);
        pg2 = getpgrp();
        pg3 = getpgrp(pid);
        pg4 = getpgrp(1);

        /*
         * If all of these values are the same, it's pretty sure that
         * we're on a system that ignores getpgrp's first argument.
         */
        if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
                exit(0);

        child = fork();
        if (child < 0)
                exit(1);
        else if (child == 0) {
                np = getpid();
                /*
                 * If this is Sys V, this will not work; pgrp will be
                 * set to np because setpgrp just changes a pgrp to be
                 * the same as the pid.
                 */
                setpgrp(np, pg1);
                ng = getpgrp(0);        /* Same result for Sys V and BSD */
                if (ng == pg1) {
                        exit(1);
                } else {
                        exit(0);
                }
        } else {
                wait(&s);
                exit(s>>8);
        }
}

EOF
if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_getpgrp_void=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_getpgrp_void=no
fi
rm -fr conftest*
fi


fi

echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
if test $ac_cv_func_getpgrp_void = yes; then
  cat >> confdefs.h <<\EOF
#define GETPGRP_VOID 1
EOF

fi



if test "$ocs_cv_with_dynamic" = yes
then
  for ac_func in dlopen
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4386: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 4391 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

  if test "$ac_cv_func_dlopen" = no
  then
    echo "configure: warning: cannot support runtime linking on this machine" 1>&2
  fi
fi



# -------------------------------------------------------------------------
# Check for lex/flex




if test -z "$ac_cv_path_LEX"
then
  # Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4457: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_LEX="flex"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
fi
fi
LEX="$ac_cv_prog_LEX"
if test -n "$LEX"; then
  echo "$ac_t""$LEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$LEXLIB"
then
  case "$LEX" in
  flex*) ac_lib=fl ;;
  *) ac_lib=l ;;
  esac
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
echo "configure:4491: checking for yywrap in -l$ac_lib" >&5
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-l$ac_lib  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4499 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yywrap();

int main() {
yywrap()
; return 0; }
EOF
if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LEXLIB="-l$ac_lib"
else
  echo "$ac_t""no" 1>&6
fi

fi

  ocs_cv_flag_cc_lexlib="$LEXLIB"
  if test -z "$LEXLIB"
  then
    echo "configure: warning: Could not find a library for $ac_cv_prog_LEX. Falling back to lex with -ll." 1>&2 
    ac_cv_prog_LEX=lex
    ocs_cv_flag_cc_lexlib="-ll"
  fi
  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in $ac_cv_prog_LEX
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4547: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_LEX" in
  /*)
  ac_cv_path_ac_cv_path_LEX="$ac_cv_path_LEX" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_LEX="$ac_cv_path_LEX" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_LEX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_LEX="$ac_cv_path_ac_cv_path_LEX"
if test -n "$ac_cv_path_LEX"; then
  echo "$ac_t""$ac_cv_path_LEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LEX" && break
done
test -n "$ac_cv_path_LEX" || ac_cv_path_LEX="not found"

  else
     for ac_prog in $ac_cv_prog_LEX
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4589: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_LEX"; then
  ac_cv_prog_ac_cv_path_LEX="$ac_cv_path_LEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_LEX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_LEX="$ac_cv_prog_ac_cv_path_LEX"
if test -n "$ac_cv_path_LEX"; then
  echo "$ac_t""$ac_cv_path_LEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LEX" && break
done
test -n "$ac_cv_path_LEX" || ac_cv_path_LEX="not found"

  fi

  if test "$ac_cv_path_LEX" = "not found"
  then
  { echo "configure: error: cannot find flex or lex" 1>&2; exit 1; }
  fi
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


# -------------------------------------------------------------------------
# Check for archiver, nm, ranlib and strip








  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in ar
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4692: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_AR" in
  /*)
  ac_cv_path_ac_cv_path_AR="$ac_cv_path_AR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_AR="$ac_cv_path_AR" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_AR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_AR="$ac_cv_path_ac_cv_path_AR"
if test -n "$ac_cv_path_AR"; then
  echo "$ac_t""$ac_cv_path_AR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_AR" && break
done
test -n "$ac_cv_path_AR" || ac_cv_path_AR="no"

  else
     for ac_prog in ar
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4734: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_AR"; then
  ac_cv_prog_ac_cv_path_AR="$ac_cv_path_AR" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_AR="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_AR="$ac_cv_prog_ac_cv_path_AR"
if test -n "$ac_cv_path_AR"; then
  echo "$ac_t""$ac_cv_path_AR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_AR" && break
done
test -n "$ac_cv_path_AR" || ac_cv_path_AR="no"

  fi

if test "$ac_cv_path_AR" = no
then
  { echo "configure: error: cannot locate the archiver (ar) in your path" 1>&2; exit 1; }
fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in ranlib
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4779: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_RANLIB" in
  /*)
  ac_cv_path_ac_cv_path_RANLIB="$ac_cv_path_RANLIB" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_RANLIB="$ac_cv_path_RANLIB" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_RANLIB="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_RANLIB="$ac_cv_path_ac_cv_path_RANLIB"
if test -n "$ac_cv_path_RANLIB"; then
  echo "$ac_t""$ac_cv_path_RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_RANLIB" && break
done
test -n "$ac_cv_path_RANLIB" || ac_cv_path_RANLIB=":"

  else
     for ac_prog in ranlib
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4821: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_RANLIB"; then
  ac_cv_prog_ac_cv_path_RANLIB="$ac_cv_path_RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_RANLIB="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_RANLIB="$ac_cv_prog_ac_cv_path_RANLIB"
if test -n "$ac_cv_path_RANLIB"; then
  echo "$ac_t""$ac_cv_path_RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_RANLIB" && break
done
test -n "$ac_cv_path_RANLIB" || ac_cv_path_RANLIB=":"

  fi

ac_cv_path_UPDLIB="$ac_cv_path_RANLIB"



  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in strip
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4864: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_STRIP" in
  /*)
  ac_cv_path_ac_cv_path_STRIP="$ac_cv_path_STRIP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_STRIP="$ac_cv_path_STRIP" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_STRIP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_STRIP="$ac_cv_path_ac_cv_path_STRIP"
if test -n "$ac_cv_path_STRIP"; then
  echo "$ac_t""$ac_cv_path_STRIP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_STRIP" && break
done
test -n "$ac_cv_path_STRIP" || ac_cv_path_STRIP=":"

  else
     for ac_prog in strip
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4906: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_STRIP"; then
  ac_cv_prog_ac_cv_path_STRIP="$ac_cv_path_STRIP" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_STRIP="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_STRIP="$ac_cv_prog_ac_cv_path_STRIP"
if test -n "$ac_cv_path_STRIP"; then
  echo "$ac_t""$ac_cv_path_STRIP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_STRIP" && break
done
test -n "$ac_cv_path_STRIP" || ac_cv_path_STRIP=":"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in nm
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4946: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_NM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_NM" in
  /*)
  ac_cv_path_ac_cv_path_NM="$ac_cv_path_NM" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_NM="$ac_cv_path_NM" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_NM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_NM="$ac_cv_path_ac_cv_path_NM"
if test -n "$ac_cv_path_NM"; then
  echo "$ac_t""$ac_cv_path_NM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_NM" && break
done
test -n "$ac_cv_path_NM" || ac_cv_path_NM="{ echo "configure: error: "no nm program found"" 1>&2; exit 1; }"

  else
     for ac_prog in nm
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4988: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_NM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_NM"; then
  ac_cv_prog_ac_cv_path_NM="$ac_cv_path_NM" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_NM="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_NM="$ac_cv_prog_ac_cv_path_NM"
if test -n "$ac_cv_path_NM"; then
  echo "$ac_t""$ac_cv_path_NM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_NM" && break
done
test -n "$ac_cv_path_NM" || ac_cv_path_NM="{ echo "configure: error: "no nm program found"" 1>&2; exit 1; }"

  fi


# -------------------------------------------------------------------------
# Check for gmake



echo $ac_n "checking for GNU make""... $ac_c" 1>&6
echo "configure:5027: checking for GNU make" >&5

  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in gmake make
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5036: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_GMAKE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_GMAKE" in
  /*)
  ac_cv_path_ac_cv_path_GMAKE="$ac_cv_path_GMAKE" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_GMAKE="$ac_cv_path_GMAKE" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_GMAKE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_GMAKE="$ac_cv_path_ac_cv_path_GMAKE"
if test -n "$ac_cv_path_GMAKE"; then
  echo "$ac_t""$ac_cv_path_GMAKE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_GMAKE" && break
done

  else
     for ac_prog in gmake make
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5077: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_GMAKE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_GMAKE"; then
  ac_cv_prog_ac_cv_path_GMAKE="$ac_cv_path_GMAKE" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_GMAKE="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_GMAKE="$ac_cv_prog_ac_cv_path_GMAKE"
if test -n "$ac_cv_path_GMAKE"; then
  echo "$ac_t""$ac_cv_path_GMAKE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_GMAKE" && break
done

  fi


if $ac_cv_path_GMAKE --version 2>&1 | grep "GNU" 1>/dev/null 2>&1 
then
    if $ac_cv_path_GMAKE --version --no-print-directory 1>/dev/null 2>&1 
    then
      ocs_GMAKE="$ac_cv_path_GMAKE --no-print-directory"
    else
      ocs_GMAKE="$ac_cv_path_GMAKE"
    fi
else
   { echo "configure: error: $ac_cv_path_GMAKE seems not to be GNU make.
OCS cannot operate without GNU make." 1>&2; exit 1; }
fi


cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# -------------------------------------------------------------------------
# Checks for general UNIX tools










# AC_SUBST(ac_cv_path_XARGS)


# AC_SUBST(ac_cv_path_EXPR)









ac_cv_path_CD=cd
ac_cv_path_ECHO=echo

  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in ls
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5205: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_LS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_LS" in
  /*)
  ac_cv_path_ac_cv_path_LS="$ac_cv_path_LS" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_LS="$ac_cv_path_LS" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_LS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_LS="$ac_cv_path_ac_cv_path_LS"
if test -n "$ac_cv_path_LS"; then
  echo "$ac_t""$ac_cv_path_LS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LS" && break
done
test -n "$ac_cv_path_LS" || ac_cv_path_LS="echo config error: no ls;exit 1: "

  else
     for ac_prog in ls
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5247: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_LS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_LS"; then
  ac_cv_prog_ac_cv_path_LS="$ac_cv_path_LS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_LS="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_LS="$ac_cv_prog_ac_cv_path_LS"
if test -n "$ac_cv_path_LS"; then
  echo "$ac_t""$ac_cv_path_LS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LS" && break
done
test -n "$ac_cv_path_LS" || ac_cv_path_LS="echo config error: no ls;exit 1: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in cat
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5287: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_CAT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_CAT" in
  /*)
  ac_cv_path_ac_cv_path_CAT="$ac_cv_path_CAT" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_CAT="$ac_cv_path_CAT" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_CAT="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_CAT="$ac_cv_path_ac_cv_path_CAT"
if test -n "$ac_cv_path_CAT"; then
  echo "$ac_t""$ac_cv_path_CAT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CAT" && break
done
test -n "$ac_cv_path_CAT" || ac_cv_path_CAT="echo config error: no cat;exit 1;: "

  else
     for ac_prog in cat
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5329: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_CAT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_CAT"; then
  ac_cv_prog_ac_cv_path_CAT="$ac_cv_path_CAT" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_CAT="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_CAT="$ac_cv_prog_ac_cv_path_CAT"
if test -n "$ac_cv_path_CAT"; then
  echo "$ac_t""$ac_cv_path_CAT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CAT" && break
done
test -n "$ac_cv_path_CAT" || ac_cv_path_CAT="echo config error: no cat;exit 1;: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in date
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5369: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_DATE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_DATE" in
  /*)
  ac_cv_path_ac_cv_path_DATE="$ac_cv_path_DATE" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_DATE="$ac_cv_path_DATE" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_DATE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_DATE="$ac_cv_path_ac_cv_path_DATE"
if test -n "$ac_cv_path_DATE"; then
  echo "$ac_t""$ac_cv_path_DATE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_DATE" && break
done
test -n "$ac_cv_path_DATE" || ac_cv_path_DATE=":"

  else
     for ac_prog in date
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5411: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_DATE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_DATE"; then
  ac_cv_prog_ac_cv_path_DATE="$ac_cv_path_DATE" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_DATE="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_DATE="$ac_cv_prog_ac_cv_path_DATE"
if test -n "$ac_cv_path_DATE"; then
  echo "$ac_t""$ac_cv_path_DATE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_DATE" && break
done
test -n "$ac_cv_path_DATE" || ac_cv_path_DATE=":"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in mkdir
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5451: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_MKDIR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_MKDIR" in
  /*)
  ac_cv_path_ac_cv_path_MKDIR="$ac_cv_path_MKDIR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_MKDIR="$ac_cv_path_MKDIR" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_MKDIR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_MKDIR="$ac_cv_path_ac_cv_path_MKDIR"
if test -n "$ac_cv_path_MKDIR"; then
  echo "$ac_t""$ac_cv_path_MKDIR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MKDIR" && break
done
test -n "$ac_cv_path_MKDIR" || ac_cv_path_MKDIR="echo config error: no mkdir;exit 1;: "

  else
     for ac_prog in mkdir
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5493: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_MKDIR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_MKDIR"; then
  ac_cv_prog_ac_cv_path_MKDIR="$ac_cv_path_MKDIR" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_MKDIR="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_MKDIR="$ac_cv_prog_ac_cv_path_MKDIR"
if test -n "$ac_cv_path_MKDIR"; then
  echo "$ac_t""$ac_cv_path_MKDIR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MKDIR" && break
done
test -n "$ac_cv_path_MKDIR" || ac_cv_path_MKDIR="echo config error: no mkdir;exit 1;: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in cp
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5533: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_CP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_CP" in
  /*)
  ac_cv_path_ac_cv_path_CP="$ac_cv_path_CP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_CP="$ac_cv_path_CP" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_CP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_CP="$ac_cv_path_ac_cv_path_CP"
if test -n "$ac_cv_path_CP"; then
  echo "$ac_t""$ac_cv_path_CP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CP" && break
done
test -n "$ac_cv_path_CP" || ac_cv_path_CP="echo config error: no cp;exit 1;: "

  else
     for ac_prog in cp
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5575: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_CP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_CP"; then
  ac_cv_prog_ac_cv_path_CP="$ac_cv_path_CP" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_CP="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_CP="$ac_cv_prog_ac_cv_path_CP"
if test -n "$ac_cv_path_CP"; then
  echo "$ac_t""$ac_cv_path_CP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CP" && break
done
test -n "$ac_cv_path_CP" || ac_cv_path_CP="echo config error: no cp;exit 1;: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in rm
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5615: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_RM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_RM" in
  /*)
  ac_cv_path_ac_cv_path_RM="$ac_cv_path_RM" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_RM="$ac_cv_path_RM" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_RM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_RM="$ac_cv_path_ac_cv_path_RM"
if test -n "$ac_cv_path_RM"; then
  echo "$ac_t""$ac_cv_path_RM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_RM" && break
done
test -n "$ac_cv_path_RM" || ac_cv_path_RM="echo config error: no rm;exit 1;: "

  else
     for ac_prog in rm
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5657: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_RM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_RM"; then
  ac_cv_prog_ac_cv_path_RM="$ac_cv_path_RM" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_RM="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_RM="$ac_cv_prog_ac_cv_path_RM"
if test -n "$ac_cv_path_RM"; then
  echo "$ac_t""$ac_cv_path_RM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_RM" && break
done
test -n "$ac_cv_path_RM" || ac_cv_path_RM="echo config error: no rm;exit 1;: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in mv
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5697: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_MV'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_MV" in
  /*)
  ac_cv_path_ac_cv_path_MV="$ac_cv_path_MV" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_MV="$ac_cv_path_MV" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_MV="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_MV="$ac_cv_path_ac_cv_path_MV"
if test -n "$ac_cv_path_MV"; then
  echo "$ac_t""$ac_cv_path_MV" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MV" && break
done
test -n "$ac_cv_path_MV" || ac_cv_path_MV="echo config error: no mv;exit 1;: "

  else
     for ac_prog in mv
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5739: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_MV'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_MV"; then
  ac_cv_prog_ac_cv_path_MV="$ac_cv_path_MV" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_MV="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_MV="$ac_cv_prog_ac_cv_path_MV"
if test -n "$ac_cv_path_MV"; then
  echo "$ac_t""$ac_cv_path_MV" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MV" && break
done
test -n "$ac_cv_path_MV" || ac_cv_path_MV="echo config error: no mv;exit 1;: "

  fi

# OCS_CHECK_PROGS(ac_cv_path_XARGS,xargs,[echo config error: no xargs;exit 1;: ])

  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in basename
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5780: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_BASENAME'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_BASENAME" in
  /*)
  ac_cv_path_ac_cv_path_BASENAME="$ac_cv_path_BASENAME" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_BASENAME="$ac_cv_path_BASENAME" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_BASENAME="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_BASENAME="$ac_cv_path_ac_cv_path_BASENAME"
if test -n "$ac_cv_path_BASENAME"; then
  echo "$ac_t""$ac_cv_path_BASENAME" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_BASENAME" && break
done
test -n "$ac_cv_path_BASENAME" || ac_cv_path_BASENAME="echo config error: no basename;exit 1;: "

  else
     for ac_prog in basename
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5822: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_BASENAME'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_BASENAME"; then
  ac_cv_prog_ac_cv_path_BASENAME="$ac_cv_path_BASENAME" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_BASENAME="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_BASENAME="$ac_cv_prog_ac_cv_path_BASENAME"
if test -n "$ac_cv_path_BASENAME"; then
  echo "$ac_t""$ac_cv_path_BASENAME" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_BASENAME" && break
done
test -n "$ac_cv_path_BASENAME" || ac_cv_path_BASENAME="echo config error: no basename;exit 1;: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in gsed sed
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5862: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_SED'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_SED" in
  /*)
  ac_cv_path_ac_cv_path_SED="$ac_cv_path_SED" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_SED="$ac_cv_path_SED" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_SED="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_SED="$ac_cv_path_ac_cv_path_SED"
if test -n "$ac_cv_path_SED"; then
  echo "$ac_t""$ac_cv_path_SED" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_SED" && break
done
test -n "$ac_cv_path_SED" || ac_cv_path_SED="echo config error: no sed;exit 1;: "

  else
     for ac_prog in gsed sed
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5904: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_SED'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_SED"; then
  ac_cv_prog_ac_cv_path_SED="$ac_cv_path_SED" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_SED="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_SED="$ac_cv_prog_ac_cv_path_SED"
if test -n "$ac_cv_path_SED"; then
  echo "$ac_t""$ac_cv_path_SED" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_SED" && break
done
test -n "$ac_cv_path_SED" || ac_cv_path_SED="echo config error: no sed;exit 1;: "

  fi

# OCS_CHECK_PROGS(ac_cv_path_EXPR,expr,[echo config error: no expr;exit 1;: ])

  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in chmod
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5945: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_CHMOD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_CHMOD" in
  /*)
  ac_cv_path_ac_cv_path_CHMOD="$ac_cv_path_CHMOD" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_CHMOD="$ac_cv_path_CHMOD" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_CHMOD="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_CHMOD="$ac_cv_path_ac_cv_path_CHMOD"
if test -n "$ac_cv_path_CHMOD"; then
  echo "$ac_t""$ac_cv_path_CHMOD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CHMOD" && break
done
test -n "$ac_cv_path_CHMOD" || ac_cv_path_CHMOD=":"

  else
     for ac_prog in chmod
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:5987: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_CHMOD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_CHMOD"; then
  ac_cv_prog_ac_cv_path_CHMOD="$ac_cv_path_CHMOD" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_CHMOD="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_CHMOD="$ac_cv_prog_ac_cv_path_CHMOD"
if test -n "$ac_cv_path_CHMOD"; then
  echo "$ac_t""$ac_cv_path_CHMOD" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CHMOD" && break
done
test -n "$ac_cv_path_CHMOD" || ac_cv_path_CHMOD=":"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in chgrp
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6027: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_CHGRP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_CHGRP" in
  /*)
  ac_cv_path_ac_cv_path_CHGRP="$ac_cv_path_CHGRP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_CHGRP="$ac_cv_path_CHGRP" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_CHGRP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_CHGRP="$ac_cv_path_ac_cv_path_CHGRP"
if test -n "$ac_cv_path_CHGRP"; then
  echo "$ac_t""$ac_cv_path_CHGRP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CHGRP" && break
done
test -n "$ac_cv_path_CHGRP" || ac_cv_path_CHGRP=":"

  else
     for ac_prog in chgrp
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6069: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_CHGRP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_CHGRP"; then
  ac_cv_prog_ac_cv_path_CHGRP="$ac_cv_path_CHGRP" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_CHGRP="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_CHGRP="$ac_cv_prog_ac_cv_path_CHGRP"
if test -n "$ac_cv_path_CHGRP"; then
  echo "$ac_t""$ac_cv_path_CHGRP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CHGRP" && break
done
test -n "$ac_cv_path_CHGRP" || ac_cv_path_CHGRP=":"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in bzip2 gzip
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6109: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_COMPRESS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_COMPRESS" in
  /*)
  ac_cv_path_ac_cv_path_COMPRESS="$ac_cv_path_COMPRESS" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_COMPRESS="$ac_cv_path_COMPRESS" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_COMPRESS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_COMPRESS="$ac_cv_path_ac_cv_path_COMPRESS"
if test -n "$ac_cv_path_COMPRESS"; then
  echo "$ac_t""$ac_cv_path_COMPRESS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_COMPRESS" && break
done
test -n "$ac_cv_path_COMPRESS" || ac_cv_path_COMPRESS="echo config error: no bzip2/gzip;exit 1;: "

  else
     for ac_prog in bzip2 gzip
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6151: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_COMPRESS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_COMPRESS"; then
  ac_cv_prog_ac_cv_path_COMPRESS="$ac_cv_path_COMPRESS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_COMPRESS="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_COMPRESS="$ac_cv_prog_ac_cv_path_COMPRESS"
if test -n "$ac_cv_path_COMPRESS"; then
  echo "$ac_t""$ac_cv_path_COMPRESS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_COMPRESS" && break
done
test -n "$ac_cv_path_COMPRESS" || ac_cv_path_COMPRESS="echo config error: no bzip2/gzip;exit 1;: "

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in gtar tar
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6191: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_TAR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_TAR" in
  /*)
  ac_cv_path_ac_cv_path_TAR="$ac_cv_path_TAR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_TAR="$ac_cv_path_TAR" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_TAR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_TAR="$ac_cv_path_ac_cv_path_TAR"
if test -n "$ac_cv_path_TAR"; then
  echo "$ac_t""$ac_cv_path_TAR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_TAR" && break
done
test -n "$ac_cv_path_TAR" || ac_cv_path_TAR=":"

  else
     for ac_prog in gtar tar
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6233: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_TAR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_TAR"; then
  ac_cv_prog_ac_cv_path_TAR="$ac_cv_path_TAR" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_TAR="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_TAR="$ac_cv_prog_ac_cv_path_TAR"
if test -n "$ac_cv_path_TAR"; then
  echo "$ac_t""$ac_cv_path_TAR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_TAR" && break
done
test -n "$ac_cv_path_TAR" || ac_cv_path_TAR=":"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in cmp
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6273: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_CMP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_CMP" in
  /*)
  ac_cv_path_ac_cv_path_CMP="$ac_cv_path_CMP" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_CMP="$ac_cv_path_CMP" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_CMP="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_CMP="$ac_cv_path_ac_cv_path_CMP"
if test -n "$ac_cv_path_CMP"; then
  echo "$ac_t""$ac_cv_path_CMP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CMP" && break
done
test -n "$ac_cv_path_CMP" || ac_cv_path_CMP="false"

  else
     for ac_prog in cmp
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6315: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_CMP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_CMP"; then
  ac_cv_prog_ac_cv_path_CMP="$ac_cv_path_CMP" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_CMP="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_CMP="$ac_cv_prog_ac_cv_path_CMP"
if test -n "$ac_cv_path_CMP"; then
  echo "$ac_t""$ac_cv_path_CMP" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_CMP" && break
done
test -n "$ac_cv_path_CMP" || ac_cv_path_CMP="false"

  fi


not_found=no

  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in mail
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6357: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_MAIL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_MAIL" in
  /*)
  ac_cv_path_ac_cv_path_MAIL="$ac_cv_path_MAIL" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_MAIL="$ac_cv_path_MAIL" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_MAIL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_MAIL="$ac_cv_path_ac_cv_path_MAIL"
if test -n "$ac_cv_path_MAIL"; then
  echo "$ac_t""$ac_cv_path_MAIL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MAIL" && break
done
test -n "$ac_cv_path_MAIL" || ac_cv_path_MAIL="not_found=yes"

  else
     for ac_prog in mail
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6399: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_MAIL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_MAIL"; then
  ac_cv_prog_ac_cv_path_MAIL="$ac_cv_path_MAIL" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_MAIL="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_MAIL="$ac_cv_prog_ac_cv_path_MAIL"
if test -n "$ac_cv_path_MAIL"; then
  echo "$ac_t""$ac_cv_path_MAIL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MAIL" && break
done
test -n "$ac_cv_path_MAIL" || ac_cv_path_MAIL="not_found=yes"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in uuencode
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6439: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_UUENCODE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_UUENCODE" in
  /*)
  ac_cv_path_ac_cv_path_UUENCODE="$ac_cv_path_UUENCODE" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_UUENCODE="$ac_cv_path_UUENCODE" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_UUENCODE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_UUENCODE="$ac_cv_path_ac_cv_path_UUENCODE"
if test -n "$ac_cv_path_UUENCODE"; then
  echo "$ac_t""$ac_cv_path_UUENCODE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_UUENCODE" && break
done
test -n "$ac_cv_path_UUENCODE" || ac_cv_path_UUENCODE="not_found=yes"

  else
     for ac_prog in uuencode
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6481: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_UUENCODE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_UUENCODE"; then
  ac_cv_prog_ac_cv_path_UUENCODE="$ac_cv_path_UUENCODE" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_UUENCODE="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_UUENCODE="$ac_cv_prog_ac_cv_path_UUENCODE"
if test -n "$ac_cv_path_UUENCODE"; then
  echo "$ac_t""$ac_cv_path_UUENCODE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_UUENCODE" && break
done
test -n "$ac_cv_path_UUENCODE" || ac_cv_path_UUENCODE="not_found=yes"

  fi


  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in vi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6521: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_EDITOR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_EDITOR" in
  /*)
  ac_cv_path_ac_cv_path_EDITOR="$ac_cv_path_EDITOR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_EDITOR="$ac_cv_path_EDITOR" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_EDITOR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_EDITOR="$ac_cv_path_ac_cv_path_EDITOR"
if test -n "$ac_cv_path_EDITOR"; then
  echo "$ac_t""$ac_cv_path_EDITOR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_EDITOR" && break
done
test -n "$ac_cv_path_EDITOR" || ac_cv_path_EDITOR="not_found=yes"

  else
     for ac_prog in vi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6563: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_EDITOR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_EDITOR"; then
  ac_cv_prog_ac_cv_path_EDITOR="$ac_cv_path_EDITOR" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_EDITOR="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_EDITOR="$ac_cv_prog_ac_cv_path_EDITOR"
if test -n "$ac_cv_path_EDITOR"; then
  echo "$ac_t""$ac_cv_path_EDITOR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_EDITOR" && break
done
test -n "$ac_cv_path_EDITOR" || ac_cv_path_EDITOR="not_found=yes"

  fi

if test "$not_found" = "yes" 
then
  echo "configure: warning: ocs sendbug will not work properly" 1>&2
fi


tmp=`$ac_cv_path_BASENAME $ac_cv_path_COMPRESS`
if test "$tmp" = "gzip"
then
  ocs_cv_compress_suffix=gz
fi
if test "$tmp" = "bzip2"
then
  ocs_cv_compress_suffix=bz2
fi


## special needs for documentation / dosfop









if test "$ocs_cv_feature_dosfop" = "yes" -o "$ocs_cv_feature_reflections" = "yes" -o "$ocs_cv_feature_doc" = "yes"
then
  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in perl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6632: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_PERL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_PERL" in
  /*)
  ac_cv_path_ac_cv_path_PERL="$ac_cv_path_PERL" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_PERL="$ac_cv_path_PERL" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_PERL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_PERL="$ac_cv_path_ac_cv_path_PERL"
if test -n "$ac_cv_path_PERL"; then
  echo "$ac_t""$ac_cv_path_PERL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_PERL" && break
done
test -n "$ac_cv_path_PERL" || ac_cv_path_PERL=""""

  else
     for ac_prog in perl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6674: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_PERL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_PERL"; then
  ac_cv_prog_ac_cv_path_PERL="$ac_cv_path_PERL" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_PERL="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_PERL="$ac_cv_prog_ac_cv_path_PERL"
if test -n "$ac_cv_path_PERL"; then
  echo "$ac_t""$ac_cv_path_PERL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_PERL" && break
done
test -n "$ac_cv_path_PERL" || ac_cv_path_PERL=""""

  fi
  if test -z "$ac_cv_path_PERL" 
  then  
  { echo "configure: error: no perl interpreter found" 1>&2; exit 1; }
  fi

fi

if test "$ocs_cv_feature_dosfop" = "yes" -o "$ocs_cv_feature_doc" = "yes"
then 
  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in wish
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6722: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_WISH'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_WISH" in
  /*)
  ac_cv_path_ac_cv_path_WISH="$ac_cv_path_WISH" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_WISH="$ac_cv_path_WISH" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_WISH="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_WISH="$ac_cv_path_ac_cv_path_WISH"
if test -n "$ac_cv_path_WISH"; then
  echo "$ac_t""$ac_cv_path_WISH" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_WISH" && break
done
test -n "$ac_cv_path_WISH" || ac_cv_path_WISH=""""

  else
     for ac_prog in wish
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6764: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_WISH'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_WISH"; then
  ac_cv_prog_ac_cv_path_WISH="$ac_cv_path_WISH" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_WISH="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_WISH="$ac_cv_prog_ac_cv_path_WISH"
if test -n "$ac_cv_path_WISH"; then
  echo "$ac_t""$ac_cv_path_WISH" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_WISH" && break
done
test -n "$ac_cv_path_WISH" || ac_cv_path_WISH=""""

  fi
  if test -z "$ac_cv_path_WISH" 
  then  
  { echo "configure: error: no wish interpreter found" 1>&2; exit 1; }
  fi

  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in tex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6808: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_TEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_TEX" in
  /*)
  ac_cv_path_ac_cv_path_TEX="$ac_cv_path_TEX" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_TEX="$ac_cv_path_TEX" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_TEX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_TEX="$ac_cv_path_ac_cv_path_TEX"
if test -n "$ac_cv_path_TEX"; then
  echo "$ac_t""$ac_cv_path_TEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_TEX" && break
done
test -n "$ac_cv_path_TEX" || ac_cv_path_TEX=""""

  else
     for ac_prog in tex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6850: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_TEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_TEX"; then
  ac_cv_prog_ac_cv_path_TEX="$ac_cv_path_TEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_TEX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_TEX="$ac_cv_prog_ac_cv_path_TEX"
if test -n "$ac_cv_path_TEX"; then
  echo "$ac_t""$ac_cv_path_TEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_TEX" && break
done
test -n "$ac_cv_path_TEX" || ac_cv_path_TEX=""""

  fi
  if test -z "$ac_cv_path_TEX" 
  then  
  { echo "configure: error: no TeX found" 1>&2; exit 1; }
  fi

  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in latex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6894: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_LATEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_LATEX" in
  /*)
  ac_cv_path_ac_cv_path_LATEX="$ac_cv_path_LATEX" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_LATEX="$ac_cv_path_LATEX" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_LATEX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_LATEX="$ac_cv_path_ac_cv_path_LATEX"
if test -n "$ac_cv_path_LATEX"; then
  echo "$ac_t""$ac_cv_path_LATEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LATEX" && break
done
test -n "$ac_cv_path_LATEX" || ac_cv_path_LATEX=""""

  else
     for ac_prog in latex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6936: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_LATEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_LATEX"; then
  ac_cv_prog_ac_cv_path_LATEX="$ac_cv_path_LATEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_LATEX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_LATEX="$ac_cv_prog_ac_cv_path_LATEX"
if test -n "$ac_cv_path_LATEX"; then
  echo "$ac_t""$ac_cv_path_LATEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_LATEX" && break
done
test -n "$ac_cv_path_LATEX" || ac_cv_path_LATEX=""""

  fi
  if test -z "$ac_cv_path_LATEX" 
  then  
  { echo "configure: error: no LaTeX found" 1>&2; exit 1; }
  fi

  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in dvips
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6980: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_DVIPS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_DVIPS" in
  /*)
  ac_cv_path_ac_cv_path_DVIPS="$ac_cv_path_DVIPS" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_DVIPS="$ac_cv_path_DVIPS" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_DVIPS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_DVIPS="$ac_cv_path_ac_cv_path_DVIPS"
if test -n "$ac_cv_path_DVIPS"; then
  echo "$ac_t""$ac_cv_path_DVIPS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_DVIPS" && break
done
test -n "$ac_cv_path_DVIPS" || ac_cv_path_DVIPS=""""

  else
     for ac_prog in dvips
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7022: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_DVIPS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_DVIPS"; then
  ac_cv_prog_ac_cv_path_DVIPS="$ac_cv_path_DVIPS" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_DVIPS="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_DVIPS="$ac_cv_prog_ac_cv_path_DVIPS"
if test -n "$ac_cv_path_DVIPS"; then
  echo "$ac_t""$ac_cv_path_DVIPS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_DVIPS" && break
done
test -n "$ac_cv_path_DVIPS" || ac_cv_path_DVIPS=""""

  fi
  if test -z "$ac_cv_path_DVIPS" 
  then  
  { echo "configure: error: no dvips found" 1>&2; exit 1; }
  fi

fi

  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in xdvi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7067: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_XDVI'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_XDVI" in
  /*)
  ac_cv_path_ac_cv_path_XDVI="$ac_cv_path_XDVI" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_XDVI="$ac_cv_path_XDVI" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_XDVI="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_XDVI="$ac_cv_path_ac_cv_path_XDVI"
if test -n "$ac_cv_path_XDVI"; then
  echo "$ac_t""$ac_cv_path_XDVI" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_XDVI" && break
done

  else
     for ac_prog in xdvi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7108: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_XDVI'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_XDVI"; then
  ac_cv_prog_ac_cv_path_XDVI="$ac_cv_path_XDVI" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_XDVI="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_XDVI="$ac_cv_prog_ac_cv_path_XDVI"
if test -n "$ac_cv_path_XDVI"; then
  echo "$ac_t""$ac_cv_path_XDVI" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_XDVI" && break
done

  fi
  if test -z "ac_cv_path_XDVI"       
  then
  echo "configure: warning: could not find xdvi. This restricts the usability of Dosfop." 1>&2
  fi



  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in texindex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7152: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_TEXINDEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_TEXINDEX" in
  /*)
  ac_cv_path_ac_cv_path_TEXINDEX="$ac_cv_path_TEXINDEX" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_TEXINDEX="$ac_cv_path_TEXINDEX" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_TEXINDEX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_TEXINDEX="$ac_cv_path_ac_cv_path_TEXINDEX"
if test -n "$ac_cv_path_TEXINDEX"; then
  echo "$ac_t""$ac_cv_path_TEXINDEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_TEXINDEX" && break
done

  else
     for ac_prog in texindex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7193: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_TEXINDEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_TEXINDEX"; then
  ac_cv_prog_ac_cv_path_TEXINDEX="$ac_cv_path_TEXINDEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_TEXINDEX="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_TEXINDEX="$ac_cv_prog_ac_cv_path_TEXINDEX"
if test -n "$ac_cv_path_TEXINDEX"; then
  echo "$ac_t""$ac_cv_path_TEXINDEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_TEXINDEX" && break
done

  fi
  if test -z "ac_cv_path_TEXINDEX"       
  then
  echo "configure: warning: could not find texindex. This restricts the usability of Dosfop." 1>&2
  fi



  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in makeinfo
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7237: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_MAKEINFO'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_MAKEINFO" in
  /*)
  ac_cv_path_ac_cv_path_MAKEINFO="$ac_cv_path_MAKEINFO" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_MAKEINFO="$ac_cv_path_MAKEINFO" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_MAKEINFO="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_MAKEINFO="$ac_cv_path_ac_cv_path_MAKEINFO"
if test -n "$ac_cv_path_MAKEINFO"; then
  echo "$ac_t""$ac_cv_path_MAKEINFO" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MAKEINFO" && break
done

  else
     for ac_prog in makeinfo
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7278: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_MAKEINFO'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_MAKEINFO"; then
  ac_cv_prog_ac_cv_path_MAKEINFO="$ac_cv_path_MAKEINFO" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_MAKEINFO="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_MAKEINFO="$ac_cv_prog_ac_cv_path_MAKEINFO"
if test -n "$ac_cv_path_MAKEINFO"; then
  echo "$ac_t""$ac_cv_path_MAKEINFO" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_MAKEINFO" && break
done

  fi
  if test -z "ac_cv_path_MAKEINFO"       
  then
  echo "configure: warning: could not find makeinfo. This restricts the usability of Dosfop." 1>&2
  fi



if test "$ocs_cv_feature_opaljava" = "yes"
then
  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in java
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7325: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_JAVA'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_JAVA" in
  /*)
  ac_cv_path_ac_cv_path_JAVA="$ac_cv_path_JAVA" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_JAVA="$ac_cv_path_JAVA" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_JAVA="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_JAVA="$ac_cv_path_ac_cv_path_JAVA"
if test -n "$ac_cv_path_JAVA"; then
  echo "$ac_t""$ac_cv_path_JAVA" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_JAVA" && break
done
test -n "$ac_cv_path_JAVA" || ac_cv_path_JAVA=""""

  else
     for ac_prog in java
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7367: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_JAVA'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_JAVA"; then
  ac_cv_prog_ac_cv_path_JAVA="$ac_cv_path_JAVA" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_JAVA="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_JAVA="$ac_cv_prog_ac_cv_path_JAVA"
if test -n "$ac_cv_path_JAVA"; then
  echo "$ac_t""$ac_cv_path_JAVA" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_JAVA" && break
done
test -n "$ac_cv_path_JAVA" || ac_cv_path_JAVA=""""

  fi
  if test -z "$ac_cv_path_JAVA" 
  then  
  { echo "configure: error: Opal-Java needs jvm" 1>&2; exit 1; }
  fi

  ocs_save_PATH=$PATH
  PATH=$PATH:/usr/local/java/javacc/bin:/usr/local/java/JavaCC/bin
  
  if test "$ocs_cv_feature_absolute_pathes" = yes
  then
     for ac_prog in javacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7413: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ac_cv_path_JAVACC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ac_cv_path_JAVACC" in
  /*)
  ac_cv_path_ac_cv_path_JAVACC="$ac_cv_path_JAVACC" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ac_cv_path_JAVACC="$ac_cv_path_JAVACC" # Let the user override the test with a dos path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_ac_cv_path_JAVACC="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ac_cv_path_JAVACC="$ac_cv_path_ac_cv_path_JAVACC"
if test -n "$ac_cv_path_JAVACC"; then
  echo "$ac_t""$ac_cv_path_JAVACC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_JAVACC" && break
done
test -n "$ac_cv_path_JAVACC" || ac_cv_path_JAVACC=""""

  else
     for ac_prog in javacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7455: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_path_JAVACC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_path_JAVACC"; then
  ac_cv_prog_ac_cv_path_JAVACC="$ac_cv_path_JAVACC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_ac_cv_path_JAVACC="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_path_JAVACC="$ac_cv_prog_ac_cv_path_JAVACC"
if test -n "$ac_cv_path_JAVACC"; then
  echo "$ac_t""$ac_cv_path_JAVACC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$ac_cv_path_JAVACC" && break
done
test -n "$ac_cv_path_JAVACC" || ac_cv_path_JAVACC=""""

  fi

  PATH=$ocs_save_PATH

  
  ac_cv_path_PIZZAHOME=""
  if test "$ocs_cv_with_pizzahome" = "yes"
  then
    tmp_dir=/usr/local/pizza
    echo $ac_n "checking for pizza in $tmp_dir""... $ac_c" 1>&6
echo "configure:7495: checking for pizza in $tmp_dir" >&5
    if test -f "$tmp_dir/classes/pizza/compiler/Main.class"
    then
      ac_cv_path_PIZZAHOME=$tmp_dir
      echo "$ac_t""yes" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
    if test -z "$ac_cv_path_PIZZAHOME"
    then
      tmp_dir=/usr/local/java/pizza
      echo $ac_n "checking for pizza in $tmp_dir""... $ac_c" 1>&6
echo "configure:7507: checking for pizza in $tmp_dir" >&5
      if test -f "$tmp_dir/classes/pizza/compiler/Main.class"
      then
        ac_cv_path_PIZZAHOME=$tmp_dir
        echo "$ac_t""yes" 1>&6
      else
        echo "$ac_t""no" 1>&6
      fi
    fi
    if test -z "$ac_cv_path_PIZZAHOME"
    then
      tmp_dir=/usr/java/pizza
      echo $ac_n "checking for pizza in $tmp_dir""... $ac_c" 1>&6
echo "configure:7520: checking for pizza in $tmp_dir" >&5
      if test -f "$tmp_dir/classes/pizza/compiler/Main.class"
      then
        ac_cv_path_PIZZAHOME=$tmp_dir
        echo "$ac_t""yes" 1>&6
      else
        echo "$ac_t""no" 1>&6
      fi
    fi
  else
    echo $ac_n "checking for pizza in given $ocs_cv_with_pizzahome""... $ac_c" 1>&6
echo "configure:7531: checking for pizza in given $ocs_cv_with_pizzahome" >&5
    if test -f "$ocs_cv_with_pizzahome/classes/pizza/compiler/Main.class"
    then
      ac_cv_path_PIZZAHOME=$ocs_cv_with_pizzahome
      echo "$ac_t""yes" 1>&6
    else
      echo "$ac_t""no" 1>&6
    fi
  fi
#  if test -z "$ac_cv_path_PIZZAHOME" -o -z "$ac_cv_path_JAVACC"
#  then
#    echo "can not find javacc or pizzahome"
#    echo "This is not an error - you just won't be able to develop javabind."
#  fi
# if with-java    	
fi

## make version available

ocs_version=2.3g

## get absolute path for sourcedir
ocs_abssrcdir=`pwd`


cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# ----------------------------------------------------------------------
# set standard search path for interopal files (needed for Reflections)

tmp_libpath=$prefix/ocs-$ocs_version/lib
ocs_dl_path_std=$tmp_libpath/opal_base
for i in opal_parserlight opal_readline opal_tcl opal_tk opal_win oc_oc1 oc_oc2 oc_reflections oc_shared oasys_shared oasys_main
do
  ocs_dl_path_std="$ocs_dl_path_std:$tmp_libpath/$i"
done

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache



# ------------------------------------------------------------ ----------
# check for readline library
ocs_lib_readline=
if test "$ocs_cv_with_readline_lib" != "no"
then
  
  if test "$ocs_cv_with_readline_lib" = "yes"
  then
    echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
echo "configure:7671: checking for readline in -lreadline" >&5
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lreadline -lncurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7679 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_readline="\${LDSTATIC} -lreadline \${LDSTATIC} -lncurses \${LDDYNAMIC}"
else
  echo "$ac_t""no" 1>&6
fi

    if test -z "$ocs_lib_readline"
    then
            unset ac_cv_lib_readline_readline
      echo "trying in /usr/local/lib ..."
            echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
echo "configure:7715: checking for readline in -lreadline" >&5
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lreadline -ltermcap $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7723 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_readline="-L/usr/local/lib \${LDRPATH}/usr/local/lib -lreadline -ltermcap"
else
  echo "$ac_t""no" 1>&6
fi

    fi
    if test -z "$ocs_lib_readline"
    then
            unset ac_cv_lib_readline_readline
      echo "trying in /lib ..."
       echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
echo "configure:7760: checking for readline in -lreadline" >&5
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lreadline -lncurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7768 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_readline="-L/lib -lreadline -lncurses"
else
  echo "$ac_t""no" 1>&6
fi

    fi
    if test -z "$ocs_lib_readline"
    then
            unset ac_cv_lib_readline_readline
      echo "trying in /opt/gnu/lib ..."
            echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
echo "configure:7805: checking for readline in -lreadline" >&5
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lreadline -ltermcap $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7813 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_readline="-L/opt/gnu/lib \${LDRPATH}/opt/gnu/lib -lreadline -ltermcap"
else
  echo "$ac_t""no" 1>&6
fi

    fi
  else
    ocs_lib_readline=   
    echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
echo "configure:7848: checking for readline in -lreadline" >&5
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lreadline $ocs_cv_readline_lib $LIBS"
cat > conftest.$ac_ext <<EOF
#line 7856 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_readline="$ocs_cv_with_readline_lib"
else
  echo "$ac_t""no" 1>&6
fi

  fi    
  if test -z "$ocs_lib_readline"
  then
    { echo "configure: error: cannot link readline library" 1>&2; exit 1; }
  fi
fi    

if test "$ocs_cv_with_readline_incl" != "no"
then
  
  not_found=no
  if test "$ocs_cv_with_readline_incl" = "yes"
  then
    
  ocs_save_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS """
  ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
echo "configure:7905: checking for readline/readline.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7910 "configure"
#include "confdefs.h"
#include <readline/readline.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_readline=""
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi
    
  CPPFLAGS=$ocs_save_CPPFLAGS

    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_readline_readline_h
      echo "trying in /usr/local/include ..."
      
  ocs_save_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS "-I/usr/local/include""
  ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
echo "configure:7949: checking for readline/readline.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7954 "configure"
#include "confdefs.h"
#include <readline/readline.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_readline="-I/usr/local/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi
    
  CPPFLAGS=$ocs_save_CPPFLAGS
 
    fi
    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_readline_readline_h
      echo "trying in /opt/gnu/include ..."
      
  ocs_save_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS "-I/opt/gnu/include""
  ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
echo "configure:7994: checking for readline/readline.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7999 "configure"
#include "confdefs.h"
#include <readline/readline.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_readline="-I/opt/gnu/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi
    
  CPPFLAGS=$ocs_save_CPPFLAGS
 
    fi
  else 
    not_found=no
    
  ocs_save_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS $ocs_cv_with_readline_incl"
  ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
echo "configure:8036: checking for readline/readline.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8041 "configure"
#include "confdefs.h"
#include <readline/readline.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_readline=$ocs_cv_with_readline_incl
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi
    
  CPPFLAGS=$ocs_save_CPPFLAGS

  fi 
  if test "$not_found" = "yes"
  then
    { echo "configure: error: cannot find readline includes" 1>&2; exit 1; }
  fi
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# ----------------------------------------------------------------------
# check for tcl library
ocs_lib_tcl=
if test "$ocs_cv_with_tcl_lib" != "no"
then
  
  if test "$ocs_cv_with_tcl_lib" = "yes"
  then
    echo $ac_n "checking for Tcl_CreateInterp in -ltcl""... $ac_c" 1>&6
echo "configure:8133: checking for Tcl_CreateInterp in -ltcl" >&5
ac_lib_var=`echo tcl'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8141 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-ltcl"
else
  echo "$ac_t""no" 1>&6
fi

    if test -z "$ocs_lib_tcl"
    then
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.3""... $ac_c" 1>&6
echo "configure:8175: checking for Tcl_CreateInterp in -ltcl8.3" >&5
ac_lib_var=`echo tcl8.3'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.3  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8183 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-ltcl8.3"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tcl"
    then
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.2""... $ac_c" 1>&6
echo "configure:8218: checking for Tcl_CreateInterp in -ltcl8.2" >&5
ac_lib_var=`echo tcl8.2'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.2  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8226 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-ltcl8.2"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tcl"
    then
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.0""... $ac_c" 1>&6
echo "configure:8261: checking for Tcl_CreateInterp in -ltcl8.0" >&5
ac_lib_var=`echo tcl8.0'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.0  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8269 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-ltcl8.0"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tcl"
    then
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl80""... $ac_c" 1>&6
echo "configure:8304: checking for Tcl_CreateInterp in -ltcl80" >&5
ac_lib_var=`echo tcl80'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl80  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8312 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-ltcl80"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tcl"
    then
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl7.6""... $ac_c" 1>&6
echo "configure:8347: checking for Tcl_CreateInterp in -ltcl7.6" >&5
ac_lib_var=`echo tcl7.6'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl7.6  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8355 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-ltcl7.6"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tcl"
    then
            unset ac_cv_lib_tcl_Tcl_CreateInterp
      unset ac_cv_lib_tcl8_3_Tcl_CreateInterp
      unset ac_cv_lib_tcl8_2_Tcl_CreateInterp
      unset ac_cv_lib_tcl8_0_Tcl_CreateInterp
      unset ac_cv_lib_tcl7_6_Tcl_CreateInterp
      ocs_save_LIBS="$LIBS"
      LIBS="$LIBS -L/usr/tcl/lib"
      echo "trying in /usr/tcl/lib ..."
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl""... $ac_c" 1>&6
echo "configure:8398: checking for Tcl_CreateInterp in -ltcl" >&5
ac_lib_var=`echo tcl'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8406 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/usr/tcl/lib $ocs_cv_with_ldrpath/usr/tcl/lib -ltcl"
else
  echo "$ac_t""no" 1>&6
fi

      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.3""... $ac_c" 1>&6
echo "configure:8440: checking for Tcl_CreateInterp in -ltcl8.3" >&5
ac_lib_var=`echo tcl8.3'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.3  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8448 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/usr/tcl/lib $ocs_cv_with_ldrpath/usr/tcl/lib -ltcl8.3"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.2""... $ac_c" 1>&6
echo "configure:8483: checking for Tcl_CreateInterp in -ltcl8.2" >&5
ac_lib_var=`echo tcl8.2'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.2  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8491 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/usr/tcl/lib $ocs_cv_with_ldrpath/usr/tcl/lib -ltcl8.2"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.0""... $ac_c" 1>&6
echo "configure:8526: checking for Tcl_CreateInterp in -ltcl8.0" >&5
ac_lib_var=`echo tcl8.0'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.0  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8534 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/usr/tcl/lib $ocs_cv_with_ldrpath/usr/tcl/lib -ltcl8.0"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl7.6""... $ac_c" 1>&6
echo "configure:8569: checking for Tcl_CreateInterp in -ltcl7.6" >&5
ac_lib_var=`echo tcl7.6'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl7.6  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8577 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/usr/tcl/lib $ocs_cv_with_ldrpath/usr/tcl/lib -ltcl7.6"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      LIBS=$ocs_save_LIBS
    fi          
    if test -z "$ocs_lib_tcl"
    then
            unset ac_cv_lib_tcl_Tcl_CreateInterp
      unset ac_cv_lib_tcl8_3_Tcl_CreateInterp
      unset ac_cv_lib_tcl8_2_Tcl_CreateInterp
      unset ac_cv_lib_tcl8_0_Tcl_CreateInterp
      unset ac_cv_lib_tcl7_6_Tcl_CreateInterp
      ocs_save_LIBS="$LIBS"
      LIBS="$LIBS -L/opt/tcl/lib"
      echo "trying in /opt/tcl/lib ..."
      echo $ac_n "checking for Tcl_CreateInterp in -ltcl""... $ac_c" 1>&6
echo "configure:8622: checking for Tcl_CreateInterp in -ltcl" >&5
ac_lib_var=`echo tcl'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8630 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/opt/tcl/lib $ocs_cv_with_ldrpath/opt/tcl/lib -ltcl"
else
  echo "$ac_t""no" 1>&6
fi

      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.3""... $ac_c" 1>&6
echo "configure:8664: checking for Tcl_CreateInterp in -ltcl8.3" >&5
ac_lib_var=`echo tcl8.3'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.3  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8672 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/opt/tcl/lib $ocs_cv_with_ldrpath/opt/tcl/lib -ltcl8.3"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.2""... $ac_c" 1>&6
echo "configure:8707: checking for Tcl_CreateInterp in -ltcl8.2" >&5
ac_lib_var=`echo tcl8.2'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.2  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8715 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/opt/tcl/lib $ocs_cv_with_ldrpath/opt/tcl/lib -ltcl8.2"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl8.0""... $ac_c" 1>&6
echo "configure:8750: checking for Tcl_CreateInterp in -ltcl8.0" >&5
ac_lib_var=`echo tcl8.0'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl8.0  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8758 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/opt/tcl/lib $ocs_cv_with_ldrpath/opt/tcl/lib -ltcl8.0"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      if test -z "$ocs_lib_tcl"
      then
        echo $ac_n "checking for Tcl_CreateInterp in -ltcl7.6""... $ac_c" 1>&6
echo "configure:8793: checking for Tcl_CreateInterp in -ltcl7.6" >&5
ac_lib_var=`echo tcl7.6'_'Tcl_CreateInterp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltcl7.6  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8801 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tcl="-L/opt/tcl/lib $ocs_cv_with_ldrpath/opt/tcl/lib -ltcl7.6"
else
  echo "$ac_t""no" 1>&6
fi

      fi                
      LIBS=$ocs_save_LIBS
    fi          
  else
    ocs_save_LIBS="$LIBS"
    LIBS="$LIBS $ocs_cv_with_tcl_lib"
    cat > conftest.$ac_ext <<EOF
#line 8839 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tcl_CreateInterp();

int main() {
Tcl_CreateInterp()
; return 0; }
EOF
if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ocs_lib_tcl=$ocs_cv_with_tcl_lib
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
fi
rm -f conftest*
    LIBS="$ocs_save_LIBS"
  fi
  if test -z "$ocs_lib_tcl"
  then
    { echo "configure: error: cannot link tcl library" 1>&2; exit 1; }
  fi
fi

if test "$ocs_cv_with_tcl_incl" != "no"
then
  
  not_found=no
  if test "$ocs_cv_with_tcl_incl" = "yes"
  then
    unset ac_cv_header_tcl_h
    ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
echo "configure:8877: checking for tcl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8882 "configure"
#include "confdefs.h"
#include <tcl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tcl=""
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tcl_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      echo "trying /usr/include ..."
      CPPFLAGS="$CFLAGS -I/usr/include"
      ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
echo "configure:8918: checking for tcl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8923 "configure"
#include "confdefs.h"
#include <tcl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tcl="-I/usr/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tcl_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      echo "trying /usr/tcl/include ..."
      CPPFLAGS="$CFLAGS -I/usr/tcl/include"
      ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
echo "configure:8961: checking for tcl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8966 "configure"
#include "confdefs.h"
#include <tcl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:8971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tcl="-I/usr/tcl/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tcl_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      echo "trying /opt/tcl/include ..."
      CPPFLAGS="$CFLAGS -I/opt/tcl/include"
      ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
echo "configure:9004: checking for tcl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9009 "configure"
#include "confdefs.h"
#include <tcl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:9014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tcl="-I/opt/tcl/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
  else
    
  ocs_save_CPPFLAGS=$CPPFLAGS
  CPPFLAGS="$CPPFLAGS $ocs_cv_with_tcl_incl"
  ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
echo "configure:9044: checking for tcl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9049 "configure"
#include "confdefs.h"
#include <tcl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tcl=$ocs_cv_with_tcl_incl
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi
    
  CPPFLAGS=$ocs_save_CPPFLAGS

  fi
  if test "$not_found" = "yes"
  then
    { echo "configure: error: cannot find tcl includes" 1>&2; exit 1; }
  fi
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

# ----------------------------------------------------------------------
# check for tk library
ocs_lib_tk=
if test "$ocs_cv_with_tk_lib" != "no"
then
  X_CFLAGS=
  X_LIBS=
  X_EXTRA_LIBS=
  
  
  
  # If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:9148: checking for X" >&5

# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"
  :
fi

# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=NO ac_x_libraries=NO
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
        test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi

if test "$ac_x_includes" = NO; then
  # Guess where to find include files, by looking for this one X11 .h file.
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h

  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 9210 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:9215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  # Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in               \
    /usr/X11/include          \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11          \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11/include    \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11    \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*
fi # $ac_x_includes = NO

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9284 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
    /lib/usr/lib/X11	  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*
fi # $ac_x_libraries = NO

if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
  cat >> confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1
EOF

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case "`(uname -sr) 2>/dev/null`" in
    "SunOS 5"*)
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
echo "configure:9397: checking whether -R must be followed by a space" >&5
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
      cat > conftest.$ac_ext <<EOF
#line 9400 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:9407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_R_nospace=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_nospace=no
fi
rm -f conftest*
      if test $ac_R_nospace = yes; then
	echo "$ac_t""no" 1>&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat > conftest.$ac_ext <<EOF
#line 9423 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_R_space=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_space=no
fi
rm -f conftest*
	if test $ac_R_space = yes; then
	  echo "$ac_t""yes" 1>&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$ac_t""neither works" 1>&6
	fi
      fi
      LIBS="$ac_xsave_LIBS"
    esac
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
    # the Alpha needs dnet_stub (dnet does not exist).
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
echo "configure:9462: checking for dnet_ntoa in -ldnet" >&5
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9470 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
EOF
if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
echo "configure:9503: checking for dnet_ntoa in -ldnet_stub" >&5
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldnet_stub  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9511 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
EOF
if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to dickey@clark.net.
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:9551: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9556 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
#endif

; return 0; }
EOF
if { (eval echo configure:9579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_gethostbyname = no; then
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:9600: checking for gethostbyname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9608 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # lieder@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says simon@lia.di.epfl.ch: it contains
    # gethostby* variants that don't use the nameserver (or something).
    # -lsocket must be given before -lnsl if both are needed.
    # We assume that if connect needs -lnsl, so does gethostbyname.
    echo $ac_n "checking for connect""... $ac_c" 1>&6
echo "configure:9649: checking for connect" >&5
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9654 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_connect) || defined (__stub___connect)
choke me
#else
connect();
#endif

; return 0; }
EOF
if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_connect=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_connect=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_connect = no; then
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
echo "configure:9698: checking for connect in -lsocket" >&5
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9706 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char connect();

int main() {
connect()
; return 0; }
EOF
if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
    echo $ac_n "checking for remove""... $ac_c" 1>&6
echo "configure:9741: checking for remove" >&5
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9746 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char remove();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_remove) || defined (__stub___remove)
choke me
#else
remove();
#endif

; return 0; }
EOF
if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_remove=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_remove=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_remove = no; then
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
echo "configure:9790: checking for remove in -lposix" >&5
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lposix  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9798 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char remove();

int main() {
remove()
; return 0; }
EOF
if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
echo "configure:9833: checking for shmat" >&5
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 9838 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shmat();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shmat) || defined (__stub___shmat)
choke me
#else
shmat();
#endif

; return 0; }
EOF
if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_shmat=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_shmat=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_shmat = no; then
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
echo "configure:9882: checking for shmat in -lipc" >&5
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lipc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9890 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shmat();

int main() {
shmat()
; return 0; }
EOF
if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
else
  echo "$ac_t""no" 1>&6
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS="$LDFLAGS"
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
echo "configure:9934: checking for IceConnectionNumber in -lICE" >&5
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9942 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char IceConnectionNumber();

int main() {
IceConnectionNumber()
; return 0; }
EOF
if { (eval echo configure:9953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
else
  echo "$ac_t""no" 1>&6
fi

  LDFLAGS="$ac_save_LDFLAGS"

fi

  if test "$no_x" = "yes" 
  then
      { echo "configure: error: "need X libraries and include files for opal_tk library"" 1>&2; exit 1; }
  else
    ocs_x11="$X_LIBS -lX11"
  fi
  
  if test "$ocs_cv_with_tk_lib" = "yes"
  then
    echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
echo "configure:9987: checking for Tk_MainWindow in -ltk" >&5
ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltk $ocs_x11 $ocs_lib_tcl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 9995 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tk="-ltk"
else
  echo "$ac_t""no" 1>&6
fi

    if test -z "$ocs_lib_tk"
    then
    echo $ac_n "checking for Tk_MainWindow in -ltk8.3""... $ac_c" 1>&6
echo "configure:10029: checking for Tk_MainWindow in -ltk8.3" >&5
ac_lib_var=`echo tk8.3'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltk8.3 $ocs_x11 $ocs_lib_tcl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10037 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tk="-ltk8.3"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tk"
    then
    echo $ac_n "checking for Tk_MainWindow in -ltk8.2""... $ac_c" 1>&6
echo "configure:10072: checking for Tk_MainWindow in -ltk8.2" >&5
ac_lib_var=`echo tk8.2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltk8.2 $ocs_x11 $ocs_lib_tcl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10080 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tk="-ltk8.2"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tk"
    then
    echo $ac_n "checking for Tk_MainWindow in -ltk8.0""... $ac_c" 1>&6
echo "configure:10115: checking for Tk_MainWindow in -ltk8.0" >&5
ac_lib_var=`echo tk8.0'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltk8.0 $ocs_x11 $ocs_lib_tcl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10123 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tk="-ltk8.0"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tk"
    then
    echo $ac_n "checking for Tk_MainWindow in -ltk80""... $ac_c" 1>&6
echo "configure:10158: checking for Tk_MainWindow in -ltk80" >&5
ac_lib_var=`echo tk80'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltk80 $ocs_x11 $ocs_lib_tcl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10166 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tk="-ltk80"
else
  echo "$ac_t""no" 1>&6
fi

    fi          
    if test -z "$ocs_lib_tk"
    then
    echo $ac_n "checking for Tk_MainWindow in -ltk4.2""... $ac_c" 1>&6
echo "configure:10201: checking for Tk_MainWindow in -ltk4.2" >&5
ac_lib_var=`echo tk4.2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ltk4.2 $ocs_x11 $ocs_lib_tcl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10209 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_tk="-ltk4.2"
else
  echo "$ac_t""no" 1>&6
fi

    fi
  else
    ocs_save_LIBS="$LIBS"
    LIBS="$LIBS $ocs_cv_with_tk_lib $X_LIBS -lX11 $ocs_lib_tcl"
    cat > conftest.$ac_ext <<EOF
#line 10245 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();

int main() {
Tk_MainWindow()
; return 0; }
EOF
if { (eval echo configure:10256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ocs_lib_tk=$ocs_cv_with_tk_lib
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  
fi
rm -f conftest*
    LIBS="$ocs_save_LIBS"
  fi
  if test -z "$ocs_lib_tk"
  then
    { echo "configure: error: cannot link tk library" 1>&2; exit 1; }
  fi
fi

if test "$ocs_cv_with_tk_incl" != "no"
then
  
  not_found=no
  if test "$ocs_cv_with_tk_incl" = "yes"
  then
    unset ac_cv_header_tk_h
    ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:10283: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10288 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tk=""
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tk_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      CPPFLAGS="$CPPFLAGS $X_CFLAGS"
      echo "trying in X include directory ($X_CFLAGS) ..."
      ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:10324: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10329 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tk="$X_CFLAGS"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tk_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      echo "trying in /usr/include ..."
      CPPFLAGS="$CPPFLAGS -I/usr/include"
      ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:10367: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10372 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tk="-I/usr/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tk_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      echo "trying in /usr/tcl/include ..."
      CPPFLAGS="$CPPFLAGS -I/usr/tcl/include"
      ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:10410: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10415 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tk="-I/usr/tcl/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
    if test "$not_found" = "yes"
    then
      not_found=no
      unset ac_cv_header_tk_h
      ocs_save_CPPFLAGS=$CPPFLAGS
      echo "trying in /opt/tcl/include ..."
      CPPFLAGS="$CPPFLAGS -I/opt/tcl/include"
      ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:10453: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10458 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tk="-I/opt/tcl/include"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
  else
    ocs_save_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="$CPPFLAGS $ocs_cv_with_tcl_incl"
    ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:10492: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10497 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_tk="$ocs_cv_with_tcl_incl"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

    CPPFLAGS=$ocs_save_CPPFLAGS
  fi    
  if test "$not_found" = "yes"
  then
    { echo "configure: error: cannot find tk includes" 1>&2; exit 1; }
  fi
fi

cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

## ----------------------------------------------------------------------
## check for java
if test "$ocs_cv_feature_opaljava" = "yes"
then
  ocs_lib_java=
  if test "$ocs_cv_with_java_lib" != "no"
  then
        
    if test "$ocs_cv_with_java_lib" = "yes"
    then
      ocs_lib_java=
      unset ac_cv_lib_java_JNI_CreateJavaVM
      echo $ac_n "checking for JNI_CreateJavaVM in -ljava""... $ac_c" 1>&6
echo "configure:10592: checking for JNI_CreateJavaVM in -ljava" >&5
ac_lib_var=`echo java'_'JNI_CreateJavaVM | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljava  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10600 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char JNI_CreateJavaVM();

int main() {
JNI_CreateJavaVM()
; return 0; }
EOF
if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_java="-ljava"
else
  echo "$ac_t""no" 1>&6
fi

      if test -z "$ocs_lib_java"
      then
        unset ac_cv_lib_java_JNI_CreateJavaVM
        ocs_save_LIBS="$LIBS"
        tmp_path=/usr/lib/java/lib/i686/green_threads
        echo "trying in $tmp_path ..."
        LIBS="$LIBS -L$tmp_path"
        echo $ac_n "checking for JNI_CreateJavaVM in -ljava""... $ac_c" 1>&6
echo "configure:10639: checking for JNI_CreateJavaVM in -ljava" >&5
ac_lib_var=`echo java'_'JNI_CreateJavaVM | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljava  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10647 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char JNI_CreateJavaVM();

int main() {
JNI_CreateJavaVM()
; return 0; }
EOF
if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_java="-L$tmp_path $ocs_cv_with_ldrpath$tmp_path -ljava"
else
  echo "$ac_t""no" 1>&6
fi

      fi
      if test -z "$ocs_lib_java"
      then
        unset ac_cv_lib_java_JNI_CreateJavaVM
        ocs_save_LIBS="$LIBS"
        tmp_path=/usr/lib/jdk1.1.7/lib/i686/green_threads
        echo "trying in $tmp_path ..."
        LIBS="$LIBS -L$tmp_path"
        echo $ac_n "checking for JNI_CreateJavaVM in -ljava""... $ac_c" 1>&6
echo "configure:10687: checking for JNI_CreateJavaVM in -ljava" >&5
ac_lib_var=`echo java'_'JNI_CreateJavaVM | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljava  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10695 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char JNI_CreateJavaVM();

int main() {
JNI_CreateJavaVM()
; return 0; }
EOF
if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_java="-L$tmp_path $ocs_cv_with_ldrpath$tmp_path -ljava"
else
  echo "$ac_t""no" 1>&6
fi

      fi
      if test -z "$ocs_lib_java"
      then
        unset ac_cv_lib_java_JNI_CreateJavaVM
        ocs_save_LIBS="$LIBS"
        tmp_path=/usr/lib/jdk1.1.6/lib/i686/green_threads
        echo "trying in $tmp_path ..."
        LIBS="$LIBS -L$tmp_path"
        echo $ac_n "checking for JNI_CreateJavaVM in -ljava""... $ac_c" 1>&6
echo "configure:10735: checking for JNI_CreateJavaVM in -ljava" >&5
ac_lib_var=`echo java'_'JNI_CreateJavaVM | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljava  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10743 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char JNI_CreateJavaVM();

int main() {
JNI_CreateJavaVM()
; return 0; }
EOF
if { (eval echo configure:10754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_java="-L$tmp_path $ocs_cv_with_ldrpath$tmp_path -ljava"
else
  echo "$ac_t""no" 1>&6
fi

      fi
      if test -z "$ocs_lib_java"
      then
        unset ac_cv_lib_java_JNI_CreateJavaVM
        ocs_save_LIBS="$LIBS"
        tmp_path=/usr/java/1.1/lib
        echo "trying in $tmp_path ..."
        LIBS="$LIBS -L$tmp_path"
        echo $ac_n "checking for JNI_CreateJavaVM in -ljava""... $ac_c" 1>&6
echo "configure:10783: checking for JNI_CreateJavaVM in -ljava" >&5
ac_lib_var=`echo java'_'JNI_CreateJavaVM | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljava  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10791 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char JNI_CreateJavaVM();

int main() {
JNI_CreateJavaVM()
; return 0; }
EOF
if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_lib_java="-L$tmp_path $ocs_cv_with_ldrpath$tmp_path -ljava"
else
  echo "$ac_t""no" 1>&6
fi

      fi
    else
      ocs_save_LIBS="$LIBS"
      LIBS="$LIBS $ocs_cv_with_java_lib"
      unset ac_cv_lib_java_JNI_CreateJavaVM
      echo $ac_n "checking for ocs_lib_java=$ocs_cv_with_java_lib in -lJNI_CreateJavaVM""... $ac_c" 1>&6
echo "configure:10828: checking for ocs_lib_java=$ocs_cv_with_java_lib in -lJNI_CreateJavaVM" >&5
ac_lib_var=`echo JNI_CreateJavaVM'_'ocs_lib_java=$ocs_cv_with_java_lib | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lJNI_CreateJavaVM  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 10836 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ocs_lib_java=$ocs_cv_with_java_lib();

int main() {
ocs_lib_java=$ocs_cv_with_java_lib()
; return 0; }
EOF
if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo JNI_CreateJavaVM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lJNI_CreateJavaVM $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

      LIBS="$ocs_save_LIBS"
    fi
  fi
  if test -z "$ocs_lib_java"
  then
    { echo "configure: error: cannot link java library" 1>&2; exit 1; }
  fi
  
  if test "$ocs_cv_with_java_incl" != "no"
  then
    
    not_found=no
    if test "$ocs_cv_with_java_incl" = "yes"
    then
      unset ac_cv_header_jni_h
      ac_safe=`echo "jni.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for jni.h""... $ac_c" 1>&6
echo "configure:10891: checking for jni.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10896 "configure"
#include "confdefs.h"
#include <jni.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_java=""
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      if test "$not_found" = "yes"
      then
        not_found=no
        unset ac_cv_header_jni_h
        ocs_save_CPPFLAGS=$CPPFLAGS
        tmp_path=/usr/lib/java
        echo "trying in $tmp_path ..."
        tmp_flags="-I$tmp_path/include -I$tmp_path/include/genunix -I$tmp_path/include/linux"
        CPPFLAGS="$CPPFLAGS $tmp_flags"
        ac_safe=`echo "jni.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for jni.h""... $ac_c" 1>&6
echo "configure:10934: checking for jni.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10939 "configure"
#include "confdefs.h"
#include <jni.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_java="$tmp_flags"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

        CPPFLAGS=$ocs_save_CPPFLAGS
      fi
      if test "$not_found" = "yes"
      then
        not_found=no
        unset ac_cv_header_jni_h
        ocs_save_CPPFLAGS=$CPPFLAGS
        tmp_path=/usr/lib/jdk1.1.7
        echo "trying in $tmp_path ..."
        tmp_flags="-I$tmp_path/include -I$tmp_path/include/genunix -I$tmp_path/include/linux"
        CPPFLAGS="$CPPFLAGS $tmp_flags"
        ac_safe=`echo "jni.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for jni.h""... $ac_c" 1>&6
echo "configure:10979: checking for jni.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10984 "configure"
#include "confdefs.h"
#include <jni.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:10989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_java="$tmp_flags"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

        CPPFLAGS=$ocs_save_CPPFLAGS
      fi
      if test "$not_found" = "yes"
      then
        not_found=no
        unset ac_cv_header_jni_h
        ocs_save_CPPFLAGS=$CPPFLAGS
        tmp_path=/usr/java/1.1
        echo "trying in $tmp_path ..."
        tmp_flags="-I$tmp_path/include -I$tmp_path/include/solaris"
        CPPFLAGS="$CPPFLAGS $tmp_flags"
        ac_safe=`echo "jni.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for jni.h""... $ac_c" 1>&6
echo "configure:11024: checking for jni.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11029 "configure"
#include "confdefs.h"
#include <jni.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:11034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_java="$tmp_flags"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

        CPPFLAGS=$ocs_save_CPPFLAGS
      fi
    else
      ocs_save_CPPFLAGS=$CPPFLAGS
      CPPFLAGS="$CPPFLAGS $ocs_cv_with_java_incl"
      unset ac_cv_header_jni_h
      ac_safe=`echo "jni.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for jni.h""... $ac_c" 1>&6
echo "configure:11064: checking for jni.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11069 "configure"
#include "confdefs.h"
#include <jni.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:11074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  ocs_incl_java="$ocs_cv_with_java_incl"
else
  echo "$ac_t""no" 1>&6
not_found=yes
fi

      CPPFLAGS=$ocs_save_CPPFLAGS
    fi
    if test "$not_found" = "yes"
    then
      { echo "configure: error: cannot find java includes" 1>&2; exit 1; }
    fi
  fi
# enable java
fi
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

## documentation ------------------------------------------------------------






ocs_doc_new23b=""
ocs_doc_new23c=""
ocs_doc_new23d=""
ocs_doc_new23e=""
ocs_doc_new23f=""
ocs_doc_new23g=' (<img src="new.gif" alt="new"> in 2.3g)'

## case sensitivity of filenames

if test "$host_os" = "cygwin"
then
  ocs_filenames_casefold="yes"
  ocs_DEFS="$ocs_DEFS -DOCS_FILENAMES_CASEFOLD"
  ocs_DEFS="$ocs_DEFS -DOCS_CYGWIN"
  echo "configure: warning: "need to rename and patch some files, because file names are not case sensitive"" 1>&2
  sedcmd=""
  for structname in Denotation Bool Time Signal Wait ReadLine Tk Tcl Reflection
  do	
    sedcmd="$sedcmd -e s/$structname\\./${structname}_ocs./g"
  done
  for struct in src/lib/BasicTypes/Denotation src/lib/BasicTypes/Bool src/lib/System/Unix/Time src/lib/System/Unix/Signal src/lib/System/Unix/Wait src/lib/Tools/Tk/Tk src/lib/Tools/Tcl/Tcl src/lib/Tools/Readline/ReadLine 
  do
    for part in .sign .impl 
    do
      if test -r $struct$part
      then
        echo copying $struct$part ${struct}_ocs$part
        mv $struct$part ${struct}_ocs$part
	# touch -r $struct$part ${struct}_ocs$part
      fi
    done
    for part in .hc.c .hc.h 
    do
      if test -r $struct$part
      then
        echo copying $struct$part ${struct}_ocs$part
	sed $sedcmd < $struct$part > ${struct}_ocs$part
	touch -r $struct$part ${struct}_ocs$part
        rm $struct$part 
      fi
    done
    structdir=`dirname $struct`
    structname=`basename $struct`
    for part in .impl.deps .impl.inter .opt .sign.deps .sign.inter
    do
      if test -r ${structdir}/OCS/${structname}${part}
      then
        echo copying ${structdir}/OCS/${structname}${part} ${structdir}/OCS/${structname}_ocs${part} 
        mv ${structdir}/OCS/${structname}${part} ${structdir}/OCS/${structname}_ocs${part} 
        # touch -r ${structdir}/OCS/${structname}${part} ${structdir}/OCS/${structname}_ocs${part} 
      fi
    done
    for part in .c .h 
    do
      if test -r ${structdir}/OCS/${structname}${part}
      then
        echo copying ${structdir}/OCS/${structname}${part} ${structdir}/OCS/${structname}_ocs${part} 
	sed $sedcmd < ${structdir}/OCS/${structname}${part} > ${structdir}/OCS/${structname}_ocs${part} 
#        mv ${structdir}/OCS/${structname}${part} ${structdir}/OCS/${structname}_ocs${part} 
        touch -r ${structdir}/OCS/${structname}${part} ${structdir}/OCS/${structname}_ocs${part} 
        rm ${structdir}/OCS/${structname}${part}
      fi
    done
  done
# no need to add further systems here; 
# these are the only systems distribruted as C source code
  for system in src/lib/Internal/Strange src/lib/BasicTypes src/lib/Functions/General src/lib/Functions/Orderings src/lib/Functions/Special src/lib/AggregateTypes/ProductLike src/lib/AggregateTypes/UnionLike src/lib/AggregateTypes/SeqLike src/lib/AggregateTypes/TreeLike src/lib/AggregateTypes/SetLike src/lib/AggregateTypes/MapLike src/lib/AggregateTypes/Algorithms src/lib/System/Streams src/lib/System/Debugging src/lib/System/Commands src/lib/System/Runtime src/lib/System/Unix src/lib/Tools/Formatting src/om/genmake src/oc/oc1/reps src/oc/oc1/absy src/oc/oc1/anaLib src/oc/oc1/globSig src/oc/oc1/genInter src/oc/oc1/parser src/oc/oc1/sigAna src/oc/oc1/pattAna src/oc/oc1/implAna src/oc/shared/interOpal src/oc/shared/admin src/oc/oc2/base src/oc/oc2/acTrans src/oc/oc2/optim src/oc/oc2/trans src/oc/oc2/gen src/oc/oc1/driver src/oc/oc2/driver src/om/getopalname
  do
    for srcfile in $system/OCS/OcsDefs-SysDefs $system/OCS/*.c $system/OCS/*.h
    do
      if test -r $srcfile
      then 
        echo "patching $srcfile"
        cp $srcfile /tmp/patch
        touch -r $srcfile /tmp/patch
        sed $sedcmd < /tmp/patch > $srcfile
        touch -r /tmp/patch $srcfile
        rm /tmp/patch
      fi
    done
  done
  echo "patching src/om/genmake/OcsDefs-SysDefs.install"
  srcfile=src/om/genmake/OcsDefs-SysDefs.install
  cp $srcfile /tmp/OcsDefs-SysDefs
  sed $sedcmd < /tmp/OcsDefs-SysDefs > $srcfile
  rm /tmp/OcsDefs-SysDefs
else
  ocs_filenames_casefold="no"
fi

# -------------------------------------------------------------------------
# Output



ocs_output_files="Makefile src/om/specs/Specs.basic"



if test "$ocs_cv_with_readline_lib" != "no" -a "$ocs_cv_with_readline_incl" != "no"
then
  
  ocs_output_files="$ocs_output_files src/om/specs/Specs.lib.opal_readline"

  cp src/oasys/driver/TopLevel.impl.readline src/oasys/driver/TopLevel.impl
  ocs_oasys_require_readline=lib.opal_readline
  ocs_oasys_sysdefs_readline='$(OPAL_READLINE)'
else
  cp src/oasys/driver/TopLevel.impl.simple src/oasys/driver/TopLevel.impl
  ocs_oasys_require_readline=
  ocs_oasys_sysdefs_readline=
fi

if test "$ocs_cv_with_tcl_lib" != "no" -a "$ocs_cv_with_tcl_incl" != "no"
then
  
  ocs_output_files="$ocs_output_files src/om/specs/Specs.lib.opal_tcl"

fi

if test "$ocs_cv_with_tk_lib" != "no" -a "$ocs_cv_with_tk_incl" != "no"
then
  
  ocs_output_files="$ocs_output_files src/om/specs/Specs.lib.opal_tk"

fi

if test "$ocs_cv_feature_reflections" = "yes"
then
  
  ocs_output_files="$ocs_output_files src/oc/reflections/InterOpalTools.impl
             src/oc/dynamite/InterOpalTools.impl"

fi

if test "$ocs_cv_feature_opaljava" = "yes"
then
  
  ocs_output_files="$ocs_output_files src/om/specs/Specs.lib.opal_java"

fi

if test "$ocs_cv_feature_dosfop" != "no"
then

  ocs_output_files="$ocs_output_files src/dosfop/bin/dosfopMacroExpander
          src/dosfop/bin/fixtexindexpost
          src/dosfop/bin/fixtexindexpre
          src/dosfop/bin/texi2html"

fi

if test "$ocs_cv_feature_doc" != "no"
then

  ocs_output_files="$ocs_output_files doc/index/index.html
          doc/index/index_overview.html
          doc/minitutorial/mintut_uselb.html
          doc/minitutorial/mintut_prep.html
          doc/minitutorial/mintut_oasys.html"

fi

if test "$ocs_cv_feature_oasys" != "no"
then
  
  ocs_output_files="$ocs_output_files src/om/specs/Specs.pkg.oasys"

  
  ocs_output_files="$ocs_output_files src/oasys/driver/SysDefs"

  
  ocs_output_files="$ocs_output_files src/oasys/driver/SysDefs.install"

fi

if test "$ocs_cv_feature_proofchecker" != "no"
then
  
  ocs_output_files="$ocs_output_files src/proofchecker/oasyspc/pdriver/ProjectDefs"

  
  ocs_output_files="$ocs_output_files src/proofchecker/oasyspc/scripts/startup.pchecker"
	
  if test "$ocs_cv_with_readline_lib" != "no" -a "$ocs_cv_with_readline_incl" != "no"
  then
    cp src/proofchecker/oasyspc/pdriver/TopLevel.impl.readline src/proofchecker/oasyspc/pdriver/TopLevel.impl
  else
    cp src/proofchecker/oasyspc/pdriver/TopLevel.impl.simple src/proofchecker/oasyspc/pdriver/TopLevel.impl
  fi
fi

  ocs_output_files="$ocs_output_files opalconfig.makeTargets"

trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir

trap 'rm -fr `echo "$ocs_output_files src/lib/Internal/Compiler/unixconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@CC@%$CC%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@ocs_DEFS@%$ocs_DEFS%g
s%@ocs_cv_feature_dynamic@%$ocs_cv_feature_dynamic%g
s%@ocs_cv_feature_absolute_pathes@%$ocs_cv_feature_absolute_pathes%g
s%@ocs_cv_feature_doc@%$ocs_cv_feature_doc%g
s%@ocs_cv_feature_oasys@%$ocs_cv_feature_oasys%g
s%@ocs_cv_feature_dosfop@%$ocs_cv_feature_dosfop%g
s%@ocs_cv_feature_opalwin@%$ocs_cv_feature_opalwin%g
s%@ocs_cv_feature_reflections@%$ocs_cv_feature_reflections%g
s%@ocs_cv_feature_tivi2@%$ocs_cv_feature_tivi2%g
s%@ocs_cv_feature_opaljava@%$ocs_cv_feature_opaljava%g
s%@ocs_cv_feature_oc5@%$ocs_cv_feature_oc5%g
s%@ocs_cv_feature_proofchecker@%$ocs_cv_feature_proofchecker%g
s%@ocs_cv_feature_locallinks@%$ocs_cv_feature_locallinks%g
s%@ocs_std_packages@%$ocs_std_packages%g
s%@ocs_lib_win@%$ocs_lib_win%g
s%@ocs_pkg_reflections@%$ocs_pkg_reflections%g
s%@ocs_pkg_dosfop@%$ocs_pkg_dosfop%g
s%@ocs_pkg_doc@%$ocs_pkg_doc%g
s%@ocs_pkg_oasys@%$ocs_pkg_oasys%g
s%@ocs_pkg_tivi2@%$ocs_pkg_tivi2%g
s%@ocs_CC@%$ocs_CC%g
s%@ocs_cv_flag_cc_opt@%$ocs_cv_flag_cc_opt%g
s%@ocs_cv_flag_cc_debug@%$ocs_cv_flag_cc_debug%g
s%@ocs_cv_flag_cc_profile@%$ocs_cv_flag_cc_profile%g
s%@ac_cv_path_CC@%$ac_cv_path_CC%g
s%@CPP@%$CPP%g
s%@ocs_LD@%$ocs_LD%g
s%@ocs_LIBS@%$ocs_LIBS%g
s%@ocs_DLD@%$ocs_DLD%g
s%@ocs_DLDLIBS@%$ocs_DLDLIBS%g
s%@ocs_cv_flag_cc_pic@%$ocs_cv_flag_cc_pic%g
s%@ocs_cv_flag_cc_shared@%$ocs_cv_flag_cc_shared%g
s%@ocs_cv_with_ldstatic@%$ocs_cv_with_ldstatic%g
s%@ocs_cv_with_lddynamic@%$ocs_cv_with_lddynamic%g
s%@ocs_cv_with_ldrpath@%$ocs_cv_with_ldrpath%g
s%@ocs_cv_with_ldrpathlink@%$ocs_cv_with_ldrpathlink%g
s%@ocs_cv_with_soname@%$ocs_cv_with_soname%g
s%@ac_cv_path_LD@%$ac_cv_path_LD%g
s%@LIBOBJS@%$LIBOBJS%g
s%@ac_cv_path_LEX@%$ac_cv_path_LEX%g
s%@ocs_cv_flag_cc_lexlib@%$ocs_cv_flag_cc_lexlib%g
s%@LEX@%$LEX%g
s%@LEXLIB@%$LEXLIB%g
s%@ac_cv_path_AR@%$ac_cv_path_AR%g
s%@ac_cv_path_RANLIB@%$ac_cv_path_RANLIB%g
s%@ac_cv_path_UPDLIB@%$ac_cv_path_UPDLIB%g
s%@ac_cv_path_STRIP@%$ac_cv_path_STRIP%g
s%@ac_cv_path_NM@%$ac_cv_path_NM%g
s%@ocs_GMAKE@%$ocs_GMAKE%g
s%@ac_cv_path_GMAKE@%$ac_cv_path_GMAKE%g
s%@ac_cv_path_CD@%$ac_cv_path_CD%g
s%@ac_cv_path_ECHO@%$ac_cv_path_ECHO%g
s%@ac_cv_path_LS@%$ac_cv_path_LS%g
s%@ac_cv_path_CAT@%$ac_cv_path_CAT%g
s%@ac_cv_path_DATE@%$ac_cv_path_DATE%g
s%@ac_cv_path_MKDIR@%$ac_cv_path_MKDIR%g
s%@ac_cv_path_CP@%$ac_cv_path_CP%g
s%@ac_cv_path_RM@%$ac_cv_path_RM%g
s%@ac_cv_path_MV@%$ac_cv_path_MV%g
s%@ac_cv_path_BASENAME@%$ac_cv_path_BASENAME%g
s%@ac_cv_path_SED@%$ac_cv_path_SED%g
s%@ac_cv_path_CHMOD@%$ac_cv_path_CHMOD%g
s%@ac_cv_path_CHGRP@%$ac_cv_path_CHGRP%g
s%@ac_cv_path_COMPRESS@%$ac_cv_path_COMPRESS%g
s%@ac_cv_path_TAR@%$ac_cv_path_TAR%g
s%@ac_cv_path_CMP@%$ac_cv_path_CMP%g
s%@ac_cv_path_MAIL@%$ac_cv_path_MAIL%g
s%@ac_cv_path_UUENCODE@%$ac_cv_path_UUENCODE%g
s%@ac_cv_path_EDITOR@%$ac_cv_path_EDITOR%g
s%@ocs_cv_compress_suffix@%$ocs_cv_compress_suffix%g
s%@ac_cv_path_PERL@%$ac_cv_path_PERL%g
s%@ac_cv_path_WISH@%$ac_cv_path_WISH%g
s%@ac_cv_path_TEX@%$ac_cv_path_TEX%g
s%@ac_cv_path_LATEX@%$ac_cv_path_LATEX%g
s%@ac_cv_path_XDVI@%$ac_cv_path_XDVI%g
s%@ac_cv_path_DVIPS@%$ac_cv_path_DVIPS%g
s%@ac_cv_path_TEXINDEX@%$ac_cv_path_TEXINDEX%g
s%@ac_cv_path_MAKEINFO@%$ac_cv_path_MAKEINFO%g
s%@ac_cv_path_JAVA@%$ac_cv_path_JAVA%g
s%@ac_cv_path_JAVACC@%$ac_cv_path_JAVACC%g
s%@ac_cv_path_PIZZAHOME@%$ac_cv_path_PIZZAHOME%g
s%@ocs_version@%$ocs_version%g
s%@ocs_abssrcdir@%$ocs_abssrcdir%g
s%@ocs_dl_path_std@%$ocs_dl_path_std%g
s%@ocs_lib_readline@%$ocs_lib_readline%g
s%@ocs_incl_readline@%$ocs_incl_readline%g
s%@ocs_lib_tcl@%$ocs_lib_tcl%g
s%@ocs_incl_tcl@%$ocs_incl_tcl%g
s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_LIBS@%$X_LIBS%g
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
s%@ocs_lib_tk@%$ocs_lib_tk%g
s%@ocs_incl_tk@%$ocs_incl_tk%g
s%@ocs_lib_java@%$ocs_lib_java%g
s%@ocs_incl_java@%$ocs_incl_java%g
s%@ocs_doc_new23b@%$ocs_doc_new23b%g
s%@ocs_doc_new23c@%$ocs_doc_new23c%g
s%@ocs_doc_new23d@%$ocs_doc_new23d%g
s%@ocs_doc_new23e@%$ocs_doc_new23e%g
s%@ocs_doc_new23f@%$ocs_doc_new23f%g
s%@ocs_doc_new23g@%$ocs_doc_new23g%g
s%@ocs_filenames_casefold@%$ocs_filenames_casefold%g
s%@ocs_oasys_require_readline@%$ocs_oasys_require_readline%g
s%@ocs_oasys_sysdefs_readline@%$ocs_oasys_sysdefs_readline%g

CEOF
EOF

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"$ocs_output_files"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac


  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="src/lib/Internal/Compiler/unixconfig.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done

EOF
cat >> $CONFIG_STATUS <<EOF

EOF
cat >> $CONFIG_STATUS <<\EOF

exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

echo "creating src/om/specs/ShSpecs.basic"
SED=$ac_cv_path_SED src/om/etc/gmake2sh < src/om/specs/Specs.basic > src/om/specs/ShSpecs.basic

