[gjs/wip/ptomato/autotools] build: Use two-argument form of AC_SUBST



commit 0167f7306b015b6b181d4b1fb329a31244c2f283
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Sep 28 18:48:24 2016 -0700

    build: Use two-argument form of AC_SUBST
    
    Slightly more readable code.

 configure.ac |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8b571ab..15a09b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,8 +17,7 @@ AC_CONFIG_HEADERS([config.h])
 
 AC_DEFINE([GJS_VERSION], pkg_int_version, [The gjs version as an integer])
 
-GETTEXT_PACKAGE=gjs
-AC_SUBST([GETTEXT_PACKAGE])
+AC_SUBST([GETTEXT_PACKAGE], [gjs])
 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The name of the gettext domain])
 
 AM_MAINTAINER_MODE([enable])
@@ -187,8 +186,7 @@ AS_IF([test "x$with_dbus_tests" != "xno"], [
 ])
 AM_CONDITIONAL([DBUS_TESTS], [test "x$with_dbus_tests" != "xno"])
 
-gjsjsdir="\${datadir}/gjs-1.0"
-AC_SUBST([gjsjsdir])
+AC_SUBST([gjsjsdir], [\${datadir}/gjs-1.0])
 
 dnl automake 1.11/1.12 defines this but does not substitute it
 AC_SUBST([pkglibexecdir], ["${libexecdir}/${PACKAGE}"])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]