diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-16 23:04:12 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-16 23:04:12 +0100 |
commit | 22e4898519e9db7aabacad1343c20fc49176dbf4 (patch) | |
tree | a7f4edc6603cf447bcb41463b879645567bd915f /src/Makefile.am | |
parent | 45b238fc6f2dc4705578e6a35cf6031e818a04c0 (diff) |
add autoconf test and fallback code for systems without gperf
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 7 |
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 |