summaryrefslogtreecommitdiff
path: root/configh.cmake.in
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-04-04 21:10:25 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-04-04 21:10:25 +0200
commitcc6a7d008b402e5e019237e2576e3d98e815bf91 (patch)
tree83469605f51632aa19722b5f40091bfc97f387a9 /configh.cmake.in
parent2ee27e39db4e1e23cf9e917b671c7581be90b699 (diff)
Remove obsolete config variable 'HAVE_LIBPNG_PNG_H'
This variable has never been used in the code. Configure and CMake look for a *working* libpng (HAVE_PNG) and set variable HAVE_PNG_H if the header <png.h> can be included. The alternative to include <libpng/png.h> is always used in the #else clause and doesn't need its own config variable. Configure and CMake log what they find, hence this extra variable is not necessary.
Diffstat (limited to 'configh.cmake.in')
-rw-r--r--configh.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/configh.cmake.in b/configh.cmake.in
index cf537af82..dde9ee40a 100644
--- a/configh.cmake.in
+++ b/configh.cmake.in
@@ -260,10 +260,12 @@
/*
* Which header file do we include for libpng?
+ * ifdef HAVE_PNG_H : <png.h>
+ * else : <libpng/png.h>
+ * There is no other choice.
*/
#cmakedefine HAVE_PNG_H 1
-#cmakedefine HAVE_LIBPNG_PNG_H 1
/*
* Do we have the png_xyz() functions?