aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2004-05-06 19:18:34 +0000
committerJason Rumney2004-05-06 19:18:34 +0000
commit112dc8e1075e7fbc1974831f928d14334eaae2f0 (patch)
treebb372644d801020475fafb9c3db6317b80ff18b1
parent4c174fb4fa9ac9cd3156396129dd82ffed161a31 (diff)
downloademacs-112dc8e1075e7fbc1974831f928d14334eaae2f0.tar.gz
emacs-112dc8e1075e7fbc1974831f928d14334eaae2f0.zip
Use -mno-cygwin to check for image libraries when needed.
-rw-r--r--nt/ChangeLog5
-rwxr-xr-xnt/configure.bat18
2 files changed, 18 insertions, 5 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 73d4f6ee5d1..fa411283e76 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,8 @@
12004-05-06 Jason Rumney <jasonr@gnu.org>
2
3 * configure.bat: Use -mno-cygwin to check for image libraries
4 when needed.
5
12004-05-03 Jason Rumney <jasonr@gnu.org> 62004-05-03 Jason Rumney <jasonr@gnu.org>
2 7
3 * makefile.nt, ebuild.bat, install.bat, fast-install.bat: 8 * makefile.nt, ebuild.bat, install.bat, fast-install.bat:
diff --git a/nt/configure.bat b/nt/configure.bat
index a27bbcd8cdd..216420873c7 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -294,13 +294,20 @@ rem Check for external image libraries. Since they are loaded
294rem dynamically, the libraries themselves do not need to be present 294rem dynamically, the libraries themselves do not need to be present
295rem at compile time, but the header files are required. 295rem at compile time, but the header files are required.
296 296
297set mingwflag=
298
299if (%nocygwin%) == (N) goto flagsOK
300set mingwflag=-mno-cygwin
301
302:flagsOK
303
297if (%pngsupport%) == (N) goto pngDone 304if (%pngsupport%) == (N) goto pngDone
298 305
299echo Checking for libpng... 306echo Checking for libpng...
300echo #include "png.h" >junk.c 307echo #include "png.h" >junk.c
301echo main (){} >>junk.c 308echo main (){} >>junk.c
302rem -o option is ignored with cl, but allows result to be consistent. 309rem -o option is ignored with cl, but allows result to be consistent.
303%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err 310%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>junk.err
304if exist junk.obj goto havePng 311if exist junk.obj goto havePng
305 312
306echo ...png.h not found, building without PNG support. 313echo ...png.h not found, building without PNG support.
@@ -320,7 +327,7 @@ echo Checking for jpeg-6b...
320echo #include "jconfig.h" >junk.c 327echo #include "jconfig.h" >junk.c
321echo main (){} >>junk.c 328echo main (){} >>junk.c
322rem -o option is ignored with cl, but allows result to be consistent. 329rem -o option is ignored with cl, but allows result to be consistent.
323%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err 330%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>junk.err
324if exist junk.obj goto haveJpeg 331if exist junk.obj goto haveJpeg
325 332
326echo ...jconfig.h not found, building without JPEG support. 333echo ...jconfig.h not found, building without JPEG support.
@@ -340,7 +347,7 @@ echo Checking for libgif...
340echo #include "gif_lib.h" >junk.c 347echo #include "gif_lib.h" >junk.c
341echo main (){} >>junk.c 348echo main (){} >>junk.c
342rem -o option is ignored with cl, but allows result to be consistent. 349rem -o option is ignored with cl, but allows result to be consistent.
343%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err 350%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>junk.err
344if exist junk.obj goto haveGif 351if exist junk.obj goto haveGif
345 352
346echo ...gif_lib.h not found, building without GIF support. 353echo ...gif_lib.h not found, building without GIF support.
@@ -360,7 +367,7 @@ echo Checking for tiff...
360echo #include "tiffio.h" >junk.c 367echo #include "tiffio.h" >junk.c
361echo main (){} >>junk.c 368echo main (){} >>junk.c
362rem -o option is ignored with cl, but allows result to be consistent. 369rem -o option is ignored with cl, but allows result to be consistent.
363%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err 370%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>junk.err
364if exist junk.obj goto haveTiff 371if exist junk.obj goto haveTiff
365 372
366echo ...tiffio.h not found, building without TIFF support. 373echo ...tiffio.h not found, building without TIFF support.
@@ -381,7 +388,7 @@ echo #define FOR_MSW 1 >junk.c
381echo #include "X11/xpm.h" >>junk.c 388echo #include "X11/xpm.h" >>junk.c
382echo main (){} >>junk.c 389echo main (){} >>junk.c
383rem -o option is ignored with cl, but allows result to be consistent. 390rem -o option is ignored with cl, but allows result to be consistent.
384%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err 391%COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >junk.out 2>junk.err
385if exist junk.obj goto haveXpm 392if exist junk.obj goto haveXpm
386 393
387echo ...X11/xpm.h not found, building without XPM support. 394echo ...X11/xpm.h not found, building without XPM support.
@@ -466,6 +473,7 @@ set COMPILER=
466set MAKECMD= 473set MAKECMD=
467set usercflags= 474set usercflags=
468set userldflags= 475set userldflags=
476set mingwflag=
469 477
470goto skipArchTag 478goto skipArchTag
471 arch-tag: 300d20a4-1675-4e75-b615-7ce1a8c5376c 479 arch-tag: 300d20a4-1675-4e75-b615-7ce1a8c5376c