From: jsquyres Date: Wed, 28 Feb 2001 02:31:01 +0000 (+0000) Subject: Make AM_PATH_OGG a bit smarter -- have it check the $prefix for the ogg X-Git-Tag: v1.3.3~1014 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2c764dd487a2619ce63f7b0e6889db1050f79f7;p=platform%2Fupstream%2Flibvorbis.git Make AM_PATH_OGG a bit smarter -- have it check the $prefix for the ogg libraries as well. This means that the user doesn't have to specify --with-ogg-prefix (good for us lazy folks!) if they've already specified a --prefix where the ogg libraries live. svn path=/trunk/vorbis/; revision=1370 --- diff --git a/acinclude.m4 b/acinclude.m4 index c6f1a2f..5a7e261 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -20,6 +20,10 @@ AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run ogg_args="$ogg_args --prefix=$ogg_prefix" OGG_CFLAGS="-I$ogg_prefix/include" OGG_LIBS="-L$ogg_prefix/lib" + elif test "$prefix" != ""; then + ogg_args="$ogg_args --prefix=$prefix" + OGG_CFLAGS="-I$prefix/include" + OGG_LIBS="-L$prefix/lib" fi OGG_LIBS="$OGG_LIBS -logg"