emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/nt/configure.bat


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/nt/configure.bat
Date: Fri, 31 Jan 2003 06:03:11 -0500

Index: emacs/nt/configure.bat
diff -c emacs/nt/configure.bat:1.20 emacs/nt/configure.bat:1.21
*** emacs/nt/configure.bat:1.20 Fri Jan 31 02:23:20 2003
--- emacs/nt/configure.bat      Fri Jan 31 06:03:11 2003
***************
*** 88,93 ****
--- 88,94 ----
  if "%1" == "--without-png" goto withoutpng
  if "%1" == "--without-jpeg" goto withoutjpeg
  if "%1" == "--without-gif" goto withoutgif
+ if "%1" == "--without-tiff" goto withouttiff
  if "%1" == "" goto checkutils
  :usage
  echo Usage: configure [options]
***************
*** 103,108 ****
--- 104,110 ----
  echo.   --without-png           do not use libpng even if it is installed
  echo.   --without-jpeg          do not use jpeglib even if it is installed
  echo.   --without-gif           do not use giflib even if it is installed
+ echo.   --without-tiff          do not use tifflib even if it is installed
  goto end
  rem ----------------------------------------------------------------------
  :setprefix
***************
*** 174,179 ****
--- 176,189 ----
  goto again
  
  rem ----------------------------------------------------------------------
+ 
+ :withouttiff
+ set tiffsupport=N
+ set HAVE_TIFF=
+ shift
+ goto again
+ 
+ rem ----------------------------------------------------------------------
  rem    Check that necessary utilities (cp and rm) are present.
  :checkutils
  echo Checking for 'cp'...
***************
*** 334,339 ****
--- 344,369 ----
  :gifDone
  rm -f junk.c junk.obj
  
+ if (%tiffsupport%) == (N) goto tiffDone
+ 
+ echo Checking for tiff...
+ echo #include "tiffio.h" >junk.c
+ echo main (){} >>junk.c
+ rem   -o option is ignored with cl, but allows result to be consistent.
+ %COMPILER% %usercflags% -c junk.c -o junk.obj
+ if exist junk.obj goto haveTiff
+ 
+ echo ...building without TIFF support.
+ set HAVE_TIFF=
+ goto :tiffDone
+ 
+ :haveTiff
+ echo ...TIFF header available, building with TIFF support.
+ set HAVE_TIFF=1
+ 
+ :tiffDone
+ rm -f junk.c junk.obj
+ 
  rem ----------------------------------------------------------------------
  :genmakefiles
  echo Generating makefiles
***************
*** 363,368 ****
--- 393,399 ----
  if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>..\src\config.h
  if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>..\src\config.h
  if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>..\src\config.h
+ if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF 1 >>..\src\config.h
  echo /* End of settings from configure.bat.  */ >>..\src\config.h
  
  copy paths.h ..\src\epaths.h




reply via email to

[Prev in Thread] Current Thread [Next in Thread]