On Sun, Jun 08, 2008 at 12:36:26PM +0200, Matthias Kramm wrote:
>
> I didn't apply the changes to config.h.in, as those were
> broken- config.h.in contains a number of small preprocessor scripts
> which combine variables, for example
>
> #ifdef HAVE_JPEGLIB_H
> #ifdef HAVE_LIBJPEG
> #define HAVE_JPEGLIB
> #endif
> #endif
>
> Those were gone in your version.
Indeed. I missed it. I have a patch to correct that, by using AH_BOTTOM.
I am not sure that I found out all the specific code, I found 3 chunks.
> Besides, I like my old cruft.
Like you want. But you can add old cruft using AH_BOTTOM and have the
remaining of the file autogenerated.
--
Pat
Index: configure.in
===================================================================
RCS file: /cvsroot/swftools/swftools/configure.in,v
retrieving revision 1.125
diff -u -3 -p -r1.125 configure.in
--- configure.in 9 Jun 2008 10:30:04 -0000 1.125
+++ configure.in 9 Jun 2008 20:44:04 -0000
@@ -449,6 +449,24 @@ fi
# ------------------------------------------------------------------
+AH_BOTTOM([
+#ifdef HAVE_ZLIB_H
+#ifdef HAVE_LIBZ
+#define HAVE_ZLIB
+#endif
+#endif
+
+#ifdef HAVE_JPEGLIB_H
+#ifdef HAVE_LIBJPEG
+#define HAVE_JPEGLIB
+#endif
+#endif
+
+#ifdef HAVE_FT2BUILD_H
+#define HAVE_FREETYPE_H 1
+#endif
+])
+
if test -f "release.in"; then release_in="./release"; fi
if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
FILES="$release_in $wx_in Makefile.common ${avi2swf} Makefile lib/Makefile
lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile
pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile
lib/readers/Makefile"