summaryrefslogtreecommitdiff
path: root/m4/_xine.m4
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-04-27 00:47:54 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-04-27 00:47:54 +0000
commit34eb54c49bb64f74e8ef8945fb40d4172bb271f5 (patch)
tree08507e53cba7b4617c70dadde22b030992bce73b /m4/_xine.m4
parentaaaf025d47294c870658dcb032d512973696a4e9 (diff)
downloadxine-lib-34eb54c49bb64f74e8ef8945fb40d4172bb271f5.tar.gz
xine-lib-34eb54c49bb64f74e8ef8945fb40d4172bb271f5.tar.bz2
Check about libtool version.
CVS patchset: 33 CVS date: 2001/04/27 00:47:54
Diffstat (limited to 'm4/_xine.m4')
-rw-r--r--m4/_xine.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/m4/_xine.m4 b/m4/_xine.m4
index e59117a22..3d994b592 100644
--- a/m4/_xine.m4
+++ b/m4/_xine.m4
@@ -1,4 +1,26 @@
dnl
+dnl Check for minimum version of libtool
+dnl AC_PREREQ_LIBTOOL([MINIMUM VERSION],[ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]])
+AC_DEFUN([AC_PREREQ_LIBTOOL],
+ [
+ lt_min_full=ifelse([$1], ,1.3.5,$1)
+ lt_min=`echo $lt_min_full | sed -e 's/\.//g'`
+ AC_MSG_CHECKING(checking for libtool >= $lt_min_full)
+ lt_version="`grep ^VERSION ./libtool | sed -e 's/\.//g' | sed -e 's/VERSION\=//'`"
+
+ if test $lt_version -lt 100; then
+ lt_version=`expr $lt_version \* 10`
+ fi
+
+ if test $lt_version -lt $lt_min; then
+ AC_MSG_RESULT(no)
+ ifelse([$3], , :, [$3])
+ fi
+ AC_MSG_RESULT(yes)
+ ifelse([$2], , :, [$2])
+ ])
+
+dnl
AC_DEFUN([AC_CHECK_LIRC],
[AC_ARG_ENABLE(lirc,
[ --disable-lirc Turn off LIRC support.],