m68k/ColdFire system emulation.
[qemu] / configure
index 245b205..8b2743f 100755 (executable)
--- a/configure
+++ b/configure
@@ -157,6 +157,9 @@ SunOS)
             kqemu="yes"
         fi
     fi
+    if test -f /usr/include/sys/soundcard.h ; then
+        oss=yes
+    fi
 ;;
 *)
 oss="yes"
@@ -394,18 +397,13 @@ if test "$check_gcc" = "yes" ; then
 #endif
 int main(){return 0;}
 EOF
-    check_cc() {
-       which "$1" 2> /dev/null
-       return $?
-    }
-
     if "$cc" -o $TMPE $TMPC 2> /dev/null ; then
        echo "WARNING: \"$cc\" looks like gcc 4.x"
        found_compat_cc="no"
        if test "$gcc3_search" = "yes" ; then
            echo "Looking for gcc 3.x"
            for compat_cc in $gcc3_list ; do
-               if check_cc "$cross_prefix$compat_cc" ; then
+               if "$cross_prefix$compat_cc" --version > /dev/null 2>&1 ; then
                    echo "Found \"$compat_cc\""
                    cc="$cross_prefix$compat_cc"
                    found_compat_cc="yes"
@@ -469,7 +467,7 @@ fi
 if test -z "$target_list" ; then
 # these targets are portable
     if [ "$softmmu" = "yes" ] ; then
-        target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc64-softmmu ppcemb-softmmu "
+        target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc64-softmmu ppcemb-softmmu m68k-softmmu"
     fi
 # the following are Linux specific
     if [ "$linux_user" = "yes" ] ; then
@@ -672,6 +670,7 @@ else
     fmod_support=""
 fi
 echo "FMOD support      $fmod $fmod_support"
+echo "OSS support       $oss"
 if test -n "$sparc_cpu"; then
     echo "Target Sparc Arch $sparc_cpu"
 fi