--- cmulocal/cyrus.m4.old 2003-10-08 22:35:24.000000000 +0200 +++ cmulocal/cyrus.m4 2009-09-18 04:32:41.000000000 +0200 @@ -11,35 +11,12 @@ dnl (so the runpath for shared libraries is set). AC_DEFUN([CMU_ADD_LIBPATH], [ # this is CMU ADD LIBPATH - if test "$andrew_runpath_switch" = "none" ; then - LDFLAGS="-L$1 ${LDFLAGS}" - else - LDFLAGS="-L$1 $andrew_runpath_switch$1 ${LDFLAGS}" - fi +LDFLAGS="-L$1 ${LDFLAGS}" ]) dnl add -L(1st arg), and possibly (runpath switch)(1st arg), to (2nd arg) dnl (so the runpath for shared libraries is set). AC_DEFUN([CMU_ADD_LIBPATH_TO], [ # this is CMU ADD LIBPATH TO - if test "$andrew_runpath_switch" = "none" ; then - $2="-L$1 ${$2}" - else - $2="-L$1 ${$2} $andrew_runpath_switch$1" - fi +$2="-L$1 ${$2}" ]) - -dnl runpath initialization -AC_DEFUN([CMU_GUESS_RUNPATH_SWITCH], [ - # CMU GUESS RUNPATH SWITCH - AC_CACHE_CHECK(for runpath switch, andrew_runpath_switch, [ - # first, try -R - SAVE_LDFLAGS="${LDFLAGS}" - LDFLAGS="-R /usr/lib" - AC_TRY_LINK([],[],[andrew_runpath_switch="-R"], [ - LDFLAGS="-Wl,-rpath,/usr/lib" - AC_TRY_LINK([],[],[andrew_runpath_switch="-Wl,-rpath,"], - [andrew_runpath_switch="none"]) - ]) - LDFLAGS="${SAVE_LDFLAGS}" - ])])