1# Copyright (C) 2012 David Michael <fedora.dm0@gmail.com>
2#
3# This file is part of Window Merge.
4#
5# Window Merge is free software: you can redistribute it and/or modify it under
6# the terms of the GNU General Public License as published by the Free Software
7# Foundation, either version 3 of the License, or (at your option) any later
8# version.
9#
10# Window Merge is distributed in the hope that it will be useful, but WITHOUT
11# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
13# details.
14#
15# You should have received a copy of the GNU General Public License along with
16# Window Merge.  If not, see <http://www.gnu.org/licenses/>.
17
18AC_INIT([Window Merge],[0.3],
19    [fedora.dm0@gmail.com],[window_merge],
20    [https://github.com/dm0-/window_merge])
21AM_INIT_AUTOMAKE([dist-xz])
22LT_INIT([disable-static win32-dll])
23
24AC_CONFIG_FILES([Makefile])# po/Makefile.in])
25AC_CONFIG_HEADERS([config.h])
26AC_CONFIG_MACRO_DIR([m4])
27
28#AM_GNU_GETTEXT([external])
29#AM_GNU_GETTEXT_VERSION([0.18])
30
31AS_CASE(["$host_os"],
32    [*mingw*],[AS_VAR_SET([LT_NO_UNDEFINED],[-no-undefined])],
33    [AS_VAR_SET([LT_NO_UNDEFINED])])
34AC_SUBST([LT_NO_UNDEFINED])
35
36PKG_CHECK_EXISTS([gobject-2.0 >= 2.30],,
37    [AC_DEFINE([G_VALUE_INIT],[{ 0, { { 0 } } }],
38        [Compatibility for old systems missing this definition in gvalue.h])])
39
40PKG_CHECK_MODULES([pidgin],[pidgin],,
41    [AC_MSG_WARN([[relying on environment pidgin_CFLAGS and pidgin_LIBS]])])
42
43m4_ifndef([PKG_CHECK_VAR],[m4_define([PKG_CHECK_VAR],[$5])])
44PKG_CHECK_VAR([pidgin_plugindir],[pidgin],[plugindir],,
45    [AS_VAR_SET([pidgin_plugindir],['${libdir}/pidgin'])])
46AC_SUBST([plugindir],[$pidgin_plugindir])
47
48AC_OUTPUT
49