Bring the script out of the dark ages and into modern autoconfness.

llvm-svn: 16415
diff --git a/llvm/autoconf/m4/link_use_r.m4 b/llvm/autoconf/m4/link_use_r.m4
index e553e7e..0949304 100644
--- a/llvm/autoconf/m4/link_use_r.m4
+++ b/llvm/autoconf/m4/link_use_r.m4
@@ -6,13 +6,12 @@
 AC_DEFUN([AC_LINK_USE_R],
 [
   AC_MSG_CHECKING([for compiler -Wl,-R<path> option])
-  AC_LANG_SAVE
-  AC_LANG_C
+  AC_LANG_PUSH([C])
   oldcflags="$CFLAGS"
   CFLAGS="$CFLAGS -Wl,-R."
   AC_LINK_IFELSE([int main() { return 0; }],[ac_cv_link_use_r=yes],[ac_cv_link_use_r=no])
   CFLAGS="$oldcflags"
-  AC_LANG_RESTORE
+  AC_LANG_POP([C])
   AC_MSG_RESULT($ac_cv_link_use_r)
   if test "$ac_cv_link_use_r" = yes
   then