From 104785ddfae59e3bee23049549b629df846dcaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 13 May 2010 20:07:04 +0300 Subject: [PATCH] Use strip, have autoconf search it. Makes it possible to override the strip command as well as to disable it, plus other benefits of AC_CHECK_TOOL. --- Makefile.in | 4 +++- configure.ac | 1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Makefile.in b/Makefile.in index eed2f58..e377f0f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -13,6 +13,7 @@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ -I. LDFLAGS = @LDFLAGS@ EXEEXT = @EXEEXT@ +STRIP = @STRIP@ libs = @LIBS@ -lm @@ -47,7 +48,8 @@ ccache.1: manual.xml .PHONY: install install: all $(installcmd) -d $(DESTDIR)$(bindir) - $(installcmd) -s -m 755 ccache$(EXEEXT) $(DESTDIR)$(bindir) + $(installcmd) -m 755 ccache$(EXEEXT) $(DESTDIR)$(bindir) + $(STRIP) $(DESTDIR)$(bindir)/ccache$(EXEEXT) $(installcmd) -d $(DESTDIR)$(mandir)/man1 -$(installcmd) -m 644 $(srcdir)/ccache.1 $(DESTDIR)$(mandir)/man1/ diff --git a/configure.ac b/configure.ac index 585ba46..e921675 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,7 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL +AC_CHECK_TOOL([STRIP], [strip], [:]) AC_DEFINE([_GNU_SOURCE], 1, [Define _GNU_SOURCE so that we get all necessary prototypes]) -- 1.7.0.1