summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/slibtool.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index 25c37a3..e2e6ad5 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -260,6 +260,17 @@ slibtool_set_flavor()
enable_win32_dll=${slibtool_enable_win32_dll}
enable_fast_install=${slibtool_enable_fast_install}
pic_mode=${slibtool_pic_mode}
+
+ # suffix variables
+ if [[ -n "${host}" ]]; then
+ shrext_cmds="$($_slibtool -print-shared-ext --host=${host})"
+ libext="$($_slibtool -print-static-ext --host=${host})"
+ libext="${libext#[.]}"
+ else
+ shrext_cmds="$($_slibtool -print-shared-ext)"
+ libext="$($_slibtool -print-static-ext)"
+ libext="${libext#[.]}"
+ fi
}
])
@@ -402,8 +413,11 @@ if [[ -z "${LEX}" ]]; then
AC_CHECK_PROG([LEX],[lex],[lex])
fi
+slibtool_lex_output_root="${ac_cv_prog_lex_root:-lex.yy}"
+
AC_SUBST([LEX])
AC_SUBST([LEXLIB])
+AC_SUBST([LEX_OUTPUT_ROOT],["${slibtool_lex_output_root}"])
])