From e1758d05dab373cf9a68c1c6d9ef48c8fba2695b Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 13 Jan 2004 16:56:29 +0000 Subject: [PATCH] (have_libc_stack_end): fix check. Patch by Matthias Koeppe --- configure.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index b0d035e01..8150bff71 100644 --- a/configure.in +++ b/configure.in @@ -325,8 +325,9 @@ AC_CHECK_FUNCS(sethostent gethostent endhostent dnl inet_pton inet_ntop) AC_MSG_CHECKING(for __libc_stack_end) -AC_TRY_LINK([extern char *__libc_stack_end;], - [char *p = __libc_stack_end;], +AC_TRY_LINK([#include +extern char *__libc_stack_end;], + [printf("%p", (char*) __libc_stack_end);], have_libc_stack_end=yes, have_libc_stack_end=no) AC_MSG_RESULT($have_libc_stack_end) @@ -474,7 +475,10 @@ AC_REPLACE_FUNCS(inet_aton putenv strerror memmove mkstemp) # explicitly to LIBOBJS to make sure that it is translated to # `alloca.lo' for libtool later on. This can and should be done more cleanly. AC_FUNC_ALLOCA -if test "$ALLOCA" = "alloca.o"; then AC_LIBOBJ([alloca]); fi +if test "$ALLOCA" = "alloca.o" +then + AC_LIBOBJ([alloca]) +fi AC_CHECK_MEMBERS([struct stat.st_rdev]) AC_CHECK_MEMBERS([struct stat.st_blksize])