-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
84 lines (64 loc) · 2.32 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
72
73
74
75
76
77
78
79
80
81
82
83
84
AC_PREREQ([2.63])
AC_INIT([desktop-webapp-browser-extension],
[0.3.0],
[https://github.com/rodrmoya/desktop-webapp-browser-extension],
[desktop-webapp-browser-extension],
[https://github.com/rodrmoya/desktop-webapp-browser-extension])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability no-define no-dist-gzip dist-xz tar-ustar])
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
AC_PROG_SED
AC_DISABLE_STATIC
LT_INIT
dnl ***************************************************************************
dnl Internationalization
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.50.0])
GETTEXT_PACKAGE=desktop_webapp_browser_extension
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
PKG_CHECK_MODULES(DESKTOPWEBAPP_NPAPI_PLUGIN,
glib-2.0
gio-2.0
gdk-pixbuf-2.0
gtk+-3.0
)
GLIB_GSETTINGS
dnl ***************************************************************************
dnl Chromium extension
dnl ***************************************************************************
AC_ARG_ENABLE(chromium,
AS_HELP_STRING([--enable-chromium],
[Build Chromium extension. [default=yes]]),
[enable_chromium=$enableval], [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"])
AC_ARG_ENABLE(google-chrome,
AS_HELP_STRING([--enable-google-chrome],
[Build Google Chrome extension. [default=yes]]),
[enable_google_chrome=$enableval], [enable_google_chrome="yes"])
if test "x$enable_google_chrome" = "xyes"; then
AC_DEFINE([WITH_GOOGLE_CHROME], 1, [Build Google Chrome extension.])
fi
AM_CONDITIONAL([WITH_GOOGLE_CHROME], [test "x$enable_google_chrome" = "xyes"])
AC_CONFIG_FILES([
Makefile
chromium-extension/Makefile
npapi-plugin/Makefile
npapi-plugin/src/Makefile
po/Makefile.in
])
AC_OUTPUT
AC_MSG_NOTICE([
desktop-webapp-browser-extension $VERSION
-----------------------------------------
Chromium extension : ${enable_chromium}
Google Chrome extension : ${enable_google_chrome}
])