configure: check for setlinebuf() when building tools
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 25 Feb 2019 09:47:08 +0000 (10:47 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 25 Feb 2019 09:47:08 +0000 (10:47 +0100)
Add setlinebuf() to the list of functions checked for when building
gpio-tools. This is now required to build gpiomon.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
configure.ac

index 3d27bcc2f13c261d422ed0af1c2f124c3a6fefc0..1253cb14749c5ece3cff0fd399def35856afc6e0 100644 (file)
@@ -103,6 +103,7 @@ then
        AC_CHECK_FUNC([basename], [], [FUNC_NOT_FOUND_TOOLS([basename])])
        AC_CHECK_FUNC([daemon], [], [FUNC_NOT_FOUND_TOOLS([daemon])])
        AC_CHECK_FUNC([signalfd], [], [FUNC_NOT_FOUND_TOOLS([signalfd])])
+       AC_CHECK_FUNC([setlinebuf], [], [FUNC_NOT_FOUND_TOOLS([setlinebuf])])
        AC_CHECK_HEADERS([sys/signalfd.h], [], [HEADER_NOT_FOUND_TOOLS([sys/signalfd.h])])
 fi