summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2011-08-21 01:20:16 +0000
committerMatt Turner <mattst88@gentoo.org>2011-08-21 01:20:16 +0000
commitc9720cecb325de2b06f378fc04b0cd435e900cd2 (patch)
treeacda1bd52400f8e675ac45f7d8764b42eeac8063 /media-sound/mpg321/files
parentVersion bump (diff)
downloadgentoo-2-c9720cecb325de2b06f378fc04b0cd435e900cd2.tar.gz
gentoo-2-c9720cecb325de2b06f378fc04b0cd435e900cd2.tar.bz2
gentoo-2-c9720cecb325de2b06f378fc04b0cd435e900cd2.zip
Check for -lm, since it wasn't added to LIBS. Run autoreconf to generate aclocal.m4 without hardcoded LIBDIR=lib, bug 380027.
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/mpg321/files')
-rw-r--r--media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch b/media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch
new file mode 100644
index 000000000000..ca52f7241167
--- /dev/null
+++ b/media-sound/mpg321/files/mpg321-0.2.12-check-for-lround.patch
@@ -0,0 +1,16 @@
+diff -ur mpg321-0.2.12-1.orig//configure.ac mpg321-0.2.12-1/configure.ac
+--- mpg321-0.2.12-1.orig//configure.ac 2010-07-03 07:46:40.000000000 -0400
++++ mpg321-0.2.12-1/configure.ac 2011-08-20 19:50:32.143229893 -0400
+@@ -75,6 +75,12 @@
+
+ AC_CHECK_FUNCS([gethostbyname memset munmap socket strchr strdup strerror strrchr strstr gettimeofday select getenv putenv setenv unsetenv strcasecmp])
+
++dnl Check if math library is needed.
++AC_CHECK_FUNC(lround)
++if test "$ac_cv_func_lround" = no; then
++ AC_CHECK_LIB(m, lround)
++fi
++
+ AC_ARG_ENABLE(mpg123_symlink,
+ [ --enable-mpg123-symlink Enable symlink of mpg123 to mpg321 [[default=yes]] ],
+ ,enable_mpg123_symlink=yes)