-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
25 lines (22 loc) · 929 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
AC_INIT([tn], [0.2], [[email protected]], [tn])
AC_CONFIG_SRCDIR([src/tn.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([dist-bzip2 foreign subdir-objects])
AM_MAINTAINER_MODE
AC_PROG_CC
AM_PROG_CC_C_O
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
PKG_CHECK_MODULES(CAIRO, [cairo],
AC_DEFINE(HAVE_CAIRO, 1, [Define if cairo is available]))
PKG_CHECK_MODULES(FFMPEG, [libavformat libavcodec libswscale libavutil])
AVFORMAT_DIR=$(pkg-config --variable=includedir libavformat)
AC_CHECK_FILE([${AVFORMAT_DIR}/avformat.h],,
AC_CHECK_FILE([${AVFORMAT_DIR}/libavformat/avformat.h],
AC_DEFINE(AVCODEC_NEW_INCLUDE, 1,
[Define if ffmpeg uses new include layout]),
AC_MSG_ERROR([Unable to find ffmpeg include dir])))
AC_CHECK_HEADER([jpeglib.h],
AC_DEFINE(HAVE_JPEG, 1, [Define if libjpeg is available]))
AC_OUTPUT([Makefile])