anchor.diff:  call %MAKE% >> %PROJECT_ROOT%\%CONFIG_LOG%
   if errorlevel 1 goto dbfailed
   set DB=1
  +echo DEFINES += HAVE_DB >> %PROJECT_ROOT%\config.in
   goto detectfcgi
   
   :dbfailed
   set DB=0
  -echo QXT_LIBS -= db >> %PROJECT_ROOT%\config.in
  +echo DEFINES -= HAVE_DB >> %PROJECT_ROOT%\config.in
   
   :detectfcgi
   if "%FCGI%"=="0" goto skipfcgitest
  
positive.code: call %MAKE% >> %PROJECT_ROOT%\%CONFIG_LOG%
  if errorlevel 1 goto opensslfailed
  set OPENSSL=1
  goto detectdb
  
  :opensslfailed
  set OPENSSL=0
  echo QXT_LIBS -= openssl >> %PROJECT_ROOT%\config.in
  
  :detectdb
  if "%DB%"=="0" goto detectfcgi
  
negative.code: call %MAKE% >> %PROJECT_ROOT%\%CONFIG_LOG%
  if errorlevel 1 goto fcgifailed
  set FCGI=1
  echo DEFINES += HAVE_FCGI >> %PROJECT_ROOT%\config.in
  goto alltestsok
  
  :fcgifailed
  set FCGI=0
  echo DEFINES -= HAVE_FCGI >> %PROJECT_ROOT%\config.in
  
  :skipfcgitest
  :alltestsok
  