2
0

101-config-switch-to-AC_CHECK_LIB.patch 985 B

12345678910111213141516171819202122232425262728
  1. From e7671c2a3be03d790cbc225cd3e784b5434fb5da Mon Sep 17 00:00:00 2001
  2. From: David Bauer <[email protected]>
  3. Date: Mon, 16 Jan 2023 01:29:22 +0100
  4. Subject: [PATCH] config: switch to AC_CHECK_LIB
  5. This fixes spurious build-errors on OpenWrt, where the AM_ICONV macro
  6. is undefined while invoking autoconfig. Later in the build, the ICONV
  7. LDOPTIONS are set to @LIBICONV@, failing the build.
  8. Signed-off-by: David Bauer <[email protected]>
  9. ---
  10. configure.ac | 5 +----
  11. 1 file changed, 1 insertion(+), 4 deletions(-)
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -70,10 +70,7 @@ AC_CHECK_DECLS([getmntent], [], [], [[#i
  15. AC_CHECK_DECLS([getmntinfo], [], [], [[#include <sys/mount.h>]])
  16. # optional iconv support
  17. -AC_ARG_WITH([iconv], AS_HELP_STRING([--without-iconv], [build without iconv support]))
  18. -if test "x$with_iconv" != "xno"; then
  19. - AM_ICONV
  20. -fi
  21. +AC_CHECK_LIB(iconv, iconv_open)
  22. # xxd (distributed with vim) is used in the testsuite
  23. AC_CHECK_PROG([XXD_FOUND], [xxd], [yes])