From: Frank Mori Hess Date: Sun, 6 Jul 2003 00:11:13 +0000 (+0000) Subject: added detection of flex/bison to configure X-Git-Tag: r0_7_21~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e33ed9c6e4effc890e9a25a6ce077f12f13c265;p=comedilib.git added detection of flex/bison to configure --- diff --git a/configure.ac b/configure.ac index 8f1507e..4210617 100644 --- a/configure.ac +++ b/configure.ac @@ -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([]) diff --git a/lib/Makefile.am b/lib/Makefile.am index 2faca1f..b28a120 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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$@ $<