1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# replace PACKAGENAME, EMAIL and PATH_TO_FEATURES_H as appropriate and add
# further checks as required
# running autoscan and then comparing configure.ac and configure.scan is very
# useful
AC_PREREQ(2.59)
AC_INIT([diagnostics],[0.3.1],[christian@schallhart.net])
AC_CONFIG_SRCDIR([diagnostics/annotations.hpp])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_HEADER(config.h)
# suppress -I. -I. -I../.., includes explicitly set
AM_INIT_AUTOMAKE([1.9 nostdinc -Wall -Wno-portability])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(ac_aux_dir)
AX_PREFIX_CONFIG_H(diagnostics/features.hpp)
AC_LANG([C++])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_AWK
# new libtool versions:
# LT_INIT
# LTDL_INIT
AC_LIBLTDL_CONVENIENCE
AC_WITH_LTDL
AC_PROG_LIBTOOL
AC_CHECK_PROG([PKGCONFIG],[pkg-config],[yes],[no])
if test "x$PKGCONFIG" = "xno" ; then
AC_MSG_WARN([pkg-config not found in PATH. Please install it first. ACE will not be used.])
AC_DEFINE([HAVE_ACE], [0],
[Define to 1, if ACE is available on your system])
else
PKG_PROG_PKG_CONFIG
AC_DEFINE([HAVE_ACE], [1],
[Define to 1, if ACE is available on your system])
LDFLAGS="$LDFLAGS -lACE -lpthread"
fi
AC_ARG_ENABLE([install-headers],[ --enable-install-headers Install header files during make install],
[if test "x$enableval" != "xno" ; then
AC_SUBST(enable_install_headers,[--install-headers])
else
AC_SUBST(enable_install_headers,[""])
fi],
AC_SUBST(enable_install_headers,[""])
)
AC_ARG_ENABLE([update-makefiles],[ --disable-update-makefiles Do not update any Makefile.am],
[if test "x$enableval" = "xno" ; then
AC_SUBST(disable_update_makefiles,[--disable])
else
AC_SUBST(disable_update_makefiles,[""])
fi],
AC_SUBST(disable_update_makefiles,[""])
)
if test "x$DIAGNOSTICSLEVEL" = "x" ; then
AC_SUBST(DIAGNOSTICSLEVEL,[2])
else
AC_SUBST(DIAGNOSTICSLEVEL,[$DIAGNOSTICSLEVEL])
fi
# Checks for header files.
AC_CHECK_HEADERS([string \
algorithm \
exception \
cstdio \
cstdlib \
cassert \
fstream \
map \
stack \
sstream \
iostream \
utility \
limits \
cmath \
vector],
[],
AC_MSG_ERROR([Essential header $ac_header missing]))
AC_CHECK_PROG([enable_stacktrace],[addr2line],[yes],[no])
if test x$enable_stacktrace = xyes ; then
AC_CHECK_HEADERS([link.h], [enable_stacktrace=yes ; break], [enable_stacktrace=no])
fi
# unwinding doesn't work properly on ARM
if test x$build = xarm-unknown-linux-gnueabi ; then
enable_stacktrace=no
fi
AM_CONDITIONAL(STACKTRACE, test x$enable_stacktrace = xyes)
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([atexit gettimeofday])
# Files generated by configure
AC_CONFIG_FILES([diagnostics/extensions/stacktrace/Makefile
diagnostics/basic_exceptions/Makefile
diagnostics/unittest/test_system/Makefile
diagnostics/extensions/memory/Makefile
diagnostics/extensions/instrumentation/Makefile
diagnostics/unittest/Makefile
diagnostics/macros/Makefile
diagnostics/frame/Makefile
diagnostics/extensions/Makefile
diagnostics/util/Makefile
diagnostics/logger/Makefile
diagnostics/Makefile
Makefile])
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN(diagnostics, config/doxygen.cfg, doc/dx)
AC_OUTPUT
|