# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(fe3d, 0.11) AM_INIT_AUTOMAKE(fe3d,0.11) #AC_CONFIG_SRCDIR([src/fe_port.cpp]) AC_CONFIG_HEADER([src/include/auto_config.h]) # Checks for programs. AC_PROG_CXX #AC_PROG_CC AC_CHECK_LIB(xerces-c, main, [], [ echo "Error! You need to have xerces-c installed" exit -1 ]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h stdlib.h unistd.h wchar.h wctype.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_PID_T AX_CHECK_GL() AX_CHECK_GLU() AC_CONFIG_FILES([Makefile src/Makefile]) AM_OPTIONS_WXCONFIG reqwx=2.8.0 AM_PATH_WXCONFIG([$reqwx], [wxWin=1], [wxWin=0], [gl, core, base, xml], [--unicode=yes]) if test "$wxWin" != 1; then AC_MSG_ERROR([ wxWidgets must be installed on your system. Please check that wx-config is in path, the directory where wxWidgets libraries are installed (returned by 'wx-config --libs' or 'wx-config --static --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version is $reqwx or above. ]) fi CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" LIBS="$LIBS $WX_LIBS" AM_CPPFLAGS="$AM_CPPFLAGS $GL_CFLAGS $GLU_CFLAGS" AM_LDFLAGS="$AM_LDFLAGS $GL_LIBS $GLU_LIBS" AC_SUBST([AM_CPPFLAGS]) AC_SUBST([AM_LDFLAGS]) AC_SUBST([$PREFIX]) AC_OUTPUT echo " Configuration: fe3d version: ${VERSION} Install prefix: ${prefix} CXXFLAGS: ${CXXFLAGS} "