Statistics
| Branch: | Tag: | Revision:

dvbd / configure.ac @ 900cea42

History | View | Annotate | Download (1.4 KB)

1 900cea42 jak
AC_INIT(dvbd, 0.7.5)
2 b949d188 jak
AC_CONFIG_SRCDIR(src/dvbd.cpp)
3
AM_INIT_AUTOMAKE
4
AM_CONFIG_HEADER(config.h)
5
AC_PROG_CC
6
AC_PROG_CXX
7 242838d9 jak
AC_PROG_YACC
8
AM_PROG_LEX
9 b949d188 jak
AC_STDC_HEADERS
10
AC_HAVE_HEADERS(linux/dvb/dmx.h linux/dvb/frontend.h)
11 6fce9b10 jak
12
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14
15 b949d188 jak
AC_SUBST(DVBD_USER, dvbd)
16
AC_SUBST(DVBD_RUN_DIR, "`eval echo ${localstatedir}/run/dvbd`")
17
AC_SUBST(DVBD_SPOOL_DIR, "`eval echo ${localstatedir}/spool/dvbd`")
18
AC_SUBST(DVBD_LOG_DIR, "`eval echo ${localstatedir}/log`")
19
AC_SUBST(DVBD_ETC_DIR, "`eval echo ${sysconfdir}/dvbd`")
20 6fce9b10 jak
AC_DEFINE_UNQUOTED(DEFAULT_CONFIG_FILE, "${DVBD_ETC_DIR}/config", [Default configuration file])
21 b949d188 jak
AC_DEFINE_UNQUOTED(DEFAULT_SOCKET_FILE, "${DVBD_RUN_DIR}/dvbd.socket", [Default socket file])
22
AC_DEFINE_UNQUOTED(DEFAULT_PID_FILE, "${DVBD_RUN_DIR}/dvbd.pid", [Default pid file])
23
AC_DEFINE_UNQUOTED(DEFAULT_SCHEDULE_FILE, "${DVBD_SPOOL_DIR}/schedule", [Default schedule file])
24
AC_DEFINE_UNQUOTED(DEFAULT_LOG_FILE, "${DVBD_LOG_DIR}/dvbd.log", [Default log file])
25 95bfba9b jak
26
27
AC_ARG_ENABLE([debug],
28
AS_HELP_STRING([--enable-debug], [Compile with debugging information]),
29
[ac_cv_enable_debug=${enableval}],
30
[ac_cv_enable_debug=no])
31
32
case $ac_cv_enable_debug in 
33
  no)  CXXFLAGS='-O3 -fomit-frame-pointer -Wall'
34
       AC_DEFINE(NDEBUG, 1, [Optimise assertions])
35
       ;;
36
  yes) CXXFLAGS='-g -Wall'
37
esac
38
39 cd94270a jak
AC_OUTPUT(Makefile src/Makefile dvbdguide/Makefile)