AC_HEADER_STDC
AC_CHECK_HEADERS(string.h malloc.h sys/types.h unistd.h stdbool.h)
AC_CHECK_HEADERS(cunistd netinet/in.h)
+AC_CHECK_DECLS(__func__)
AC_PROG_YACC
AM_PROG_LEX
extern void flexfatal PROTO ((const char *));
/* Report a fatal error with a pinpoint, and terminate */
+#if HAVE_DECL___FUNC__
#define flex_die(msg) \
do{ \
fprintf (stderr,\
__func__,msg);\
FLEX_EXIT(1);\
}while(0)
+#else /* ! HAVE_DECL___FUNC__ */
+#define flex_die(msg) \
+ do{ \
+ fprintf (stderr,\
+ _("%s: fatal internal error at %s:%d %s\n"),\
+ program_name, __FILE__, (int)__LINE__,\
+ msg);\
+ FLEX_EXIT(1);\
+ }while(0)
+#endif /* ! HAVE_DECL___func__ */
/* Convert a hexadecimal digit string to an integer value. */
extern int htoi PROTO ((Char[]));