summaryrefslogtreecommitdiff
path: root/security/krb5-devel/files/patch-configure.ac
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-08-09 16:15:50 -0700
committerCy Schubert <cy@FreeBSD.org>2023-08-09 16:43:03 -0700
commite89f84156a8fcb2f81c1f962845f4456b2f62f63 (patch)
treeb9f86640bffd96eb0d1218e67911e241e41c013a /security/krb5-devel/files/patch-configure.ac
parentsecurity/krb5*: Disable NLS when option is deselected (diff)
security/krb5: Support libedit in base
Even though libedit is in base FreeBSD, the krb5 ports still depend on devel/libedit when the LIBEDIT option is selected. This is because ./configure uses pkgconf to determine if libedit exists, ignoring libedit in FreeBSD base. This patch adds a new LIBEDIT_BASE option which enables LIBEDIT (LIBEDIT_BASE) without installing the devel/libedit port. The GNU READLINE option will remain the default for now but it is planned to switch the default to LIBEDIT_BASE at some point. This is to reduce the dependency on GNU software and to bring it more into line with the planned MIT KRB5 import into FreeBSD base.
Diffstat (limited to 'security/krb5-devel/files/patch-configure.ac')
-rw-r--r--security/krb5-devel/files/patch-configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/security/krb5-devel/files/patch-configure.ac b/security/krb5-devel/files/patch-configure.ac
new file mode 100644
index 000000000000..abbae0e771b3
--- /dev/null
+++ b/security/krb5-devel/files/patch-configure.ac
@@ -0,0 +1,17 @@
+--- configure.ac.orig 2023-08-07 11:38:21.000000000 -0700
++++ configure.ac 2023-08-09 14:49:19.833149000 -0700
+@@ -1356,8 +1356,12 @@
+ AC_DEFINE([HAVE_LIBEDIT], 1, [Define if building with libedit.])
+ AC_MSG_NOTICE([Using libedit for readline support])
+ elif test "x$with_libedit" = xyes; then
+- # We were explicitly asked for libedit and couldn't find it.
+- AC_MSG_ERROR([Could not detect libedit with pkg-config])
++ AC_MSG_NOTICE([Using libedit in FreeBSD base])
++ AC_CHECK_LIB([edit], [main], :,
++ AC_MSG_ERROR([Could not detect libedit]))
++ AC_DEFINE([HAVE_LIBEDIT], 1, [Define if building with libedit.])
++ RL_CFLAGS=-DFreeBSD_BASE_EDITLINE
++ RL_LIBS='-ledit'
+ else
+ AC_MSG_NOTICE([Not using any readline support])
+ fi