gmyth-upnp/configure.ac
author renatofilho
Tue Feb 26 14:10:22 2008 +0000 (2008-02-26)
branchtrunk
changeset 930 bb5d61b14d41
parent 929 00536b0eb88b
permissions -rw-r--r--
[svn r939] - release 26/02/2008 - 0.7.1
     1 AC_INIT(gmyth-upnp, 0.7.1)
     2 AC_PREREQ(2.52)
     3 AC_CONFIG_SRCDIR(configure.ac)
     4 AC_CANONICAL_BUILD
     5 AC_CANONICAL_HOST
     6 AC_ISC_POSIX
     7 
     8 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
     9 AM_CONFIG_HEADER(config.h)
    10 
    11 dnl make aclocal work in maintainer mode
    12 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
    13 
    14 AC_PROG_CXX
    15 AC_PROG_CC
    16 AM_PROG_CC_STDC
    17 AC_HEADER_STDC
    18 AC_C_BIGENDIAN
    19 AC_C_CONST
    20 
    21 AC_LIBTOOL_WIN32_DLL
    22 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
    23 AC_PROG_LIBTOOL
    24 
    25 # Checks required packages
    26 
    27 # Check for Glib2.0
    28 PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
    29 
    30 # Give error and exit if we don't have glib
    31 if test "x$HAVE_GLIB" = "xno"; then
    32   AC_MSG_ERROR(you need glib-2.0 installed)
    33 fi
    34 
    35 # make GLIB_CFLAGS and GLIB_LIBS available
    36 AC_SUBST(GLIB_CFLAGS)
    37 AC_SUBST(GLIB_LIBS)
    38 
    39 # Check for GObject2.0
    40 PKG_CHECK_MODULES(GOBJECT,
    41   gobject-2.0,
    42   HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
    43 
    44 # Give error and exit if we don't have gobject
    45 if test "x$HAVE_GOBJECT" = "xno"; then
    46   AC_MSG_ERROR(you need gobject-2.0 installed)
    47 fi
    48 
    49 # make GOBJECT_CFLAGS and GOBJECT_LIBS available
    50 AC_SUBST(GOBJECT_CFLAGS)
    51 AC_SUBST(GOBJECT_LIBS)
    52 
    53 ## Check for gmyth-0.7
    54 PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.7, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no)
    55 
    56 # Give error and exit if we don't have gmyth-0.7
    57 if test "x$HAVE_LIBGMYTH" = "xno"; then
    58   AC_MSG_ERROR([you need gmyth  installed])
    59 fi
    60 
    61 # make LIBXML_CFLAGS and LIBXML_LIBS available
    62 AC_SUBST(LIBGMYTH_CFLAGS)
    63 AC_SUBST(LIBGMYTH_LIBS)
    64 
    65 PKG_CHECK_MODULES(LIBUPNP, libupnp, HAVE_LIBUPNP=yes, HAVE_LIBUPNP=no)
    66 
    67 if test "x$HAVE_LIBUPNP" = "xno"; then
    68   AC_MSG_ERROR([you need libupnp installed])
    69 fi
    70 
    71 AC_SUBST(LIBUPNP_CFLAGS)
    72 AC_SUBST(LIBIPNP_LIBS)
    73 
    74 AC_OUTPUT([
    75 Makefile
    76 src/Makefile
    77 tests/Makefile
    78 gmyth-upnp.pc])