summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-10-31 09:41:05 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-11 13:16:45 -0500
commit430eccefaef1bc78a00a5327e6e485299be674a5 (patch)
treefc9eb795543dc4d93e1cb4e32a6fa7312a5b2953 /configure.ac
parent707d5651e17c8cbc95c67f89a3dca7a4d4b03e49 (diff)
downloadhaskell-430eccefaef1bc78a00a5327e6e485299be674a5.tar.gz
rts: Check for program_invocation_short_name via autoconf
Instead of assuming support on all Linuxes.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1a62c89831..bf4f597572 100644
--- a/configure.ac
+++ b/configure.ac
@@ -918,6 +918,11 @@ AC_CHECK_DECLS([ctime_r], , ,
#define _POSIX_C_SOURCE 199506L
#include <time.h>])
+dnl On Linux we should have program_invocation_short_name
+AC_CHECK_DECLS([program_invocation_short_name], , ,
+[#define _GNU_SOURCE 1
+#include <errno.h>])
+
dnl ** check for mingwex library
AC_CHECK_LIB(
[mingwex],