1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_AUX_DIR(../config)
4 AM_INIT_AUTOMAKE(sid,0.1)
5 AM_CONFIG_HEADER(sidconfutil.h:sidconfutil.in)
17 dnl SID compile time requirements
18 AC_CHECK_HEADERS(sstream strstream.h ext/hash_map hash_map)
19 AC_CHECK_FUNCS(strerror)
21 dnl debugging functions
23 [ --disable-assert disable run-time assertion checking [default=enabled]],
25 case "${enable_assert}" in
28 *) AC_MSG_ERROR([bad value ${enableval} given for assert option]) ;;
31 if test "${enable_assert}" = "no"; then
32 AC_DEFINE(NDEBUG, 1, [Define to disable run-time assert() checking.])
35 AC_MSG_CHECKING([whether std:: prefix works for <cctype> functions])
36 AC_CACHE_VAL(sid_cv_cctype_std,
37 AC_TRY_COMPILE([#include <cctype>],[
38 if (std::isspace(' '))
42 ],[sid_cv_cctype_std="yes"],[sid_cv_cctype_std="no"]))
43 if test "${sid_cv_cctype_std}" = "yes"; then
44 AC_DEFINE(STD_CCTYPE, 1, [Define if std:: prefix works for <cctype> functions])
46 AC_MSG_RESULT([$sid_cv_cctype_std])