diff options
author | Mark Eichin <eichin@mit.edu> | 1994-06-13 07:10:49 +0000 |
---|---|---|
committer | Mark Eichin <eichin@mit.edu> | 1994-06-13 07:10:49 +0000 |
commit | 887cbf6566cfbfd977f5a55c4e557e2c607f1bc3 (patch) | |
tree | 62a667ffcbfc1df201f3f92f7ea5a58ec97c23eb /src/aclocal.m4 | |
parent | 07e1cb0db917e72404a6cc937a976d0753b339b7 (diff) | |
download | krb5-887cbf6566cfbfd977f5a55c4e557e2c607f1bc3.tar.gz krb5-887cbf6566cfbfd977f5a55c4e557e2c607f1bc3.tar.xz krb5-887cbf6566cfbfd977f5a55c4e557e2c607f1bc3.zip |
fix yylineno test to actually run lex
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3761 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index d7936fcc2..9999ab147 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -116,12 +116,6 @@ divert(0)dnl changequote([,])dnl ])dnl dnl -dnl check for yylineno -- HAVE_YYLINENO -dnl -define(HAVE_YYLINENO,[ -AC_COMPILE_CHECK([yylineno], -[extern int yylineno;], [t(&yylineno);], , AC_DEFINE(NO_YYLINENO))])dnl -dnl dnl take saved makefile stuff and put it in the Makeile dnl define(EXTRA_RULES,[ @@ -344,3 +338,19 @@ define(ISODE_INCLUDE,[ ADD_DEF([-I${SRCTOP}/isode/h -I${BUILDTOP}/isode/h])dnl ])dnl dnl +dnl check for yylineno -- HAVE_YYLINENO +dnl +define(HAVE_YYLINENO,[dnl +AC_REQUIRE_CPP()AC_REQUIRE([AC_PROG_LEX])dnl +AC_CHECKING(for yylineno declaration) +# some systems have yylineno, others don't... + echo '%% +%%' | ${LEX} -t > conftest.out + if egrep yylineno conftest.out >/dev/null 2>&1; then + : + else + AC_DEFINE([NO_YYLINENO]) + fi + rm -f conftest.out +])dnl +dnl |