libasr: fix build (automake version check)

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-08-28 15:15:59 +02:00
parent cee623ca26
commit 03afb3f0ef
No known key found for this signature in database
GPG key ID: 6764EC32352D0647
2 changed files with 11 additions and 24 deletions

View file

@ -0,0 +1,11 @@
--- bootstrap 2018-08-28 15:14:58.777885703 +0200
+++ bootstrap 2018-08-28 15:14:50.697886185 +0200
@@ -36,7 +36,7 @@
# Check for automake
amvers="no"
-for v in 15 14 13 12 11 10 9 8 7 6 5; do
+for v in 16 15 14 13 12 11 10 9 8 7 6 5; do
if automake-1.${v} --version >/dev/null 2>&1; then
amvers="-1.${v}"
break

View file

@ -1,24 +0,0 @@
diff --git configure.ac configure.ac
index 10aff04..07e149f 100644
--- configure.ac
+++ configure.ac
@@ -456,6 +456,7 @@ AC_CHECK_FUNCS([ \
issetugid \
memmove \
reallocarray \
+ res_randomid \
snprintf \
strdup \
strerror \
diff --git src/asr_private.h src/asr_private.h
index 0960e37..158e7ff 100644
--- src/asr_private.h
+++ src/asr_private.h
@@ -365,3 +365,7 @@ extern FILE * asr_debug;
asr_statestr((a)->as_state), \
asr_statestr((s))); \
(a)->as_state = (s); } while (0)
+
+#ifndef HAVE_RES_RANDOMID
+#define res_randomid(x) (0xffff & getpid())
+#endif