libvisual/libvisual-0.4.0-sw.patch
2022-12-29 11:49:26 +08:00

98 lines
2.2 KiB
Diff

From c160e188dcd1bbce75f0385c1582ad1d385b8d03 Mon Sep 17 00:00:00 2001
From: licihua <licihua@huawei.com>
Date: Thu, 29 Dec 2022 11:39:30 +0800
Subject: [PATCH 3/3] libvisual-0.4.0-sw.patch
---
configure | 10 ++++++++++
configure.ac | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/configure b/configure
index bca4f47..fab6100 100755
--- a/configure
+++ b/configure
@@ -3985,6 +3985,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
@@ -3993,6 +3994,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;;
@@ -23091,6 +23093,7 @@ fi
lv_mips=$lv_mips
lv_alpha=$lv_alpha
+ lv_sw_64=$lv_sw_64
lv_sparc=$lv_sparc
lv_ix86=$lv_ix86
lv_x86_64=$lv_x86_64
@@ -24736,6 +24739,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_alpha = xyes ; then
cat >>$outfile <<_______EOF
diff --git a/configure.ac b/configure.ac
index 0253fdb..89fc4e5 100644
--- 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
@@ -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;;
@@ -585,6 +587,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_alpha = xyes ; then
cat >>$outfile <<_______EOF
@@ -801,6 +810,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
lv_x86_64=$lv_x86_64
--
2.26.2