summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-16 23:04:12 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-16 23:04:12 +0100
commit22e4898519e9db7aabacad1343c20fc49176dbf4 (patch)
treea7f4edc6603cf447bcb41463b879645567bd915f /src/Makefile.am
parent45b238fc6f2dc4705578e6a35cf6031e818a04c0 (diff)
add autoconf test and fallback code for systems without gperf
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index f028e4a..9c8458e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -60,5 +60,8 @@ EXTRA_tinyproxy_SOURCES = filter.c filter.h \
tinyproxy_DEPENDENCIES = @ADDITIONAL_OBJECTS@
tinyproxy_LDADD = @ADDITIONAL_OBJECTS@ -lpthread
-conf-tokens.c: conf-tokens.gperf
- gperf $< > $@
+if HAVE_GPERF
+conf-tokens.c: conf-tokens-gperf.inc
+conf-tokens-gperf.inc: conf-tokens.gperf
+ $(GPERF) $< > $@
+endif