diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-06-02 20:55:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:50 -0500 |
commit | 2176bcc3ab226c49aaa223c6cf58fb07222d8519 (patch) | |
tree | 7681f0c18ac10fda905523d2bbbd4a8e56919a9f | |
parent | 4ed9f119e05832141c465be9ac16d7f18fd652b5 (diff) | |
download | samba-2176bcc3ab226c49aaa223c6cf58fb07222d8519.tar.gz samba-2176bcc3ab226c49aaa223c6cf58fb07222d8519.tar.bz2 samba-2176bcc3ab226c49aaa223c6cf58fb07222d8519.zip |
r16012: do the type checks before anythingelse
metze
(This used to be commit 092e52c51884706317564a5a5397f137689d78cb)
-rw-r--r-- | source4/lib/replace/config.m4 | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4 index fb9814004e..4948f91163 100644 --- a/source4/lib/replace/config.m4 +++ b/source4/lib/replace/config.m4 @@ -12,6 +12,18 @@ AC_CHECK_TYPE(ssize_t, int) AC_CHECK_TYPE(comparison_fn_t, [AC_DEFINE(HAVE_COMPARISON_FN_T, 1,[Whether or not we have comparison_fn_t])]) +AC_CHECK_HEADERS(stdbool.h) + +AC_CHECK_TYPE(bool, +[AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],, +[ +AC_INCLUDES_DEFAULT +#ifdef HAVE_STDBOOL_H +#include <stdbool.h> +#endif] +) + + AC_CACHE_CHECK([for broken inet_ntoa],samba_cv_REPLACE_INET_NTOA,[ AC_TRY_RUN([ #include <stdio.h> @@ -127,17 +139,6 @@ LIBS="$SAVE_LIBS" AC_CHECK_FUNCS([syslog memset setnetgrent getnetgrent endnetgrent memcpy],, [AC_MSG_ERROR([Required function not found])]) -AC_CHECK_HEADERS(stdbool.h) - -AC_CHECK_TYPE(bool, -[AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],, -[ -AC_INCLUDES_DEFAULT -#ifdef HAVE_STDBOOL_H -#include <stdbool.h> -#endif] -) - sinclude(lib/replace/getpass.m4) dnl VA_COPY |