AC_PREREQ(2.59) AC_INIT(enblend, 3.0, [acmihal@users.sourceforge.net]) AC_CONFIG_SRCDIR([src/enblend.cc]) AM_INIT_AUTOMAKE AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_RANLIB AC_LANG(C++) #CXXFLAGS = AC_C_BIGENDIAN # Checks for libraries. #AC_CHECK_LIB(tiff,TIFFOpen,,AC_MSG_WARN([libtiff is required to compile enblend.]),[-ljpeg -lz -lm]) AC_CHECK_LIB(tiff,TIFFOpen,,AC_MSG_WARN([libtiff is required to compile enblend.]),[]) AC_CHECK_LIB(lcms,cmsCreateTransform,,AC_MSG_WARN([liblcms is required to compile enblend.]),[]) AC_CHECK_LIB(xmi,miNewPaintedSet,,AC_MSG_WARN([libxmi is required to compile enblend.]),[]) AC_CHECK_LIB(glut,glutInitDisplayMode,,AC_MSG_WARN([GLUT is required to compile enblend.]),[-lGL -lGLU]) AC_CHECK_LIB(GLU,gluBeginCurve,,AC_MSG_WARN([libGLU is required to compile enblend.]),[]) AC_CHECK_LIB(GL,glBegin,,AC_MSG_WARN([libGL is required to compile enblend.]),[]) AC_CHECK_LIB(GLEW,glewInit,,AC_MSG_WARN([GLEW is required to compile enblend.]),[]) #AC_CHECK_LIB(sh,main,,AC_MSG_WARN([libsh is required to compile enblend.]),[]) #AC_CHECK_LIB(brook,main,,AC_MSG_WARN([BrookGPU runtime libraries are required to compile enblend.]),[-logl -lcpu -lgpu]) # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([limits.h stdlib.h string.h unistd.h]) AC_CHECK_HEADER(tiffio.h,,AC_MSG_WARN([libtiff-devel header files are required to compile enblend.])) AC_CHECK_HEADER(boost/random/mersenne_twister.hpp,,AC_MSG_WARN([boost header files are required to compile enblend.])) AC_CHECK_HEADER(boost/static_assert.hpp,,AC_MSG_WARN([boost header files are required to compile enblend.])) AC_CHECK_HEADER(boost/pool/pool.hpp,,AC_MSG_WARN([boost header files are required to compile enblend.])) AC_CHECK_HEADER(lcms.h,,AC_MSG_WARN([lcms header files are required to compile enblend.])) AC_CHECK_HEADER(xmi.h,,AC_MSG_WARN([xmi header files are required to compile enblend.])) AC_CHECK_HEADER(GL/glew.h,,AC_MSG_WARN([glew header files are required to compile enblend.])) AC_CHECK_HEADER(GL/glut.h,,AC_MSG_WARN([glut header files are required to compile enblend.])) #AC_CHECK_HEADER(GL/gl.h,,AC_MSG_WARN([OpenGL gl.h header file is required to compile enblend.])) #AC_CHECK_HEADER(GL/glx.h,,AC_MSG_WARN([OpenGL glx.h header file is required to compile enblend.])) #AC_CHECK_HEADER(sh/sh.hpp,,AC_MSG_WARN([libsh header files are required to compile enblend.])) #AC_CHECK_HEADER(brook/brook.hpp,,AC_MSG_WARN([BrookGPU header files are required to compile enblend.])) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_CHECK_TYPES([ptrdiff_t]) # Checks for library functions. AC_FUNC_CLOSEDIR_VOID AC_FUNC_FSEEKO AC_FUNC_MALLOC #AC_FUNC_SETVBUF_REVERSED AC_TYPE_SIGNAL AC_FUNC_STRTOD AC_CHECK_FUNCS([floor memset pow rint sqrt strchr strerror strrchr mkstemp]) # lrint and lrintf AC_C99_FUNC_LRINT AC_C99_FUNC_LRINTF AC_CONFIG_FILES([Makefile doc/Makefile include/Makefile include/vigra/Makefile include/vigra_ext/Makefile src/Makefile src/vigra_impex/Makefile src/win32helpers/Makefile]) AC_OUTPUT