Make AM_PATH_OGG a bit smarter -- have it check the $prefix for the ogg
authorjsquyres <jsquyres@xiph.org>
Wed, 28 Feb 2001 02:31:01 +0000 (02:31 +0000)
committerjsquyres <jsquyres@xiph.org>
Wed, 28 Feb 2001 02:31:01 +0000 (02:31 +0000)
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

acinclude.m4

index c6f1a2f..5a7e261 100644 (file)
@@ -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"