aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/acinclude.m46
2 files changed, 9 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 3ea3422..b5c5ed4 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-19 Mike Frysinger <vapier@gentoo.org>
+
+ * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
+
2011-10-18 John Wehle <john@feith.com> (tiny patch)
* sim-profile.c (profile_info): Only print the title once.
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4
index 11398f5..9979746 100644
--- a/sim/common/acinclude.m4
+++ b/sim/common/acinclude.m4
@@ -623,7 +623,11 @@ if test "$sim_hw_p" != yes; then
fi
if test x"$silent" != x"yes"; then
echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
-fi])dnl
+fi])
+dnl Some devices require extra libraries.
+case " $hardware " in
+ *" cfi "*) AC_CHECK_LIB(m, log2);;
+esac
])
AC_SUBST(sim_hw_cflags)
AC_SUBST(sim_hw_objs)