# HG changeset patch # User reimar # Date 1238266406 0 # Node ID 54d4e18aa1f4a7a3c39960fd80b6a12cfed040b4 # Parent bcc35d0962d637a7934be813a0a8a3161605ee74 Check for ddk/ntddcdrm.h header before enabling VCD on mingw. Fixes a compilation issue on mingw-w64 which does not have that header. diff -r bcc35d0962d6 -r 54d4e18aa1f4 configure --- a/configure Sat Mar 28 16:09:56 2009 +0000 +++ b/configure Sat Mar 28 18:53:26 2009 +0000 @@ -5730,15 +5730,23 @@ echocheck "VCD support" -if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || mingw32; then +_vcd=no +if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos; then + _vcd=yes +elif mingw32; then + cat > $TMPC << EOF +#include +int main(void) { return 0; } +EOF + cc_check && _vcd=yes +fi +if test "$_vcd" = yes; then _inputmodules="vcd $_inputmodules" def_vcd='#define CONFIG_VCD 1' - _vcd="yes" else def_vcd='#undef CONFIG_VCD' _noinputmodules="vcd $_noinputmodules" _res_comment="not supported on this OS" - _vcd="no" fi echores "$_vcd"