mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-08 22:00:06 +02:00
Workaround AC_C_BIGENDIAN breakage in autoconf 2.61. Add a _cv_ to some
2008-07-02 Matthias Clasen <mclasen@redhat.com> * configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61. Add a _cv_ to some variable names, since autoconf wants it. svn path=/trunk/; revision=7141
This commit is contained in:
parent
cad0d7d141
commit
fb73f68040
@ -1,3 +1,8 @@
|
|||||||
|
2008-07-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
|
||||||
|
Add a _cv_ to some variable names, since autoconf wants it.
|
||||||
|
|
||||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
|
* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
|
||||||
|
25
configure.in
25
configure.in
@ -729,17 +729,17 @@ main (void) {
|
|||||||
AC_MSG_RESULT($g_can_inline)
|
AC_MSG_RESULT($g_can_inline)
|
||||||
|
|
||||||
dnl *** check for working do while(0) macros ***
|
dnl *** check for working do while(0) macros ***
|
||||||
AC_CACHE_CHECK([for working do while(0) macros], g_support_dowhile_macros, [
|
AC_CACHE_CHECK([for working do while(0) macros], g_cv_support_dowhile_macros, [
|
||||||
AC_TRY_COMPILE([],[
|
AC_TRY_COMPILE([],[
|
||||||
#define STMT_START do
|
#define STMT_START do
|
||||||
#define STMT_END while(0)
|
#define STMT_END while(0)
|
||||||
#define STMT_TEST STMT_START { i = 0; } STMT_END
|
#define STMT_TEST STMT_START { i = 0; } STMT_END
|
||||||
int main(void) { int i = 1; STMT_TEST; return i; }],
|
int main(void) { int i = 1; STMT_TEST; return i; }],
|
||||||
[g_support_dowhile_macros=yes],
|
[g_cv_support_dowhile_macros=yes],
|
||||||
[g_support_dowhile_macros=no],
|
[g_cv_support_dowhile_macros=no],
|
||||||
[g_support_dowhile_macros=yes])
|
[g_cv_support_dowhile_macros=yes])
|
||||||
])
|
])
|
||||||
if test x$g_support_dowhile_macros = xyes; then
|
if test x$g_cv_support_dowhile_macros = xyes; then
|
||||||
AC_DEFINE(HAVE_DOWHILE_MACROS, 1, [define for working do while(0) macros])
|
AC_DEFINE(HAVE_DOWHILE_MACROS, 1, [define for working do while(0) macros])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -3159,18 +3159,21 @@ g_can_inline=$g_can_inline
|
|||||||
g_have_gnuc_visibility=$g_have_gnuc_visibility
|
g_have_gnuc_visibility=$g_have_gnuc_visibility
|
||||||
g_have_sunstudio_visibility=$g_have_sunstudio_visibility
|
g_have_sunstudio_visibility=$g_have_sunstudio_visibility
|
||||||
|
|
||||||
case xyes in
|
if test x$ac_cv_c_bigendian = xyes; then
|
||||||
x$ac_cv_c_bigendian)
|
|
||||||
g_byte_order=G_BIG_ENDIAN
|
g_byte_order=G_BIG_ENDIAN
|
||||||
g_bs_native=BE
|
g_bs_native=BE
|
||||||
g_bs_alien=LE
|
g_bs_alien=LE
|
||||||
;;
|
else
|
||||||
*)
|
if test x$ac_cv_c_bigendian = xuniversal then
|
||||||
|
g_byte_order=G_BIG_ENDIAN
|
||||||
|
g_bs_native=BE
|
||||||
|
g_bs_alien=LE
|
||||||
|
else
|
||||||
g_byte_order=G_LITTLE_ENDIAN
|
g_byte_order=G_LITTLE_ENDIAN
|
||||||
g_bs_native=LE
|
g_bs_native=LE
|
||||||
g_bs_alien=BE
|
g_bs_alien=BE
|
||||||
;;
|
fi
|
||||||
esac
|
fi
|
||||||
|
|
||||||
g_pollin=$glib_cv_value_POLLIN
|
g_pollin=$glib_cv_value_POLLIN
|
||||||
g_pollout=$glib_cv_value_POLLOUT
|
g_pollout=$glib_cv_value_POLLOUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user