]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
nm: Don't set DL_LIBS to 'none required' in configure script master
authororbea <orbea@riseup.net>
Tue, 5 Mar 2024 23:46:30 +0000 (15:46 -0800)
committerTobias Brunner <tobias@strongswan.org>
Tue, 1 Jul 2025 05:45:12 +0000 (07:45 +0200)
This copies the AC_SEARCH_LIBS check from the main strongSwan
configure.ac.

When building networkmanager-strongswan with slibtool if fails.

  ld: cannot find none: No such file or directory
  ld: cannot find required: No such file or directory

This is because configure.ac uses AC_SEARCH_LIBS to find dlopen which
sets the value of $ac_cv_search_dlopen to 'none required' which then
gets set in DL_LIBS and passed to slibtool.

With GNU libtool it silently ignores the unknown arguments.

Gentoo issue: https://bugs.gentoo.org/914100

Closes strongswan/strongswan#2141

Signed-off-by: orbea <orbea@riseup.net>
src/frontends/gnome/configure.ac

index 12af5ebfc6fef1ade39a4364a06033b11c23d037..53266a7c80d582eb83cee57544e9d92a2e1de69a 100644 (file)
@@ -35,8 +35,9 @@ AC_PROG_GCC_TRADITIONAL
 AC_FUNC_MEMCMP
 AC_CHECK_FUNCS(select socket uname)
 
-AC_SEARCH_LIBS([dlopen], [dl dld], [], [ac_cv_search_dlopen=])
-AC_SUBST([DL_LIBS], "$ac_cv_search_dlopen")
+LIBS=""
+AC_SEARCH_LIBS([dlopen], [dl dld], [DL_LIBS=$LIBS])
+AC_SUBST([DL_LIBS])
 
 AM_GNU_GETTEXT_VERSION([0.19])
 AM_GNU_GETTEXT([external])