From 5d00976723d0119e25873b86d583a8d16d3a0a7d Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Sun, 21 Oct 2001 15:00:21 +0000 Subject: [PATCH] configure.in fix Michael Pruett 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 77f614e..975209c 100644 --- a/configure.in +++ b/configure.in @@ -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) -- 2.7.4