Check for libltdl only if enable_shared is set.
Showing
1 changed file
with
9 additions
and
6 deletions
... | @@ -38,12 +38,14 @@ dnl Check for libraries | ... | @@ -38,12 +38,14 @@ dnl Check for libraries |
38 | AC_CHECK_LIB(resolv, res_query) | 38 | AC_CHECK_LIB(resolv, res_query) |
39 | LTDL_LIB= | 39 | LTDL_LIB= |
40 | AC_SUBST(LTDL_LIB) | 40 | AC_SUBST(LTDL_LIB) |
41 | AC_CHECK_LIB(ltdl, lt_dlinit,[ | 41 | if test "$enable_shared" = yes; then |
42 | AC_DEFINE(HAVE_LIBLTDL, | 42 | AC_CHECK_LIB(ltdl, lt_dlinit,[ |
43 | 1, | 43 | AC_DEFINE(HAVE_LIBLTDL, |
44 | [Define to 1 if you have the `ltdl' library (-lltdl).]) | 44 | 1, |
45 | LTDL_LIB=-lltdl], | 45 | [Define to 1 if you have the `ltdl' library (-lltdl).]) |
46 | [LTDL_LIB=""]) | 46 | LTDL_LIB=-lltdl], |
47 | [LTDL_LIB=""]) | ||
48 | fi | ||
47 | MU_DEBUG_MODE | 49 | MU_DEBUG_MODE |
48 | 50 | ||
49 | # Initialize authlibs | 51 | # Initialize authlibs |
... | @@ -307,6 +309,7 @@ AC_CHECK_FUNCS(argp_parse, :, | ... | @@ -307,6 +309,7 @@ AC_CHECK_FUNCS(argp_parse, :, |
307 | MU_LIBOBJ(argp-pv) | 309 | MU_LIBOBJ(argp-pv) |
308 | MU_LIBOBJ(argp-pvh) | 310 | MU_LIBOBJ(argp-pvh) |
309 | MU_LIBOBJ(argp-xinl) | 311 | MU_LIBOBJ(argp-xinl) |
312 | MU_LIBOBJ(pin) | ||
310 | ]) | 313 | ]) |
311 | 314 | ||
312 | AC_MSG_CHECKING(whether extern program_invocation_name is present) | 315 | AC_MSG_CHECKING(whether extern program_invocation_name is present) | ... | ... |
-
Please register or sign in to post a comment