From d7855b91324063f1028a161c6f9a8142db9953cc Mon Sep 17 00:00:00 2001 From: Dustin Lang Date: Mon, 3 Jan 2022 10:07:35 -0500 Subject: [PATCH] fix util/Makefile error (os-features-test-netpbm[-make]); remove TEST_NETPBM define --- util/Makefile | 6 +++--- util/os-features-test.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/util/Makefile b/util/Makefile index 32912cc3b..1909bf490 100644 --- a/util/Makefile +++ b/util/Makefile @@ -268,7 +268,7 @@ $(INCLUDE_DIR)/os-features-config.h: os-features-test.c @echo " NETPBM_LIB is $(NETPBM_LIB_ORIG)" @echo "Testing netpbm..." >> os-features.log (($(CC) -o os-features-test-netpbm \ - $(CPPFLAGS) $(CFLAGS) -DTEST_NETPBM $(NETPBM_INC_ORIG) $^ $(LDFLAGS) $(NETPBM_LIB_ORIG) >> os-features.log && \ + $(CPPFLAGS) $(CFLAGS) $(NETPBM_INC_ORIG) $^ $(LDFLAGS) $(NETPBM_LIB_ORIG) >> os-features.log && \ ./os-features-test-netpbm >> os-features.log && \ echo "#define HAVE_NETPBM 1") \ || echo "#define HAVE_NETPBM 0") >> $@.tmp @@ -295,8 +295,8 @@ makefile.os-features: os-features-test.c ( \ echo "# This file is generated by util/Makefile."; \ (($(CC) -o os-features-test-netpbm-make \ - $(CPPFLAGS) $(CFLAGS) -DTEST_NETPBM $(NETPBM_INC_ORIG) $^ $(LDFLAGS) $(NETPBM_LIB_ORIG) >> os-features-makefile.log && \ - ./os-features-test-netpbm >> os-features-makefile.log && \ + $(CPPFLAGS) $(CFLAGS) $(NETPBM_INC_ORIG) $^ $(LDFLAGS) $(NETPBM_LIB_ORIG) >> os-features-makefile.log && \ + ./os-features-test-netpbm-make >> os-features-makefile.log && \ echo "HAVE_NETPBM := yes") \ || (echo "# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM."; \ echo "# See os-features-makefile.log for details."; \ diff --git a/util/os-features-test.c b/util/os-features-test.c index 83626717d..0c1e6159a 100644 --- a/util/os-features-test.c +++ b/util/os-features-test.c @@ -5,7 +5,6 @@ #include #include -#if defined(TEST_NETPBM) #include int main(int argc, char** args) { struct pam img; @@ -14,4 +13,3 @@ int main(int argc, char** args) { printf("the answer is %i\n", img.size); return 0; } -#endif