diff --git a/m4/libcurl.m4 b/m4/libcurl.m4 index 6e1010ef03..6f87eb0ce0 100644 --- a/m4/libcurl.m4 +++ b/m4/libcurl.m4 @@ -67,7 +67,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG], if test -d "$_libcurl_with" ; then CPPFLAGS="${CPPFLAGS} -I$withval/include" LDFLAGS="${LDFLAGS} -L$withval/lib" - PATH="$withval/bin:${PATH}" + PATH="${withval%/}/bin:$PATH" fi AC_PATH_PROG([_libcurl_config],[curl-config])