diff options
| author | Jason Rumney | 2004-05-06 19:18:34 +0000 |
|---|---|---|
| committer | Jason Rumney | 2004-05-06 19:18:34 +0000 |
| commit | 112dc8e1075e7fbc1974831f928d14334eaae2f0 (patch) | |
| tree | bb372644d801020475fafb9c3db6317b80ff18b1 | |
| parent | 4c174fb4fa9ac9cd3156396129dd82ffed161a31 (diff) | |
| download | emacs-112dc8e1075e7fbc1974831f928d14334eaae2f0.tar.gz emacs-112dc8e1075e7fbc1974831f928d14334eaae2f0.zip | |
Use -mno-cygwin to check for image libraries when needed.
| -rw-r--r-- | nt/ChangeLog | 5 | ||||
| -rwxr-xr-x | nt/configure.bat | 18 |
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 @@ | |||
| 1 | 2004-05-06 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * configure.bat: Use -mno-cygwin to check for image libraries | ||
| 4 | when needed. | ||
| 5 | |||
| 1 | 2004-05-03 Jason Rumney <jasonr@gnu.org> | 6 | 2004-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 | |||
| 294 | rem dynamically, the libraries themselves do not need to be present | 294 | rem dynamically, the libraries themselves do not need to be present |
| 295 | rem at compile time, but the header files are required. | 295 | rem at compile time, but the header files are required. |
| 296 | 296 | ||
| 297 | set mingwflag= | ||
| 298 | |||
| 299 | if (%nocygwin%) == (N) goto flagsOK | ||
| 300 | set mingwflag=-mno-cygwin | ||
| 301 | |||
| 302 | :flagsOK | ||
| 303 | |||
| 297 | if (%pngsupport%) == (N) goto pngDone | 304 | if (%pngsupport%) == (N) goto pngDone |
| 298 | 305 | ||
| 299 | echo Checking for libpng... | 306 | echo Checking for libpng... |
| 300 | echo #include "png.h" >junk.c | 307 | echo #include "png.h" >junk.c |
| 301 | echo main (){} >>junk.c | 308 | echo main (){} >>junk.c |
| 302 | rem -o option is ignored with cl, but allows result to be consistent. | 309 | rem -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 |
| 304 | if exist junk.obj goto havePng | 311 | if exist junk.obj goto havePng |
| 305 | 312 | ||
| 306 | echo ...png.h not found, building without PNG support. | 313 | echo ...png.h not found, building without PNG support. |
| @@ -320,7 +327,7 @@ echo Checking for jpeg-6b... | |||
| 320 | echo #include "jconfig.h" >junk.c | 327 | echo #include "jconfig.h" >junk.c |
| 321 | echo main (){} >>junk.c | 328 | echo main (){} >>junk.c |
| 322 | rem -o option is ignored with cl, but allows result to be consistent. | 329 | rem -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 |
| 324 | if exist junk.obj goto haveJpeg | 331 | if exist junk.obj goto haveJpeg |
| 325 | 332 | ||
| 326 | echo ...jconfig.h not found, building without JPEG support. | 333 | echo ...jconfig.h not found, building without JPEG support. |
| @@ -340,7 +347,7 @@ echo Checking for libgif... | |||
| 340 | echo #include "gif_lib.h" >junk.c | 347 | echo #include "gif_lib.h" >junk.c |
| 341 | echo main (){} >>junk.c | 348 | echo main (){} >>junk.c |
| 342 | rem -o option is ignored with cl, but allows result to be consistent. | 349 | rem -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 |
| 344 | if exist junk.obj goto haveGif | 351 | if exist junk.obj goto haveGif |
| 345 | 352 | ||
| 346 | echo ...gif_lib.h not found, building without GIF support. | 353 | echo ...gif_lib.h not found, building without GIF support. |
| @@ -360,7 +367,7 @@ echo Checking for tiff... | |||
| 360 | echo #include "tiffio.h" >junk.c | 367 | echo #include "tiffio.h" >junk.c |
| 361 | echo main (){} >>junk.c | 368 | echo main (){} >>junk.c |
| 362 | rem -o option is ignored with cl, but allows result to be consistent. | 369 | rem -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 |
| 364 | if exist junk.obj goto haveTiff | 371 | if exist junk.obj goto haveTiff |
| 365 | 372 | ||
| 366 | echo ...tiffio.h not found, building without TIFF support. | 373 | echo ...tiffio.h not found, building without TIFF support. |
| @@ -381,7 +388,7 @@ echo #define FOR_MSW 1 >junk.c | |||
| 381 | echo #include "X11/xpm.h" >>junk.c | 388 | echo #include "X11/xpm.h" >>junk.c |
| 382 | echo main (){} >>junk.c | 389 | echo main (){} >>junk.c |
| 383 | rem -o option is ignored with cl, but allows result to be consistent. | 390 | rem -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 |
| 385 | if exist junk.obj goto haveXpm | 392 | if exist junk.obj goto haveXpm |
| 386 | 393 | ||
| 387 | echo ...X11/xpm.h not found, building without XPM support. | 394 | echo ...X11/xpm.h not found, building without XPM support. |
| @@ -466,6 +473,7 @@ set COMPILER= | |||
| 466 | set MAKECMD= | 473 | set MAKECMD= |
| 467 | set usercflags= | 474 | set usercflags= |
| 468 | set userldflags= | 475 | set userldflags= |
| 476 | set mingwflag= | ||
| 469 | 477 | ||
| 470 | goto skipArchTag | 478 | goto skipArchTag |
| 471 | arch-tag: 300d20a4-1675-4e75-b615-7ce1a8c5376c | 479 | arch-tag: 300d20a4-1675-4e75-b615-7ce1a8c5376c |