[vlc-devel] commit: Explode in the face of the user if (s)he has a broken glibc ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Apr 5 21:49:34 CEST 2009
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 5 22:47:40 2009 +0300| [cd026a2b7f53dba403580c62c07e334033a26307] | committer: Rémi Denis-Courmont
Explode in the face of the user if (s)he has a broken glibc
I am fed up with all the blame we got for this for over a year.
(cherry picked from commit 5a1fdf068685930e67d7f84f2d88b4e8af489e5a)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd026a2b7f53dba403580c62c07e334033a26307
---
configure.ac | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7e09201..ae9d297 100644
--- a/configure.ac
+++ b/configure.ac
@@ -481,6 +481,24 @@ AC_LANG_PUSH(C++)
AC_LANG_POP(C++)
fi
+dnl
+dnl Buggy glibc prevention. Purposedly not cached.
+dnl Ubuntu alone has 20 bug numbers for this...
+dnl
+AC_MSG_CHECKING(for buggy GNU/libc versions)
+AC_PREPROC_IFELSE([
+#include <limits.h>
+#if defined (__GLIBC__) && (__GLIBC__ == 2) \
+ && (__GLIBC_MINOR__ >= 5) && (__GLIBC_MINOR__ <= 7)
+# error GNU/libc with dcgettext killer bug!
+#endif
+], [
+ AC_MSG_RESULT([not present])
+], [
+ AC_MSG_RESULT([found])
+ AC_MSG_ERROR([Buggy GNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable work-around for this. Check with your distribution vendor on how to update the glibc run-time.])
+])
+
dnl Plugin compilation stuff
VLC_LIBRARY_SUFFIX
More information about the vlc-devel
mailing list