2022-01-25 20:30:15 +01:00
|
|
|
AC_PREREQ([2.69])
|
2022-01-25 15:01:54 +01:00
|
|
|
AC_INIT([lxpanel-cutiepi-battery],[0.1])
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2022-01-25 20:30:15 +01:00
|
|
|
LT_INIT
|
2022-01-25 15:01:54 +01:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2022-01-25 20:30:15 +01:00
|
|
|
AC_CONFIG_HEADERS([config.h.in])
|
2022-01-25 15:01:54 +01:00
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
pkg_modules="glib-2.0 >= 2.6.0 \
|
|
|
|
gtk+-2.0 >= 2.6.0 \
|
|
|
|
gthread-2.0 \
|
2022-01-26 02:38:37 +01:00
|
|
|
dbus-glib-1 \
|
2022-01-25 15:01:54 +01:00
|
|
|
lxpanel"
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
|
|
|
|
AC_SUBST(PACKAGE_CFLAGS)
|
|
|
|
AC_SUBST(PACKAGE_LIBS)
|
|
|
|
|
2022-01-25 20:30:15 +01:00
|
|
|
#prefix=$(pkg-config --variable=prefix lxpanel)
|
|
|
|
LXPANEL_LIBDIR=$(pkg-config --variable=pkglibdir lxpanel)
|
|
|
|
LXPANEL_PLUGINSDIR=$(pkg-config --variable=pluginsdir lxpanel)
|
2022-01-25 15:01:54 +01:00
|
|
|
AC_SUBST(LXPANEL_LIBDIR)
|
2022-01-25 20:30:15 +01:00
|
|
|
prefix=$LXPANEL_LIBDIR
|
|
|
|
libdir=$LXPANEL_PLUGINSDIR
|
2022-01-25 15:01:54 +01:00
|
|
|
|
2022-01-25 16:18:18 +01:00
|
|
|
LXPANEL_CPPFLAGS=$(pkg-config --cflags --libs lxpanel)
|
|
|
|
AC_SUBST(LXPANEL_CPPFLAGS)
|
|
|
|
|
2022-01-25 15:01:54 +01:00
|
|
|
GETTEXT_PACKAGE=$PACKAGE
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
|
|
|
|
|
|
|
|
LXPANEL_MODULE="-avoid-version \
|
|
|
|
-no-undefined "'-export-symbols-regex "^[[^_]].*"'
|
|
|
|
AC_SUBST(LXPANEL_MODULE)
|
|
|
|
|
|
|
|
ALL_LINGUAS=""
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
src/Makefile
|
|
|
|
])
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo LXPanel Plugin: $PACKAGE
|
|
|
|
echo Version: $VERSION
|
|
|
|
echo Prefix: $prefix
|
|
|
|
|