update build scripts
[libdreamdvd.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([libdreamdvd],[0.0.1],[enigma2-devel@lists.elitedvb.net])
5 AM_INIT_AUTOMAKE([dist-bzip2 foreign])
6 AC_CONFIG_SRCDIR([main.c])
7 AC_CONFIG_HEADERS([libdreamdvd_config.h])
8
9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10
11 AC_USE_SYSTEM_EXTENSIONS
12 AC_SYS_LARGEFILE
13
14 # Checks for programs.
15 AC_PROG_CC
16 m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
17 AC_CONFIG_MACRO_DIR([m4])
18
19 # Checks for libraries.
20 PKG_CHECK_MODULES(DVDNAV, dvdnav)
21 AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"], [AC_MSG_ERROR([Could not find libdl])])
22 AC_SUBST(LIBDL_LIBS)
23 AC_CHECK_LIB([m], [pow], [LIBM_LIBS="-lm"], [AC_MSG_ERROR([Could not find libm])])
24 AC_SUBST(LIBM_LIBS)
25
26 # Checks for header files.
27 AC_CHECK_HEADERS([byteswap.h ost/dmx.h linux/dvb/version.h])
28
29 AC_CONFIG_FILES([
30 Makefile
31 libdreamdvd.pc
32 ])
33 AC_OUTPUT