X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.in;h=8256adb7b1158a56ebec0138a0860ac4388b8c31;hp=bbd22d1efd23a06d838199e1af64d4b5a2485b57;hb=647e61cc6d9b13dd2799d2302ce9289a1627e36c;hpb=641919d491428cb4eb9d91354e49736b9de854a6 diff --git a/configure.in b/configure.in index bbd22d1efd..8256adb7b1 100644 --- a/configure.in +++ b/configure.in @@ -787,12 +787,14 @@ AC_PROG_CC AC_PROG_CC_C99 AM_PROG_CC_C_O AC_PROG_RANLIB +AC_PROG_LIBTOOL -# 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 +#include int main(int argc, char **argv) { char **ep = environ; } ], [ AC_MSG_RESULT([yes])