|
From: Scott F. J. <sc...@fl...> - 2001-01-08 08:00:11
|
This is a quick patch to configure.in to allow the use of --disable-sdl when running configure. This results in a gtk-only version of playdv and makes it easier for testing various configurations. It also prevents configure from checking to see if SDL is installed, allowing libdv to build on machines without SDL, or with SDL < 1.1.6. After applying, run autoconf to build a new configure script from configure.in. --Scott diff -r1.1 configure.in 24a25,31 > use_sdl=: > AC_ARG_ENABLE(sdl, > [ --disable-sdl disable use of SDL for display], > [ if test "$enableval" = "no"; then > use_sdl=false > fi > ]) 54,61c61,70 < AM_PATH_SDL(1.1.6, < [ < AC_DEFINE(HAVE_SDL) < LIBS="$LIBS $SDL_LIBS" < CFLAGS="$CFLAGS $SDL_CFLAGS" < ]) < dnl Replace `main' with a function in -lXv: < AC_CHECK_LIB(Xv,XvQueryAdaptors,) --- > if $use_sdl; then > AM_PATH_SDL(1.1.6, > [ > AC_DEFINE(HAVE_SDL) > LIBS="$LIBS $SDL_LIBS" > CFLAGS="$CFLAGS $SDL_CFLAGS" > ]) > dnl Replace `main' with a function in -lXv: > AC_CHECK_LIB(Xv,XvQueryAdaptors,) > fi |