Bump to m4 1.4.19
[platform/upstream/m4.git] / m4 / configmake.m4
1 # configmake.m4 serial 4
2 dnl Copyright (C) 2010-2021 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_PREREQ([2.60])
8
9 # gl_CONFIGMAKE_PREP
10 # ------------------
11 # Guarantee all of the standard directory variables, even when used with
12 # autoconf 2.64 (runstatedir wasn't supported before 2.70) or
13 # automake 1.11 (runstatedir isn't supported even in 1.16.1).
14 AC_DEFUN([gl_CONFIGMAKE_PREP],
15 [
16   if test "x$lispdir" = x; then
17     AC_SUBST([lispdir], ['${datarootdir}/emacs/site-lisp'])
18   fi
19   dnl Added in autoconf 2.70.
20   if test "x$runstatedir" = x; then
21     AC_SUBST([runstatedir], ['${localstatedir}/run'])
22   fi
23
24   dnl Automake 1.11 provides pkglibexecdir merely without AC_SUBST.
25   dnl This blind use of AC_SUBST is safe.
26   AC_SUBST([pkglibexecdir], ['${libexecdir}/${PACKAGE}'])
27 ])