From: Till Riedel Date: Tue, 6 Apr 2004 10:11:55 +0000 (+0000) Subject: Wrong test result for alloca.h X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d54e02b1c0f5554ffdd9b2eb15f30565b4562baf;p=libfirm Wrong test result for alloca.h [r2627] --- diff --git a/configure.in b/configure.in index 89bed7d08..b7e75b805 100644 --- a/configure.in +++ b/configure.in @@ -211,11 +211,11 @@ fi AC_CHECK_HEADERS(alloca.h, ac_alloca_headers="yes", ac_alloca_headers="no") -if test "$ac_alloca_headers" != yes; then - if test "$ac_cv_header_stdc" == no; then - AC_MSG_ERROR("alloca.h and stdlib.h not found") - else +if test "$ac_alloca_headers" = "yes"; then AC_DEFINE(HAVE_ALLOCA_H) +else + if test "$ac_cv_header_stdc" = "no"; then + AC_MSG_ERROR("alloca.h and stdlib.h not found") fi fi