Recognizes if input is ogg or not.
[xiph.git] / ffmpeg2theora / configure.ac
blob626d78b89abfa72fdb904a411579f601d000efae
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.59)
3 AC_INIT(ffmpeg2theora,0.21+svn)
4 AC_CONFIG_SRCDIR([Makefile.am])
5 AM_INIT_AUTOMAKE([dist-bzip2])
7 AC_PROG_CC
8 AM_PROG_CC_C_O
9 AM_PROG_LIBTOOL
11 AC_SYS_LARGEFILE
13 AC_MSG_CHECKING(whether to link statically)
14 AC_ARG_WITH(static-linking,
15 [  --with-static-linking   Link binaries statically],
16 [ case "$withval" in
17   no)
18      AC_MSG_RESULT(no)
19      ;;
20   *)
21     AC_MSG_RESULT(yes)
22     LDFLAGS="-static $LDFLAGS"
23     ;;
24   esac],
25 AC_MSG_RESULT(no)
28 PKG_CHECK_MODULES(XIPH,ogg >= 1.1 vorbis vorbisenc theora >= 1.0beta1)
29 AC_SUBST(XIPH_CFLAGS)
30 AC_SUBST(XIPH_LIBS)
32 export PKG_CONFIG_PATH=./libkate/misc/pkgconfig:./libkate/pkg/pkgconfig:$PKG_CONFIG_PATH
33 PKG_CHECK_MODULES(KATE,oggkate >= 0.1.3,
34                   KATE_CFLAGS="-DHAVE_KATE -DHAVE_OGGKATE $KATE_CFLAGS",
35                   [AC_MSG_RESULT(
37 .     Could not find libkate. Subtitles support will be disabled.
38       You can also run ./get_libkate.sh (for more information see INSTALL)
39       or update PKG_CONFIG_PATH to point to libkate's source folder
42 AC_SUBST(KATE_LIBS)
43 AC_SUBST(KATE_CFLAGS)
45 export PKG_CONFIG_PATH=./ffmpeg/libavutil:./ffmpeg/libavformat:./ffmpeg/libavcodec:./ffmpeg/libavdevice:./ffmpeg/libswscale:./ffmpeg/libpostproc:$PKG_CONFIG_PATH
46 PKG_CHECK_MODULES(FFMPEG, libavformat libavcodec libavdevice libswscale libpostproc, HAVE_FFMPEG=yes, 
47         AC_MSG_ERROR([
49 .     Could not find libavformat libavcodec libavdevice libswscale libpostproc.
50       You can install it via
51        sudo apt-get install libavformat-dev libavcodec-dev libavdevice-dev libswscale-dev libpostproc-dev
52       or update PKG_CONFIG_PATH to point to ffmpeg's source folder
53       or run ./get_ffmpeg_svn.sh (for more information see INSTALL)
56 AC_SUBST(FFMPEG_CFLAGS)
57 AC_SUBST(FFMPEG_LIBS)
59 AC_OUTPUT([
60         Makefile
61         kino_export/Makefile