Fixup header inclusion and C++ guards a bit

* Now headers only include headers they use (at least std headers).
* Remove CFU_DEBUG stuff since NDEBUG automatically controls assert()
* Make use of CFU_BEGIN_DECLS and CFU_END_DECLS macros from cfu.h.
This commit is contained in:
Matthew Brush
2013-03-04 03:17:00 -08:00
parent ec404e96a9
commit dd8b293d22
17 changed files with 26 additions and 147 deletions

View File

@@ -8,6 +8,7 @@ AM_INIT_AUTOMAKE([foreign -Wall silent-rules dist-bzip2])
AM_SILENT_RULES([yes])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_RANLIB
# Checks for header files.
@@ -39,16 +40,6 @@ then
fi
AM_CONDITIONAL([USE_PTHREADS], [test x$have_pthreads = xyes])
# Allow enabling debug mode using configure argument
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging],
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],[debug=false])
AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
AC_CONFIG_FILES([
Makefile
src/Makefile