AC_INIT()
AM_INIT_AUTOMAKE(%{APPNAMELC},%{VERSION})

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET


AC_LANG_SAVE
AC_LANG_CPLUSPLUS

AC_CHECK_HEADER([ClanLib/application.h], [],
	AC_MSG_ERROR([Couldn't find Clanlib headers.]))

AC_CHECK_LIB(clanApp, main, , AC_ERROR([Couldn't find Clanlib libraries]), -lclanCore -lclanSignals -ldl)

AC_LANG_RESTORE


AC_OUTPUT(Makefile src/Makefile)

