Annotation of libsoftmpeg/configure.in, revision 1.1

1.1     ! hunold      1: # Process this file with autoconf to produce a configure script.
        !             2: AC_INIT(include/softmpeg.h)
        !             3: 
        !             4: # Save this value here, since automake will set cflags later
        !             5: cflags_set=${CFLAGS+set}
        !             6: 
        !             7: SOFTMPEG_MAJOR_VERSION=0
        !             8: SOFTMPEG_MINOR_VERSION=1
        !             9: SOFTMPEG_VERSION=$SOFTMPEG_MAJOR_VERSION.$SOFTMPEG_MINOR_VERSION
        !            10: 
        !            11: AC_SUBST(SOFTMPEG_MINOR_VERSION)
        !            12: AC_SUBST(SOFTMPEG_MAJOR_VERSION)
        !            13: AC_SUBST(SOFTMPEG_VERSION)
        !            14: 
        !            15: # For automake.
        !            16: PACKAGE=libsoftmpeg
        !            17: VERSION=$SOFTMPEG_VERSION
        !            18: 
        !            19: # Save this value here, since automake will set cflags later
        !            20: cflags_set=${CFLAGS+set}
        !            21: 
        !            22: dnl Initialize automake stuff
        !            23: AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
        !            24: 
        !            25: # Specify a configuration file
        !            26: AM_CONFIG_HEADER(config.h)
        !            27: 
        !            28: dnl Initialize CC
        !            29: AC_PROG_CC
        !            30: AM_CONDITIONAL(CROSS_COMPILING,test "$cross_compiling" = "yes")
        !            31: 
        !            32: dnl Initialize libtool
        !            33: AM_PROG_LIBTOOL
        !            34: 
        !            35: dnl Initialize maintainer mode
        !            36: AM_MAINTAINER_MODE
        !            37: 
        !            38: # Build time sanity check...
        !            39: AM_SANITY_CHECK
        !            40: 
        !            41: # Checks for programs.
        !            42: AC_ISC_POSIX
        !            43: AM_PROG_CC_STDC
        !            44: AC_PROG_INSTALL
        !            45: AC_PROG_MAKE_SET
        !            46: 
        !            47: PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.20)
        !            48:  
        !            49: PKG_CHECK_MODULES(FUSIONSOUND, fusionsound >= 0.9.20)
        !            50: 
        !            51: if test "x$enable_static" = xyes; then
        !            52:   FUSIONSOUND_MODULE="-L`$PKG_CONFIG --variable=moduledir directfb-internal`/interfaces/IFusionSound -lifusionsound -Wl,-uIFusionSound_default"
        !            53: fi
        !            54: 
        !            55: AC_SUBST(FUSIONSOUND_MODULE)
        !            56: 
        !            57: have_avcodec=no
        !            58: 
        !            59: AC_CHECK_LIB(avcodec, avcodec_decode_video, [
        !            60:   AC_CHECK_HEADER(ffmpeg/avcodec.h, have_avcodec=yes,
        !            61:                   AC_MSG_WARN([*** libavcodec header not found])) ],
        !            62:   AC_MSG_WARN([*** libavcodec not found]))
        !            63: 
        !            64: if test "$have_avcodec" = "yes"; then
        !            65:   AC_DEFINE(HAVE_AVCODEC, 1, [Define to 1 if libavcodec is available.])
        !            66: 
        !            67:   AVCODEC_LIBS=-lavcodec
        !            68: fi
        !            69: 
        !            70: AC_SUBST(AVCODEC_LIBS)
        !            71: 
        !            72: AC_ARG_ENABLE(debug, [  --enable-debug          turn on debugging [default=no]],
        !            73:               enable_debug="yes", enable_debug="no")
        !            74: 
        !            75: if test "x$enable_debug" = "xyes" ; then
        !            76:   AC_DEFINE(ENABLE_DEBUG, 1,
        !            77:             [Define to 1 to enable debug.])
        !            78: fi
        !            79: 
        !            80: AM_CONDITIONAL(ENABLE_DEBUG, test "x$enable_debug" = "xyes")
        !            81: 
        !            82: dnl Use -Wall if we have gcc.
        !            83: changequote(,)dnl
        !            84: if test "x$GCC" = "xyes"; then
        !            85:   case " $CFLAGS " in
        !            86:   *[\ \        ]-Wall[\ \      ]*) ;;
        !            87:   *) CFLAGS="$CFLAGS -Wall" ;;
        !            88:   esac
        !            89: fi
        !            90: changequote([,])dnl
        !            91: 
        !            92: ## build pthread compatible binaries
        !            93: CPPFLAGS="$CPPFLAGS -D_REENTRANT"
        !            94: 
        !            95: # Checks for header files.
        !            96: AC_HEADER_STDC
        !            97: 
        !            98: # Checks for typedefs, structures, and compiler characteristics.
        !            99: AC_C_CONST
        !           100: 
        !           101: AC_SUBST(PACKAGE)
        !           102: AC_SUBST(VERSION)
        !           103: 
        !           104: AC_OUTPUT([
        !           105: Makefile
        !           106: src/Makefile
        !           107: include/Makefile
        !           108: demo/Makefile
        !           109: softmpeg.pc
        !           110: ])
        !           111: 
        !           112: 

LinuxTV legacy CVS <linuxtv.org/cvs>