From e70b82aa64fff245700aa36f93444622edaddca0 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 21 May 2003 08:31:48 +0000 Subject: [PATCH] Extra tests for environ Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1012 --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.in b/configure.in index fb355341..67e2888a 100644 --- a/configure.in +++ b/configure.in @@ -36,6 +36,15 @@ AC_C_INLINE AC_TYPE_SIZE_T AC_STRUCT_TM + +AC_MSG_CHECKING(if environ can be included) +AC_TRY_LINK([#include +#include ],[*environ;], +[AC_MSG_RESULT(yes);AC_DEFINE(ENVIRON_INCLUDED,1,[environ can be included])],AC_MSG_RESULT(no)) +AC_MSG_CHECKING(if environ can be linked) +AC_TRY_LINK([extern char ** environ;],[*environ;], +[AC_MSG_RESULT(yes);AC_DEFINE(ENVIRON_LINKED,1,[environ can be linked])],AC_MSG_RESULT(no)) + dnl Checks for libraries. #Check if the compiler support attributes