Mercurial > hg > xemacs-beta
comparison configure.in @ 664:6e99cc8c6ca5
[xemacs-hg @ 2001-09-18 05:04:26 by ben]
fileio.c: Fix various C++ compile errors in Andy's recent code.
callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings.
scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for
explanation.
font-lock.el: fix problem when you insert a comment on the line before a line of
code: if we use the following char, then when you hit backspace,
the following line of code turns the comment color.
configure.in: Don't use -Wshadow when compiling with g++ or you get buried in
silly warnings. This patch was already applied but somehow got
unapplied. Stephen?
author | ben |
---|---|
date | Tue, 18 Sep 2001 05:06:57 +0000 |
parents | cdb192350f65 |
children | fdefd0186b75 |
comparison
equal
deleted
inserted
replaced
663:ebdebdbf3f84 | 664:6e99cc8c6ca5 |
---|---|
1903 dnl Use either command line flag, environment var, or autodetection | 1903 dnl Use either command line flag, environment var, or autodetection |
1904 if test "$cflags_specified" = "no"; then | 1904 if test "$cflags_specified" = "no"; then |
1905 dnl Following values of CFLAGS are known to work well. | 1905 dnl Following values of CFLAGS are known to work well. |
1906 dnl Should we take debugging options into consideration? | 1906 dnl Should we take debugging options into consideration? |
1907 if test "$GCC" = "yes"; then | 1907 if test "$GCC" = "yes"; then |
1908 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow" | 1908 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes" |
1909 dnl Yuck, bad compares have been worth at least 3 crashes! | 1909 dnl Yuck, bad compares have been worth at least 3 crashes! |
1910 CFLAGS="$CFLAGS -Wsign-compare" | 1910 CFLAGS="$CFLAGS -Wsign-compare" |
1911 dnl You get five zillion shadowing warnings with g++. | |
1912 dnl Even with gcc, -Wshadow is questionable because of its complaints | |
1913 dnl about parameters with the same names as global functions. | |
1914 if test "$xemacs_compiler" != "g++"; then | |
1915 CFLAGS="$CFLAGS -Wshadow" | |
1916 fi | |
1911 dnl glibc is intentionally not `-Wpointer-arith'-clean. | 1917 dnl glibc is intentionally not `-Wpointer-arith'-clean. |
1912 dnl Ulrich Drepper has rejected patches to fix the glibc header files. | 1918 dnl Ulrich Drepper has rejected patches to fix the glibc header files. |
1913 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith" | 1919 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith" |
1914 dnl I'm not convinced this is a good idea any more. -sb | 1920 dnl I'm not convinced this is a good idea any more. -sb |
1915 dnl test "$opsys $machine" = "linux intel386" && \ | 1921 dnl test "$opsys $machine" = "linux intel386" && \ |
2911 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) | 2917 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-msw.o) |
2912 fi | 2918 fi |
2913 dnl check for our special version of select | 2919 dnl check for our special version of select |
2914 AC_TRY_RUN([#include <fcntl.h> | 2920 AC_TRY_RUN([#include <fcntl.h> |
2915 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], | 2921 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }], |
2916 [AC_DEFINE(HAVE_MSG_SELECT)]) | 2922 [need_event_unixoid=yes; AC_DEFINE(HAVE_MSG_SELECT)]) |
2917 with_file_coding=yes | 2923 with_file_coding=yes |
2918 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o) | 2924 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o) |
2919 fi | 2925 fi |
2920 fi | 2926 fi |
2921 | 2927 |
4235 eval "with_${feature}=no" | 4241 eval "with_${feature}=no" |
4236 done | 4242 done |
4237 fi dnl with_tty | 4243 fi dnl with_tty |
4238 | 4244 |
4239 dnl Do we need event-unixoid.o ? | 4245 dnl Do we need event-unixoid.o ? |
4240 test "$with_x11" = "yes" -o "$with_tty" = "yes" && XE_ADD_OBJS(event-unixoid.o) | 4246 dnl This is needed for X, or for TTY, or for MSWIN w/Cygwin select() |
4247 dnl [but not Mingw MSWIN] | |
4248 test "$with_x11" = "yes" -o "$with_tty" = "yes" -o "$need_event_unixoid" = "yes" && XE_ADD_OBJS(event-unixoid.o) | |
4241 | 4249 |
4242 dnl Database support | 4250 dnl Database support |
4243 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. | 4251 dnl We do not necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support. |
4244 dnl On FreeBSD, both DB and DBM are part of libc. | 4252 dnl On FreeBSD, both DB and DBM are part of libc. |
4245 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. | 4253 dnl By default, we check for DBM support in libgdbm, then libc, then libdbm. |