anchor.diff:  perl -S %PROJECT_PWD%\bin\syncheaders %PROJECT_PWD%\include %PROJECT_PWD%\multimedia
   perl -S %PROJECT_PWD%\bin\syncheaders %PROJECT_PWD%\include %PROJECT_PWD%\messaging
   
  +echo.
   echo Running qmake...
   qmake -recursive %VC_TEMPLATE_OPTION%
  +if errorlevel 1 goto qmakeRecError
  +echo.
  +echo configure has finished. You may run %MAKE% to build the project now.
  +goto exitTag
  +
  +:qmakeRecError
  +echo.
  +echo configure failed.
   
   :exitTag
  
positive.code: set CONTACTS_PLUGIN=
  set VC_TEMPLATE_OPTION=
  
  if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG%
  echo CONFIG += silent > %PROJECT_CONFIG%
  
  
negative.code: echo isEmpty($$QT_MOBILITY_LIB):QT_MOBILITY_LIB=$$QT_MOBILITY_PREFIX/lib >> %PROJECT_CONFIG%
  echo isEmpty($$QT_MOBILITY_BIN):QT_MOBILITY_BIN=$$QT_MOBILITY_PREFIX/bin >> %PROJECT_CONFIG%
  
  
  :copy %PROJECT_CONFIG% %PROJECT_PWD%config.pri
  del %PROJECT_CONFIG%
  
  echo Checking available Qt
  qmake -v >> %PROJECT_LOG% 2>&1
  if errorlevel 1 goto qmakeNotFound
  goto qmakeFound
  :qmakeNotFound
  echo ... Not found  >> %PROJECT_LOG% 2>&1
  echo >&2 "Cannot find 'qmake' in your PATH."
  echo >&2 "Aborting." 
  goto exitTag
  
  :qmakeFound
  qmake -query QT_VERSION
  
  echo Checking for nmake...
  nmake /? >> %PROJECT_LOG% 2>&1
  if errorlevel 1 goto mingw
  echo       Using nmake
  set MAKE=nmake
  goto testingMake
  
  :mingw
  echo Checking for mingw32-make...
  mingw32-make -v >> %PROJECT_LOG% 2>&1
  if errorlevel 1 goto gnumake
  echo       Using mingw32-make
  set MAKE=mingw32-make
  goto testingMake
  
  :gnumake
  echo Checking for GNU make...
  make -v >> %PROJECT_LOG% 2>&1
  if errorlevel 1 goto gnumake
  echo       Using GNU make
  set MAKE=make
  goto testingMake
  
  echo >&2 "Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH"
  echo >&2 "Aborting."
  
  goto exitTag
  
  :testingMake
  
  echo.
  REM compile tests go here. We don't have anything to test for at this stage.
  
  
  echo "Generating Mobility Headers..."
  rd /s /q %PROJECT_PWD%\include
  