Allow Spike to build on NetBSD
authorReinoud Zandijk <reinoud@netbsd.org>
Mon, 29 Dec 2014 21:06:09 +0000 (13:06 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 29 Dec 2014 21:13:58 +0000 (13:13 -0800)
Under NetBSD, dlopen() is in libc so no extra libs are needed.

spike_main/spike_main.ac

index f8d63cee07c5ac5500d3cddd065741be65fa84c1..b913c35288422273d4009b86835293da95badbe4 100644 (file)
@@ -1 +1,3 @@
-AC_CHECK_LIB(dl, dlopen, [], [AC_MSG_ERROR([libdl is required])])
+AC_SEARCH_LIBS([dlopen], [dl dld], [], [
+  AC_MSG_ERROR([unable to find the dlopen() function])
+])