summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2019-10-11 15:22:06 -0300
committerAdrian Thurston <thurston@colm.net>2019-10-11 15:24:12 -0300
commite41f52bfb2d0697afdc951c3b458419969813488 (patch)
treef1088565b2f722fc1e3a79f52c8e655b1ed5bb57
parent82cbd672e2d8d6bfac861ea70995150478ec8cba (diff)
downloadcolm-e41f52bfb2d0697afdc951c3b458419969813488.tar.gz
colm: need to have config.h so that --enable-debug works
-rw-r--r--colm/.gitignore1
-rw-r--r--colm/Makefile.am5
-rw-r--r--colm/debug.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/colm/.gitignore b/colm/.gitignore
index 1585be96..483e9397 100644
--- a/colm/.gitignore
+++ b/colm/.gitignore
@@ -5,6 +5,7 @@
/.*.d
/colm
/defs.h
+/config.h
/version.h
/tags
/.deps
diff --git a/colm/Makefile.am b/colm/Makefile.am
index 473614d0..e1e758fd 100644
--- a/colm/Makefile.am
+++ b/colm/Makefile.am
@@ -34,7 +34,7 @@ RUNTIME_SRC = \
print.c
RUNTIME_HDR = \
- bytecode.h defs.h debug.h pool.h input.h \
+ config.h bytecode.h defs.h debug.h pool.h input.h \
pdarun.h map.h type.h tree.h struct.h program.h colm.h internal.h
lib_LTLIBRARIES = libcolm.la
@@ -123,5 +123,8 @@ version.h: Makefile
echo '#define VERSION "$(PACKAGE_VERSION)"' > version.h
echo '#define PUBDATE "$(PUBDATE)"' >> version.h
+config.h: ../src/config.h
+ cp ../src/config.h ./
+
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = colm.lm
diff --git a/colm/debug.h b/colm/debug.h
index 2a972f2f..1870f553 100644
--- a/colm/debug.h
+++ b/colm/debug.h
@@ -28,6 +28,7 @@ extern "C" {
#endif
#include "colm.h"
+#include "config.h"
void fatal( const char *fmt, ... );