From: Josh Coalson Date: Sat, 29 Jun 2002 00:31:43 +0000 (+0000) Subject: minor fixes X-Git-Tag: 1.2.0~1800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69101a52d78e70d8b828d43127f159608f696376;p=platform%2Fupstream%2Fflac.git minor fixes --- diff --git a/src/libFLAC++/libFLAC++.m4 b/src/libFLAC++/libFLAC++.m4 index c411d10..433154f 100644 --- a/src/libFLAC++/libFLAC++.m4 +++ b/src/libFLAC++/libFLAC++.m4 @@ -1,5 +1,6 @@ # Configure paths for libFLAC++ # "Inspired" by ogg.m4 +# Caller must first run AM_PATH_LIBFLAC dnl AM_PATH_LIBFLACPP([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libFLAC++, and define LIBFLACPP_CFLAGS and LIBFLACPP_LIBS @@ -8,10 +9,10 @@ AC_DEFUN(AM_PATH_LIBFLACPP, [dnl dnl Get the cflags and libraries dnl -AC_ARG_WITH(libFLAC++,[ --with-libFLAC++=PFX Prefix where libFLAC++ is installed (optional)], libFLACPP_prefix="$withval", libFLACPP_prefix="") -AC_ARG_WITH(libFLAC++-libraries,[ --with-libFLAC++-libraries=DIR Directory where libFLAC++ library is installed (optional)], libFLACPP_libraries="$withval", libFLACPP_libraries="") -AC_ARG_WITH(libFLAC++-includes,[ --with-libFLAC++-includes=DIR Directory where libFLAC++ header files are installed (optional)], libFLACPP_includes="$withval", libFLACPP_includes="") -AC_ARG_ENABLE(libFLAC++test, [ --disable-libFLAC++test Do not try to compile and run a test libFLAC++ program],, enable_libFLACPPtest=yes) +AC_ARG_WITH(libFLACPP,[ --with-libFLACPP=PFX Prefix where libFLAC++ is installed (optional)], libFLACPP_prefix="$withval", libFLACPP_prefix="") +AC_ARG_WITH(libFLACPP-libraries,[ --with-libFLACPP-libraries=DIR Directory where libFLAC++ library is installed (optional)], libFLACPP_libraries="$withval", libFLACPP_libraries="") +AC_ARG_WITH(libFLACPP-includes,[ --with-libFLACPP-includes=DIR Directory where libFLAC++ header files are installed (optional)], libFLACPP_includes="$withval", libFLACPP_includes="") +AC_ARG_ENABLE(libFLACPPtest, [ --disable-libFLACPPtest Do not try to compile and run a test libFLAC++ program],, enable_libFLACPPtest=yes) if test "x$libFLACPP_libraries" != "x" ; then LIBFLACPP_LIBS="-L$libFLACPP_libraries" @@ -21,7 +22,7 @@ AC_ARG_ENABLE(libFLAC++test, [ --disable-libFLAC++test Do not try to comp LIBFLACPP_LIBS="-L$prefix/lib" fi - LIBFLACPP_LIBS="$LIBFLACPP_LIBS -lFLAC++" + LIBFLACPP_LIBS="$LIBFLACPP_LIBS -lFLAC++ $LIBFLAC_LIBS" if test "x$libFLACPP_includes" != "x" ; then LIBFLACPP_CFLAGS="-I$libFLACPP_includes" @@ -31,6 +32,8 @@ AC_ARG_ENABLE(libFLAC++test, [ --disable-libFLAC++test Do not try to comp LIBFLACPP_CFLAGS="-I$prefix/include" fi + LIBFLACPP_CFLAGS="$LIBFLACPP_CFLAGS $LIBFLAC_CFLAGS" + AC_MSG_CHECKING(for libFLAC++) no_libFLACPP="" diff --git a/src/libFLAC/libFLAC.m4 b/src/libFLAC/libFLAC.m4 index 3621b5b..1abeed6 100644 --- a/src/libFLAC/libFLAC.m4 +++ b/src/libFLAC/libFLAC.m4 @@ -21,7 +21,7 @@ AC_ARG_ENABLE(libFLACtest, [ --disable-libFLACtest Do not try to compile LIBFLAC_LIBS="-L$prefix/lib" fi - LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC" + LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm" if test "x$libFLAC_includes" != "x" ; then LIBFLAC_CFLAGS="-I$libFLAC_includes"