summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2008-12-08 22:33:07 +0000
committerGreg Hudson <ghudson@mit.edu>2008-12-08 22:33:07 +0000
commit956c7198265889e516eea0e2f3d6968f00852c18 (patch)
tree06dfa8c84f08163de13a071c00e7b162d0abab07 /src/aclocal.m4
parent492485e1a7b20450cf1d68ca3632851d5c74b073 (diff)
downloadkrb5-956c7198265889e516eea0e2f3d6968f00852c18.tar.gz
krb5-956c7198265889e516eea0e2f3d6968f00852c18.tar.xz
krb5-956c7198265889e516eea0e2f3d6968f00852c18.zip
Add a configure option --disable-rpath to suppress rpath flags in
link lines. Useful for OS distributors and for builds which will only be used to run the test suite. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21297 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 051f01f0df..e92bf6acad 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -1189,6 +1189,7 @@ fi
AC_SUBST(LIBLIST)
AC_SUBST(LIBLINKS)
AC_SUBST(MAKE_SHLIB_COMMAND)
+AC_SUBST(SHLIB_RPATH_FLAGS)
AC_SUBST(SHLIB_EXPFLAGS)
AC_SUBST(SHLIB_EXPORT_FILE_DEP)
AC_SUBST(DYNOBJ_EXPDEPS)
@@ -1230,6 +1231,7 @@ AC_REQUIRE([KRB5_AC_NEED_LIBGEN])dnl
AC_SUBST(CC_LINK)
AC_SUBST(CXX_LINK)
AC_SUBST(RPATH_FLAG)
+AC_SUBST(PROG_RPATH_FLAGS)
AC_SUBST(DEPLIBEXT)])
dnl
@@ -1258,6 +1260,17 @@ AC_ARG_ENABLE([shared], ,
[if test "$enableval" != yes; then
AC_MSG_ERROR([Sorry, this release builds only shared libraries, cannot disable them.])
fi])
+AC_ARG_ENABLE([rpath],
+AC_HELP_STRING([--disable-rpath],[suppress run path flags in link lines]),
+[enable_rpath=$withval],
+[enable_rpath=yes])
+
+if test "x$enable_rpath" != xyes ; then
+ # Unset the rpath flag values set by shlib.conf
+ SHLIB_RPATH_FLAGS=
+ RPATH_FLAG=
+ PROG_RPATH_FLAGS=
+fi
if test "$SHLIBEXT" = ".so-nobuild"; then
AC_MSG_ERROR([Shared libraries are not yet supported on this platform.])