Hello Micah, * Micah Cowan wrote on Tue, Aug 07, 2007 at 08:07:03PM CEST: > > If I remove the first invocation of AC_LIB_HAVE_LINKFLAGS (within > gnutls), the second one functions as it used to. If I leave it as you > see it above, apparently shlibext and other vars somehow get the null > value, and it searches for libraries such as "/opt/openssl/libssl." (no > "so"). This was determined via invocation as "bash -x ./configure ...". > > I was thinking perhaps that it was that the AC_REQUIRE'd macros from > AC_LIB_HAVE_LINKFLAGS needed to be invoked outside of the shell > conditional, but adding invocations to AC_LIB_RPATH and > AC_PREPARE_PREFIX at the top level did not seem to improve matters.
Instead of this: > if test x"$with_ssl" = xgnutls > then try using this together with Autoconf >= 2.61: AS_IF([test x"$with_ssl" = xgnutls], [ dnl Now actually check for -lssl ... ], [ dnl here comes the else part, if any (otherwise remove this argument) ... ]) > dnl Now actually check for -lssl > AC_LIB_HAVE_LINKFLAGS([gnutls], [], [ [...] The AS_IF of Autoconf 2.61 will cause all m4_require'd/AC_REQUIRE'd macros to be expanded outside of the conditional. Hope that helps. Cheers, Ralf
