Skip to content

Commit

Permalink
Fix #21: Remove requirement for libfl, default yywrap() not needed
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed May 26, 2019
1 parent 520e298 commit 5a50966
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ AM_PROG_LEX
CFLAGS_ADD="$CFLAGS_ADD -W -Wall -Wextra -Wno-unused"

# Checks for libraries.
AC_CHECK_LIB([fl], [main])
# We don't need libfl at the moment, see '%option noyywrap'
#AC_CHECK_LIB([fl], [main])

# FIXME: Replace `main' with a function in `-ll':
AC_CHECK_LIB([l], [main])
AC_CHECK_LIB([y], [main])
Expand Down
6 changes: 6 additions & 0 deletions src/cftoken.l
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/* $KAME: cftoken.l,v 1.20 2005/07/14 12:39:04 suz Exp $ */

/*
* We don't have an yywrap() since we only have one .conf file, thus
* we don't need a default one from libfl either.
*/
%option noyywrap

%{
/*
* Copyright (C) 1999 WIDE Project.
Expand Down

0 comments on commit 5a50966

Please sign in to comment.