From 34eb54c49bb64f74e8ef8945fb40d4172bb271f5 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 27 Apr 2001 00:47:54 +0000 Subject: Check about libtool version. CVS patchset: 33 CVS date: 2001/04/27 00:47:54 --- configure.in | 8 +++++++- m4/_xine.m4 | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index db2c64e9c..dab75d31c 100644 --- a/configure.in +++ b/configure.in @@ -5,10 +5,15 @@ dnl AC_INIT(src/xine-engine/xine.c) dnl -dnl Required Autoconf Version 2.13 +dnl Require autoconf version 2.13 dnl AC_PREREQ(2.13) +dnl +dnl Require libtool minimum version 1.3.5 +dnl +AC_PREREQ_LIBTOOL(1.3.5,,AC_MSG_ERROR(*** You should have libtool >= 1.3.5 installed ***)) + XINE_MAJOR=0 XINE_MINOR=5 @@ -388,6 +393,7 @@ AC_SUBST(ACLOCAL_DIR) AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, no) + dnl dnl Output configuration files dnl diff --git a/m4/_xine.m4 b/m4/_xine.m4 index e59117a22..3d994b592 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -1,3 +1,25 @@ +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, -- cgit v1.2.3