mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment
When cross-compiling with gcc >= 4.5 AC_CHECK_ALIGNOF fails to detect the correct alignment. Without a previous AC_CHECK_TYPE for the same type, the alignment is silently set to '0'. This makes sure that configure fails and reports the problem. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> https://bugzilla.gnome.org/show_bug.cgi?id=674483
This commit is contained in:
parent
b053f990c9
commit
56bcba11dd
@ -3448,10 +3448,13 @@ $ac_cv_sizeof___int64)
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_CHECK_TYPE([guint32],,,[typedef unsigned $gint32 guint32;])
|
||||
AC_CHECK_ALIGNOF([guint32], [AC_INCLUDES_DEFAULT
|
||||
typedef unsigned $gint32 guint32;])
|
||||
AC_CHECK_TYPE([guint64],,,[typedef unsigned $gint64 guint64;])
|
||||
AC_CHECK_ALIGNOF([guint64], [AC_INCLUDES_DEFAULT
|
||||
typedef unsigned $gint64 guint64;])
|
||||
AC_CHECK_TYPE([unsigned long])
|
||||
AC_CHECK_ALIGNOF([unsigned long])
|
||||
|
||||
# Check for libdbus1 - Optional - is only used in the GDBus test cases
|
||||
|
Loading…
Reference in New Issue
Block a user