X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Frelocatable-prog;h=a7f50ac6b9edac2bf064b355c073acf1594986e8;hb=4bf2b800b24ba0b0cfd069b8ec7ac173714c734d;hp=cb1d8b1b00f65399551c70c5852508304c04a487;hpb=78008cd2e8a58cda0d3c279ba0ee20dbd7598317;p=gnulib.git diff --git a/modules/relocatable-prog b/modules/relocatable-prog index cb1d8b1b0..a7f50ac6b 100644 --- a/modules/relocatable-prog +++ b/modules/relocatable-prog @@ -22,16 +22,34 @@ xreadlink stdbool unistd memcmp +strdup configure.ac: gl_RELOCATABLE([$gl_source_base]) +if test $RELOCATABLE = yes; then + AC_LIBOBJ([progreloc]) +fi 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