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

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

trap 'rm -f  config.h conftest*; exit 1' 1 3 15
CC='gcc'
CPP='${CC-cc} -E'
FD_SET_IN_SYS_TYPES_H=''
FD_SET_IN_SYS_SELECT_H=''
FD_SET_IN_SYS_INET_H=''
HAVE_ERRNO=''
HAVE_SYS_ERRLIST=''
NEED_LRESOLV=''
LIBS=''
srcdir='.'
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 .. ; 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%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@FD_SET_IN_SYS_TYPES_H@%$FD_SET_IN_SYS_TYPES_H%g
s%@FD_SET_IN_SYS_SELECT_H@%$FD_SET_IN_SYS_SELECT_H%g
s%@FD_SET_IN_SYS_INET_H@%$FD_SET_IN_SYS_INET_H%g
s%@HAVE_ERRNO@%$HAVE_ERRNO%g
s%@HAVE_SYS_ERRLIST@%$HAVE_SYS_ERRLIST%g
s%@NEED_LRESOLV@%$NEED_LRESOLV%g
s%@LIBS@%$LIBS%g
s%@srcdir@%$srcdir%g
s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
fi; done

echo creating config.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}STDC_HEADERS${SEDdB}STDC_HEADERS${SEDdC}1${SEDdD}
${SEDuA}STDC_HEADERS${SEDuB}STDC_HEADERS${SEDuC}1${SEDuD}
${SEDeA}STDC_HEADERS${SEDeB}STDC_HEADERS${SEDeC}1${SEDeD}
${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_MEMORY_H${SEDdB}HAVE_MEMORY_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_MEMORY_H${SEDuB}HAVE_MEMORY_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_MEMORY_H${SEDeB}HAVE_MEMORY_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYS_PARAM_H${SEDdB}HAVE_SYS_PARAM_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_PARAM_H${SEDuB}HAVE_SYS_PARAM_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_PARAM_H${SEDeB}HAVE_SYS_PARAM_H${SEDeC}1${SEDeD}
${SEDdA}FD_SET_IN_SYS_TYPES_H${SEDdB}FD_SET_IN_SYS_TYPES_H${SEDdC}1${SEDdD}
${SEDuA}FD_SET_IN_SYS_TYPES_H${SEDuB}FD_SET_IN_SYS_TYPES_H${SEDuC}1${SEDuD}
${SEDeA}FD_SET_IN_SYS_TYPES_H${SEDeB}FD_SET_IN_SYS_TYPES_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_RE_COMP${SEDdB}HAVE_RE_COMP${SEDdC}1${SEDdD}
${SEDuA}HAVE_RE_COMP${SEDuB}HAVE_RE_COMP${SEDuC}1${SEDuD}
${SEDeA}HAVE_RE_COMP${SEDeB}HAVE_RE_COMP${SEDeC}1${SEDeD}
${SEDdA}HAVE_STRCASECMP${SEDdB}HAVE_STRCASECMP${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRCASECMP${SEDuB}HAVE_STRCASECMP${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRCASECMP${SEDeB}HAVE_STRCASECMP${SEDeC}1${SEDeD}
${SEDdA}HAVE_RANDOM${SEDdB}HAVE_RANDOM${SEDdC}1${SEDdD}
${SEDuA}HAVE_RANDOM${SEDuB}HAVE_RANDOM${SEDuC}1${SEDuD}
${SEDeA}HAVE_RANDOM${SEDeB}HAVE_RANDOM${SEDeC}1${SEDeD}
${SEDdA}HAVE_RAND${SEDdB}HAVE_RAND${SEDdC}1${SEDdD}
${SEDuA}HAVE_RAND${SEDuB}HAVE_RAND${SEDuC}1${SEDuD}
${SEDeA}HAVE_RAND${SEDeB}HAVE_RAND${SEDeC}1${SEDeD}
${SEDdA}HAVE_STRERROR${SEDdB}HAVE_STRERROR${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRERROR${SEDuB}HAVE_STRERROR${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRERROR${SEDeB}HAVE_STRERROR${SEDeC}1${SEDeD}
${SEDdA}HAVE_GETLOGIN${SEDdB}HAVE_GETLOGIN${SEDdC}1${SEDdD}
${SEDuA}HAVE_GETLOGIN${SEDuB}HAVE_GETLOGIN${SEDuC}1${SEDuD}
${SEDeA}HAVE_GETLOGIN${SEDeB}HAVE_GETLOGIN${SEDeC}1${SEDeD}
${SEDdA}HAVE_GETPWUID${SEDdB}HAVE_GETPWUID${SEDdC}1${SEDdD}
${SEDuA}HAVE_GETPWUID${SEDuB}HAVE_GETPWUID${SEDuC}1${SEDuD}
${SEDeA}HAVE_GETPWUID${SEDeB}HAVE_GETPWUID${SEDeC}1${SEDeD}
${SEDdA}HAVE_STRSPN${SEDdB}HAVE_STRSPN${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRSPN${SEDuB}HAVE_STRSPN${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRSPN${SEDeB}HAVE_STRSPN${SEDeC}1${SEDeD}
${SEDdA}HAVE_ERRNO${SEDdB}HAVE_ERRNO${SEDdC}1${SEDdD}
${SEDuA}HAVE_ERRNO${SEDuB}HAVE_ERRNO${SEDuC}1${SEDuD}
${SEDeA}HAVE_ERRNO${SEDeB}HAVE_ERRNO${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYS_ERRLIST${SEDdB}HAVE_SYS_ERRLIST${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_ERRLIST${SEDuB}HAVE_SYS_ERRLIST${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_ERRLIST${SEDeB}HAVE_SYS_ERRLIST${SEDeC}1${SEDeD}

CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
cp $top_srcdir/config.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 "/* config.h.  Generated automatically by configure.  */" > conftest.h
cat conftest.h1 >> conftest.h
rm -f conftest.h1
if cmp -s config.h conftest.h 2>/dev/null; then
  # The file exists and we would not be changing it.
  rm -f conftest.h
else
  rm -f config.h
  mv conftest.h config.h
fi

