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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_INIT(webaccounts-browser-extension, 0.3)
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CC_C99
AC_PROG_MKDIR_P
# For google test
AC_PROG_CXX
m4_include([m4/gtest.m4])
CHECK_GTEST
AC_DISABLE_STATIC
LT_INIT
dnl ***************************************************************************
dnl Internationalization
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.50.0])
GETTEXT_PACKAGE=webcredentials_browser_extension
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
PKG_CHECK_MODULES(WEBACCOUNTS_NPAPI_PLUGIN,
gio-2.0
glib-2.0
json-glib-1.0
libaccounts-glib
)
GLIB_GSETTINGS
dnl ***************************************************************************
dnl debug
dnl ***************************************************************************
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[enable debugging. [default=no]]),
[enable_debug="yes"],[enable_debug="no"])
if test "x$enable_debug" = "xyes"; then
NPAPI_DEBUG_CFLAGS="-DNPAPI_DEBUG_ENABLED"
else
NPAPI_DEBUG_CFLAGS=""
fi
AC_SUBST(NPAPI_DEBUG_CFLAGS)
dnl ***************************************************************************
dnl Chromium extension
dnl ***************************************************************************
AC_ARG_ENABLE(chromium,
AC_HELP_STRING([--enable-chromium],
[Build chromium extension. [default=yes]]),
[enable_chromium="no"], [enable_chromium="yes"])
if test "x$enable_chromium" = "xyes"; then
AC_DEFINE([WITH_CHROMIUM], 1, [Build chromium extension.])
fi
AM_CONDITIONAL([WITH_CHROMIUM], [test "x$enable_chromium" = "xyes"])
dnl ***************************************************************************
dnl Firefox extension
dnl ***************************************************************************
AC_ARG_ENABLE(firefox,
AC_HELP_STRING([--enable-firefox],
[Build firefox extension. [default=yes]]),
[enable_firefox="no"], [enable_firefox="yes"])
if test "x$enable_firefox" = "xyes"; then
AC_DEFINE([WITH_FIREFOX], 1, [Build firefox extension.])
fi
AM_CONDITIONAL([WITH_FIREFOX], [test "x$enable_firefox" = "xyes"])
AC_MSG_NOTICE([
webaccounts-browser-extension $VERSION
----------------------
Chromium extension : ${enable_chromium}
Firefox extension : ${enable_firefox}
Debug : ${enable_debug}
])
AC_OUTPUT([
Makefile
chromium-extension/Makefile
firefox-extension/Makefile
npapi-plugin/Makefile
npapi-plugin/data/Makefile
npapi-plugin/src/Makefile
npapi-plugin/tests/Makefile
po/Makefile.in
])
|