Statistics
| Branch: | Tag: | Revision:

dvbd / configure.ac @ 0c9cca2a

History | View | Annotate | Download (1.27 KB)

1
AC_INIT(dvbd, 0.5.5)
2
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
AC_PROG_YACC
8
AM_PROG_LEX
9
AC_STDC_HEADERS
10
AC_HAVE_HEADERS(linux/dvb/dmx.h linux/dvb/frontend.h)
11
AC_SUBST(DVBD_USER, dvbd)
12
AC_SUBST(DVBD_RUN_DIR, "`eval echo ${localstatedir}/run/dvbd`")
13
AC_SUBST(DVBD_SPOOL_DIR, "`eval echo ${localstatedir}/spool/dvbd`")
14
AC_SUBST(DVBD_LOG_DIR, "`eval echo ${localstatedir}/log`")
15
AC_SUBST(DVBD_ETC_DIR, "`eval echo ${sysconfdir}/dvbd`")
16
AC_DEFINE_UNQUOTED(DEFAULT_CONFIG_FILE, "${DVBD_ETC_DIR}", [Default configuration file])
17
AC_DEFINE_UNQUOTED(DEFAULT_SOCKET_FILE, "${DVBD_RUN_DIR}/dvbd.socket", [Default socket file])
18
AC_DEFINE_UNQUOTED(DEFAULT_PID_FILE, "${DVBD_RUN_DIR}/dvbd.pid", [Default pid file])
19
AC_DEFINE_UNQUOTED(DEFAULT_SCHEDULE_FILE, "${DVBD_SPOOL_DIR}/schedule", [Default schedule file])
20
AC_DEFINE_UNQUOTED(DEFAULT_LOG_FILE, "${DVBD_LOG_DIR}/dvbd.log", [Default log file])
21

    
22

    
23
AC_ARG_ENABLE([debug],
24
AS_HELP_STRING([--enable-debug], [Compile with debugging information]),
25
[ac_cv_enable_debug=${enableval}],
26
[ac_cv_enable_debug=no])
27

    
28
case $ac_cv_enable_debug in 
29
  no)  CXXFLAGS='-O3 -fomit-frame-pointer -Wall'
30
       AC_DEFINE(NDEBUG, 1, [Optimise assertions])
31
       ;;
32
  yes) CXXFLAGS='-g -Wall'
33
esac
34

    
35
AC_OUTPUT(Makefile src/Makefile)