added detection of flex/bison to configure
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 6 Jul 2003 00:11:13 +0000 (00:11 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 6 Jul 2003 00:11:13 +0000 (00:11 +0000)
configure.ac
lib/Makefile.am

index 8f1507ea9f5eca056ea23febbc4c28f14d70ceae..4210617a38a7d234ec9b9fcfdecdf1dd60c93da3 100644 (file)
@@ -17,6 +17,8 @@ AM_MAINTAINER_MODE
 AC_PROG_CC
 AM_PROG_CC_STDC
 AC_ISC_POSIX
+AM_PROG_LEX
+AC_PROG_YACC
 
 AC_HEADER_STDC([])
 
index 2faca1feda83d1e31678c2667c4ef1afb17cb705..b28a12012df22bdcd2b1f8ca447b6ec4f7e30db4 100644 (file)
@@ -1,8 +1,4 @@
 
-## hack
-FLEX_PATH=flex
-BISON_PATH=bison
-
 lib_LTLIBRARIES = libcomedi.la
 
 noinst_HEADERS = calib_yacc.h comedi_errno.h libinternal.h
@@ -21,8 +17,8 @@ libcomedi_la_CFLAGS = $(COMEDILIB_CFLAGS) -D_REENTRANT
 libcomedi_la_LDFLAGS = -Wl,--version-script=$(srcdir)/version_script
 
 calib_yacc.c: $(srcdir)/calib_yacc.y
-       $(BISON_PATH) -d -y -p calib_yy -o $@ $<
+       $(YACC) -d -p calib_yy -o $@ $<
 
 calib_lex.c: $(srcdir)/calib_lex.l
-       $(FLEX_PATH) -Pcalib_yy -o$@ $<
+       $(LEX) -Pcalib_yy -o$@ $<