summaryrefslogtreecommitdiff
path: root/ogg.m4
diff options
context:
space:
mode:
authorjsquyres <jsquyres@xiph.org>2001-02-28 03:24:18 +0000
committerjsquyres <jsquyres@xiph.org>2001-02-28 03:24:18 +0000
commitd88acaf12a03e8d5406fe1d88525d17cbfb5ea13 (patch)
treeff4432669affaa9e958981ba60554045b57b9d6a /ogg.m4
parent4a1452a77ef80ecb87817692265e1fe83fd41acf (diff)
downloadogg-d88acaf12a03e8d5406fe1d88525d17cbfb5ea13.tar.gz
Missed these ones the first time through: apply the same patch that has
been put in all the relevant acinclude.m4 files to the .m4 files that get installed with the libraries. Another patch for lazy people (like me). Make AM_PATH_OGG, AM_PATH_VORBIS, and AM_PATH_AO each a bit smarter. Each of the three will now also check the $prefix for the location of their respective libraries/header files. This means that if you're compiling all 4 things (ao, ogg, vorbis, vorbis-tools) all with the same $prefix (which is a pretty common case), you don't have to specify "--with-ao-prefix=this --with-ogg-prefix=really --with-vorbis-prefix=sucks", you can just specify a single --prefix argument and ditch all the --with-*-prefix arguments. However, if you do specify any of the three --with arguments, those are searched *first* -- the $prefix is searched second. git-svn-id: http://svn.xiph.org/trunk/ogg@1374 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'ogg.m4')
-rw-r--r--ogg.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/ogg.m4 b/ogg.m4
index 509f73b..8d57adc 100644
--- a/ogg.m4
+++ b/ogg.m4
@@ -16,6 +16,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"