dnl
dnl   Mash -- MAke SHell
dnl   Copyright (c) 1997  Salvatore Valente <svalente@mit.edu>
dnl
dnl   This program is free software.  You can modify and distribute it under
dnl   the terms of the GNU General Public License.  There is no warranty.
dnl   See the file "COPYING" for more information.
dnl
dnl   $Revision: 1.2 $
dnl
AC_INIT(mash.c)
AC_PROG_CC
AC_SUBST(ANSI_CC)
ANSI_CC="$CC"
AC_PROG_RANLIB
case "$RANLIB" in
:) RANLIB=/bin/true ;;
esac
AC_PROG_INSTALL
AC_SUBST(INSTALL2)
case "$INSTALL" in
./*) INSTALL2="$(bindir)/install" ;;
  *) INSTALL2="$INSTALL" ;;
esac
AC_SUBST(SYS_NAME)
AC_SUBST(SYS_VERSION)
AC_SUBST(SYS_ARCH)
SYS_NAME=`uname`
SYS_VERSION=`uname -r | cut -d. -f1-2`
SYS_ARCH=`uname -m`
AC_PATH_X
AC_SUBST(X_CFLAGS)
AC_SUBST(X_LDFLAGS)
test -z "$x_includes" || X_CFLAGS="-I${x_includes}"
test -z "$x_libraries" || X_LDFLAGS="-L${x_libraries}"
AC_SUBST(SOCKET_LIBS)
AC_CHECK_LIB(socket, socket, SOCKET_LIBS=-lsocket)
AC_CHECK_LIB(nsl, gethostbyname, SOCKET_LIBS="$SOCKET_LIBS -lnsl")
AC_OUTPUT(Makefile Mashfile mash.conf)
