This define was only used twice. Once surrounded by a `#if 0` and once
only if HAVE_STDBOOL_H wasn't defined (HAVE_STDBOOL_H is part of the C99
standard library and is always defined).
#define HAVE_INTPTR_T 1
}end
-compile{
- #ifdef HAVE_STDBOOL_H
- #include <stdbool.h>
- #endif
- bool xx = true, yy = false;
-}end yes{
-/* Define to 1 if compiler supports bool */
-#define HAVE_BOOL 1
-}end
-
compile{
#include <iconv.h>
iconv_t xx;
# Internationalization macros
# AM_GNU_GETTEXT
-# -----------------------------------
-# Test if compiler supports bool
-AC_MSG_CHECKING([for bool])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- #ifdef HAVE_STDBOOL_H>
- #include <stdbool.h>
- #endif
- ]], [[
- bool foo==true, bar=false;
- ]])],[
-AC_MSG_RESULT(yes)
-AC_DEFINE(HAVE_BOOL, 1,[Define to 1 if compiler supports bool])
- ],[
-AC_MSG_RESULT(no)])
-
# -----------------------------------
# Test for direct I/O
AC_MSG_CHECKING([for struct dioattr])
#endif
#define NOT(v) (!(v))
-#if ! defined HAVE_BOOL && ! defined HAVE_STDBOOL_H && ! defined __cplusplus
-typedef unsigned char bool;
-#endif
#ifndef false
#define false 0
#define true NOT(false)
#define NOT(v) (!(v))
#endif
-#if 0
-/* HAVE_BOOL only tested the CC compiler, we know C++ must define bool */
-#if ! defined HAVE_BOOL && ! defined __cplusplus
-typedef unsigned char bool;
-#define false 0
-#define true NOT(false)
-#endif
-#endif
-
#ifndef FALSE
#define FALSE (0)
#endif
/* Define if you have the ann library */
#define HAVE_ANN 1
-/* Define to 1 if compiler supports bool */
-#define HAVE_BOOL 1
-
/* Define to 1 if you have the `cbrt' function. */
//#define HAVE_CBRT 1