Fix "make install" with --enable-relocatable.
authorBen Pfaff <blp@gnu.org>
Wed, 23 Sep 2009 05:19:17 +0000 (22:19 -0700)
committerBen Pfaff <blp@gnu.org>
Wed, 23 Sep 2009 05:19:17 +0000 (22:19 -0700)
When PSPP added support for --enable-relocatable back in 2007, PSPP did
not install any shared libraries.  Now it does, which requires us to
set RELOCATABLE_LIBRARY_PATH in configure.ac.  Otherwise, the installed
binaries will not work automatically but require some manual user
intervention.

Also set RELOCATABLE_STRIP as recommended by the gnulib documentation.

configure.ac

index 6bc1a2f5418d74c649e42e7f21f15ff4e53bde5d..95dfc66f454604b1ee3c0a8d084511675a1860c5 100644 (file)
@@ -206,6 +206,11 @@ if test "$am_cv_func_iconv" != "yes"; then
    PSPP_REQUIRED_PREREQ([iconv (see http://www.gnu.org/software/libiconv/)])
 fi
 
+dnl Required by the gnulib 'relocatable-prog' module.
+dnl See doc/relocatable-maint.texi in the gnulib tree for details.
+RELOCATABLE_LIBRARY_PATH='$(libdir)'
+RELOCATABLE_STRIP=:
+
 PSPP_CHECK_PREREQS
 
 AC_CONFIG_FILES([Makefile gl/Makefile])