diff options
Diffstat (limited to 'm4/fp_check_environ.m4')
-rw-r--r-- | m4/fp_check_environ.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/fp_check_environ.m4 b/m4/fp_check_environ.m4 new file mode 100644 index 0000000000..88bf0a52de --- /dev/null +++ b/m4/fp_check_environ.m4 @@ -0,0 +1,14 @@ +# FP_CHECK_ENVIRON +# ----------------- +AC_DEFUN([FP_CHECK_ENVIRON], +[ + dnl-------------------------------------------------------------------- + dnl * Check whether the libc headers provide a declaration for the + dnl environ symbol. If not then we will provide one in RtsSymbols.c. + dnl See #20512, #20577, #20861. + dnl-------------------------------------------------------------------- + AC_CHECK_DECLS([environ], [], [], [ + #include <unistd.h> + ]) +]) + |