libvisual/libvisual-0.4.2-sw.patch

98 lines
2.1 KiB
Diff
Raw Permalink Normal View History

From b9a5b83804e13d2d18d805642bb71a28b75b1058 Mon Sep 17 00:00:00 2001
From: wangshuo <wangshuo@kylinos.cn>
Date: Tue, 27 Feb 2024 08:22:48 +0000
Subject: [PATCH] libvisual-0.4.2-sw.patch
2022-12-29 10:44:00 +08:00
---
configure | 10 ++++++++++
configure.ac | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/configure b/configure
index 492545e..b35422b 100755
2022-12-29 10:44:00 +08:00
--- a/configure
+++ b/configure
@@ -3986,6 +3986,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
lv_mips=no
lv_alpha=no
+lv_sw_64=no
lv_sparc=no
lv_ix86=no
lv_x86_64=no
@@ -3994,6 +3995,7 @@ lv_powerpc=no
case "$host_cpu" in
mips) lv_mips=yes;;
alpha) lv_alpha=yes;;
+ sw_64) lv_sw_64=yes;;
sparc) lv_sparc=yes;;
i*86) lv_ix86=yes;;
x86_64*) lv_x86_64=yes;;
@@ -22944,6 +22946,7 @@ fi
lv_mips=$lv_mips
lv_alpha=$lv_alpha
+ lv_sw_64=$lv_sw_64
lv_sparc=$lv_sparc
lv_ix86=$lv_ix86
2022-12-29 10:44:00 +08:00
lv_x86_64=$lv_x86_64
@@ -24597,6 +24600,13 @@ _______EOF
_______EOF
fi
+ if test x$lv_sw_64 = xyes ; then
+ cat >>$outfile <<_______EOF
+
+#define VISUAL_ARCH_SW_64
+_______EOF
+ fi
+
if test x$lv_sparc = xyes ; then
cat >>$outfile <<_______EOF
2022-12-29 10:44:00 +08:00
diff --git a/configure.ac b/configure.ac
index 75fb9ea..16c85c6 100644
2022-12-29 10:44:00 +08:00
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,7 @@ AC_CANONICAL_HOST
lv_mips=no
lv_alpha=no
+lv_sw_64=no
lv_sparc=no
lv_ix86=no
lv_x86_64=no
2022-12-29 10:44:00 +08:00
@@ -34,6 +35,7 @@ lv_powerpc=no
case "$host_cpu" in
mips) lv_mips=yes;;
alpha) lv_alpha=yes;;
+ sw_64) lv_sw_64=yes;;
sparc) lv_sparc=yes;;
i*86) lv_ix86=yes;;
x86_64*) lv_x86_64=yes;;
@@ -602,6 +604,13 @@ _______EOF
_______EOF
fi
+ if test x$lv_sw_64 = xyes ; then
+ cat >>$outfile <<_______EOF
+
+#define VISUAL_ARCH_SW_64
+_______EOF
+ fi
+
if test x$lv_sparc = xyes ; then
cat >>$outfile <<_______EOF
@@ -811,6 +820,7 @@ echo >>$outfile
lv_mips=$lv_mips
lv_alpha=$lv_alpha
+ lv_sw_64=$lv_sw_64
lv_sparc=$lv_sparc
lv_ix86=$lv_ix86
2022-12-29 10:44:00 +08:00
lv_x86_64=$lv_x86_64
--
2.27.0
2022-12-29 10:44:00 +08:00