dnl	This file is an input file used by the GNU "autoconf" program to
dnl	generate the file "configure", which is run during STk installation
dnl	to configure the system for the local environment.

AC_INIT(stk.h)
/bin/rm -f config.cache
CC=${CC-gcc}

AC_HAVE_HEADERS(unistd.h)
AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl"])
AC_HAVE_FUNCS(sigaction select)
LIBS="$LIBS -lm"

#--------------------------------------------------------------------
#	Check for various typedefs and provide substitutes if
#	they don't exist. Useful for Sony WS(Sony NEWS, NEWSOS 4.2R)
#	Thanks to Nobuyuki Hikichi  <hikichi@sran340.sra.co.jp>
#--------------------------------------------------------------------
AC_PID_T

AC_OUTPUT(Makefile)

if test ! -f ../Snow/Makefile
then
  ln -s ../Src/Makefile ../Snow/Makefile
fi
