summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2006-03-15 21:25:38 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2006-03-15 21:25:38 +0000
commit6fe377af5a82deb6f8b0f3b75414335e7845caac (patch)
tree5d5e3d284e3d9f1c7765279646e642dd1c70c351 /configure.ac
parent21f7f2fb113ee4f9cd011c3cc2d45d43bbdd35fa (diff)
- OpenBSD needs -Wl,-export-dynamic to export symbols from main executable
to modules. - Probe for OpenBSD aperture driver and define HAS_APERTURE_DRV accordingly.
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 1cedcfa55..9a274a223 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,6 +158,11 @@ if test "x$ac_cv_sysv_ipc" = xyes; then
AC_DEFINE(HAVE_SYSV_IPC, 1, [Define to 1 if SYSV IPC is available])
fi
+dnl OpenBSD /dev/xf86 aperture driver
+if test -c /dev/xf86 ; then
+ AC_DEFINE(HAS_APERTURE_DRV, 1, [System has /dev/xf86 aperture driver])
+fi
+
dnl glibc backtrace support check (hw/xfree86/common/xf86Events.c)
AC_CHECK_HEADER([execinfo.h],[
AC_CHECK_LIB(c, backtrace, [
@@ -1190,6 +1195,11 @@ if test "x$XORG" = xyes -o "x$XGL" = xyes; then
XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
LD_EXPORT_SYMBOLS_FLAG="-rdynamic"
fi
+ case $host_os in
+ openbsd*)
+ LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
+ ;;
+ esac
AC_SUBST([XORG_CFLAGS])
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])