Redesigned option handling, start of libtool introduction
[fw/sdcc] / sim / ucsim / configure.in
index 79972a34168e59f86b5cb1181669c3150eeafea9..4ac594f2ec6104754ead43f6492dca71a24861eb 100644 (file)
@@ -78,16 +78,32 @@ AC_SUBST(enable_z80)
 AC_SUBST(enable_xa)
 AC_SUBST(enable_serio)
 
+AC_ARG_ENABLE(statistic,
+[  --enable-statistic      compile statistical features (slower simulation)],
+if test $enable_statistic != "no"; then
+   enable_statistic="yes"
+fi,
+enable_statistic="no")
+AC_DEFINE_UNQUOTED(STATISTIC, $enable_statistic)
+
+
 # Required programs
 #-------------------
 AC_PROG_CXX
 AC_PROG_CXXCPP
 AC_PROG_INSTALL
 AC_PROG_RANLIB
-AC_LANG_CPLUSPLUS
+dnl AC_LANG_CPLUSPLUS
 
 AC_CHECK_PROG(STRIP, strip, strip, :)
 
+AC_LIBTOOL_DLOPEN
+dnl AC_LIBTOOL_WIN32_DLL
+AC_PROG_LIBTOOL
+AC_SUBST(LIBTOOL_DEPS)
+
+AC_LANG_CPLUSPLUS
+
 # Checking for header files.
 # ===========================================================================