Allow universal builds. This is only part of the solution; the config.h.ed
script is the other part. If new variables appear in the configure script
that are affected by endianness or bitness, remember to handle them both
--- configure.ac.orig 2018-05-22 16:21:16.000000000 -0500
+++ configure.ac 2018-05-25 22:13:02.000000000 -0500
# check for bytesex stuff
-if test x$ac_cv_c_bigendian = xuniversal ; then
- AC_MSG_ERROR([Universal builds not supported: see https://bugzilla.gnome.org/show_bug.cgi?id=742548])
cat >>$outfile <<_______EOF
#define G_HAVE_GINT64 1 /* deprecated, always true */
-${glib_extension}typedef signed $gint64 gint64;
-${glib_extension}typedef unsigned $gint64 guint64;
+typedef signed long gint64;
+typedef unsigned long guint64;
+G_GNUC_EXTENSION typedef signed long long gint64;
+G_GNUC_EXTENSION typedef unsigned long long guint64;
-#define G_GINT64_CONSTANT(val) $gint64_constant
-#define G_GUINT64_CONSTANT(val) $guint64_constant
+#define G_GINT64_CONSTANT(val) (val##L)
+#define G_GUINT64_CONSTANT(val) (val##UL)
+#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
+#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
if test x$gint64_format != x ; then
cat >>$outfile <<_______EOF
-#define G_GINT64_MODIFIER $gint64_modifier
-#define G_GINT64_FORMAT $gint64_format
-#define G_GUINT64_FORMAT $guint64_format
+#define G_GINT64_MODIFIER "l"
+#define G_GINT64_FORMAT "li"
+#define G_GUINT64_FORMAT "lu"
+#define G_GINT64_MODIFIER "ll"
+#define G_GINT64_FORMAT "lli"
+#define G_GUINT64_FORMAT "llu"
cat >>$outfile <<_______EOF
cat >>$outfile <<_______EOF
-#define GLIB_SIZEOF_VOID_P $glib_void_p