OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/configure.ac versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/configure.ac 1.21 -> 1.22

--- configure.ac 2002/07/01 17:50:15     1.21
+++ configure.ac 2002/07/25 07:54:51     1.22
@@ -44,58 +44,8 @@
 AC_CHECK_MAINTAINER
 AC_CONFIGURE_LIBTOOL
 
-dnl # check for developer tools:
-dnl # GNU Bison and GNU Flex
-if test ".$enable_maintainer" = .yes; then
-    dnl # check for GNU Bison >= 1.30
-    bison_version=""
-    for prog in bison bison-beta bison-alpha bison-snap; do
-        AC_PATH_PROG(BISON, $prog, NA) 
-        if test ".$BISON" != .NA; then
-            bison_version=`($BISON --version | head -1 | sed -e 's;^[[^0-9]]*\([[0-9]][[0-9.]]*\).*;\1;') 2>/dev/null`
-            case "$bison_version" in
-                1.3[[0-9]] | 1.[[4-9]] ) break ;;
-                * ) BISON="NA"; unset ac_cv_path_BISON ;;
-            esac
-        else
-            unset ac_cv_path_BISON
-        fi
-    done
-    if test ".$BISON" = .NA; then
-        if test ".$bison_version" != .; then
-            AC_ERROR([found GNU Bison version $bison_version; require version >= 1.30])
-        else
-            AC_ERROR([require GNU Bison version >= 1.30])
-        fi
-    fi
-    dnl # check for GNU Flex >= 2.5.6
-    flex_version=""
-    for prog in flex flex-beta flex-alpha flex-snap; do
-        AC_PATH_PROG(FLEX, $prog, NA) 
-        if test ".$FLEX" != .NA; then
-            flex_version=`($FLEX --version | head -1 | sed -e 's;^[[^0-9]]*\([[0-9]][[0-9.]]*\).*;\1;') 2>/dev/null`
-            case "$flex_version" in
-                2.5.[[6-9]] | 2.5.1[[0-9]] | 2.[[6-9]].* ) break ;;
-                * ) FLEX="NA"; unset ac_cv_path_FLEX ;;
-            esac
-        else
-            unset ac_cv_path_FLEX
-        fi
-    done
-    if test ".$FLEX" = .NA; then
-        if test ".$flex_version" != .; then
-            AC_ERROR([found GNU Flex version $flex_version; require version >= 2.5.6])
-        else
-            AC_ERROR([require GNU Flex version >= 2.5.6])
-        fi
-    fi
-else
-    dnl # disable the use of the tools, but still allow manual override
-    test ".$BISON" = . && BISON=true
-    AC_PATH_PROG(BISON, bison, true)
-    test ".$FLEX"  = . && FLEX=true
-    AC_PATH_PROG(FLEX, flex, true)
-fi
+AC_CHECK_BISON(BISON, 1.30, [1.3[[0-9]]|1.[[4-9]]])
+AC_CHECK_FLEX(FLEX, 2.5.10, [2.5.1[[0-9]]|2.[[6-9]].*])
 
 AC_CHECK_LIB(nsl, gethostname)
 if test ".`echo $LIBS | grep nsl`" = . ;then

CVSTrac 2.0.1