+# The test/sample programs in the original tree link using rpath option.
+# Make it optional for packagers.
+if test -n "$LOCAL_LDFLAGS"
+then
+ AC_MSG_CHECKING(if you want to link sample programs with rpath option)
+ AC_ARG_ENABLE(rpath-link,
+ [ --enable-rpath-link link sample programs with rpath option],
+ [with_rpath_link=$enableval],
+ [with_rpath_link=yes])
+ AC_MSG_RESULT($with_rpath_link)
+ if test "$with_rpath_link" = no
+ then
+ LOCAL_LDFLAGS=
+ LOCAL_LDFLAGS2=
+ fi
+fi
+