dockapps/wmclock/configure.ac

31 lines
974 B
Plaintext
Raw Normal View History

2015-09-24 06:24:10 +00:00
AC_INIT([wmclock], [1.0.16], [wmaker-dev@lists.windowmaker.org])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_PROG_CC
define([langlist], esyscmd([ls -d lang.* | sed 's/lang.//']))
AC_ARG_WITH([lang],
AS_HELP_STRING([--with-lang],
[Configure wmclock to use day and month names for the specified
language. Defaults to 'english'. Choices are: ]
langlist),
[],
[with_lang=english])
LangDir="lang.${with_lang}"
if test ! -d "${LangDir}"; then
AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
fi
AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"])
AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"])
AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...])
AC_SUBST(DATE, "esyscmd(head -n 1 ChangeLog | cut -d' ' -f1 | tr -d '\n')")
PKG_CHECK_MODULES([x11], [x11])
PKG_CHECK_MODULES([xpm], [xpm])
PKG_CHECK_MODULES([xext], [xext])
AC_CONFIG_FILES([Makefile wmclock.1])
AC_OUTPUT