OSSP CVS Repository

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

ossp-pkg/l2/configure.ac 1.14 -> 1.15

--- configure.ac 2001/11/05 11:02:43     1.14
+++ configure.ac 2001/11/08 20:28:22     1.15
@@ -73,8 +73,30 @@
 fi
 AC_PROG_CPP
 AC_CHECK_DEBUGGING
+AC_CHECK_MAINTAINER
 AC_CONFIGURE_LIBTOOL
 
+dnl # check for developer tools:
+dnl # GNU Bison and GNU Flex
+if test ".$enable_maintainer" = .yes; then
+    AC_PATH_PROG(BISON, bison, NA)
+    if test ".$BISON" = .NA; then
+        AC_ERROR([require GNU Bison])
+    fi
+    AC_PATH_PROG(FLEX,  flex,  NA) 
+    if test ".$FLEX" = .NA; then
+        AC_ERROR([require GNU Flex])
+    fi
+    flex_version=`(flex --version 2>/dev/null | awk '{ print $3; }')`
+    case "$flex_version" in
+        2.[[5-6]].[[6-9]] ) ;;
+        * ) AC_ERROR([found GNU Flex version $flex_version; require version >= 2.5.6 (DEVELOPER VERSION!)]) ;;
+    esac
+else
+    AC_PATH_PROG(BISON, bison, true)
+    AC_PATH_PROG(FLEX,  flex,  true) 
+fi
+
 AC_CHECK_LIB(nsl, gethostname)
 if test ".`echo $LIBS | grep nsl`" = . ;then
     AC_CHECK_LIB(nsl, gethostbyname)

CVSTrac 2.0.1