-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
69 lines (57 loc) · 2.1 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
m4_define([lib_current],1)
m4_define([lib_revision],0)
m4_define([lib_age],0)
AC_INIT(cnbicvsa,[lib_current.lib_revision.lib_age],
luca.tonin@epfl.ch)
AC_CONFIG_SRCDIR([src/InfiniteBar.hpp])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config/config.h])
AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 color-tests subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_PROG_LIBTOOL
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11
CFLAGS+=" -std=c11"
LT_INIT([win32-dll disable-static])
AC_SUBST(LIBTOOL_DEPS)
save_LIBS="$LIBS"
AC_CHECK_HEADERS([lpttrigger.h], [],
AC_MSG_ERROR([The lpttrigger headers must be installed.]), [])
AC_SEARCH_LIBS([OpenLPTTrigger], [lpttrigger], [],
AC_MSG_ERROR([The lpttrigger library must be installed.]))
AC_SEARCH_LIBS_CLASS([CcFile], [cnbicore], [#include <cnbicore/CcFile.hpp>], ,
AC_MSG_ERROR([The cnbicore library cannot be found.]))
AC_SEARCH_LIBS_CLASS([TCBlock], [tobicore], [#include <tobicore/TCBlock.hpp>], ,
AC_MSG_ERROR([The tobicore library cannot be found.]))
AC_SEARCH_LIBS_CLASS([IDMessage], [tobiid], [#include <tobiid/IDMessage.hpp>], ,
AC_MSG_ERROR([The tobiid library cannot be found.]))
AC_SEARCH_LIBS_CLASS([ClClient], [cnbiloop], [#include <cnbiloop/ClClient.hpp>], ,
AC_MSG_ERROR([The cnbiloop library cannot be found.]))
AC_SEARCH_LIBS_CLASS([CCfgConfig], [cnbiconfig], [#include <cnbiconfig/CCfgConfig.hpp>], ,
AC_MSG_ERROR([The cnbiconfig library cannot be found.]))
PKG_CHECK_MODULES(CNBIDRAW, [cnbidraw], [#include <cnbidraw/Shape.hpp>], ,
AC_MSG_ERROR([The cnbidraw library cannot be found.]))
LIBS="$save_LIBS"
AC_CHECK_PROG([DOXYGEN], [doxygen], [doxygen] [no])
if test "$DOXYGEN" = no ; then
AC_MSG_ERROR(Cannot find doxygen.)
fi
AC_HEADER_STDBOOL
AC_SUBST([RELEASE],[lib_release])
AC_SUBST([CURRENT],[lib_current])
AC_SUBST([REVISION],[lib_revision])
AC_SUBST([AGE],[lib_age])
AC_SUBST(AM_LDFLAGS)
AC_CONFIG_FILES([
Makefile
src/Makefile
src/cnbicvsa.pc
extra/Makefile
extra/icons/Makefile
extra/xml/Makefile
extra/launcher/Makefile
tests/Makefile])
AC_OUTPUT