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
|
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_CONFIG_HEADER(config.h)
AC_INIT(dia2code, 1.0.0)
AC_CONFIG_SRCDIR([src/main.cpp])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
dnl Checks for programs.
AC_PROG_CXX
AN_MAKEVAR([AR], [AC_PROG_AR])
AN_PROGRAM([ar], [AC_PROG_AR])
AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
AC_PROG_AR
PKG_PROG_PKG_CONFIG
dnl Checks for libraries.
PKG_CHECK_MODULES([XML], [libxml-2.0])
LIBS="$LIBS $XML_LIBS"
AC_ARG_WITH(corba,
AS_HELP_STRING([--with-corba],
[build with corba.]))
if test "$with_corba" != "yes"; then
withcorba=false
else
withcorba=true
fi
AM_CONDITIONAL(ENABLE_CORBA, test x$withcorba = xtrue)
if test x$withcorba = xtrue; then
AC_DEFINE(ENABLE_CORBA, 1, [Add Corba functionnality])
fi
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_OUTPUT(Makefile src/Makefile tests/Makefile)
|