From 1add79ad51d0de9f1d9694285a542bb47c024c27 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Mon, 27 Oct 2014 15:38:07 -0700 Subject: [PATCH] Check for linking function for blcr to work with very old lib installs. --- auxdir/x_ac_blcr.m4 | 2 +- configure | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auxdir/x_ac_blcr.m4 b/auxdir/x_ac_blcr.m4 index 9438d0e40bf..b442f9e3c9e 100644 --- a/auxdir/x_ac_blcr.m4 +++ b/auxdir/x_ac_blcr.m4 @@ -40,7 +40,7 @@ AC_DEFUN([X_AC_BLCR], [ _x_ac_blcr_libs_save="$LIBS" LIBS="-L$d/$bit -lcr $LIBS" AC_LINK_IFELSE( - [AC_LANG_CALL([], cr_init)], + [AC_LANG_CALL([], cr_get_restart_info)], AS_VAR_SET(x_ac_cv_blcr_dir, $d)) LIBS="$_x_ac_blcr_libs_save" test -n "$x_ac_cv_blcr_dir" && break diff --git a/configure b/configure index 950391fbb93..23cb2cc185e 100755 --- a/configure +++ b/configure @@ -23763,11 +23763,11 @@ else #ifdef __cplusplus extern "C" #endif -char cr_init (); +char cr_get_restart_info (); int main () { -return cr_init (); +return cr_get_restart_info (); ; return 0; } -- GitLab