http://lists.gnu.org/archive/html/bug-ed/2008-12/msg00002.html 2008-09-03 Doug Goldstein * Make red man page a symlink instead of a hard link * install man pages by default http://lists.gnu.org/archive/html/bug-ed/2008-12/msg00001.html 2007-04-16 Mike Frysinger * Clean locale vars from environment to maintain a sane state. * Do not set CC/CXX/CPPFLAGS/LDFLAGS to "" so that user can override if they so choose. * Only set CFLAGS/CXXFLAGS if user did not specify any. --- ed-1.0/configure +++ ed-1.0/configure @@ -14,6 +14,19 @@ progversion=1.0 srctrigger=ed.h +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + unset $as_var + fi +done + # clear some things potentially inherited from environment. srcdir= prefix=/usr/local @@ -24,12 +37,6 @@ mandir='$(datadir)/man' sysconfdir='$(prefix)/etc' program_prefix= -CC= -CXX= -CPPFLAGS= -CFLAGS='-Wall -W -O2' -CXXFLAGS='-Wall -W -O2' -LDFLAGS= # Loop over all args while [ x"$1" != x ] ; do @@ -106,6 +113,14 @@ esac done +# Defaults if the user did not select any +if [ x"${CFLAGS+set}" != xset ] ; then + CFLAGS='-Wall -W -O2' +fi +if [ x"${CXXFLAGS+set}" != xset ] ; then + CXXFLAGS='-Wall -W -O2' +fi + # Find the source files, if location was not specified. srcdirtext= if [ x"${srcdir}" = x ] ; then --- ed-1.0/Makefile.in +++ ed-1.0/Makefile.in @@ -44,11 +44,11 @@ check : $(progname) $(VPATH)/testsuite/check.sh @$(VPATH)/testsuite/check.sh $(VPATH)/testsuite -install : all install-info +install : all install-info install-man if test ! -d $(DESTDIR)$(bindir) ; then $(INSTALL) -d $(DESTDIR)$(bindir) ; fi $(INSTALL_PROGRAM) ./$(progname) $(DESTDIR)$(bindir)/$(program_prefix)$(progname) -rm -f $(DESTDIR)$(bindir)/$(program_prefix)r$(progname) - cd $(DESTDIR)$(bindir) ; ln $(program_prefix)$(progname) $(program_prefix)r$(progname) + cd $(DESTDIR)$(bindir) ; ln -s $(program_prefix)$(progname) $(program_prefix)r$(progname) install-info : if test ! -d $(DESTDIR)$(infodir) ; then $(INSTALL) -d $(DESTDIR)$(infodir) ; fi @@ -59,7 +59,7 @@ if test ! -d $(DESTDIR)$(mandir)/man1 ; then $(INSTALL) -d $(DESTDIR)$(mandir)/man1 ; fi $(INSTALL_DATA) $(VPATH)/doc/$(progname).1 $(DESTDIR)$(mandir)/man1/$(program_prefix)$(progname).1 -rm -f $(DESTDIR)$(mandir)/man1/$(program_prefix)r$(progname).1 - cd $(DESTDIR)$(mandir)/man1 ; ln $(program_prefix)$(progname).1 $(program_prefix)r$(progname).1 + cd $(DESTDIR)$(mandir)/man1 ; ln -s $(program_prefix)$(progname).1 $(program_prefix)r$(progname).1 install-strip : all $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install