Commit 9de4e5eb authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Fixed the problem of curl-config --libs specifying unneeded libraries

dependencies to applications.
parent 7033a1c0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -158,6 +158,15 @@ case $host in
    ;;
esac

# Determine whether all dependent libraries must be specified when linking
if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
then
    REQUIRE_LIB_DEPS=no
else
    REQUIRE_LIB_DEPS=yes
fi
AC_SUBST(REQUIRE_LIB_DEPS)

dnl The install stuff has already been taken care of by the automake stuff
dnl AC_PROG_INSTALL
AC_PROG_MAKE_SET
+6 −2
Original line number Diff line number Diff line
@@ -181,7 +181,11 @@ while test $# -gt 0; do
       	;;

    --libs)
	if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
	  echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@
	else
	  echo -L@libdir@ -lcurl @LDFLAGS@
	fi
	;;

    *)