libgnomevfs2-mythtv/configure.ac
author renatofilho
Thu Jun 14 18:22:32 2007 +0100 (2007-06-14)
branchtrunk
changeset 753 8ee634511c1e
parent 644 b937c837e929
permissions -rwxr-xr-x
[svn r759] fixed indent using GNU Style
renatofilho@621
     1
dnl fill in your package name and version here
renatofilho@621
     2
dnl autoconf configuration files for gst-plugins-dspbin
renatofilho@621
     3
AC_INIT
renatofilho@621
     4
AC_CANONICAL_TARGET
renatofilho@621
     5
renatofilho@621
     6
AC_CONFIG_MACRO_DIR([m4])
renatofilho@621
     7
dnl We disable static building for development, for time savings
renatofilho@621
     8
dnl this goes before AS_LIBTOOL to appease autoconf
renatofilho@621
     9
dnl *NOTE*: dnl this line before release, so release does static too
renatofilho@621
    10
AM_DISABLE_STATIC
renatofilho@621
    11
renatofilho@621
    12
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
renatofilho@621
    13
AM_MAINTAINER_MODE
melunko@38
    14
melunko@38
    15
dnl when going to/from release please set the nano (fourth number) right !
melunko@38
    16
dnl releases only do Wall, cvs and prerelease does Werror too
melunko@708
    17
AS_VERSION(libgnomevfs2-mythtv, LIBGNOMEVFS2_MYTHTV, 0, 3, 0, 0, LIBGNOMEVFS2_MYTHTV_CVS="no", LIBGNOMEVFS2_MYTHTV_CVS="yes")
melunko@38
    18
melunko@38
    19
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
melunko@38
    20
renatofilho@621
    21
AM_PROG_LIBTOOL
renatofilho@621
    22
melunko@38
    23
AM_CONFIG_HEADER(config.h)
melunko@38
    24
melunko@38
    25
dnl make aclocal work in maintainer mode
melunko@38
    26
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
melunko@38
    27
melunko@38
    28
dnl check for tools
melunko@38
    29
AC_PROG_CC
renatofilho@621
    30
AC_PROG_CC_STDC
renatofilho@621
    31
AM_PROG_AS
melunko@38
    32
melunko@38
    33
dnl decide on error flags
renatofilho@621
    34
AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
melunko@38
    35
renatofilho@621
    36
if test "x$GST_WALL" = "xyes"; then
renatofilho@621
    37
  ERROR_CFLAGS="$GST_ERROR -Wall"
melunko@38
    38
renatofilho@621
    39
  if test "x$GST_CVS" = "xyes"; then
renatofilho@621
    40
    AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
renatofilho@621
    41
  fi
melunko@38
    42
fi
melunko@38
    43
renatofilho@621
    44
AC_SUBST(ERROR_CFLAGS)
renatofilho@621
    45
renatofilho@621
    46
dnl determine c++ compiler
renatofilho@621
    47
AC_PROG_CXX
renatofilho@621
    48
dnl determine if c++ is available on this system
renatofilho@621
    49
AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
renatofilho@621
    50
dnl determine c++ preprocessor
renatofilho@621
    51
AC_PROG_CXXCPP
renatofilho@621
    52
AC_ISC_POSIX
renatofilho@621
    53
renatofilho@621
    54
AC_HEADER_STDC([])
renatofilho@621
    55
AC_C_INLINE
renatofilho@621
    56
renatofilho@621
    57
dnl Check for pkgconfig first
melunko@38
    58
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
renatofilho@621
    59
melunko@38
    60
dnl Give error and exit if we don't have pkgconfig
melunko@38
    61
if test "x$HAVE_PKGCONFIG" = "xno"; then
melunko@38
    62
  AC_MSG_ERROR(you need to have pkgconfig installed !)
melunko@38
    63
fi
melunko@38
    64
melunko@38
    65
dnl Check for Glib2.0
melunko@38
    66
PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
melunko@38
    67
melunko@38
    68
dnl Give error and exit if we don't have glib
melunko@38
    69
if test "x$HAVE_GLIB" = "xno"; then
melunko@38
    70
  AC_MSG_ERROR(you need glib-2.0 installed)
melunko@38
    71
fi
melunko@38
    72
melunko@38
    73
dnl make GLIB_CFLAGS and GLIB_LIBS available
melunko@38
    74
AC_SUBST(GLIB_CFLAGS)
melunko@38
    75
AC_SUBST(GLIB_LIBS)
melunko@38
    76
melunko@38
    77
AC_DEFINE(HAVE_GLIB,1,[Defined when glib-2.0 was found])
melunko@38
    78
melunko@38
    79
dnl Check for GObject2.0
melunko@38
    80
PKG_CHECK_MODULES(GOBJECT, 
melunko@38
    81
  gobject-2.0, 
melunko@38
    82
  HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
melunko@38
    83
melunko@38
    84
dnl Give error and exit if we don't have gobject
melunko@38
    85
if test "x$HAVE_GOBJECT" = "xno"; then
melunko@38
    86
  AC_MSG_ERROR(you need gobject-2.0 installed)
melunko@38
    87
fi
melunko@38
    88
melunko@38
    89
dnl make GOBJECT_CFLAGS and GOBJECT_LIBS available
melunko@38
    90
AC_SUBST(GOBJECT_CFLAGS)
melunko@38
    91
AC_SUBST(GOBJECT_LIBS)
melunko@38
    92
renatofilho@621
    93
melunko@38
    94
GNOME_VFS_REQS=2.7.4
melunko@38
    95
PKG_CHECK_MODULES(GNOME_VFS, 
melunko@38
    96
  gnome-vfs-2.0 >= $GNOME_VFS_REQS gnome-vfs-module-2.0 >= $GNOME_VFS_REQS,
melunko@38
    97
  HAVE_GNOME_VFS=yes,
melunko@38
    98
  HAVE_GNOME_VFS=no)
melunko@38
    99
melunko@38
   100
if test x"$HAVE_GNOME_VFS" = xno; then
melunko@38
   101
  AC_MSG_ERROR([You need gnome-vfs2 development packages to compile libgnomevfs2-mythtv])
melunko@38
   102
fi
melunko@38
   103
melunko@38
   104
AC_SUBST(GNOME_VFS_CFLAGS)
melunko@38
   105
AC_SUBST(GNOME_VFS_LIBS)
melunko@38
   106
melunko@38
   107
renatofilho@621
   108
PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.3, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no)
renatofilho@621
   109
if test "x$HAVE_LIBGMYTH" = "xno"; then
renatofilho@621
   110
  AC_MSG_ERROR(you need gmyth >= 0.3 installed)
melunko@38
   111
fi
melunko@38
   112
AC_SUBST(LIBGMYTH_CFLAGS)
melunko@38
   113
AC_SUBST(LIBGMYTH_LIBS)
melunko@38
   114
renatofilho@621
   115
renatofilho@621
   116
AC_OUTPUT( \
renatofilho@621
   117
    Makefile \
renatofilho@644
   118
    modules/Makefile \
renatofilho@644
   119
    tests/Makefile
renatofilho@621
   120
)
renatofilho@621
   121