From a08bb6903495fb562fc3f2b881ee69eb36ac01cf Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Wed, 3 Aug 2022 18:00:16 +0200 Subject: [configure.ac] Check if the compiling system supports shebangs --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9c89464..546b6ec 100644 --- a/configure.ac +++ b/configure.ac @@ -57,4 +57,13 @@ AM_COND_IF(DEBUG, AC_DEFINE(DIRSEP, [/], [The directory separator in a file system path]) AC_DEFINE(PATHSEP, [:], [The separator of PATH components]) +# Check if shebangs are supported on this system. +# This is required for execution of types. +AC_SYS_INTERPRETER +if test "x${interpval}" != 'xyes' +then + AC_MSG_ERROR([cannot run types on this system because it does not support shebangs.]) +fi + + AC_OUTPUT -- cgit v1.2.3