X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Frelocatable-prog;h=129947f2b85b11660ebac00772ffc9048cc020d1;hb=b9d1fbeaa2ac943998d21abd9b973dd8a2d62eed;hp=cb1d8b1b00f65399551c70c5852508304c04a487;hpb=78008cd2e8a58cda0d3c279ba0ee20dbd7598317;p=gnulib.git diff --git a/modules/relocatable-prog b/modules/relocatable-prog index cb1d8b1b0..129947f2b 100644 --- a/modules/relocatable-prog +++ b/modules/relocatable-prog @@ -22,16 +22,31 @@ xreadlink stdbool unistd memcmp +strdup configure.ac: gl_RELOCATABLE([$gl_source_base]) Makefile.am: DEFS += -DEXEEXT=\"@EXEEXT@\" +if RELOCATABLE_VIA_WRAPPER +uninstall-hook: uninstall-relocwrapper +uninstall-relocwrapper: + if test $(RELOCATABLE) = yes; then \ + case '$(EXEEXT)' in \ + .bin*) ;; \ + *) cd $(top_builddir) && \ + $(MAKE) $(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT) \ + AM_MAKEFLAGS='$(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT)' \ + uninstall ;; \ + esac; \ + fi +.PHONY: uninstall-relocwrapper +endif Include: -#include "relocatable.h" -#include "progname.h" +"relocatable.h" +"progname.h" License: GPL