wmbattery: Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm.
commit535b83d232782516be879497e7273a3f19543295
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Fri, 20 Feb 2015 05:34:19 +0000 (19 23:34 -0600)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 20 Feb 2015 16:59:53 +0000 (20 16:59 +0000)
treeadb03fc7dd778ed03f70c9c5c6b9827f63cd0d53
parent085f47b758cd817aa8a930b0fd487ef379e89726
wmbattery: Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm.

If autoconf finds an apm.h other than the one belonging to libapm, we get
builds errors like the ones reported by Haroldo Gambini Santos in [1].

[1] http://lists.windowmaker.org/dev/msg07937.html
wmbattery/apm.h
wmbattery/configure.ac
wmbattery/wmbattery.c