--- libvisual-0.4.2/configure.ac.orig +++ libvisual-0.4.2/configure.ac @@ -37,7 +37,24 @@ 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;;