configure.in fix
authorJack Moffitt <jack@xiph.org>
Sun, 21 Oct 2001 15:00:21 +0000 (15:00 +0000)
committerJack Moffitt <jack@xiph.org>
Sun, 21 Oct 2001 15:00:21 +0000 (15:00 +0000)
Michael Pruett <michael@68k.org> pointed out that setting the LIBS in
various tests means they are set for all tests.  This could have adverse
affects under weird configurations, so we set them at the end just before
substitution.

svn path=/trunk/vorbis/; revision=2232

configure.in

index 77f614e..975209c 100644 (file)
@@ -159,7 +159,7 @@ dnl --------------------------------------------------
 AC_CHECK_LIB(m, cos, LIBS="-lm", LIBS="")
 AC_CHECK_LIB(pthread, pthread_create, pthread_lib="-lpthread", :)
 
-AM_PATH_OGG(LIBS="$LIBS $OGG_LIBS", AC_MSG_ERROR(must have Ogg installed!))
+AM_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))
 
 dnl --------------------------------------------------
 dnl Check for library functions
@@ -180,6 +180,9 @@ dnl --------------------------------------------------
 dnl Do substitutions
 dnl --------------------------------------------------
 
+LIBS="$LIBS $OGG_LIBS"
+
+AC_SUBST(LIBS)
 AC_SUBST(DEBUG)
 AC_SUBST(PROFILE)
 AC_SUBST(pthread_lib)