-dnl Copyright (C) 2009 Sun Microsystems
-dnl This file is free software; Sun Microsystems
+dnl Copyright (C) 2009 Sun Microsystems, Inc.
+dnl This file is free software; Sun Microsystems, Inc.
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([PANDORA_DRIZZLE_BUILD],[
- dnl We need to turn on our CXXFLAGS to make sure it shows up correctly
- save_CXXFLAGS="${CXXFLAGS}"
- CXXFLAGS="${CXXFLAGS} ${AM_CXXFLAGS}"
- PANDORA_CXX_STL_HASH
- CXXFLAGS="${save_CXXFLAGS}"
-
- PANDORA_CXX_CSTDINT
- PANDORA_CXX_CINTTYPES
-
AC_STRUCT_TM
AC_FUNC_ALLOCA
AC_HEADER_SYS_WAIT
AC_HEADER_STDBOOL
- AC_CHECK_HEADERS(sys/fpu.h fpu_control.h ieeefp.h)
+ AC_CHECK_HEADERS(sys/types.h sys/fpu.h fpu_control.h ieeefp.h)
AC_CHECK_HEADERS(select.h sys/select.h)
AC_CHECK_HEADERS(utime.h sys/utime.h )
- AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
+ AC_CHECK_HEADERS(synch.h sys/mman.h)
AC_CHECK_HEADERS(sched.h)
AC_CHECK_HEADERS(sys/prctl.h)
AC_CHECK_HEADERS(execinfo.h)
# and defines HAVE_LIBM etc
#--------------------------------------------------------------------
- AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
-
- AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
- # This may get things to compile even if bind-8 is installed
- AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
-
- # For the sched_yield() function on Solaris
+ # For the sched_yield() function on Solaris
AC_CHECK_FUNC(sched_yield, [],
[AC_CHECK_LIB(posix4, [sched_yield],
[AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield function]) LIBS="$LIBS -lposix4"])])
# include <curses.h>
#endif
]])
- AC_CHECK_TYPES([ulong])
-
- AC_LANG_PUSH([C++])
- AC_CHECK_HEADERS(cxxabi.h)
- AC_CACHE_CHECK([checking for abi::__cxa_demangle], pandora_cv_cxa_demangle,
- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cxxabi.h>]], [[
- char *foo= 0; int bar= 0;
- foo= abi::__cxa_demangle(foo, foo, 0, &bar);
- ]])],[pandora_cv_cxa_demangle=yes],[pandora_cv_cxa_demangle=no])])
- AC_LANG_POP([])
+ AC_CHECK_TYPES([uint, ulong])
- AS_IF([test "x$pandora_cv_cxa_demangle" = xyes],[
- AC_DEFINE(HAVE_ABI_CXA_DEMANGLE, 1,
- [Define to 1 if you have the `abi::__cxa_demangle' function.])
- ])
+ PANDORA_REQUIRE_BISON
+ PANDORA_CXX_DEMANGLE
+ PANDORA_REQUIRE_BOOST([1.38])
+ PANDORA_REQUIRE_BOOST_PROGRAM_OPTIONS
+ PANDORA_REQUIRE_BOOST_THREAD
+ PANDORA_REQUIRE_BOOST_REGEX
+ PANDORA_REQUIRE_BOOST_DATE_TIME
+ PANDORA_REQUIRE_BOOST_FILESYSTEM
+ PANDORA_REQUIRE_BOOST_IOSTREAMS
])