AC_SUBST(OPTIONAL_PROGS)
+AC_ARG_ENABLE(strip,
+ AS_HELP_STRING(--enable-strip, [Enable stripping of executables]),
+ [ENABLE_STRIP=$enableval], [ENABLE_STRIP=no])
+
+AC_SUBST(ENABLE_STRIP)
+
# For lib/nls.h: do we have <libintl.h> and gettext() ?
AC_ARG_ENABLE(nls, AS_HELP_STRING(--enable-nls, [NLS support]),
exec_prefix = @exec_prefix@
bindir = $(DESTDIR)@bindir@
datarootdir = @datarootdir@
+ENABLE_STRIP = @STRIP@
KEYCODES_PROGS = @KEYCODES_PROGS@
RESIZECONS_PROGS = @RESIZECONS_PROGS@
OPTIONAL_PROGS = @OPTIONAL_PROGS@
getunimap clrunimap outpsfheader setpalette
endif
+INSTALL_STRIP =
+ifeq ($(ENABLE_STRIP),yes)
+ INSTALL_STRIP = -s
+endif
+
# Installed by default
SHCMDS = unicode_start unicode_stop
install: all
install -d -m 0755 $(bindir)
- install -s -m 0755 $(PROGS) $(OLDPROGS) $(bindir)
+ install $(INSTALL_STRIP) -m 0755 $(PROGS) $(OLDPROGS) $(bindir)
install -m 0755 $(SHCMDS) $(bindir)
for i in psfaddtable psfgettable psfstriptable; do \
rm -f $(bindir)/$$i; ln -s psfxtable $(bindir)/$$i; \