diff -r ab0098a886e3 -r 8b8efd570497 libgnomevfs2-mythtv/configure.ac --- a/libgnomevfs2-mythtv/configure.ac Wed Mar 07 14:08:55 2007 +0000 +++ b/libgnomevfs2-mythtv/configure.ac Mon May 07 14:26:39 2007 +0100 @@ -1,4 +1,16 @@ -AC_INIT(libgnomevfs2-mythtv, 0.1) +dnl fill in your package name and version here +dnl autoconf configuration files for gst-plugins-dspbin +AC_INIT +AC_CANONICAL_TARGET + +AC_CONFIG_MACRO_DIR([m4]) +dnl We disable static building for development, for time savings +dnl this goes before AS_LIBTOOL to appease autoconf +dnl *NOTE*: dnl this line before release, so release does static too +AM_DISABLE_STATIC + +dnl AM_MAINTAINER_MODE only provides the option to configure to enable it +AM_MAINTAINER_MODE dnl when going to/from release please set the nano (fourth number) right ! dnl releases only do Wall, cvs and prerelease does Werror too @@ -6,48 +18,45 @@ AM_INIT_AUTOMAKE($PACKAGE, $VERSION) +AM_PROG_LIBTOOL + AM_CONFIG_HEADER(config.h) -AM_DISABLE_STATIC - -dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode -AM_MAINTAINER_MODE dnl make aclocal work in maintainer mode AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") dnl check for tools -dnl Make sure CFLAGS is defined to stop AC_PROC_CC adding -g -CFLAGS="$CFLAGS " AC_PROG_CC -AC_PROG_CPP -AM_PROG_CC_STDC -AC_HEADER_STDC -AC_PROG_LIBTOOL - -dnl Test if --enable-debug given -AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug],[enable debugging mode])]) -if test "x$enable_debug" = "xyes" ; then - CFLAGS="$CFLAGS -g" -fi - -dnl optimisation flag -CFLAGS="$CFLAGS -O2" +AC_PROG_CC_STDC +AM_PROG_AS dnl decide on error flags -AS_COMPILER_FLAG(-Wall, LIBGNOMEVFS2_MYTHTV_WALL="yes", LIBGNOMEVFS2_MYTHTV_WALL="no") +AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no") -if test "x$LIBGNOMEVFS2_MYTHTV_WALL" = "xyes"; then - CFLAGS="$CFLAGS -Wall" +if test "x$GST_WALL" = "xyes"; then + ERROR_CFLAGS="$GST_ERROR -Wall" - if test "x$LIBGNOMEVFS2_MYTHTV_CVS" = "xyes"; then - AS_COMPILER_FLAG(-Werror,CFLAGS="$CFLAGS -Werror",) - fi + if test "x$GST_CVS" = "xyes"; then + AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS") + fi fi - -dnl Now check required packages -dnl Check for pkgconfig +AC_SUBST(ERROR_CFLAGS) + +dnl determine c++ compiler +AC_PROG_CXX +dnl determine if c++ is available on this system +AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no) +dnl determine c++ preprocessor +AC_PROG_CXXCPP +AC_ISC_POSIX + +AC_HEADER_STDC([]) +AC_C_INLINE + +dnl Check for pkgconfig first AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) + dnl Give error and exit if we don't have pkgconfig if test "x$HAVE_PKGCONFIG" = "xno"; then AC_MSG_ERROR(you need to have pkgconfig installed !) @@ -81,6 +90,7 @@ AC_SUBST(GOBJECT_CFLAGS) AC_SUBST(GOBJECT_LIBS) + GNOME_VFS_REQS=2.7.4 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= $GNOME_VFS_REQS gnome-vfs-module-2.0 >= $GNOME_VFS_REQS, @@ -94,23 +104,17 @@ AC_SUBST(GNOME_VFS_CFLAGS) AC_SUBST(GNOME_VFS_LIBS) -dnl Check for gmyth -GMYTH_REQS=0.2 -PKG_CHECK_MODULES(LIBGMYTH, - gmyth >= $GMYTH_REQS, - have_libgmyth=yes, - have_libgmyth=no) -if test x"$have_libgmyth" = "xno"; then - AC_MSG_ERROR(gmyth-0.1 not found) +PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.3, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no) +if test "x$HAVE_LIBGMYTH" = "xno"; then + AC_MSG_ERROR(you need gmyth >= 0.3 installed) fi - AC_SUBST(LIBGMYTH_CFLAGS) AC_SUBST(LIBGMYTH_LIBS) -AC_OUTPUT([ -Makefile -modules/Makefile -common/Makefile -m4/Makefile -]) + +AC_OUTPUT( \ + Makefile \ + modules/Makefile +) +