configure
changeset 11335 a9f4f63b5add
parent 11326 ba4fe3686323
child 11337 d9f24e95e8ba
     1.1 --- a/configure	Mon Aug 21 00:42:06 2017 -0400
     1.2 +++ b/configure	Mon Aug 21 11:17:38 2017 -0700
     1.3 @@ -22834,6 +22834,20 @@
     1.4  fi
     1.5  
     1.6  
     1.7 +        ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
     1.8 +if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
     1.9 +  have_wasapi=yes
    1.10 +fi
    1.11 +
    1.12 +
    1.13 +        ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
    1.14 +if test "x$ac_cv_header_audioclient_h" = xyes; then :
    1.15 +
    1.16 +else
    1.17 +  have_wasapi=no
    1.18 +fi
    1.19 +
    1.20 +
    1.21          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.22  /* end confdefs.h.  */
    1.23  
    1.24 @@ -23840,10 +23854,12 @@
    1.25  
    1.26                  SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
    1.27              fi
    1.28 +            if test x$have_wasapi = xyes; then
    1.29  
    1.30  $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
    1.31  
    1.32 -            SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
    1.33 +                SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
    1.34 +            fi
    1.35              have_audio=yes
    1.36          fi
    1.37          # Set up files for the joystick library