summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-27 03:37:34 +0000
committermidipix <writeonce@midipix.org>2024-03-27 03:37:34 +0000
commit376aa7f9e46decc76f46d097c419c702ef171860 (patch)
tree457afa4582dffaa421479bebabf6232e9e0e6259
parent160233c1f59d35f14629fca46644664533e0ce6e (diff)
downloadslibtool-376aa7f9e46decc76f46d097c419c702ef171860.tar.bz2
slibtool-376aa7f9e46decc76f46d097c419c702ef171860.tar.xz
slibool.m4: added SLIBTOOL_PROG_LEX.
-rw-r--r--m4/slibtool.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index bcaea40..c10ea29 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -53,6 +53,9 @@ m4_ifdef([AM_PROG_NM], [m4_undefine([AM_PROG_NM])])
m4_ifdef([AC_PROG_RANLIB], [m4_undefine([AC_PROG_RANLIB])])
m4_ifdef([AM_PROG_RANLIB], [m4_undefine([AM_PROG_RANLIB])])
+
+m4_ifdef([AC_PROG_LEX], [m4_undefine([AC_PROG_LEX])])
+m4_ifdef([AM_PROG_LEX], [m4_undefine([AM_PROG_LEX])])
])
@@ -349,6 +352,26 @@ fi
])
+# SLIBTOOL_PROG_LEX
+# -----------------
+AC_DEFUN([SLIBTOOL_PROG_LEX],[
+
+# slibtool: SLIBTOOL_PROG_LEX
+# ---------------------------
+if [[ -n "${LEX}" ]]; then
+ AC_CHECK_PROG([LEX],[flex])
+fi
+
+if [[ -z "${LEX}" ]]; then
+ AC_CHECK_PROG([LEX],[flex],[flex])
+fi
+
+if [[ -z "${LEX}" ]]; then
+ AC_CHECK_PROG([LEX],[lex],[lex])
+fi
+])
+
+
# SLIBTOOL_INIT(_options_)
# ------------------------
AC_DEFUN([SLIBTOOL_INIT],[
@@ -524,6 +547,9 @@ AC_DEFUN([AM_PROG_NM], [SLIBTOOL_PROG_NM($@)])
AC_DEFUN([AC_PROG_RANLIB], [SLIBTOOL_PROG_RANLIB($@)])
AC_DEFUN([AM_PROG_RANLIB], [SLIBTOOL_PROG_RANLIB($@)])
+AC_DEFUN([AC_PROG_LEX], [SLIBTOOL_PROG_LEX($@)])
+AC_DEFUN([AM_PROG_LEX], [SLIBTOOL_PROG_LEX($@)])
+
AC_DEFUN([AC_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)])
AC_DEFUN([AM_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)])