From: <zw...@ma...> - 2009-05-10 22:10:16
|
Author: zwelch Date: 2009-05-10 22:10:11 +0200 (Sun, 10 May 2009) New Revision: 1693 Modified: trunk/configure.in Log: Extend configure script to check for environ declaration in stdlib.h. Patch contributed by Martin Thomas <mt...@rh...>. Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2009-05-10 19:48:09 UTC (rev 1692) +++ trunk/configure.in 2009-05-10 20:10:11 UTC (rev 1693) @@ -788,11 +788,12 @@ AM_PROG_CC_C_O AC_PROG_RANLIB -# Look for environ alternatives. Possibility #1: is environ in unistd.h? -AC_MSG_CHECKING([for environ in unistd.h]) +# Look for environ alternatives. Possibility #1: is environ in unistd.h or stdlib.h? +AC_MSG_CHECKING([for environ in unistd.h and stdlib.h]) AC_COMPILE_IFELSE([ #define _GNU_SOURCE #include <unistd.h> +#include <stdlib.h> int main(int argc, char **argv) { char **ep = environ; } ], [ AC_MSG_RESULT([yes]) |