summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.(none)>2008-03-03 12:02:44 -0500
committerAlex Deucher <alex@botch2.(none)>2008-03-03 12:02:44 -0500
commit74eb981287d76836327830bd51272f605a07e0cc (patch)
treeda00addddd4cca4fbba723cb1e91272f48bc6158 /configure.ac
parentf7769ea86e265f347eb58c517ccb5ef8b35eec27 (diff)
ATOMBIOS: fix atombios parser support on *bsd
bsd requires a different pragma pack than Linux. See bug 14594.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2412d4f1..83219158 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,6 +232,16 @@ if test "x$XSERVER_LIBPCIACCESS" = xyes; then
fi
AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes)
+case $host_os in
+ *freebsd*)
+ AC_DEFINE(ALT_PRAGMA_PACK, 1, [Use alternate pragma pack]) ;;
+ *netbsd*)
+ AC_DEFINE(ALT_PRAGMA_PACK, 1, [Use alternate pragma pack]) ;;
+ *openbsd*)
+ AC_DEFINE(ALT_PRAGMA_PACK, 1, [Use alternate pragma pack]) ;;
+esac
+AM_CONDITIONAL(ALT_PRAGMA_PACK, test "x$ALT_PRAGMA_PACK" = xyes)
+
AC_SUBST([XORG_CFLAGS])
AC_SUBST([DRI_CFLAGS])
AC_SUBST([moduledir])