1 AC_INIT([wmclock], [1.0.16], [wmaker-dev@googlegroups.com])
2 AM_INIT_AUTOMAKE([foreign subdir-objects])
3 AC_CONFIG_SRCDIR([configure.ac])
6 define([langlist], esyscmd([ls -d lang.* | sed 's/lang.//']))
8 AS_HELP_STRING([--with-lang],
9 [Configure wmclock to use day and month names for the specified
10 language. Defaults to 'english'. Choices are: ]
15 LangDir="lang.${with_lang}"
16 if test ! -d "${LangDir}"; then
17 AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
20 AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"])
21 AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"])
22 AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...])
24 AC_SUBST(DATE, "esyscmd(head -n 1 ChangeLog | cut -d' ' -f1 | tr -d '\n')")
26 PKG_CHECK_MODULES([x11], [x11])
27 PKG_CHECK_MODULES([xpm], [xpm])
28 PKG_CHECK_MODULES([xext], [xext])
29 AC_CONFIG_FILES([Makefile wmclock.1])