mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-23 18:45:56 +01:00
configure: rewrote detection for 'xgettext'
The main change is to use Autoconf's syntax for consistency; Now the detected program is used in the makefiles (user has the possibility to change the name of the command); A conditional is used to avoid enabling make targets that would fail if the command does not exist. Took opportunity to implement the silent-rules compliance to POT generation rules. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
80e00c3521
commit
2cfb2b5276
@@ -92,3 +92,19 @@ AC_SUBST([WMAKERMOFILES])dnl
|
||||
AC_SUBST([WPREFSMOFILES])dnl
|
||||
AC_SUBST([UTILMOFILES])dnl
|
||||
])
|
||||
|
||||
|
||||
# WM_I18N_XGETTEXT
|
||||
# ----------------
|
||||
#
|
||||
# xgettext is used to generate the Templates for translation, it is not
|
||||
# mandatory for users, only for translation teams. We look for it even
|
||||
# if I18N was not asked because it can be used by dev team.
|
||||
AC_DEFUN_ONCE([WM_I18N_XGETTEXT],
|
||||
[AC_CHECK_PROGS([XGETTEXT], [xgettext], [])
|
||||
AS_IF([test "x$XGETTEXT" != "x"],
|
||||
AS_IF([$XGETTEXT --help 2>&1 | grep "illegal" > /dev/null],
|
||||
[AC_MSG_WARN([[$XGETTEXT is not GNU version, ignoring]])
|
||||
XGETTEXT=""]))
|
||||
AM_CONDITIONAL([HAVE_XGETTEXT], [test "x$XGETTEXT" != "x"])dnl
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user