gst-plugins-mythtv/configure.ac
branchtrunk
changeset 613 289e2d11d16c
parent 612 81f031485b52
child 614 24c3dd0bc57e
     1.1 --- a/gst-plugins-mythtv/configure.ac	Tue May 01 17:22:20 2007 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,172 +0,0 @@
     1.4 -#                                               -*- Autoconf -*-
     1.5 -# Process this file with autoconf to produce a configure script.
     1.6 -
     1.7 -AC_PREREQ(2.50)
     1.8 -
     1.9 -AC_INIT([mythtvsrc],[0.1])
    1.10 -
    1.11 -dnl AC_CONFIG_SRCDIR([src])
    1.12 -AC_CONFIG_HEADER(config.h)
    1.13 -
    1.14 -dnl when going to/from release please set the nano (fourth number) right !
    1.15 -dnl releases only do Wall, SVN and prerelease does Werror too
    1.16 -AS_VERSION(mythtvsrc, MYTHTVSRC, 0, 1, 0, 3, MYTHTVSRC_SVN="no", MYTHTVSRC_SVN="yes")
    1.17 -
    1.18 -MYTHTVSRC_MAJORMINOR=$MYTHTVSRC_MAJOR_VERSION.$MYTHTVSRC_MINOR_VERSION
    1.19 -
    1.20 -AC_SUBST(MYTHTVSRC_MAJORMINOR)
    1.21 -
    1.22 -dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
    1.23 -AM_MAINTAINER_MODE
    1.24 -dnl make aclocal work in maintainer mode
    1.25 -AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
    1.26 -
    1.27 -# Checks for programs.
    1.28 -# check for tools
    1.29 -# Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
    1.30 -CFLAGS="$CFLAGS -Wall"
    1.31 -AC_PROG_CC
    1.32 -AC_PROG_LIBTOOL
    1.33 -# Checks for libraries.
    1.34 -
    1.35 -# Checks for header files.
    1.36 -AC_HEADER_STDC
    1.37 -AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h])
    1.38 -
    1.39 -# Checks for typedefs, structures, and compiler characteristics.
    1.40 -AC_C_CONST
    1.41 -AC_TYPE_PID_T
    1.42 -AC_STRUCT_TM
    1.43 -
    1.44 -# Checks for library functions.
    1.45 -AC_FUNC_FORK
    1.46 -AC_PROG_GCC_TRADITIONAL
    1.47 -AC_FUNC_MALLOC
    1.48 -AC_FUNC_MKTIME
    1.49 -AC_FUNC_VPRINTF
    1.50 -AC_CHECK_FUNCS([memset socket stime strstr strtoul])
    1.51 -
    1.52 -AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
    1.53 -
    1.54 -# Checks required packages
    1.55 -
    1.56 -dnl Test if --disable-debug given
    1.57 -AC_ARG_ENABLE(debug,
    1.58 -	[AC_HELP_STRING([--disable-debug], [disable debugging mode])],
    1.59 -	enable_debug="$enableval",
    1.60 -	enable_debug=yes)
    1.61 -
    1.62 -if test "x$enable_debug" = "xyes" ; then
    1.63 -      CFLAGS="$CFLAGS -g"
    1.64 -else
    1.65 -      AC_DEFINE( NDEBUG, 1, [disable debug messages] )
    1.66 -      CFLAGS="$CFLAGS -O2 -DG_DISABLE_CHECKS -DNDEBUG"
    1.67 -fi          
    1.68 -
    1.69 -AM_CONDITIONAL( NDEBUG, test "x$enable_debug" = "xyes" )
    1.70 -
    1.71 -# Check for pkgconfig
    1.72 -AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
    1.73 -# Give error and exit if we don't have pkgconfig
    1.74 -if test "x$HAVE_PKGCONFIG" = "xno"; then
    1.75 -  AC_MSG_ERROR(you need to have pkgconfig installed !)
    1.76 -fi
    1.77 -
    1.78 -# Check for Glib2.0
    1.79 -PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
    1.80 -
    1.81 -# Give error and exit if we don't have glib
    1.82 -if test "x$HAVE_GLIB" = "xno"; then
    1.83 -  AC_MSG_ERROR(you need glib-2.0 installed)
    1.84 -fi
    1.85 -
    1.86 -# make GLIB_CFLAGS and GLIB_LIBS available
    1.87 -AC_SUBST(GLIB_CFLAGS)
    1.88 -AC_SUBST(GLIB_LIBS)
    1.89 -
    1.90 -# Check for GObject2.0
    1.91 -PKG_CHECK_MODULES(GOBJECT,
    1.92 -  gobject-2.0,
    1.93 -  HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
    1.94 -
    1.95 -# Give error and exit if we don't have gobject
    1.96 -if test "x$HAVE_GOBJECT" = "xno"; then
    1.97 -  AC_MSG_ERROR(you need gobject-2.0 installed)
    1.98 -fi
    1.99 -
   1.100 -# make GOBJECT_CFLAGS and GOBJECT_LIBS available
   1.101 -AC_SUBST(GOBJECT_CFLAGS)
   1.102 -AC_SUBST(GOBJECT_LIBS)
   1.103 -
   1.104 -dnl *** MythTV ***
   1.105 -PKG_CHECK_MODULES(GMYTH,
   1.106 -  gmyth,
   1.107 -  HAVE_GMYTH=yes, HAVE_GMYTH=no)
   1.108 -
   1.109 -# Give error and exit if we don't have gobject
   1.110 -if test "x$HAVE_GMYTH" = "xno"; then
   1.111 -  AC_MSG_ERROR(you need gmyth must to be installed)
   1.112 -fi
   1.113 -
   1.114 -# make GMYTH_CFLAGS and GMYTH_LIBS available
   1.115 -AC_SUBST(GMYTH_CFLAGS)
   1.116 -AC_SUBST(GMYTH_LIBS)
   1.117 -
   1.118 -# GStreamer version required
   1.119 -GST_REQUIRED=0.10
   1.120 -GST_MAJORMINOR=0.10
   1.121 -
   1.122 -GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
   1.123 -AC_SUBST(GST_PLUGINS_DIR)
   1.124 -AC_MSG_NOTICE(Using GStreamer Base Plugins in $GST_PLUGINS_DIR)
   1.125 -
   1.126 -dnl this really should only contain flags, not libs - they get added before
   1.127 -dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
   1.128 -GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_PLUGINS_DIR"
   1.129 -AC_SUBST(GST_PLUGIN_LDFLAGS)
   1.130 -
   1.131 -# check for gstreamer development files
   1.132 -PKG_CHECK_MODULES(GST, \
   1.133 -  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
   1.134 -  HAVE_GST=yes, HAVE_GST=no)
   1.135 -
   1.136 -# Give error and exit if we don't have gstreamer
   1.137 -if test "x$HAVE_GST" = "xno"; then
   1.138 -  AC_MSG_ERROR(you need gstreamer development packages installed !)
   1.139 -fi
   1.140 -
   1.141 -# make GST_CFLAGS and GST_LIBS available
   1.142 -AC_SUBST(GST_CFLAGS)
   1.143 -AC_SUBST(GST_LIBS)
   1.144 -
   1.145 -# check for gstreamer-base plugins (xoverlay interface)
   1.146 -GST_BASE_REQUIRED=0.10
   1.147 -GST_BASE_MAJORMINOR=0.10
   1.148 -PKG_CHECK_MODULES(GST_BASE, \
   1.149 -  gstreamer-base-$GST_BASE_MAJORMINOR >= $GST_BASE_REQUIRED,
   1.150 -  HAVE_GST_BASE=yes, HAVE_GST_BASE=no)
   1.151 -
   1.152 -# Give error and exit if we don't have gstreamer base libraries
   1.153 -if test "x$HAVE_GST_BASE" = "xno"; then
   1.154 -  AC_MSG_ERROR(you need gstreamer base development packages installed !)
   1.155 -fi
   1.156 -
   1.157 -# make GST_BASE_CFLAGS and GST_BASE_LIBS available
   1.158 -AC_SUBST(GST_BASE_CFLAGS)
   1.159 -AC_SUBST(GST_BASE_LIBS)
   1.160 -
   1.161 -# make GST_MAJORMINOR available in Makefile.am
   1.162 -AC_SUBST(GST_MAJORMINOR)
   1.163 -
   1.164 -AC_DEFINE(GST_LICENSE, "LGPL", [License for Distribution])
   1.165 -
   1.166 -AC_DEFINE(GST_PACKAGE_NAME, "GStreamer", [Gstremar package name])
   1.167 -
   1.168 -AC_DEFINE(GST_PACKAGE_ORIGIN, "http://gstreamer.net/", [Origin of this package] )
   1.169 -
   1.170 -AC_CONFIG_FILES([
   1.171 -Makefile
   1.172 -src/Makefile
   1.173 -])
   1.174 -
   1.175 -AC_OUTPUT