summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2003-05-23 10:33:49 +0000
committerpaul <paul>2003-05-23 10:33:49 +0000
commit3d3de8c4a4b3642d94d5e23cc6670e04e0e5091c (patch)
tree52ccdad1f7c51b96b6c779f0a44a5dac8f6dfe61
parent32d2463ca26529ad4700af6d5748f927e1305694 (diff)
From: Sergiy Vyshnevetskiy <serg@vostok.net>
Subject: [zebra 18994] Re: zebra-pj compile failure under OpenBSd 3.3 (gmake) properly detect rl_completion_matches vs completion_matches.
-rwxr-xr-xconfigure.ac5
-rwxr-xr-xconfigure.in5
2 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 58624556..fc854ad7 100755
--- a/configure.ac
+++ b/configure.ac
@@ -216,6 +216,11 @@ case "${enable_vtysh}" in
AC_MSG_ERROR([readline is too old to have readline/history.h, please update to the latest readline library.])
fi
;;
+ AC_CHECK_LIB(readline, rl_completion_matches)
+ if test $ac_cv_lib_readline_rl_completion_matches = no; then
+ AC_DEFINE(rl_completion_matches,completion_matches,Old readline)
+ fi
+ ;;
"no" ) VTYSH="";;
* ) ;;
esac
diff --git a/configure.in b/configure.in
index 58624556..fc854ad7 100755
--- a/configure.in
+++ b/configure.in
@@ -216,6 +216,11 @@ case "${enable_vtysh}" in
AC_MSG_ERROR([readline is too old to have readline/history.h, please update to the latest readline library.])
fi
;;
+ AC_CHECK_LIB(readline, rl_completion_matches)
+ if test $ac_cv_lib_readline_rl_completion_matches = no; then
+ AC_DEFINE(rl_completion_matches,completion_matches,Old readline)
+ fi
+ ;;
"no" ) VTYSH="";;
* ) ;;
esac