aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-04-16 10:12:37 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-04-16 17:37:58 -0700
commit3c7ae8abe1eee1b1231f7c81e9898485940901c7 (patch)
tree4fdd545358a24df36bd454d43f9881a78ec95854
parent3506173ba7e726a9d0a17ec42734a925a885b01e (diff)
Make libkms build default OS-dependent
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fcfd07ba..3794838b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,8 +46,8 @@ AC_ARG_ENABLE(udev, AS_HELP_STRING([--enable-udev],
AC_ARG_ENABLE(libkms,
AS_HELP_STRING([--disable-libkms],
- [Disable KMS mm abstraction library (default: enabled)]),
- [LIBKMS=$enableval], [LIBKMS=yes])
+ [Disable KMS mm abstraction library (default: auto)]),
+ [LIBKMS=$enableval], [LIBKMS=auto])
AC_ARG_ENABLE(intel,
AS_HELP_STRING([--disable-intel],
@@ -146,6 +146,14 @@ if test "x$UDEV" = xyes; then
AC_DEFINE(UDEV, 1, [Have UDEV support])
fi
+AC_CANONICAL_HOST
+if test "x$LIBKMS" = xauto ; then
+ case $host_os in
+ linux*) LIBKMS="yes" ;;
+ *) LIBKMS="no" ;;
+ esac
+fi
+
AM_CONDITIONAL(HAVE_LIBKMS, [test "x$LIBKMS" = xyes])
AM_CONDITIONAL(HAVE_VMWGFX, [test "x$VMWGFX" = xyes])