--- aclocal.m4.bak 2007-03-27 06:24:51.000000000 +0200 +++ aclocal.m4 2007-04-06 16:56:43.000000000 +0200 @@ -701,10 +701,10 @@ AC_MSG_ERROR([cannot find curl-config. Is libcurl installed?]) fi - CFLAGS_LIBCURL=$($CURL_CONFIG --cflags) + CFLAGS_LIBCURL=$($CURL_CONFIG --cflags | [sed 's/-I[^ ]*//g']) # Due to a bug in dist, --arch flags are improperly supplied by curl-config. # Get rid of them. - LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | [sed 's/-arch [A-Za-z0-9]* //g']) + LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | [sed 's/-arch [A-Za-z0-9]* //g; s/-L[^ ]*//g']) AC_SUBST(CFLAGS_LIBCURL) AC_SUBST(LDFLAGS_LIBCURL)