diff -ur lzip-1.11.orig/Makefile.in lzip-1.11/Makefile.in
--- lzip-1.11.orig/Makefile.in	Tue Sep 14 19:32:10 2010
+++ lzip-1.11/Makefile.in	Tue Jan 18 12:09:49 2011
@@ -5,6 +5,7 @@
 INSTALL_DATA = $(INSTALL) -p -m 644
 INSTALL_DIR = $(INSTALL) -d -m 755
 SHELL = /bin/sh
+X = $(exeext)
 
 objs = arg_parser.o decoder.o encoder.o fast_encoder.o main.o
 recobjs = arg_parser.o decoder.o lziprecover.o
@@ -14,18 +15,18 @@
          uninstall uninstall-info uninstall-man \
          doc info man check dist clean distclean
 
-all : $(progname) lziprecover
+all : $(progname)$X lziprecover$X
 
-$(progname) : $(objs)
-	$(CXX) $(LDFLAGS) -o $(progname) $(objs)
+$(progname)$X : $(objs)
+	$(CXX) $(LDFLAGS) -o $@ $(objs)
 
-$(progname)_profiled : $(objs)
-	$(CXX) $(LDFLAGS) -pg -o $(progname)_profiled $(objs)
+$(progname)_profiled$X : $(objs)
+	$(CXX) $(LDFLAGS) -pg -o $@ $(objs)
 
-lziprecover : $(recobjs)
-	$(CXX) $(LDFLAGS) -o lziprecover $(recobjs)
+lziprecover$X : $(recobjs)
+	$(CXX) $(LDFLAGS) -o $@ $(recobjs)
 
-unzcrash : testsuite/unzcrash.cc
+unzcrash$X : testsuite/unzcrash.cc
 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $<
 
 main.o : main.cc
@@ -67,12 +68,12 @@
 	./config.status
 
 check : all
-	@$(VPATH)/testsuite/check.sh $(VPATH)/testsuite $(pkgversion)
+	@exeext=$X $(VPATH)/testsuite/check.sh $(VPATH)/testsuite $(pkgversion)
 
 install : all install-info install-man
 	if [ ! -d "$(DESTDIR)$(bindir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(bindir)" ; fi
-	$(INSTALL_PROGRAM) ./$(progname) "$(DESTDIR)$(bindir)/$(progname)"
-	$(INSTALL_PROGRAM) ./lziprecover "$(DESTDIR)$(bindir)/lziprecover"
+	$(INSTALL_PROGRAM) ./$(progname)$X "$(DESTDIR)$(bindir)/$(progname)$X"
+	$(INSTALL_PROGRAM) ./lziprecover$X "$(DESTDIR)$(bindir)/lziprecover$X"
 
 install-info :
 	if [ ! -d "$(DESTDIR)$(infodir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(infodir)" ; fi
@@ -88,8 +89,8 @@
 	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
 
 uninstall : uninstall-info uninstall-man
-	-rm -f "$(DESTDIR)$(bindir)/$(progname)"
-	-rm -f "$(DESTDIR)$(bindir)/lziprecover"
+	-rm -f "$(DESTDIR)$(bindir)/$(progname)$X"
+	-rm -f "$(DESTDIR)$(bindir)/lziprecover$X"
 
 uninstall-info :
 	-install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$(pkgname).info"
@@ -126,8 +127,8 @@
 	lzip -v -9 $(DISTNAME).tar
 
 clean :
-	-rm -f $(progname) $(progname)_profiled $(objs)
-	-rm -f lziprecover lziprecover.o
+	-rm -f $(progname)$X $(progname)_profiled$X $(objs)
+	-rm -f lziprecover$X lziprecover.o
 
 distclean : clean
 	-rm -f Makefile config.status *.tar *.tar.lz
Only in lzip-1.11: Makefile.in.orig
diff -ur lzip-1.11.orig/configure lzip-1.11/configure
--- lzip-1.11.orig/configure	Thu Sep 16 12:33:20 2010
+++ lzip-1.11/configure	Tue Jan 18 12:05:13 2011
@@ -17,6 +17,7 @@
 # clear some things potentially inherited from environment.
 LC_ALL=C
 export LC_ALL
+exeext=
 srcdir=
 prefix=/usr/local
 exec_prefix='$(prefix)'
@@ -61,6 +62,7 @@
 		echo "  --infodir=DIR         info files directory [${infodir}]"
 		echo "  --mandir=DIR          man pages directory [${mandir}]"
 		echo "  --sysconfdir=DIR      read-only single-machine data directory [${sysconfdir}]"
+		echo "  exeext=SUFFIX         executable file extension [none]"
 		echo "  CXX=COMPILER          C++ compiler to use [g++]"
 		echo "  CPPFLAGS=OPTIONS      command line options for the preprocessor [${CPPFLAGS}]"
 		echo "  CXXFLAGS=OPTIONS      command line options for the C++ compiler [${CXXFLAGS}]"
@@ -89,6 +91,7 @@
 	--no-create | --no-c*)
 		no_create=yes ;;
 
+	exeext=*)   exeext=${optarg} ;;
 	CXX=*)      CXX=${optarg} ;;
 	CPPFLAGS=*) CPPFLAGS=${optarg} ;;
 	CXXFLAGS=*) CXXFLAGS=${optarg} ;;
@@ -155,6 +158,7 @@
 echo "VPATH = ${srcdir}"
 echo "prefix = ${prefix}"
 echo "exec_prefix = ${exec_prefix}"
+echo "exeext = ${exeext}"
 echo "bindir = ${bindir}"
 echo "datadir = ${datadir}"
 echo "infodir = ${infodir}"
@@ -179,6 +183,7 @@
 VPATH = ${srcdir}
 prefix = ${prefix}
 exec_prefix = ${exec_prefix}
+exeext = ${exeext}
 bindir = ${bindir}
 datadir = ${datadir}
 infodir = ${infodir}
Only in lzip-1.11: configure.orig
diff -ur lzip-1.11.orig/testsuite/check.sh lzip-1.11/testsuite/check.sh
--- lzip-1.11.orig/testsuite/check.sh	Thu Aug 26 08:49:41 2010
+++ lzip-1.11/testsuite/check.sh	Tue Jan 18 12:10:44 2011
@@ -9,8 +9,8 @@
 export LC_ALL
 objdir=`pwd`
 testdir=`cd "$1" ; pwd`
-LZIP="${objdir}"/lzip
-LZIPRECOVER="${objdir}"/lziprecover
+LZIP="${objdir}"/lzip${exeext}
+LZIPRECOVER="${objdir}"/lziprecover${exeext}
 framework_failure() { echo "failure in testing framework" ; exit 1 ; }
 
 if [ ! -x "${LZIP}" ] ; then
Only in lzip-1.11/testsuite: check.sh.orig
