autoconf goodness for XDarwin, courtesy of pogma

This commit is contained in:
Ben Byer
2007-02-17 02:23:11 -08:00
parent cf4994b0db
commit 81444486be
6 changed files with 162 additions and 18 deletions

View File

@@ -35,6 +35,9 @@
/* Support Damage extension */
#undef DAMAGE
/* Build for darwin with Quartz support */
#undef DARWIN_WITH_QUARTZ
/* Use OsVendorInit */
#undef DDXOSINIT
@@ -420,7 +423,17 @@
#undef XVENDORNAME
/* Endian order */
#undef X_BYTE_ORDER
#undef _X_BYTE_ORDER
/* Deal with multiple architecture compiles on Mac OS X */
#ifndef __APPLE_CC__
#define X_BYTE_ORDER _X_BYTE_ORDER
#else
#ifdef __BIG_ENDIAN__
#define X_BYTE_ORDER X_BIG_ENDIAN
#else
#define X_BYTE_ORDER X_LITTLE_ENDIAN
#endif
#endif
/* Enable GNU and other extensions to the C environment for GLIBC */
#undef _GNU_SOURCE

View File

@@ -191,7 +191,17 @@
#undef XVENDORNAME
/* Endian order */
#undef X_BYTE_ORDER
#undef _X_BYTE_ORDER
/* Deal with multiple architecture compiles on Mac OS X */
#ifndef __APPLE_CC__
#define X_BYTE_ORDER _X_BYTE_ORDER
#else
#ifdef __BIG_ENDIAN__
#define X_BYTE_ORDER X_BIG_ENDIAN
#else
#define X_BYTE_ORDER X_LITTLE_ENDIAN
#endif
#endif
/* BSD-compliant source */
#undef _BSD_SOURCE