summaryrefslogtreecommitdiff
path: root/configh.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.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.in')
-rw-r--r--configh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/configh.in b/configh.in
index 86e6897c6..e45061b31 100644
--- a/configh.in
+++ b/configh.in
@@ -259,10 +259,12 @@
/*
* Which header file do we include for libpng?
+ * ifdef HAVE_PNG_H : <png.h>
+ * else : <libpng/png.h>
+ * There is no other choice.
*/
#undef HAVE_PNG_H
-#undef HAVE_LIBPNG_PNG_H
/*
* Do we have the png_xyz() functions?