summaryrefslogtreecommitdiff
path: root/links/patches/001-libpng.patch
blob: 74daa1bb0aceef1b995aabacc0f66519e11cc14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/configure.in	2010-09-22 03:19:02.547735166 +0200
+++ b/configure.in	2010-09-22 03:19:39.237745564 +0200
@@ -580,14 +580,15 @@
 			LIBS="$LIBPNG12_LIBS $LIBS"
 		fi
 	fi
-	AC_CHECK_HEADERS(png.h libpng/png.h)
+#	AC_CHECK_HEADERS(png.h libpng/png.h)
+	AC_DEFINE(HAVE_PNG_H, [], [foo])
 	AC_HAVE_FUNCS(png_create_info_struct)
 	if test "$ac_cv_func_png_create_info_struct" != yes; then
 		AC_CHECK_LIB(png, png_create_info_struct)
 	fi
-	if test "$ac_cv_header_png_h" != yes -a "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_func_png_create_info_struct" != yes -a "$ac_cv_lib_png_png_create_info_struct" != yes; then
-		AC_ERROR([You need libpng to compile Links in graphics mode])
-	fi
+#	if test "$ac_cv_header_png_h" != yes -a "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_func_png_create_info_struct" != yes -a "$ac_cv_lib_png_png_create_info_struct" != yes; then
+#		AC_ERROR([You need libpng to compile Links in graphics mode])
+#	fi
 
 	AC_HAVE_FUNCS(png_set_rgb_to_gray)
 	AC_HAVE_FUNCS(png_get_image_width png_get_image_height png_get_gAMA png_get_color_type png_get_bit_depth png_set_strip_alpha png_get_valid png_get_sRGB)