dnl Process this file with autoconf to produce a configure script.

AC_INIT(README)
AC_PREREQ(2.12)

dnl for automake 1.1 
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(cif-examples, 1.0)

dnl Checks for programs.
AC_PROG_CC
OCCAM_OCCBUILD

dnl Checks for libraries.
AC_CHECK_LIB(dl, dlsym, LIBDL="-ldl", LIBDL="")
AC_SUBST(LIBDL)

dnl Checks for occam modules.
OCCAM_INCLUDE([cif.module], ,
              [AC_MSG_ERROR(Required modules not found)])

AC_OUTPUT([Makefile])

