[vorbis-dev] ogg.m4: --with-ogg-libdir

Michael Pruett michael at 68k.org
Thu Oct 11 11:06:00 PDT 2001



Here's a patch for ogg.m4 which adds the configuration flag
--with-ogg-libdir.  This option is useful in circumstances where libogg
is configured with a non-default --libdir.

Michael

--- ogg.m4.orig	Mon Aug 20 14:31:38 2001
+++ ogg.m4	Thu Oct 11 11:08:18 2001
@@ -10,19 +10,27 @@
 dnl Get the cflags and libraries
 dnl
 AC_ARG_WITH(ogg-prefix,[  --with-ogg-prefix=PFX   Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
+AC_ARG_WITH(ogg-libdir,[  --with-ogg-libdir=DIR   Directory where libogg library is installed (optional)], ogg_libdir="$withval", ogg_libdir="")
 AC_ARG_ENABLE(oggtest, [  --disable-oggtest       Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
 
-  if test "x$ogg_prefix" != "x"; then
-    ogg_args="$ogg_args --prefix=$ogg_prefix"
-    OGG_CFLAGS="-I$ogg_prefix/include"
+  if test "x$ogg_libdir" != "x" ; then
+    ogg_args="$ogg_args --libdir=$ogg_libdir"
+    OGG_LIBS="-L$ogg_libdir"
+  elif test "x$ogg_prefix" != "x" ; then
     OGG_LIBS="-L$ogg_prefix/lib"
-  elif test "x$prefix" != "xNONE"; then
-    ogg_args="$ogg_args --prefix=$prefix"
-    OGG_CFLAGS="-I$prefix/include"
+  elif test "x$prefix" != "xNONE" ; then
     OGG_LIBS="-L$prefix/lib"
   fi
 
   OGG_LIBS="$OGG_LIBS -logg"
+
+  if test "x$ogg_prefix" != "x" ; then
+    ogg_args="$ogg_args --prefix=$ogg_prefix"
+    OGG_CFLAGS="-I$ogg_prefix/include"
+  elif test "$prefix" != "xNONE"; then
+    ogg_args="$ogg_args --prefix=$prefix"
+    OGG_CFLAGS="-I$prefix/include"
+  fi
 
   AC_MSG_CHECKING(for Ogg)
   no_ogg=""

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list