summaryrefslogtreecommitdiff
path: root/m4/intltool.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/intltool.m4')
-rw-r--r--m4/intltool.m48
1 files changed, 5 insertions, 3 deletions
diff --git a/m4/intltool.m4 b/m4/intltool.m4
index 0269f8e..50fc9e7 100644
--- a/m4/intltool.m4
+++ b/m4/intltool.m4
@@ -36,7 +36,7 @@ case "$am__api_version" in
esac
if test -n "$1"; then
- AC_MSG_CHECKING(for intltool >= $1)
+ AC_MSG_CHECKING([for intltool >= $1])
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
@@ -117,8 +117,10 @@ AC_SUBST(ALL_LINGUAS)
# Set DATADIRNAME correctly if it is not set yet
# (copied from glib-gettext.m4)
if test -z "$DATADIRNAME"; then
- AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
- return _nl_msg_cat_cntr],
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[]],
+ [[extern int _nl_msg_cat_cntr;
+ return _nl_msg_cat_cntr]])],
[DATADIRNAME=share],
[case $host in
*-*-solaris*)