summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2008-05-15 21:02:34 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2008-05-15 21:02:34 (GMT)
commit484b4c47c3e0b5905c61eb536626ab5b098885c7 (patch)
treeced1f2102ce7c569217a5fd7beb1362e1c33e9fd /configure.in
parent362e5d9a10056aa8cbfaf26ea53ec19f37ce4533 (diff)
downloadhdf5-484b4c47c3e0b5905c61eb536626ab5b098885c7.zip
hdf5-484b4c47c3e0b5905c61eb536626ab5b098885c7.tar.gz
hdf5-484b4c47c3e0b5905c61eb536626ab5b098885c7.tar.bz2
[svn-r15011] Purpose: New configure option
Description: The configure option --disable-sharedlib-rpath will disable embedding of the '-Wl,-rpath' information into executables when shared libraries are produced. Tested: kagiso
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 8e1ee52..8fff9a0 100644
--- a/configure.in
+++ b/configure.in
@@ -893,6 +893,31 @@ case "$INSTALL" in
;;
esac
+dnl ----------------------------------------------------------------------
+dnl Some users have reported problems with libtool's use of '-Wl,-rpath' to
+dnl link shared libraries in nondefulat directories. Allow users to
+dnl disable embedding the rpath information in the executables and to
+dnl instead solely rely on the information in LD_LIBRARY_PATH.
+AC_MSG_CHECKING([if -Wl,-rpath should be used to link shared libs in nondefault directories])
+AC_ARG_ENABLE([sharedlib-rpath],
+ [AC_HELP_STRING([--disable-sharedlib-rpath],
+ [Disable use of the '=Wl,-rpath' linker option])],
+ [RPATH=$enableval])
+
+case "X-$RPATH" in
+ X-no)
+ AC_MSG_RESULT([no])
+ hardcode_libdir_flag_spec=''
+ ;;
+ X-|X-yes)
+ AC_MSG_RESULT([yes])
+ ;;
+ *)
+ AC_MSG_RESULT([error])
+ AC_MSG_ERROR([\'$enableval\' is not a valid rpath type])
+ ;;
+esac
+
AC_MSG_CHECKING([make])
dnl ----------------------------------------------------------------------