Code

configure: Make sure that PACKAGE_URL is defined.
authorSebastian Harl <sh@tokkee.org>
Fri, 27 Feb 2015 16:49:14 +0000 (17:49 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 27 Feb 2015 16:49:14 +0000 (17:49 +0100)
autoconf < 2.64 don't support PACKAGE_URL.

Thanks to @faxm0dem for reporting the resulting build error on RHEL6 in #1

configure.ac

index 31ec8de9e5a17546fd93eaddccbafb51af04e26f..f54868c29dd7baa71b69d8541d8cc96a066f34d4 100644 (file)
@@ -33,6 +33,12 @@ AC_INIT([System DataBase],[m4_esyscmd(./version-gen.sh)],
 PACKAGE_MAINTAINER="Sebastian 'tokkee' Harl <tokkee@sysdb.io>"
 AC_DEFINE_UNQUOTED([PACKAGE_MAINTAINER], ["$PACKAGE_MAINTAINER"],
                [Define to the name of the maintainer of this package.])
+if test "x$PACKAGE_URL" = "x"; then
+       PACKAGE_URL="https://sysdb.io/"
+       AC_DEFINE_UNQUOTED([PACKAGE_URL], ["$PACKAGE_URL"],
+                       [Define to the home page for this package.])
+fi
+
 AC_CONFIG_SRCDIR([src/sysdb.c])
 AC_CONFIG_HEADERS([src/config.h])
 AC_PREFIX_DEFAULT([/opt/sysdb])