X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.in;h=0157ed385c1941e06a66820a9babd0c95d0ebdea;hp=9d6c90f64c2f4eac9654dd37500aa0bd32967207;hb=dd85eebf2225ee77dedd679f745c7fb1975d8203;hpb=ee22f119de8c9dab5e7b39bba4fa8563ce0940d0 diff --git a/configure.in b/configure.in index 9d6c90f64c..0157ed385c 100644 --- a/configure.in +++ b/configure.in @@ -778,6 +778,10 @@ then fi AM_CONFIG_HEADER(config.h) +AH_BOTTOM([ +#include "system.h" +]) + AM_INIT_AUTOMAKE([-Wall -Wno-portability]) AM_MAINTAINER_MODE @@ -816,6 +820,10 @@ AM_PROG_CC_C_O AC_PROG_RANLIB AC_PROG_LIBTOOL +dnl configure checks required for Jim files (these are obsolete w/ C99) +AC_C_CONST +AC_TYPE_LONG_LONG_INT + # 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([ @@ -847,6 +855,7 @@ if test "${has_environ}" != "yes" ; then AC_MSG_FAILURE([Could not find 'environ' in unistd.h or available libraries.]) fi +AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).]) # set default gcc warnings GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"