dnl Process this file with autoconf to produce a configure script.
AC_INIT(mikdos/mirq.c)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET

dnl Checks for libraries.
dnl Replace `main' with a function in -lX11:
AC_CHECK_LIB(X11, main)
dnl Replace `main' with a function in -laa:
AC_CHECK_LIB(aa, main)
dnl Replace `main' with a function in -lgpm:
AC_CHECK_LIB(gpm, main)
dnl Replace `main' with a function in -lgus:
AC_CHECK_LIB(gus, main)
dnl Replace `main' with a function in -llzo:
AC_CHECK_LIB(lzo, main)
dnl Replace `main' with a function in -lm:
AC_CHECK_LIB(m, main)
dnl Replace `main' with a function in -lncurses:
AC_CHECK_LIB(ncurses, main)
dnl Replace `main' with a function in -lslang:
AC_CHECK_LIB(slang, main)

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/ioctl.h sys/time.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(ftime gettimeofday select strdup strstr strtol)

AC_OUTPUT(mikunix/makefile mikdos/makefile makefile)
