On Tue, 15 Jan 2002 00:40:05 +0100 Wolfgang Goeller <[EMAIL PROTECTED]> wrote:
> OK - could you mail me this patch too > The mailing list removes attachments.... so here is the file inlined. And like Stuart said... you have to fix the uint_8 thing as well. Bram dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(GOPchop, 0.2) AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_PROG_CXX AC_SYS_LARGEFILE AM_PATH_GTK(1.2.0, , AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)) dnl Check for libraries and headers from mpeg2dec... AC_ARG_WITH(incs, [ --with-incs=PATHNAME Specify location of mpeg2dec includes ], [ CPPFLAGS="$CPPFLAGS -I$withval"],) AC_ARG_WITH(libs, [ --with-libs=PATHNAME Specify location of mpeg2dec libraries ], [ LDFLAGS="$LDFLAGS -L$withval"],) AC_CHECK_HEADERS(mpeg2dec/video_out.h mpeg2dec/mpeg2.h mpeg2dec/mm_accel.h,,,-) if test "$ac_cv_header_mpeg2dec_video_out_h" = "no"; then AC_MSG_ERROR([Couldn't find mpeg2dec/video_out.h!]) fi if test "$ac_cv_header_mpeg2dec_mpeg2_h" = "no"; then AC_MSG_ERROR([Couldn't find mpeg2dec/mpeg2.h!]) fi if test "$ac_cv_header_mpeg2dec_mm_accel_h" = "no"; then AC_MSG_ERROR([Couldn't find mpeg2dec/mm_accel.h!]) fi dnl Check for X11 AC_PATH_XTRA LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" AC_SEARCH_LIBS(XextCreateExtension, Xext) AC_SEARCH_LIBS(XDGASync, Xxf86dga) AC_SEARCH_LIBS(XF86VidModeQueryExtension, Xxf86vm) AC_SEARCH_LIBS(XvQueryExtension, Xv) AC_SEARCH_LIBS(SDL_Init, SDL) dnl Find SDL if it's here dnl AC_SEARCH_LIBS(SDL_Init, SDL) dnl Find vo AC_SEARCH_LIBS(vo_drivers, vo) if test "$ac_cv_search_vo_drivers" = "no"; then AC_MSG_ERROR([Couldn't find libvo! Maybe you need --with-libs or LDFLAGS defined?]) fi dnl Find mpeg2 AC_SEARCH_LIBS(mpeg2_init, mpeg2) if test "$ac_cv_search_mpeg2_init" = "no"; then AC_MSG_ERROR([Couldn't find libmpeg2! Maybe you need --with-libs defined?]) fi dnl Find cpuaccel AC_SEARCH_LIBS(mm_accel, cpuaccel) if test "$ac_cv_search_mm_accel" = "no"; then AC_MSG_ERROR([Couldn't find libcpuaccel! Maybe you need --with-libs defined?]) fi dnl Add the languages which your application supports here. ALL_LINGUAS="" dnl AM_GNU_GETTEXT dnl Set PACKAGE_LOCALE_DIR in config.h. if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale") else AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale") fi dnl Set PACKAGE_DATA_DIR in config.h. if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}") else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}") fi else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}") fi dnl Set PACKAGE_SOURCE_DIR in config.h. packagesrcdir=`cd $srcdir && pwd` AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}") dnl Use -Wall if we have gcc. changequote(,)dnl if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac fi changequote([,])dnl AC_OUTPUT([ Makefile src/Makefile intl/Makefile po/Makefile.in ])