summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>2005-07-26 21:43:13 +0000
committerPaul Eggert <eggert@twinsun.com>2005-07-26 21:43:13 +0000
commit9eff9fe3e8ab53b7a8ad2c1633b0681beb3b655c (patch)
tree36f83598b89a1567622ee38b623f7888a4c2e904 /make-dist
parent1c9916a1f9dc944ee733f5c77db39013123da8da (diff)
downloademacs-9eff9fe3e8ab53b7a8ad2c1633b0681beb3b655c.tar.gz
Merge gnulib getopt implementation into Emacs.
* Makefile.in (AUTOCONF_INPUTS): New macro. ($(srcdir)/configure, $(srcdir)/src/stamp-h.in): Depend on it, so that these files also depend on m4/getopt.m4. * configure.in: Configure getopt by including m4/getopt.m4, and configuring a getopt replacement if necessary. * make-dist: Add m4 subdirectory. Unlink lib-src/getopt.h. * m4/getopt.m4: New file. * lib-src/Makefile.in (mostlyclean): Remove getopt.h, getopt.h-t. (GETOPT_H): New macro, from gnulib. (getopt.h): New rule, from gnulib. (GETOPTOBJS): Now autoconfigured. (GETOPTDEPS): getopt.h is now autoconfigured. (getopt.o, getopt1.o): Depend on $(GETOPT_H), not ${srcdir}/getopt.h. (getopt.o): Depend on ${srcdir}/gettext.h. (movemail.o): Depend on $(GETOPT_H). * lib-src/getopt.c, lib-src/getopt1.c: Sync from gnulib. * lib-src/getopt_.h, lib-src/getopt_int.h, lib-src/gettext.h: New files, from gnulib. * lib-src/getopt.h: Removed (now is getopt_.h). * nt/inc/gettext.h: Remove; no longer needed now that lib-src/gettext.h exists. * src/s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is now part of lib-src.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist9
1 files changed, 7 insertions, 2 deletions
diff --git a/make-dist b/make-dist
index 9f2c4bb1280..3381ee770eb 100755
--- a/make-dist
+++ b/make-dist
@@ -6,7 +6,7 @@
#### be distributed. This means that if you add a file with an odd name,
#### you should make sure that this script will include it.
-# Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002, 2005
+# Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002, 2005
# Free Software Foundation, Inc.
#
# This file is part of GNU Emacs.
@@ -323,7 +323,7 @@ for subdir in lisp site-lisp lispref lispintro \
nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
etc etc/e etc/images etc/images/gnus etc/images/smilies \
etc/tree-widget etc/tree-widget/default etc/tree-widget/folder \
- info man msdos vms mac mac/inc mac/inc/sys \
+ info man m4 msdos vms mac mac/inc mac/inc/sys \
mac/src mac/Emacs.app mac/Emacs.app/Contents \
mac/Emacs.app/Contents/MacOS mac/Emacs.app/Contents/Resources \
mac/Emacs.app/Contents/Resources/English.lproj
@@ -487,8 +487,13 @@ echo "Making links to \`lib-src'"
done
cd ../${tempdir}/lib-src
rm -f Makefile.c
+ rm -f getopt.h
rm -f =* TAGS)
+echo "Making links to \`m4'"
+(cd m4
+ ln *.m4 ../${tempdir}/m4)
+
echo "Making links to \`nt'"
(cd nt
ln emacs.rc config.nt [a-z]*.c ../${tempdir}/nt