Install a misc/_config.h to hide all the defines that clutter the
built output. This is also a step towards better checks for things like __attribute__ or std::tr1. * m4/ax_prefix_config_h.m4: New file. * configure.ac: Call AC_CONFIG_HEADERS and AX_PREFIX_CONFIG_H. * src/misc/Makefile.am: Install misc/_config.h. * src/misc/random.cc, src/misc/version.cc: Include misc/_config.h.
This commit is contained in:
parent
78f932081b
commit
67ff9f203f
7 changed files with 246 additions and 4 deletions
|
|
@ -25,7 +25,9 @@ AC_PREREQ([2.61])
|
|||
AC_INIT([spot], [0.7.1a], [spot@lrde.epita.fr])
|
||||
AC_CONFIG_AUX_DIR([tools])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_INIT_AUTOMAKE([1.11 gnu nostdinc tar-ustar color-tests parallel-tests])
|
||||
AM_INIT_AUTOMAKE([1.11 gnu tar-ustar color-tests parallel-tests])
|
||||
AC_CONFIG_HEADERS([config.h])dnl Private config, not to be used in .hh files.
|
||||
AX_PREFIX_CONFIG_H([src/misc/_config.h])dnl Public config, for .hh files.
|
||||
|
||||
# If the user didn't supply a CFLAGS value,
|
||||
# set an empty one to prevent autoconf to stick -O2 -g here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue