Edit

kc3-lang/ftgl/configure.ac

Branch :

  • Show log

    Commit

  • Author : brlcad
    Date : 2008-04-28 17:31:42
    Hash : 3674c4d1
    Message : specify minimum versions, make ac be 2.58 and am be 1.6 (needed in order to support os x 10.4 out-of-the-box). PKG_CHECK_MODULES doesn't seem to wrap the args properly so you can't embed AC_MSG_RESULT, make a zip and bzip2 when we make a dist, and provide NULL to make am happy

  • configure.ac
  • dnl Minimum version of autoconf required.  Should coincide with the
    dnl setting in the autogen.sh script.
    AC_PREREQ(2.58)
    
    AC_INIT(FTGL, 2.1.3, [henryj@paradise.net.nz], ftgl)
    AC_CONFIG_SRCDIR(src/FTFont.cpp)
    AC_CONFIG_AUX_DIR(.auto)
    AM_INIT_AUTOMAKE([1.6 no-define dist-zip dist-bzip2])
    AM_CONFIG_HEADER(config.h)
    
    FTGL_PROG_CXX
    
    LT_MAJOR="2"
    LT_MINOR="1"
    LT_MICRO="3"
    AC_SUBST(LT_MAJOR)
    AC_SUBST(LT_MINOR)
    AC_SUBST(LT_MICRO)
    LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
    AC_SUBST(LT_VERSION)
    
    AC_PROG_LIBTOOL
    AC_PROG_INSTALL
    
    # Checks for typedefs, structures, and compiler characteristics.
    
    dnl These don't mix with C++
    dnl AC_C_CONST
    dnl AC_C_INLINE
    
    # Checks for header files.
    AC_HEADER_STDC
    AC_CHECK_HEADER([stdlib.h])
    
    # Checks for libraries.
    
    AC_PATH_X
    
    AC_CHECK_FT2([9.0.3],[],
                 [AC_MSG_ERROR([FreeType2 is required to compile this library])])
    
    AC_PATH_XTRA
    
    FTGL_CHECK_GL
    FTGL_CHECK_GLUT
    
    CPPUNIT="no"
    PKG_CHECK_MODULES(CPPUNIT, cppunit, [CPPUNIT="yes"])
    AC_MSG_RESULT($CPPUNIT)
    AM_CONDITIONAL(HAVE_CPPUNIT, test "$CPPUNIT" != "no")
    
    # Checks for library functions -- this isn't really used at the moment
    AC_CHECK_FUNCS([memset])
    
    # Warning flags
    CPPFLAGS="${CPPFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare"
    CFLAGS="${CFLAGS} -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
    
    # Utility programs
    AC_PATH_PROG(DOXYGEN, doxygen, no)
    AM_CONDITIONAL(HAVE_DOXYGEN, test "$DOXYGEN" != "no")
    
    AC_CONFIG_FILES([
      ftgl.pc
    ])
    AC_CONFIG_FILES([
      Makefile
      src/Makefile
      test/Makefile
      docs/Makefile
      demo/Makefile
      msvc/Makefile
    ])
    AC_OUTPUT