]> git.sesse.net Git - vlc/commitdiff
Explode in the face of the user if (s)he has a broken glibc
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 5 Apr 2009 19:47:40 +0000 (22:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 5 Apr 2009 19:50:02 +0000 (22:50 +0300)
I am fed up with all the blame we got for this for over a year.

configure.ac

index a4a7d5008207c9b8cc16d907372abd72316c60e6..75f60c2ee270770b06858072207c185f343b7d7e 100644 (file)
@@ -503,6 +503,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