From 430eccefaef1bc78a00a5327e6e485299be674a5 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 31 Oct 2022 09:41:05 -0400 Subject: rts: Check for program_invocation_short_name via autoconf Instead of assuming support on all Linuxes. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') 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 ]) +dnl On Linux we should have program_invocation_short_name +AC_CHECK_DECLS([program_invocation_short_name], , , +[#define _GNU_SOURCE 1 +#include ]) + dnl ** check for mingwex library AC_CHECK_LIB( [mingwex], -- cgit v1.2.1