Index: theora/configure.ac --- theora~libs/configure.ac 2004-08-16 10:27:58.000000000 +0200 +++ theora/configure.ac 2004-09-24 19:04:17.179650960 +0200 @@ -123,16 +123,24 @@ AC_CHECK_FUNC(getopt_long, [GETOPT_OBJS=''], [GETOPT_OBJS='getopt.$(OBJEXT) getopt1.$(OBJEXT)']) AC_SUBST(GETOPT_OBJS) + XIPH_PATH_OGG(, AC_MSG_ERROR([ libogg is required to build this package! please see http://www.xiph.org/ for how to obtain a copy. ])) +cflags_save=$CFLAGS +libs_save=$LIBS CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" AC_CHECK_FUNC(oggpackB_read, , [ AC_MSG_ERROR([newer libogg version (>1.0) required]) ]) +CFLAGS=$cflags_save +LIBS=$libs_save + +dnl the examples use Vorbis and SDL +XIPH_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no) AM_PATH_SDL(,[ HAVE_SDL=yes @@ -153,9 +161,6 @@ dnl Do substitutions dnl -------------------------------------------------- -LIBS="$LIBS" - -AC_SUBST(LIBS) AC_SUBST(DEBUG) AC_SUBST(PROFILE) Index: theora/examples/Makefile.am --- theora~libs/examples/Makefile.am 2004-09-15 16:12:07.000000000 +0200 +++ theora/examples/Makefile.am 2004-09-24 19:16:14.679574392 +0200 @@ -7,18 +7,18 @@ # possible contents of BUILDABLE_EXAMPLES: EXTRA_PROGRAMS = player_example encoder_example -AM_CFLAGS = $(SDL_CFLAGS) -LDADD = ../lib/libtheora.la -logg +AM_CFLAGS = $(SDL_CFLAGS) $(OGG_CFLAGS) +LDADD = ../lib/libtheora.la $(OGG_LIBS) dump_video_SOURCES = dump_video.c dump_video_LDADD = $(LDADD) player_example_SOURCES = player_example.c -player_example_LDADD = $(LDADD) $(SDL_LIBS) -lvorbis -lm +player_example_LDADD = $(LDADD) $(SDL_LIBS) $(VORBIS_LIBS) encoder_example_SOURCES = encoder_example.c EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h -encoder_example_LDADD = $(GETOPT_OBJS) $(LDADD) -lvorbisenc -lvorbis -lm +encoder_example_LDADD = $(GETOPT_OBJS) $(LDADD) $(VORBIS_LIBS) $(VORBISENC_LIBS) encoder_example_DEPENDENCIES = $(GETOPT_OBJS) debug: Index: theora/lib/Makefile.am --- theora~libs/lib/Makefile.am 2004-09-24 18:25:25.649097480 +0200 +++ theora/lib/Makefile.am 2004-09-24 19:25:17.254090528 +0200 @@ -39,7 +39,9 @@ toplevel.h \ toplevel_lookup.h +libtheora_la_CFLAGS = $(OGG_CFLAGS) libtheora_la_LDFLAGS = -version-info @V_LIB_CURRENT@:@V_LIB_REVISION@:@V_LIB_AGE@ +libtheora_la_LIBS = $(OGG_LIBS) debug: $(MAKE) all CFLAGS="@DEBUG@" LDFLAGS="-lefence"