From: Pieter Lexis Date: Wed, 6 Jan 2016 14:20:29 +0000 (+0100) Subject: Determine system name at configure time X-Git-Tag: dnsdist-1.0.0-alpha2~107^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d753e3bb526fc0e2a0cab9e3b368ff147e569ce;p=pdns Determine system name at configure time Closes #3159 --- diff --git a/m4/pdns_enable_reproducible.m4 b/m4/pdns_enable_reproducible.m4 index cad5f2e6c..dfe35f215 100644 --- a/m4/pdns_enable_reproducible.m4 +++ b/m4/pdns_enable_reproducible.m4 @@ -11,14 +11,14 @@ AC_DEFUN([PDNS_ENABLE_REPRODUCIBLE], [ AS_IF([test x"$enable_reproducible" = "xyes"],[ AC_DEFINE([REPRODUCIBLE], [1], [Define to 1 for reproducible builds]) ],[ - build_user=m4_esyscmd_s(id -u -n) - AS_IF([test x"$host_os" = "xSunOS"],[ - build_host_host=m4_esyscmd_s(hostname) - build_host_domain=m4_esyscmd_s(domainname) + build_user=$(id -u -n) + if [ test x"$host_os" = "xSunOS" ]; then + build_host_host=$(hostname) + build_host_domain=$(domainname) build_host="$build_host_host.$build_host_domain" - ],[ - build_host=m4_esyscmd_s(hostname -f || hostname || echo 'localhost') - ]) + else + build_host=$(hostname -f || hostname || echo 'localhost') + fi AC_DEFINE_UNQUOTED([BUILD_HOST], ["$build_user@$build_host"], [Set to the user and host that builds PowerDNS]) ]) ])