Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.11 diff -u -I'$Id.*$' -p -r1.11 configure.ac --- configure.ac 8 Jan 2006 18:56:27 -0000 1.11 +++ configure.ac 10 Jan 2006 20:56:04 -0000 @@ -28,6 +28,20 @@ AM_INIT_AUTOMAKE(gnash, 0.7) AM_MAINTAINER_MODE AC_PROG_MAKE_SET +AC_CHECK_HEADER(jpeglib.h) +AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, [], + AC_MSG_ERROR([ +Failed to link test code against the jpeg library. Maybe you need to +install the development files for libjpeg? +])) + +AC_CHECK_HEADER(png.h) +AC_CHECK_LIB(png, png_write_info, [], + AC_MSG_ERROR([ +Failed to link test code against the PNG library. Maybe you need to +install the development files for libpng? +])) + dnl Use the POSIX Threads library, if specified. AC_ARG_ENABLE(pthreads, [ --enable-pthreads Enable support for pthreads], [case "${enableval}" in @@ -145,6 +159,15 @@ esac], mp3=no) AC_PATH_FIREFOX +if test x"$plugin" = x"yes"; then +AC_CHECK_HEADER(glut.h) +AC_CHECK_LIB(glut, glutInit, [], + AC_MSG_ERROR([ +Failed to link test code against the GLUT library which is needed for the +browser plugin. Maybe you need to install the development files for libglut? +])) +fi + AC_PROG_CC AC_PROG_CXX AC_EXEEXT @@ -157,6 +180,17 @@ AM_PATH_JPEG AM_PATH_PNG AC_PATH_XTRA + +AC_CHECK_HEADER(X11/Xmu/Xmu.h) +LIBS_SAVE="$LIBS" +LIBS="$LIBS $X_LIBS" +AC_CHECK_LIB(Xmu, XmuCvtStringToOrientation, [], + AC_MSG_ERROR([ +Failed to link test code against the Xmu library. Maybe you need to +install the development files for libxmu? +])) +LIBS="$LIBS_SAVE" + AM_PATH_SDL AM_PATH_SDL_MIXER AM_PATH_OPENGL @@ -302,4 +336,4 @@ fi if test x"$nogo" = x"true"; then echo "" AC_MSG_ERROR([Please install required packages]) -fi \ No newline at end of file +fi Index: plugin/plugin.cpp =================================================================== RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v retrieving revision 1.6 diff -u -I'$Id.*$' -p -r1.6 plugin.cpp --- plugin/plugin.cpp 7 Jan 2006 18:14:56 -0000 1.6 +++ plugin/plugin.cpp 10 Jan 2006 20:56:05 -0000 @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include