mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 15:58:03 +02:00
build: fix searching dlopen in configure
The 4th argument of AC_SEARCH_LIBS is a list of additional libraries, not the name of the variable to hold the result which is always ac_cv_search_$function. Also, we should ignore the result when it is "none required". Fixes:1f2eeb85d8('build: rename $(LIBDL) to $(DL_LIBS) and modify detection') (cherry picked from commitbd4957fcd7)
This commit is contained in:
parent
8ec0954570
commit
1fa0914b17
1 changed files with 3 additions and 2 deletions
|
|
@ -240,8 +240,9 @@ AM_CONDITIONAL(WITH_IWD, test x"${ac_with_iwd}" = x"yes")
|
||||||
dnl
|
dnl
|
||||||
dnl Checks for libdl - on certain platforms its part of libc
|
dnl Checks for libdl - on certain platforms its part of libc
|
||||||
dnl
|
dnl
|
||||||
AC_SEARCH_LIBS([dlopen], [dl dld], [], [ac_cv_search_dlopen=])
|
AC_SEARCH_LIBS([dlopen], [dl dld],
|
||||||
AC_SUBST([DL_LIBS], "$ac_cv_search_dlopen")
|
[test "$ac_cv_search_dlopen" = "none required" || AC_SUBST([DL_LIBS], "$ac_cv_search_dlopen"]),
|
||||||
|
[])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GLIB, [gio-unix-2.0 >= 2.37.6 gmodule-2.0],
|
PKG_CHECK_MODULES(GLIB, [gio-unix-2.0 >= 2.37.6 gmodule-2.0],
|
||||||
[AC_SUBST(LOG_DRIVER, '$(top_srcdir)/build-aux/tap-driver.sh')
|
[AC_SUBST(LOG_DRIVER, '$(top_srcdir)/build-aux/tap-driver.sh')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue