aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2007-06-20 22:10:31 +0000
committerJason Rumney2007-06-20 22:10:31 +0000
commit32154d10f62a314fd2e1099b8ced0e2f7c1e0c08 (patch)
tree9dca52cc628a43f053d91376494b61fed7283361
parentfab8b787ff048bddd6c0c91b23d40e34482c76b1 (diff)
downloademacs-32154d10f62a314fd2e1099b8ced0e2f7c1e0c08.tar.gz
emacs-32154d10f62a314fd2e1099b8ced0e2f7c1e0c08.zip
Complain if image libraries are missing.
-rw-r--r--nt/ChangeLog4
-rwxr-xr-xnt/configure.bat55
2 files changed, 54 insertions, 5 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index c1f5293059b..92334d83cee 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12007-06-20 Jason Rumney <jasonr@gnu.org>
2
3 * configure.bat: Complain if image libraries are missing.
4
12007-06-15 Jason Rumney <jasonr@gnu.org> 52007-06-15 Jason Rumney <jasonr@gnu.org>
2 6
3 * emacs.manifest: New file. 7 * emacs.manifest: New file.
diff --git a/nt/configure.bat b/nt/configure.bat
index 2ff90186445..9c97f179a90 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -118,11 +118,11 @@ echo. --no-opt disable optimization
118echo. --no-cygwin use -mno-cygwin option with GCC 118echo. --no-cygwin use -mno-cygwin option with GCC
119echo. --cflags FLAG pass FLAG to compiler 119echo. --cflags FLAG pass FLAG to compiler
120echo. --ldflags FLAG pass FLAG to compiler when linking 120echo. --ldflags FLAG pass FLAG to compiler when linking
121echo. --without-png do not use libpng even if it is installed 121echo. --without-png do not use libpng
122echo. --without-jpeg do not use jpeg-6b even if it is installed 122echo. --without-jpeg do not use jpeg-6b
123echo. --without-gif do not use libungif even if it is installed 123echo. --without-gif do not use giflib or libungif
124echo. --without-tiff do not use libtiff even if it is installed 124echo. --without-tiff do not use libtiff
125echo. --without-xpm do not use libXpm even if it is installed 125echo. --without-xpm do not use libXpm
126goto end 126goto end
127rem ---------------------------------------------------------------------- 127rem ----------------------------------------------------------------------
128:setprefix 128:setprefix
@@ -533,6 +533,51 @@ copy subdirs.el ..\site-lisp\subdirs.el
533 533
534:dontUpdateSubdirs 534:dontUpdateSubdirs
535echo. 535echo.
536
537rem check that we have all the libraries we need.
538set libsOK=1
539
540if not "(%HAVE_XPM%)" == "()" goto checkpng
541if (%xpmsupport%) == (N) goto checkpng
542 set libsOK=0
543 echo XPM support is missing. It is required for color icons in the toolbar.
544 echo Install libXpm development files or use --without-xpm
545
546:checkpng
547if not "(%HAVE_PNG%)" == "()" goto checkjpeg
548if (%pngsupport%) == (N) goto checkjpeg
549 set libsOK=0
550 echo PNG support is missing.
551 echo Install libpng development files or use --without-png
552
553:checkjpeg
554if not "(%HAVE_JPEG%)" == "()" goto checktiff
555if (%jpegsupport%) == (N) goto checktiff
556 set libsOK=0
557 echo JPEG support is missing.
558 echo Install jpeg development files or use --without-jpeg
559
560:checktiff
561if not "(%HAVE_TIFF%)" == "()" goto checkgif
562if (%tiffsupport%) == (N) goto checkgif
563 set libsOK=0
564 echo TIFF support is missing.
565 echo Install libtiff development files or use --without-tiff
566
567:checkgif
568if not "(%HAVE_GIF%)" == "()" goto donelibchecks
569if (%gifsupport%) == (N) goto donelibchecks
570 set libsOK=0
571 echo GIF support is missing.
572 echo Install giflib or libungif development files or use --without-gif
573
574:donelibchecks
575if (%libsOK%) == (1) goto success
576echo.
577echo Important libraries are missing. Fix these issues before running make.
578goto end
579
580:success
536echo Emacs successfully configured. 581echo Emacs successfully configured.
537echo Emacs successfully configured. >>config.log 582echo Emacs successfully configured. >>config.log
538echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install. 583echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install.