aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorJason Rumney2003-02-02 00:01:25 +0000
committerJason Rumney2003-02-02 00:01:25 +0000
commit507f5dcead7cd7618cd6f83f39f99c8d707945a2 (patch)
treeebfab767e26f6dc7f3b7e18ea65d41ca7772e023 /nt
parentc736ffda58fbde8474b8aef829ff12466620b442 (diff)
downloademacs-507f5dcead7cd7618cd6f83f39f99c8d707945a2.tar.gz
emacs-507f5dcead7cd7618cd6f83f39f99c8d707945a2.zip
Automatically detect libXpm.
Suppress compiler output when testing for image libraries. Give names of un-found libraries in messages.
Diffstat (limited to 'nt')
-rwxr-xr-xnt/configure.bat58
1 files changed, 45 insertions, 13 deletions
diff --git a/nt/configure.bat b/nt/configure.bat
index 8f25217d989..8b7d442a347 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -89,6 +89,7 @@ if "%1" == "--without-png" goto withoutpng
89if "%1" == "--without-jpeg" goto withoutjpeg 89if "%1" == "--without-jpeg" goto withoutjpeg
90if "%1" == "--without-gif" goto withoutgif 90if "%1" == "--without-gif" goto withoutgif
91if "%1" == "--without-tiff" goto withouttiff 91if "%1" == "--without-tiff" goto withouttiff
92if "%1" == "--without-xpm" goto withoutxpm
92if "%1" == "" goto checkutils 93if "%1" == "" goto checkutils
93:usage 94:usage
94echo Usage: configure [options] 95echo Usage: configure [options]
@@ -102,9 +103,10 @@ echo. --no-cygwin use -mno-cygwin option with GCC
102echo. --cflags FLAG pass FLAG to compiler 103echo. --cflags FLAG pass FLAG to compiler
103echo. --ldflags FLAG pass FLAG to compiler when linking 104echo. --ldflags FLAG pass FLAG to compiler when linking
104echo. --without-png do not use libpng even if it is installed 105echo. --without-png do not use libpng even if it is installed
105echo. --without-jpeg do not use jpeglib even if it is installed 106echo. --without-jpeg do not use jpeg-6b even if it is installed
106echo. --without-gif do not use giflib even if it is installed 107echo. --without-gif do not use libungif even if it is installed
107echo. --without-tiff do not use tifflib even if it is installed 108echo. --without-tiff do not use tiff even if it is installed
109echo. --without-xpm do not use libXpm even if it is installed
108goto end 110goto end
109rem ---------------------------------------------------------------------- 111rem ----------------------------------------------------------------------
110:setprefix 112:setprefix
@@ -184,6 +186,14 @@ shift
184goto again 186goto again
185 187
186rem ---------------------------------------------------------------------- 188rem ----------------------------------------------------------------------
189
190:withoutxpm
191set xpmsupport=N
192set HAVE_XPM=
193shift
194goto again
195
196rem ----------------------------------------------------------------------
187rem Check that necessary utilities (cp and rm) are present. 197rem Check that necessary utilities (cp and rm) are present.
188:checkutils 198:checkutils
189echo Checking for 'cp'... 199echo Checking for 'cp'...
@@ -290,10 +300,10 @@ echo Checking for libpng...
290echo #include "png.h" >junk.c 300echo #include "png.h" >junk.c
291echo main (){} >>junk.c 301echo main (){} >>junk.c
292rem -o option is ignored with cl, but allows result to be consistent. 302rem -o option is ignored with cl, but allows result to be consistent.
293%COMPILER% %usercflags% -c junk.c -o junk.obj 303%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err
294if exist junk.obj goto havePng 304if exist junk.obj goto havePng
295 305
296echo ...building without PNG support. 306echo ...png.h not found, building without PNG support.
297set HAVE_PNG= 307set HAVE_PNG=
298goto :pngDone 308goto :pngDone
299 309
@@ -306,14 +316,14 @@ rm -f junk.c junk.obj
306 316
307if (%jpegsupport%) == (N) goto jpegDone 317if (%jpegsupport%) == (N) goto jpegDone
308 318
309echo Checking for jpeg... 319echo Checking for jpeg-6b...
310echo #include "jconfig.h" >junk.c 320echo #include "jconfig.h" >junk.c
311echo main (){} >>junk.c 321echo main (){} >>junk.c
312rem -o option is ignored with cl, but allows result to be consistent. 322rem -o option is ignored with cl, but allows result to be consistent.
313%COMPILER% %usercflags% -c junk.c -o junk.obj 323%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err
314if exist junk.obj goto haveJpeg 324if exist junk.obj goto haveJpeg
315 325
316echo ...building without JPEG support. 326echo ...jconfig.h not found, building without JPEG support.
317set HAVE_JPEG= 327set HAVE_JPEG=
318goto :jpegDone 328goto :jpegDone
319 329
@@ -326,14 +336,14 @@ rm -f junk.c junk.obj
326 336
327if (%gifsupport%) == (N) goto gifDone 337if (%gifsupport%) == (N) goto gifDone
328 338
329echo Checking for gif... 339echo Checking for libgif...
330echo #include "gif_lib.h" >junk.c 340echo #include "gif_lib.h" >junk.c
331echo main (){} >>junk.c 341echo main (){} >>junk.c
332rem -o option is ignored with cl, but allows result to be consistent. 342rem -o option is ignored with cl, but allows result to be consistent.
333%COMPILER% %usercflags% -c junk.c -o junk.obj 343%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err
334if exist junk.obj goto haveGif 344if exist junk.obj goto haveGif
335 345
336echo ...building without GIF support. 346echo ...gif_lib.h not found, building without GIF support.
337set HAVE_GIF= 347set HAVE_GIF=
338goto :gifDone 348goto :gifDone
339 349
@@ -350,10 +360,10 @@ echo Checking for tiff...
350echo #include "tiffio.h" >junk.c 360echo #include "tiffio.h" >junk.c
351echo main (){} >>junk.c 361echo main (){} >>junk.c
352rem -o option is ignored with cl, but allows result to be consistent. 362rem -o option is ignored with cl, but allows result to be consistent.
353%COMPILER% %usercflags% -c junk.c -o junk.obj 363%COMPILER% %usercflags% -c junk.c -o junk.obj >junk.out 2>junk.err
354if exist junk.obj goto haveTiff 364if exist junk.obj goto haveTiff
355 365
356echo ...building without TIFF support. 366echo ...tiffio.h not found, building without TIFF support.
357set HAVE_TIFF= 367set HAVE_TIFF=
358goto :tiffDone 368goto :tiffDone
359 369
@@ -364,6 +374,27 @@ set HAVE_TIFF=1
364:tiffDone 374:tiffDone
365rm -f junk.c junk.obj 375rm -f junk.c junk.obj
366 376
377if (%xpmsupport%) == (N) goto xpmDone
378
379echo Checking for libXpm...
380echo #define FOR_MSW 1 >junk.c
381echo #include "X11/xpm.h" >>junk.c
382echo main (){} >>junk.c
383rem -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
385if exist junk.obj goto haveXpm
386
387echo ...X11/xpm.h not found, building without XPM support.
388set HAVE_XPM=
389goto :xpmDone
390
391:haveXpm
392echo ...XPM header available, building with XPM support.
393set HAVE_XPM=1
394
395:xpmDone
396rm -f junk.c junk.obj junk.err junk.out
397
367rem ---------------------------------------------------------------------- 398rem ----------------------------------------------------------------------
368:genmakefiles 399:genmakefiles
369echo Generating makefiles 400echo Generating makefiles
@@ -394,6 +425,7 @@ if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>..\src\config.h
394if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>..\src\config.h 425if not "(%HAVE_JPEG%)" == "()" echo #define HAVE_JPEG 1 >>..\src\config.h
395if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>..\src\config.h 426if not "(%HAVE_GIF%)" == "()" echo #define HAVE_GIF 1 >>..\src\config.h
396if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF 1 >>..\src\config.h 427if not "(%HAVE_TIFF%)" == "()" echo #define HAVE_TIFF 1 >>..\src\config.h
428if not "(%HAVE_XPM%)" == "()" echo #define HAVE_XPM 1 >>..\src\config.h
397echo /* End of settings from configure.bat. */ >>..\src\config.h 429echo /* End of settings from configure.bat. */ >>..\src\config.h
398 430
399copy paths.h ..\src\epaths.h 431copy paths.h ..\src\epaths.h