diff --git a/configure.ac b/configure.ac index 98fed3d4f..6d8702ad8 100644 --- a/configure.ac +++ b/configure.ac @@ -220,6 +220,9 @@ dnl check for some default libraries AC_SEARCH_LIBS(cos, m) AC_SEARCH_LIBS(dlclose, dl) +dnl search for FreeBSD library +AC_SEARCH_LIBS(hid_init, usbhid) + base_LIBS="$LIBS" dnl Check for SDL if enabled. diff --git a/src/Input/Makefile.am b/src/Input/Makefile.am index 65e578e84..f848a67d9 100644 --- a/src/Input/Makefile.am +++ b/src/Input/Makefile.am @@ -6,10 +6,10 @@ bin_PROGRAMS = js_demo fgjs js_demo_SOURCES = js_demo.cxx -js_demo_LDADD = -lplibjs $(audio_LIBS) -lplibul +js_demo_LDADD = -lplibjs $(base_LIBS) $(audio_LIBS) -lplibul fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h -fgjs_LDADD = -lplibjs $(audio_LIBS) -lplibul +fgjs_LDADD = -lplibjs $(base_LIBS) $(audio_LIBS) -lplibul INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src diff --git a/utils/js_server/Makefile.am b/utils/js_server/Makefile.am index 6f72d63b0..2fcaa0535 100644 --- a/utils/js_server/Makefile.am +++ b/utils/js_server/Makefile.am @@ -1,4 +1,4 @@ sbin_PROGRAMS = js_server js_server_SOURCES = js_server.cxx -js_server_LDADD = -lplibjs -lplibnet -lplibul $(audio_LIBS) $(network_LIBS) +js_server_LDADD = -lplibjs -lplibnet -lplibul $(base_LIBS) $(audio_LIBS) $(network_LIBS)