gst-gmyth/configure.ac
author renatofilho
Fri Feb 15 13:52:23 2008 +0000 (2008-02-15)
branchtrunk
changeset 915 e612ba1d16ab
parent 793 45c799bef1f6
permissions -rw-r--r--
[svn r924] created method gmyth_upnp_get_devices
     1 dnl fill in your package name and version here
     2 dnl autoconf configuration files for gst-plugins-dspbin
     3 AC_INIT
     4 AC_CANONICAL_TARGET
     5 
     6 AC_CONFIG_MACRO_DIR([m4])
     7 dnl We disable static building for development, for time savings
     8 dnl this goes before AS_LIBTOOL to appease autoconf
     9 dnl *NOTE*: dnl this line before release, so release does static too
    10 AM_DISABLE_STATIC
    11 
    12 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
    13 AM_MAINTAINER_MODE
    14 
    15 dnl when going to/from release please set the nano (fourth number) right !
    16 dnl releases only do Wall, cvs and prerelease does Werror too
    17 AS_VERSION(gst-indt-plugins, GST_PLUGINS_VERSION, 0, 10, 0, 1, GST_CVS="no", GST_CVS="yes")
    18 
    19 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
    20 
    21 AM_PROG_LIBTOOL
    22 
    23 AM_CONFIG_HEADER(config.h)
    24 
    25 dnl make aclocal work in maintainer mode
    26 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
    27 
    28 dnl check for tools
    29 AC_PROG_CC
    30 AC_PROG_CC_STDC
    31 AM_PROG_AS
    32 
    33 dnl decide on error flags
    34 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
    35 
    36 if test "x$GST_WALL" = "xyes"; then
    37   ERROR_CFLAGS="$GST_ERROR -Wall"
    38 
    39   if test "x$GST_CVS" = "xyes"; then
    40     AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
    41   fi
    42 fi
    43 
    44 AC_SUBST(ERROR_CFLAGS)
    45 
    46 dnl determine c++ compiler
    47 AC_PROG_CXX
    48 dnl determine if c++ is available on this system
    49 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
    50 dnl determine c++ preprocessor
    51 AC_PROG_CXXCPP
    52 AC_ISC_POSIX
    53 
    54 AC_HEADER_STDC([])
    55 AC_C_INLINE
    56 
    57 dnl Check for pkgconfig first
    58 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
    59 
    60 dnl Give error and exit if we don't have pkgconfig
    61 if test "x$HAVE_PKGCONFIG" = "xno"; then
    62   AC_MSG_ERROR(you need to have pkgconfig installed !)
    63 fi
    64 
    65 dnl Now we're ready to ask for gstreamer libs and cflags
    66 dnl And we can also ask for the right version of gstreamer
    67 
    68 GST_REQUIRED=0.10.3
    69 GST_MAJORMINOR=0.10
    70 
    71 PKG_CHECK_MODULES(GST, \
    72   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
    73   HAVE_GST=yes,HAVE_GST=no)
    74 
    75 dnl Give error and exit if we don't have gstreamer
    76 if test "x$HAVE_GST" = "xno"; then
    77   AC_MSG_ERROR(you need gstreamer development packages installed !)
    78 fi
    79 
    80 if test "x$USE_DEBUG" = xyes; then
    81   GST_CFLAGS="$GST_CFLAGS -g"
    82 fi
    83 
    84 dnl added because of the i18n headers
    85 GST_CFLAGS="-I\$(top_builddir)/gst-libs $GST_CFLAGS"
    86 
    87 dnl make GST_CFLAGS and GST_LIBS available
    88 AC_SUBST(GST_CFLAGS)
    89 AC_SUBST(GST_LIBS)
    90 
    91 dnl make GST_MAJORMINOR available in Makefile.am
    92 AC_SUBST(GST_MAJORMINOR)
    93 
    94 dnl check for gstreamer-base; uninstalled is selected preferentially
    95 PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED,
    96   HAVE_GST_BASE="yes", HAVE_GST_BASE="no")
    97 
    98 if test "x$HAVE_GST_BASE" = "xno"; then
    99   AC_MSG_ERROR(no GStreamer Base Libs found)
   100 fi
   101 
   102 AC_SUBST(GST_BASE_LIBS)
   103 AC_SUBST(GST_BASE_CFLAGS)
   104 
   105 dnl check for gstreamer-libs; uinstalled is selected preferentially
   106 PKG_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED,
   107   HAVE_GST_PLUGINS="yes", HAVE_GST_PLUGINS="no")
   108 
   109 if test "x$HAVE_GST_PLUGINS" = "xno"; then
   110   AC_MSG_ERROR(no GStreamer Plugins Libs found)
   111 fi
   112 
   113 AC_SUBST(GST_PLUGINS_BASE_LIBS)
   114 AC_SUBST(GST_PLUGINS_BASE_CFLAGS)
   115 
   116 PKG_CHECK_MODULES(GMYTH, gmyth >= 0.3, HAVE_GMYTH=yes,HAVE_GMYTH=no)
   117 if test "x$HAVE_GMYTH" = "xyes"; then
   118   AC_DEFINE([WITH_GMYTH],[1],[Define if GMYTH support is enabled])
   119 fi
   120 AM_CONDITIONAL(WITH_GMYTH, test "x$HAVE_GMYTH" = "xyes")
   121 AC_SUBST(GMYTH_CFLAGS)
   122 AC_SUBST(GMYTH_LIBS)
   123 
   124 PKG_CHECK_MODULES(X11, x11, HAVE_X11=yes,HAVE_X11=no)
   125 if test "x$HAVE_X11" = "xno"; then
   126   AC_MSG_ERROR(you need x11-dev installed)
   127 fi
   128 AC_SUBST(X11_CFLAGS)
   129 AC_SUBST(X11_LIBS)
   130 
   131 
   132 dnl set the plugindir where plugins should be installed
   133 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
   134 AC_SUBST(plugindir)
   135 
   136 dnl set proper LDFLAGS for plugins
   137 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
   138 AC_SUBST(GST_PLUGIN_LDFLAGS)
   139 
   140 AC_DEFINE(GST_LICENSE, "LGPL", [License for Distribution])
   141 AC_DEFINE(GST_PACKAGE_NAME, "INdT plugins to Gstreamer ", [package name])
   142 AC_DEFINE(GST_PACKAGE_ORIGIN, "https://svn.sourceforge.net/svnroot/gmyth/gst-gmyth", [Origin of this package] )
   143 
   144 AC_OUTPUT( \
   145     Makefile \
   146     nuvdemux/Makefile \
   147     mythsrc/Makefile
   148 )
   149