version 1.1.2.1, 2008/09/30 20:11:27
|
version 1.1.2.4, 2011/04/30 21:29:26
|
Line 32 AC_FUNC_MALLOC
|
Line 32 AC_FUNC_MALLOC
|
AC_FUNC_MMAP |
AC_FUNC_MMAP |
AC_CHECK_FUNCS([bzero memset munmap]) |
AC_CHECK_FUNCS([bzero memset munmap]) |
|
|
|
# It's stupid, but not all platforms have union semun, even those that need it. |
|
AC_MSG_CHECKING(looking for union semun in sys/sem.h) |
|
AC_TRY_COMPILE([ |
|
#include <sys/types.h> |
|
#include <sys/ipc.h> |
|
#include <sys/sem.h> |
|
],[ |
|
union semun arg; |
|
semctl(0, 0, 0, arg); |
|
], [ |
|
AC_DEFINE(HAVE_UNION_SEMUN,, [union semun]) |
|
] msg=yes, msg=no ) |
|
AC_MSG_RESULT([$msg]) |
|
|
DEBUG=no |
DEBUG=no |
AC_MSG_CHECKING(Debug Build) |
AC_MSG_CHECKING(Debug Build) |
AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
Line 40 AC_ARG_ENABLE(debug,
|
Line 54 AC_ARG_ENABLE(debug,
|
case "$enableval" in |
case "$enableval" in |
yes) |
yes) |
AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages]) |
AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages]) |
|
CFLAGS="-g ${CFLAGS}" |
;; |
;; |
*) |
*) |
;; |
;; |