Empty [] in AC_SEARCH_LIBS causes autogen to generate empty "else fi" 
combination
which is reported as error by shell (command is needed inside).
---
 configure.ac | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index ddec730..dca035b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,13 +195,9 @@ AC_ARG_WITH([libbsd],
 
 tmp_libs=$LIBS
 AC_SEARCH_LIBS([strlcat],[$with_libbsd],
-  [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available])],
-  []
-)
+  [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available])])
 AC_SEARCH_LIBS([strlcpy],[$with_libbsd],
-  [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcpy is available])],
-  []
-)
+  [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcpy is available])])
 LIBS=$tmp_libs
 
 LIBBSD=
-- 
1.7.11.7


-- 
To unsubscribe, send mail to [email protected].

Reply via email to