autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror


From: Eric Blake-1
Subject: Re: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror
Date: Mon, 28 Aug 2006 14:12:25 -0700 (PDT)

> @@ -511,33 +511,25 @@ AN_IDENTIFIER([S_ISSOCK], [AC_HEADER_STA
>  AC_DEFUN([AC_HEADER_STAT],
>  [AC_CACHE_CHECK(whether stat file-mode macros are broken,
>    ac_cv_header_stat_broken,
> -[AC_EGREP_CPP([You lose], [#include <sys/types.h>
> +[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <sys/types.h>
>  #include <sys/stat.h>
>  
>  #if defined S_ISBLK && defined S_IFDIR
> -# if S_ISBLK (S_IFDIR)
> -You lose.
> -# endif
> +extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
>  #endif
...
> -], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
> +]])], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
>  if test $ac_cv_header_stat_broken = yes; then
>    AC_DEFINE(STAT_MACROS_BROKEN, 1,
>           [Define to 1 if the `S_IS*' macros in <sys/stat.h> do not

It looks like you got this logic backwards in the update.  If all four test
cases
compile, we are now defining ac_cv_header_stat_broken to yes.

-- 
Eric Blake

-- 
View this message in context: 
http://www.nabble.com/AC_CHECK_SIZEOF-failing-on-undefined-HAVE_STDINT_H-with--Werror-tf2107149.html#a6028393
Sent from the Gnu - Autoconf - General forum at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]