Define PACKAGE_URL for older autoconf.
authorMark Wielaard <mark@klomp.org>
Thu, 12 Jan 2017 10:43:30 +0000 (11:43 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 12 Jan 2017 10:43:30 +0000 (11:43 +0100)
autoconf < 2.64 doesn't define PACKAGE_URL through AC_INIT.
Define it ourselves if needed.

Signed-off-by: Mark Wielaard <mark@klomp.org>
ChangeLog
configure.ac

index bb2ec10..a587b43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-12  Mark Wielaard  <mark@klomp.org>
+
+       * configure.ac: Define PACKAGE_URL for older autoconf.
+
 2016-12-27  Mark Wielaard  <mark@klomp.org>
 
        * configure.ac: Set version to 0.168.
index 4549906..07ad592 100644 (file)
@@ -19,6 +19,12 @@ dnl  You should have received a copy of the GNU General Public License
 dnl  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 AC_INIT([elfutils],[0.168],[https://sourceware.org/bugzilla],[elfutils],[http://elfutils.org/])
 
+dnl Workaround for older autoconf < 2.64
+m4_ifndef([AC_PACKAGE_URL],
+         [AC_DEFINE([PACKAGE_URL], ["http://elfutils.org/"],
+                    [Define to home page for this package])
+          AC_SUBST([PACKAGE_URL], ["http://elfutils.org/"])])
+
 # We want eu- as default program prefix if none was given by the user.
 # But if the user explicitly provided --program-prefix="" then pretend
 # it wasn't set at all (NONE). We want to test this really early before