forked from obriante/libtwitc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
69 lines (55 loc) · 1.52 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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(libtwitc, 0.1)
# prevent setting xFLAGS to default of -g -O2
if test x"$CFLAGS" = x""; then
AC_SUBST(CFLAGS, [ ])
fi
if test x"$CXXFLAGS" = x""; then
AC_SUBST(CXXFLAGS, [ ])
fi
AC_PROG_CC
AC_PROG_CXX
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([no])])
dnl Initialize automake
AM_INIT_AUTOMAKE()
dnl this allows us specify individual liking flags for each target
AM_PROG_CC_C_O
dnl Doxygen
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(ON)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(ON)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN([$PACKAGE_NAME],[twitc.doxyfile],[doc])
PKG_CHECK_MODULES(EXTERN_DEP, [libcurl libxml-2.0 oauth])
AC_CONFIG_SUBDIRS( liblogc )
liblogc_CFLAGS="-I\$(top_srcdir)/liblogc/include"
liblogc_LIBS="\$(top_builddir)/liblogc/src/liblogc.a"
AC_SUBST(liblogc_CFLAGS)
AC_SUBST(liblogc_LIBS)
AC_CONFIG_SUBDIRS( libtwitc )
libtwitc_CFLAGS="-I\$(top_srcdir)/include"
libtwitc_LIBS="\$(top_builddir)/src/libtwitc.a"
AC_SUBST(libtwitc_CFLAGS)
AC_SUBST(libtwitc_LIBS)
dnl DEBUG
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [enable debugging, default: no]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac], [debug=false])
AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
AC_PROG_RANLIB
AC_CONFIG_FILES(
Makefile
liblogc/Makefile
src/Makefile
example/Makefile
)
AC_OUTPUT