summaryrefslogtreecommitdiff
path: root/xserver/configure
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2021-06-15 13:57:44 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2021-06-15 13:57:44 +0000
commit37406caaad26e30ddddd24ad746dabbb2fbe9856 (patch)
treea5073e7d6ffc7975037796b69c8806413a147922 /xserver/configure
parenta044a4e5f1c0bce890720179a9263eeee61067b1 (diff)
Initial attempt to build xserver for riscv64
ok matthieu@
Diffstat (limited to 'xserver/configure')
-rw-r--r--xserver/configure18
1 files changed, 18 insertions, 0 deletions
diff --git a/xserver/configure b/xserver/configure
index 845ac2e2b..4faebb6e4 100644
--- a/xserver/configure
+++ b/xserver/configure
@@ -1067,6 +1067,8 @@ ARM_VIDEO_FALSE
ARM_VIDEO_TRUE
ALPHA_VIDEO_FALSE
ALPHA_VIDEO_TRUE
+RISCV64_VIDEO_FALSE
+RISCV64_VIDEO_TRUE
GLX_ARCH_DEFINES
BSD_KQUEUE_APM_FALSE
BSD_KQUEUE_APM_TRUE
@@ -22476,6 +22478,10 @@ $as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
SGI_VIDEO=yes
BSD_ARCH_SOURCES="sgi_video.c ioperm_noop.c"
;;
+ riscv64*)
+ RISCV64_VIDEO=yes
+ BSD_ARCH_SOURCES="riscv64_video.c ioperm_noop.c"
+ ;;
sparc*)
SPARC64_VIDEO=yes
BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
@@ -22574,6 +22580,14 @@ else
PPC_VIDEO_FALSE=
fi
+ if test "x$RISCV64_VIDEO" = xyes; then
+ RISCV64_VIDEO_TRUE=
+ RISCV64_VIDEO_FALSE='#'
+else
+ RISCV64_VIDEO_TRUE='#'
+ RISCV64_VIDEO_FALSE=
+fi
+
if test "x$SGI_VIDEO" = xyes; then
SGI_VIDEO_TRUE=
SGI_VIDEO_FALSE='#'
@@ -32274,6 +32288,10 @@ if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${RISCV64_VIDEO_TRUE}" && test -z "${RISCV64_VIDEO_FALSE}"; then
+ as_fn_error $? "conditional \"RISCV64_VIDEO\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${SGI_VIDEO_TRUE}" && test -z "${SGI_VIDEO_FALSE}"; then
as_fn_error $? "conditional \"SGI_VIDEO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5