1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT([clutils],[20031216])
AC_CONFIG_SRCDIR([src/clutils/ConfigurationChoice.cpp])
AM_INIT_AUTOMAKE
AC_PREREQ(2.57)
AC_CANONICAL_HOST
AC_LANG(C++)
dnl Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
CL_PROG_PCCTS
dnl Checks for header files.
AC_HEADER_STDC
dnl Find the first hash_map header we can.
AC_CHECK_HEADERS([hash_map ext/hash_map], [break])
dnl look for the libtool headers
AC_CHECK_HEADER( [ltdl.h], ,
AC_MSG_ERROR([Couldn't find ltdl.h which is required and
part of the libtool distribution. You probably
need to define an include path via a -I in CPPFLAGS]))
dnl look for the libtool library
AC_CHECK_LIB( [ltdl], [lt_dlopen],,
AC_MSG_ERROR([Couldn't find libltdl.so or libltdl.a in
link path. You probably need to define a libary
path via a -L in LDFLAGS]))
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_MODE_T
AC_STRUCT_TM
AC_CHECK_SIZEOF(long int)
AC_CHECK_SIZEOF(long long int)
dnl CPPFLAGS="$CPPFLAGS -DSIZEOF_LONG=$ac_cv_sizeof_long"
dnl CPPFLAGS="$CPPFLAGS -DSIZEOF_LONG=$ac_cv_sizeof_long_long"
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(mkdir strdup)
dnl Check for cppunit for unit testing
AM_CONFIG_HEADER([src/clutils/clutils-config.h])
AC_CONFIG_HEADERS([src/clutils/ClutilsConfig.h:src/clutils/ClutilsConfig.h.in])
AC_OUTPUT(Makefile \
documentation/Makefile \
src/Makefile \
test/Makefile \
test/plugins/Makefile )
echo "Ready to build"
|