forked from ravidontharaju/pion-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
71 lines (59 loc) · 2.43 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
70
71
# -----------------------------------------
# Pion Platform autoconf configuration file
# -----------------------------------------
# Set Pion version information
AC_INIT([pion-platform], [5.0.0], [[email protected]])
# Initialize some other things
AC_PREREQ([2.59])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([m4])
AC_CONFIG_SRCDIR(platform/src/Vocabulary.cpp)
# package and version args are now taken from AC_INIT()
AM_INIT_AUTOMAKE
# Use "silent mode" for less verbose build commands in automake 1.11+
m4_ifdef( [AM_SILENT_RULES], [AM_SILENT_RULES([yes])] )
# Needed to set per-target compilation flags
AM_PROG_CC_C_O
# Setup libtool
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL
# Setup doxygen support
DX_DOXYGEN_FEATURE(ON)
DX_HTML_FEATURE(ON)
DX_INIT_DOXYGEN(pion-platform, platform/doc/Doxyfile, platform/doc)
# Define CXXFLAGS before AC_PROG_CXX to suppress the default autoconf
# compiler options
CFLAGS="-DPION_PLATFORM"
CXXFLAGS="-DPION_PLATFORM"
# Currently only the embedded common library can be used
PION_COMMON_HOME=`pwd`/common
PION_COMMON_LIB="$PION_COMMON_HOME/src/libpion-common.la"
PION_COMMON_MAKEDIRS=""
AC_SUBST(PION_COMMON_HOME)
AC_SUBST(PION_COMMON_LIB)
AC_SUBST(PION_COMMON_MAKEDIRS)
AC_MSG_NOTICE([Using the embedded pion-common library])
# Currently only the embedded net library can be used
PION_NET_HOME=`pwd`/net
PION_NET_LIB="$PION_NET_HOME/src/libpion-net.la"
AC_SUBST(PION_NET_HOME)
AC_SUBST(PION_NET_LIB)
AC_MSG_NOTICE([Using the embedded pion-net library])
# Include pion-config.inc
m4_include([common/build/pion-setup.inc])
m4_include([common/build/pion-boost.inc])
m4_include([common/build/pion-config.inc])
m4_include([platform/build/pion-config.inc])
# Output Makefiles
AC_OUTPUT(Makefile pion-platform.pc common/pion-common.pc net/pion-net.pc
common/Makefile common/include/Makefile common/include/pion/Makefile
common/src/Makefile common/tests/Makefile common/tests/PluginsUsedByUnitTests/Makefile
net/Makefile net/include/Makefile net/include/pion/Makefile net/include/pion/net/Makefile
net/src/Makefile net/services/Makefile net/utils/Makefile net/tests/Makefile
platform/Makefile platform/include/Makefile
platform/include/pion/Makefile platform/include/pion/platform/Makefile
platform/src/Makefile platform/server/Makefile platform/tests/Makefile
platform/codecs/Makefile platform/protocols/Makefile
platform/reactors/Makefile platform/databases/Makefile
platform/services/Makefile sqlite/Makefile)