configure.ac
author ali <ali@juiblex.co.uk>
Wed Oct 10 22:58:21 2012 +0100 (2012-10-10)
changeset 0 bc8c9a11cbfc
permissions -rw-r--r--
Initial version
     1 #                                               -*- Autoconf -*-
     2 # Process this file with autoconf to produce a configure script.
     3 
     4 AC_INIT([libxexpr],[1.0],[ali@juiblex.co.uk])
     5 AC_PREREQ(2.59)
     6 AC_CONFIG_MACRO_DIR([m4])
     7 AC_CONFIG_AUX_DIR([config])
     8 AC_CONFIG_SRCDIR([libxexpr/xexpr.h])
     9 AC_CONFIG_HEADER([config.h])
    10 AC_CONFIG_FILES([Makefile
    11 libxexpr/Makefile
    12 libxexpr/libxexpr.pc
    13 src/Makefile
    14 test/Makefile
    15 test/spec/Makefile
    16 test/idb/Makefile
    17 test/libxexpr/Makefile
    18 docs/reference/Makefile
    19 docs/reference/version.xml
    20 ])
    21 AM_INIT_AUTOMAKE(no-define)
    22 AC_CANONICAL_HOST
    23 AC_SUBST(HOST_OS,$host_os)
    24 AC_SUBST(HOST_CPU,$host_cpu)
    25 
    26 # libtool versioning for libxexpr. For a release one of the following
    27 # must apply:
    28 #
    29 # - If interfaces have been changed or added, but binary compatibility has
    30 #   been preserved, increment CURRENT and AGE and set REVISION to 0.
    31 # - If binary compatibility has been broken (eg removed or changed interfaces),
    32 #   increment CURRENT and set AGE and REVISION to 0.
    33 # - If the interface is the same as the previous version, increment REVISION.
    34 #
    35 lt_current=0
    36 lt_revision=0
    37 lt_age=0
    38 LIBXEXPR_LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age"
    39 AC_SUBST(LIBXEXPR_LT_VERSION_INFO)
    40 
    41 ##################################################
    42 # Checks for programs.
    43 ##################################################
    44 AC_PROG_CC
    45 AC_LIBTOOL_WIN32_DLL
    46 AC_PROG_LIBTOOL
    47 PKG_PROG_PKG_CONFIG
    48 GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
    49 
    50 ##################################################
    51 # Checks for header files.
    52 ##################################################
    53 AC_HEADER_STDC
    54 
    55 ##################################################
    56 # Checks for typedefs, structures, and compiler characteristics.
    57 ##################################################
    58 
    59 ##################################################
    60 # Checks for libraries.
    61 ##################################################
    62 PKG_CHECK_MODULES(GLIB,[glib-2.0])
    63 PKG_CHECK_MODULES(LIBXML,[libxml-2.0])
    64 LIBXEXPR_CFLAGS="$LIBXML_CFLAGS $GLIB_CFLAGS"
    65 LIBXEXPR_LIBS="$LIBXML_LIBS $GLIB_LIBS"
    66 AC_SUBST(LIBXEXPR_CFLAGS)
    67 AC_SUBST(LIBXEXPR_LIBS)
    68 
    69 ##################################################
    70 # Checks for library functions.
    71 ##################################################
    72 
    73 ##################################################
    74 # Checks for processor independent files.
    75 ##################################################
    76 
    77 ##################################################
    78 # Generate the various configured files
    79 ##################################################
    80 AC_OUTPUT