diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-09-09 15:43:17 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-09-09 15:43:49 -0700 |
commit | 24ff328c9ce7255dc6f7ff2d3496003f9382c8c3 (patch) | |
tree | 1dc0ca3e2ae16977bd7d7feca63ac6316b703fde | |
parent | d764b1de47b36f43c3eb2983cbf395e5f8ff5d74 (diff) |
configure: utilize config.h
Prep for conditional audio/music support, having automake-generated
Makefiles which rebuild on configuration changes naturally occurs
when the compilation units include config.h.
It's unclear to me how to do this simply when the configuration only
affects the generated Makefiles, since automake doens't seem to add
a dependency on the Makefile for some reason.
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/play.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 22cabbd..3855060 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ AC_INIT([libplay], [1.0], [vcaputo@pengaru.com]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC +AC_CONFIG_HEADERS([config.h]) AM_PROG_CC_C_O AM_PROG_AR AC_PROG_RANLIB @@ -21,6 +21,8 @@ #include <stdint.h> #include <stdlib.h> /* exit, atexit */ +#include "config.h" + #include "macros.h" #include "play.h" |