From 157e9ef31b7d3385c4782d82a9f3b0cebe874b25 Mon Sep 17 00:00:00 2001
From: "Christopher J. Morrone" <morrone2@llnl.gov>
Date: Thu, 16 Jun 2005 00:40:57 +0000
Subject: [PATCH] libtool is broken on AIX, so we need to compile against the
 static opensllfor now.

---
 auxdir/x_ac_slurm_ssl.m4 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/auxdir/x_ac_slurm_ssl.m4 b/auxdir/x_ac_slurm_ssl.m4
index 47579a594e3..6e566dfd0a9 100644
--- a/auxdir/x_ac_slurm_ssl.m4
+++ b/auxdir/x_ac_slurm_ssl.m4
@@ -24,7 +24,11 @@ AC_DEFUN([X_AC_SLURM_WITH_SSL], [
   AC_SUBST(SSL_LIBS)
   AC_SUBST(SSL_CPPFLAGS)
   
-  SSL_LIBS="-lcrypto"
+  if test "x$ac_have_aix" = "xyes"; then
+  	SSL_LIBS="-lcrypto-static"
+  else
+  	SSL_LIBS="-lcrypto"
+  fi
   
   AC_ARG_WITH(ssl,
     AC_HELP_STRING([--with-ssl=PATH],[Specify path to OpenSSL installation]),
-- 
GitLab