From 23a50c38aa582542f8cf3ef928396faad89cbae7 Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 16 Jan 2012 18:30:40 -0600 Subject: [PATCH] Added EXEEXT support, for Cygwin. --- configure.ac | 2 ++ uip/Makefile.in | 15 ++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index e4b0e9f..9abe1b5 100644 --- a/configure.ac +++ b/configure.ac @@ -218,6 +218,8 @@ fi AC_PROG_CC +AC_SUBST(EXEEXT)dnl + AC_CACHE_CHECK(whether preprocessor supports -Wunused-macros, nmh_cv_has_unusedmacros, [nmh_saved_cppflags="$CPPFLAGS" diff --git a/uip/Makefile.in b/uip/Makefile.in index 39614d6..f11b532 100644 --- a/uip/Makefile.in +++ b/uip/Makefile.in @@ -13,6 +13,7 @@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ etcdir = @sysconfdir@ +EXEEXT = @EXEEXT@ CC = @CC@ CFLAGS = @CFLAGS@ @@ -246,7 +247,7 @@ install: install-cmds install-misc install-lcmds install-scmds install-cmds: $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) for cmd in $(CMDS); do \ - $(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \ + $(INSTALL_PROGRAM) $$cmd$(EXEEXT) $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \ done # install links @@ -277,23 +278,23 @@ install-misc: # install commands with special installation needs (thus no $(SCMDS) use here) install-scmds: if test x$(SETGID_MAIL) != x; then \ - $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(DESTDIR)$(bindir)/$$cmd; \ + $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \ else \ - $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd; \ + $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \ fi uninstall: for cmd in $(CMDS); do \ - rm -f $(DESTDIR)$(bindir)/$$cmd; \ + rm -f $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \ done for lcmd in $(LCMDS); do \ - rm -f $(DESTDIR)$(bindir)/$$lcmd; \ + rm -f $(DESTDIR)$(bindir)/$$lcmd$(EXEEXT); \ done for misc in $(MISC); do \ - rm -f $(DESTDIR)$(libdir)/$$misc; \ + rm -f $(DESTDIR)$(libdir)/$$misc$(EXEEXT); \ done for cmd in $(SCMDS); do \ - rm -f $(DESTDIR)$(bindir)/$$cmd; \ + rm -f $(DESTDIR)$(bindir)/$$cmd$(EXEEXT); \ done # ========== DEPENDENCIES FOR CLEANUP ========== -- 1.7.10.4