fix berkeleygw.m4
Description
berkeleygw.m4: Check if the library is already provided if not use the default
News snippet
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.