]> granicus.if.org Git - pdns/commitdiff
Determine system name at configure time
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 6 Jan 2016 14:20:29 +0000 (15:20 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 6 Jan 2016 14:20:29 +0000 (15:20 +0100)
Closes #3159

m4/pdns_enable_reproducible.m4

index cad5f2e6cd9dcf77bdf4ff78ce3662f436f7b66a..dfe35f2158d49382eb1c936be545fe93eaa1b1c5 100644 (file)
@@ -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])
   ])
 ])