#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host deathtongue:
#
# ../../src/expect/configure --srcdir=../../src/expect --prefix=/mit/sipb

for arg
do
  case "$arg" in
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    exec /bin/sh ../../src/expect/configure --srcdir=../../src/expect --prefix=/mit/sipb ;;
    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  esac
done

trap 'rm -f Makefile exp_conf.h conftest*; exit 1' 1 3 15
INSTALL='/afs/sipb.mit.edu/project/gnu/gbin/install -c'
INSTALL_PROGRAM='$(INSTALL)'
INSTALL_DATA='$(INSTALL) -m 644'
RANLIB='true'
CPP='${CC-cc} -E'
XINCLUDES='# no special path needed'
XLIBS='-lX11'
XPROGS='expectk $(LIBEXPTK)'
PTY_TYPE='termios'
EVENT_TYPE='select'
SETUID='@:'
LIBS=''
srcdir='/afs/sipb.mit.edu/project/sipbsrc/src/expect-4.8'
prefix='/mit/sipb'
exec_prefix='${prefix}'
prsub='s%^prefix\([ 	]*\)=\([ 	]*\).*$%prefix\1=\2/mit/sipb%
s%^exec_prefix\([ 	]*\)=\([ 	]*\).*$%exec_prefix\1=\2${prefix}%'

top_srcdir=$srcdir
for file in .. Makefile; do if [ "x$file" != "x.." ]; then
  srcdir=$top_srcdir
  # Remove last slash and all that follows it.  Not all systems have dirname.
  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  if test "$dir" != "$file"; then
    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
    test ! -d $dir && mkdir $dir
  fi
  echo creating $file
  rm -f $file
  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  sed -e "
$prsub
s%@INSTALL@%$INSTALL%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@CPP@%$CPP%g
s%@XINCLUDES@%$XINCLUDES%g
s%@XLIBS@%$XLIBS%g
s%@XPROGS@%$XPROGS%g
s%@PTY_TYPE@%$PTY_TYPE%g
s%@EVENT_TYPE@%$EVENT_TYPE%g
s%@SETUID@%$SETUID%g
s%@LIBS@%$LIBS%g
s%@srcdir@%$srcdir%g
s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
fi; done

echo creating exp_conf.h
# These sed commands are put into SEDDEFS when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They 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.
# Each defining turns into a single global substitution command.
#
# SEDd sets the value in "#define NAME VALUE" lines.
SEDdA='s@^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
SEDdB='\([ 	][ 	]*\)[^ 	]*@\1#\2'
SEDdC='\3'
SEDdD='@g'
# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
SEDuA='s@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDuB='\([ 	]\)@\1#\2define\3'
SEDuC=' '
SEDuD='\4@g'
# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
SEDeA='s@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDeB='$@\1#\2define\3'
SEDeC=' '
SEDeD='@g'
rm -f conftest.sed
cat > conftest.sed <<CONFEOF
${SEDdA}HAVE_SYS_WAIT_H${SEDdB}HAVE_SYS_WAIT_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_WAIT_H${SEDuB}HAVE_SYS_WAIT_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_WAIT_H${SEDeB}HAVE_SYS_WAIT_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_STROPTS_H${SEDdB}HAVE_STROPTS_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_STROPTS_H${SEDuB}HAVE_STROPTS_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_STROPTS_H${SEDeB}HAVE_STROPTS_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYSCONF_H${SEDdB}HAVE_SYSCONF_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYSCONF_H${SEDuB}HAVE_SYSCONF_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYSCONF_H${SEDeB}HAVE_SYSCONF_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYS_FCNTL_H${SEDdB}HAVE_SYS_FCNTL_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_FCNTL_H${SEDuB}HAVE_SYS_FCNTL_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_FCNTL_H${SEDeB}HAVE_SYS_FCNTL_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYSMACROS_H${SEDdB}HAVE_SYSMACROS_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYSMACROS_H${SEDuB}HAVE_SYSMACROS_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYSMACROS_H${SEDeB}HAVE_SYSMACROS_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYSCONF${SEDdB}HAVE_SYSCONF${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYSCONF${SEDuB}HAVE_SYSCONF${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYSCONF${SEDeB}HAVE_SYSCONF${SEDeC}1${SEDeD}
${SEDdA}REARM_SIG${SEDdB}REARM_SIG${SEDdC}1${SEDdD}
${SEDuA}REARM_SIG${SEDuB}REARM_SIG${SEDuC}1${SEDuD}
${SEDeA}REARM_SIG${SEDeB}REARM_SIG${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_PTMX${SEDdB}HAVE_PTMX${SEDdC}1${SEDdD}
${SEDuA}HAVE_PTMX${SEDuB}HAVE_PTMX${SEDuC}1${SEDuD}
${SEDeA}HAVE_PTMX${SEDeB}HAVE_PTMX${SEDeC}1${SEDeD}
${SEDdA}POSIX${SEDdB}POSIX${SEDdC}1${SEDdD}
${SEDuA}POSIX${SEDuB}POSIX${SEDuC}1${SEDuD}
${SEDeA}POSIX${SEDeB}POSIX${SEDeC}1${SEDeD}
${SEDdA}HAVE_SGTTYB${SEDdB}HAVE_SGTTYB${SEDdC}1${SEDdD}
${SEDuA}HAVE_SGTTYB${SEDuB}HAVE_SGTTYB${SEDuC}1${SEDuD}
${SEDeA}HAVE_SGTTYB${SEDeB}HAVE_SGTTYB${SEDeC}1${SEDeD}
${SEDdA}HAVE_TERMIO${SEDdB}HAVE_TERMIO${SEDdC}1${SEDdD}
${SEDuA}HAVE_TERMIO${SEDuB}HAVE_TERMIO${SEDuC}1${SEDuD}
${SEDeA}HAVE_TERMIO${SEDeB}HAVE_TERMIO${SEDeC}1${SEDeD}
${SEDdA}HAVE_TERMIOS${SEDdB}HAVE_TERMIOS${SEDdC}1${SEDdD}
${SEDuA}HAVE_TERMIOS${SEDuB}HAVE_TERMIOS${SEDuC}1${SEDuD}
${SEDeA}HAVE_TERMIOS${SEDeB}HAVE_TERMIOS${SEDeC}1${SEDeD}

CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
cp $top_srcdir/exp_conf.h.in conftest.h1
while :
do
  lines=`grep -c . conftest.sed`
  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  rm -f conftest.s1 conftest.s2 conftest.h2
  sed 40q conftest.sed > conftest.s1 # Like head -40.
  sed 1,40d conftest.sed > conftest.s2 # Like tail +41.
  sed -f conftest.s1 < conftest.h1 > conftest.h2
  rm -f conftest.s1 conftest.h1 conftest.sed
  mv conftest.h2 conftest.h1
  mv conftest.s2 conftest.sed
done
rm -f conftest.sed conftest.h
echo "/* exp_conf.h.  Generated automatically by configure.  */" > conftest.h
cat conftest.h1 >> conftest.h
rm -f conftest.h1
if cmp -s exp_conf.h conftest.h 2>/dev/null; then
  # The file exists and we would not be changing it.
  rm -f conftest.h
else
  rm -f exp_conf.h
  mv conftest.h exp_conf.h
fi

