]> granicus.if.org Git - postgis/commitdiff
Added checks for flex and yacc paths.
authorSandro Santilli <strk@keybit.net>
Mon, 24 Jan 2005 15:22:56 +0000 (15:22 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 24 Jan 2005 15:22:56 +0000 (15:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1337 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile.config.in
configure.in

index 01c5f2c47ea44988a4985d9f311bd2d8e90eb6b0..5f35694b37164c1eb593bdf5a1bf71ad04f8d918 100644 (file)
@@ -75,6 +75,12 @@ USE_ICONV=0
 # LPATH=/usr/src/postgis
 LPATH=\$$libdir
 
+#
+# Path to flex, yacc
+#
+FLEX ?= @FLEX@
+YACC ?= @YACC@
+
 #---------------------------------------------------------------
 # END OF CONFIGURATION
 #---------------------------------------------------------------
index 2184e37c267e7e70dfb68d53fedc5ad158c75621..a356e86e1a4bd669bd58dc0b509f16c4bda01c20 100644 (file)
@@ -52,6 +52,12 @@ AC_ARG_WITH(pgsql-src,
   fi
 )
 
+dnl Search flex and yacc
+AC_SUBST(FLEX)
+AC_SUBST(YACC)
+AC_PATH_PROG([FLEX], [flex])
+AC_PATH_PROG([YACC], [yacc])
+
 dnl Some final checks
 
 if test $USE_GEOS -gt 0 -a ! -e $GEOS_DIR/bin/geos-config; then
@@ -66,6 +72,14 @@ if ! test -e $PGSQL_SRC/src/Makefile.global; then
        AC_MSG_ERROR(Can't find \$PGSQL_SRC/src/Makefile.global);
 fi
 
+if test -z "$FLEX"; then
+       AC_MSG_ERROR(Can't find 'flex');
+fi
+
+if test -z "$YACC"; then
+       AC_MSG_ERROR(Can't find 'yacc');
+fi
+
 AC_MSG_RESULT([ USE_GEOS=$USE_GEOS])
 if test $USE_GEOS -gt 0; then
        AC_MSG_RESULT([ GEOS_DIR=$GEOS_DIR])
@@ -76,4 +90,7 @@ if test $USE_PROJ -gt 0; then
 fi
 AC_MSG_RESULT([ PGSQL_SRC=$PGSQL_SRC])
 
+AC_MSG_RESULT([ FLEX=$FLEX])
+AC_MSG_RESULT([ YACC=$YACC])
+
 AC_OUTPUT(Makefile.config)