patches/libvisual-04-amd64.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 17853 052e1758d2fc
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

--- libvisual-0.4.0/configure.ac-orig	2010-04-16 09:56:44.322927624 -0500
+++ libvisual-0.4.0/configure.ac	2010-04-16 09:55:19.191320318 -0500
@@ -35,7 +35,24 @@ case "$host_cpu" in
 	mips)           lv_mips=yes;;
 	alpha)          lv_alpha=yes;;
 	sparc)          lv_sparc=yes;;
-	i*86)           lv_ix86=yes;;
+	i*86)
+          case $host_os in
+            solaris*)
+              AC_CHECK_DECL([__i386], [I386_ABI="yes"], [I386_ABI="no"])
+              AC_CHECK_DECL([__amd64], [AMD64_ABI="yes"], [AMD64_ABI="no"])
+
+              if test "x$I386_ABI" = "xyes" ; then
+                lv_ix86=yes
+              fi
+              if test "x$AMD64_ABI" = "xyes" ; then
+                lv_x86_64=yes
+              fi
+              ;;
+            *)
+              lv_ix86=yes
+              ;;
+          esac
+          ;;
 	x86_64*)	lv_x86_64=yes;;
        	powerpc|ppc)    lv_powerpc=yes;;
 	*)		lv_arch_unknown=yes;;
@@ -780,6 +797,7 @@ echo >>$outfile
    lv_alpha=$lv_alpha
    lv_sparc=$lv_sparc
    lv_ix86=$lv_ix86
+   lv_x86_64=$lv_x86_64
    lv_powerpc=$lv_powerpc
    lv_arch_unknown=$lv_arch_unknown