On 2013-11-23 00:39, Eric Blake wrote: > On 11/22/2013 04:29 PM, Johan Persson wrote: > >> Fortunately that is easy (for once). The following trivial combo shows the problem. > >> AC_LIB_HAVE_LINKFLAGS([[usb-1.0]],[],[],[],[libusb-1.0 Library needed.]) > > This macro is not provided by autoconf. (It's a shame that the macro > author abused the AC_ namespace instead of putting it in another > namespace, because it means if autoconf ever DOES implement this macro, > it will break this third-party code.) You'll need to track down the You are right! I've been using this construction for several years and I always though this was part of the core autoconf. Looking more closely this is provided by Gnulib module "havelib" (See https://www.gnu.org/software/gnulib/manual/html_node/Searching-for-Libraries.html#Searching-for-Libraries [1]) However, it seems thought that the macro is well behaved in that it does normalize to "_" which means that using the variable name with "_" instead actually works. Problem solved and I still can have warning free code. Thanks for the pointers! --Johan Links: ------ [1] https://www.gnu.org/software/gnulib/manual/html_node/Searching-for-Libraries.html#Searching-for-Libraries _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf