summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-06-25 18:05:39 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-06-25 18:05:39 -0700
commitcf38a720e81b545f90dc7be81891d94df6ed059a (patch)
tree421932c3315e5ded7dab371d26820ed3172bfd23 /lib-src
parent414e642ca92b569cd74d26a2879e0e8fe9f8d6be (diff)
downloademacs-cf38a720e81b545f90dc7be81891d94df6ed059a.tar.gz
emacs-cf38a720e81b545f90dc7be81891d94df6ed059a.tar.bz2
emacs-cf38a720e81b545f90dc7be81891d94df6ed059a.zip
Clean out last vestiges of the old HAVE_CONFIG_H stuff.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog10
-rw-r--r--lib-src/Makefile.in5
-rw-r--r--lib-src/etags.c16
-rw-r--r--lib-src/hexl.c2
-rw-r--r--lib-src/makefile.w32-in2
-rw-r--r--lib-src/pop.c6
6 files changed, 14 insertions, 27 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index a04fe215f99..3b4465df607 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,13 @@
+2012-06-26 Paul Eggert <eggert@cs.ucla.edu>
+
+ Clean out last vestiges of the old HAVE_CONFIG_H stuff.
+ * Makefile.in (BASE_CFLAGS):
+ * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
+ * etags.c, hexl.c, pop.c: Include <config.h> unconditionally.
+ * etags.c (DOS_NT):
+ * pop.c (MAIL_USE_POP, h_errno):
+ Remove code that was conditioned on !HAVE_CONFIG_H.
+
2012-06-25 Dmitry Antipov <dmantipov@yandex.ru>
* etags.c (etags_strcasecmp, etags_strncasecmp): Define to
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index a325fc18aac..fe727c65730 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -169,12 +169,9 @@ LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \
## Some systems define this to request special libraries.
LIBS_SYSTEM = @LIBS_SYSTEM@
-# Those files shared with other GNU utilities need HAVE_CONFIG_H
-# defined before they know they can take advantage of the information
-# in ../src/config.h.
BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
$(WARN_CFLAGS) $(WERROR_CFLAGS) \
- -DHAVE_CONFIG_H -I. -I../src -I../lib \
+ -I. -I../src -I../lib \
-I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
diff --git a/lib-src/etags.c b/lib-src/etags.c
index f44c1c05393..2e05e37e80f 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -91,9 +91,7 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
# define NDEBUG /* disable assert */
#endif
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif /* !HAVE_CONFIG_H */
+#include <config.h>
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1 /* enables some compiler checks on GNU */
@@ -113,10 +111,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
# include <fcntl.h>
# include <sys/param.h>
# include <io.h>
-# ifndef HAVE_CONFIG_H
-# define DOS_NT
-# include <sys/config.h>
-# endif
#else
# define MSDOS FALSE
#endif /* MSDOS */
@@ -167,14 +161,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
# include <getopt.h>
#endif /* NO_LONG_OPTIONS */
-#ifndef HAVE_CONFIG_H /* this is a standalone compilation */
-# ifdef __CYGWIN__ /* compiling on Cygwin */
- !!! NOTICE !!!
- the regex.h distributed with Cygwin is not compatible with etags, alas!
-If you want regular expression support, you should delete this notice and
- arrange to use the GNU regex.h and regex.c.
-# endif
-#endif
#include <regex.h>
/* Define CTAGS to make the program "ctags" compatible with the usual one.
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index d418eca78c2..08da0075269 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -20,9 +20,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <ctype.h>
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index fea1d29592e..f1f42bccb68 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -24,7 +24,7 @@ ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\
.PHONY: make-docfile
LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \
- -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../lib \
+ -DNO_ARCHIVES=1 -I../lib \
-I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
LIBS = $(BASE_LIBS) $(ADVAPI32)
diff --git a/lib-src/pop.c b/lib-src/pop.c
index c4c7f2b4e2f..b8ed65c3eac 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -21,11 +21,7 @@ You should have received a copy of the GNU General Public License
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#else
-#define MAIL_USE_POP
-#endif
#ifdef MAIL_USE_POP
@@ -101,7 +97,7 @@ extern char *krb_realmofhost (/* char * */);
#endif /* KERBEROS */
#ifndef WINDOWSNT
-#if !defined (HAVE_H_ERRNO) || !defined (HAVE_CONFIG_H)
+#ifndef HAVE_H_ERRNO
extern int h_errno;
#endif
#endif