AC_INIT(src/main.cpp) AM_INIT_AUTOMAKE(zimt,0.0.1) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_LIBTOOL # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([errno.h stdlib.h string.h ctype.h sys/time.h sys/types.h sys/wait.h unistd.h],, AC_MSG_ERROR([Required header not found]) ) # doesn't matter if getopt is missing it's a gnu thing AC_CHECK_HEADERS([getopt.h]) # Switch to C++ mode and check for needed C++ headers AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADERS([vector iostream fstream string algorithm list memory iterator exception utility],, AC_MSG_ERROR([You need to have the libstdc++ headers installed])) sstream=no AC_CHECK_HEADERS(sstream,sstream=yes) AC_CHECK_HEADERS(strstream,sstream=yes) if test $sstream != yes ; then AC_MSG_ERROR([Your libstdc++ installation does not have the sstream or strstream classes]) fi AC_LANG_RESTORE # Checks for libraries. AM_PATH_SIGC(1.0.0, [], [AC_MSG_ERROR([You need to have the libsigc++ libraries installed - see the README for more information])]) AM_PATH_LIBICQ2000(0.3.0, [], [AC_MSG_ERROR([You need to have the libicq2000 library installed. You can get libicq2000 from http://libicq2000.sourceforge.net/. A direct link to the source tarball for 0.3.1 should be: http://prdownloads.sourceforge.net/libicq2000/libicq2000-0.3.1.tar.gz - see the README for more information])]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_STRUCT_TM AC_C_INLINE AC_HEADER_TIME # Checks for library functions. AC_FUNC_STRFTIME AC_CHECK_FUNCS([mktime stat mkdir strerror],,AC_MSG_ERROR([You do not have one of the standard C functions required - check you have libc installed properly])) AC_OUTPUT([Makefile src/Makefile macros/Makefile])